npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

supir-api

v0.9.6

Published

API for Supir

Downloads

70

Readme

Supir API

Supir 的接口

根据低耦合和高内聚的原则,尽可能减少依赖。

没有副作用功能,例如存储。

如何使用

npm install --save supir-api
# 或者
yarn add supir-api
import { SupirClient } from "supir-api";

const client = new SupirClient("你的访问密钥", {
  // 中国大陆的api服务
  baseURL: "https://www.suppixel.cn/api",
});

const output = await client.create("输入图片的URL");

// 完成后下载输出图片

Endpoint

  • 全球(无需设置) https://supir-api.azurewebsites.net
  • 中国大陆 https://www.suppixel.cn/api

Args

upscale

放大倍数

图像分辨率增加的比率,以增强其大小。

使用较高的放大倍数可能会增加生成时间。

对于旧照片或严重退化的图像,建议从1倍放大倍数开始。

scheme_name

采样器

选择不同的采样器:闪电模式用于速度,终极感知用于更好的视觉质量。

prioritize_name

优先级

优先保真度将忠实增强您的输入图像,优先质量可能会添加一些额外的纹理。

function_type

照片类型

指定您的照片类型:“标准”指一般图像,而“旧照片”对您的旧照片应用特殊处理,包括色彩校正和折痕修复。

texture_richness

纹理丰富度

调整图像的纹理丰富度。

较高的值将生成更详细的纹理,例如皱纹和斑点!

但请注意:过高的值可能会导致图像偏离原始图像。

creativity

创造力

使AI模型能够生成额外的细节,增强真实感,但可能会偏离原始图像。

captions

图像描述

添加一些图像描述可以使图像处理更加精确和智能。

例如,“这是一个有雀斑的年轻人”或“衣服的材质是毛衣”。

但是,描述不能与图像内容相矛盾,只能用于更准确的指定。