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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xzsmtech/foundation

v1.0.4

Published

AI基础平台接口调用的Web端SDK

Readme

ai-development-kit

npm version

AI开发工具合集,包括前端和后端的。

大模型聚合(model)

统一管理多个平台的AI模型,统一接口调用。

目前支持的平台和模型列表:

  • 火山方舟
    • 对话模型
      • [x] Doubao Seed 1.8
      • [x] Doubao Seed 2.0 Mini
      • [x] Doubao Seed 2.0 Lite
      • [x] Doubao Seed 2.0 Pro
    • 图片模型
      • [x] Doubao SeedEdit 3.0 i2i
      • [x] Doubao Seedream 3.0 t2i
      • [x] Doubao Seedream 4.0
      • [x] Doubao Seedream 4.5
      • [x] Doubao Seedream 5.0 Lite
    • 视频模型
      • [x] Doubao Seedance 1.0 Lite i2v
      • [x] Doubao Seedance 1.0 Lite t2v
      • [x] Doubao Seedance 1.0 Pro
      • [x] Doubao Seedance 1.0 Pro Fast
      • [x] Doubao Seedance 1.5 Pro
      • [x] Doubao Seedance 2.0
      • [x] Doubao Seedance 2.0 Fast
  • 云雾API
    • 图片模型
      • [x] Gemini 2.5 Flash Image
      • [x] Gemini 2.5 Flash Image Preview
      • [x] Gemini 3 Pro Image Preview
      • [x] Gemini 3.1 Flash Image Preview
    • 视频模型
      • [x] Sora 2

API接口列表(sdk)

| 接口名称 | URL地址 | Go SDK | Web SDK | 接口说明 | |---------|---------|--------|---------|----------| | 登录 | env/login | ✓ | ✓ | 人员登录接口 | | 个人信息 | mine/info | ✓ | ✓ | 获取登录后的个人信息 | | 模型列表 | mine/models | ✓ | ✓ | 获取模型列表 | | 基础模型列表 | mine/base_models | ✓ | ✓ | 获取基础模型列表 | | 创建聊天 | task/create_chat | ✓ | ✓ | 创建聊天对话 | | 创建图像 | task/create_image | ✓ | ✓ | 创建图像 | | 创建视频 | task/create_video | ✓ | ✓ | 创建视频 | | 任务列表 | task/list | ✓ | ✓ | 获取任务列表 | | 查询任务 | task/query | ✓ | ✓ | 查询任务详情 | | 修改密码 | mine/password | ✓ | ✓ | 修改密码 |

Go SDK示例(sdk/gosdk)

初始化客户端:

import "gitee.com/gxsshallot/ai-development-kit/sdk/gosdk"

client := gosdk.NewClient(gosdk.Config{
    BaseURL:   "https://api.example.com",
    AppId:     "your-app-id",
    AppSecret: "your-app-secret",
})

登录示例:

rsp, err := client.Login(gosdk.LoginRequest{
    Channel:    1,
    Username:   "username",
    Password:   "password",
    ExpireTime: time.Now().Add(24 * time.Hour).Unix(),
})
if err != nil {
    panic(err)
}
client.SetAuthInfo(sdk.AuthInfo{
    AppId:     rsp.AppId,
    AccountId: rsp.AccountId,
    UserId:    rsp.UserId,
    Token:     rsp.Token,
})

Web SDK示例(sdk/web)

初始化客户端:

import { Client } from '@xzsmtech/foundation';

const client = new Client({
  base_url: 'https://api.example.com',
  app_id: 'your-app-id',
  app_secret: 'your-app-secret',
});

登录示例:

import { LoginUrl, LoginRequest, LoginResponse } from '@xzsmtech/foundation';

const req: LoginRequest = {
  channel: 1,
  username: 'username',
  password: 'password',
  expire_time: Math.floor(Date.now() / 1000) + 86400,
};
const rsp = await client.post<LoginResponse>(LoginUrl, req);
client.setAuthInfo({
  app_id: rsp.app_id,
  account_id: rsp.account_id,
  user_id: rsp.user_id,
  token: rsp.token,
});