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

appstore-connect-api

v1.0.6

Published

appstore connect api wrapper for typescript

Readme

App Store Connect API

基于 web版 App Store Connect封装的 API工具:

  • 🤖目前仅支持完整的 Testflight自动化 API
  • 💪久经考验,生产环境使用长达 1年

npm version

快速入门

import { Client, Testflight, Build } from 'appstore-connect-api';

const client = new Client();

// in async method

// 登录
await client.login(account, password);
// 获取 session
await client.session();
// 切换 AppStore Connect Team
await client.selectTeam(teamId);
// 获取当前 team下 APP列表
const apps = await client.listApps();

// 从 client和 appId获取 testflight实例
const testflight = Testflight.fromClient(client, appId);
// 获取所有已经上传的版本
const preReleaseVersions = await testflight.getPreReleaseVersions();
// 通过已上传的版本 id获取该版本下的构建版本
const preReleaseBuilds = await testflight.getPreReleaseBuilds(preReleaseVersionId);

// 可以获取当前 APP的 “Beta版 App 审核信息”,并且可以进行更新
const betaReviewDetails = await testflight.getBetaReviewDetails();
// 可以获取并更新当前 APP的测试 “许可协议”
const betaLicenceAgreements = await testflight.getBetaLicenceAgreements();
// 可以获取并更新当前 APP的测试信息,包含 “Beta版 APP描述、反馈电子邮件”等
const betaAppLocallizations = await testflight.getBetaAppLocalizations();

// 可以获取测试员群组,包括内部和外部的,通过 isInternalGroup形参标志
const externalBetaGroups = await testflight.getBetaGroups(false);
// 获取一个测试员群组下已经添加的 build
const builds = await testflight.getBetaGroupBuild(groupId);
// 把多个 build添加到测试员群组 (前提:该 build已经提交并通过 beta审核,内部测试员群组无此限制)
await testflight.addBuildsToBetaGroup(groupId, [ buildId_1, buildId_2 ]);
// 开启该外部测试员群组的 PublicLink,并设置上限为 1000 (前提:已经给该测试员群组添加了 build)
const publicLinkState = await testflight.switchBetaGroupPublicLinkState(groupId, true, 1000, true);
// 对外下发 publicLink即可
console.log(publicLinkState.attributes.publicLink);

// 从 testflight获取一个 build实例
const build = testflight.getBuild(buildId);
// 可以获取并更新这个 build的 测试详细信息,包括“测试内容”
const betaBuildLocalizations = await build.getBetaBuildLocalizations();
// 可以并更新获取提交 beta审核的详细信息,比如 是否开启自动通知测试员、内部测试状态、外部测试状态。
const buildBetaDetials = await build.getBuildBetaDetails();
// 提交 beta审核 (提交 beta审核前,需要更新完整的 “Beta版 App 审核信息”、“APP的测试信息”、“测试详细信息”)
await build.submitForBetaReview();