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

@appifex/provision

v1.0.0

Published

Apple ASC / Play Console provisioning client scaffolding

Downloads

117

Readme

@appifex/provision

App store provisioning and submission:


iOS (TestFlight)

Prerequisites

1. Apple Developer Account

You need an Apple Developer Program membership ($99/year).

2. Register a Bundle ID

Go to developer.apple.com/account/resources/identifiers:

  • Click +App IDsApp
  • Enter a description and a Bundle ID (e.g. com.yourcompany.myapp)
  • Register it

3. Create an App in App Store Connect

Go to appstoreconnect.apple.comApps+New App:

  • Select iOS platform
  • Enter app name
  • Select the Bundle ID you just registered
  • After creation, note the numeric App ID from the URL: appstoreconnect.apple.com/apps/123456789/...

4. Create a TestFlight Beta Group

In App Store Connect → your app → TestFlight tab:

  • Click + next to "Internal Testing"
  • Name the group (e.g. Internal Testers)
  • Add yourself as a tester

5. Create an App Store Connect API Key

Go to App Store Connect → Users and Access → Integrations → App Store Connect API:

  • Click + to generate a new key
  • Give it App Manager or Admin role
  • Download the .p8 file (you can only download it once!)
  • Note the Key ID and Issuer ID shown on the page
  • Save the .p8 file somewhere safe (e.g. ~/.appstoreconnect/AuthKey_XXXX.p8)
  • Set file permissions: chmod 600 /path/to/AuthKey.p8

6. Install Xcode Command Line Tools

xcode-select --install  # provides xcrun altool
xcrun altool --version  # verify availability

The TestFlight upload pipeline uses xcrun altool --upload-package (ships with Xcode) plus the App Store Connect REST API — no community asc CLI required.

Setup

Run dtc setup and answer Yes to "Configure Apple TestFlight?":

◆  Configure Apple TestFlight?
│  Yes
│
◆  Apple Team ID
│  A1B2C3D4E5
│
◆  Bundle ID
│  com.example.petapp
│
◆  App Store Connect App ID (numeric)
│  123456789
│
◆  App Store Connect Key ID
│  ABC123DEF4
│
◆  App Store Connect Issuer ID
│  12345678-abcd-efgh-ijkl-123456789012
│
◆  Path to .p8 key file
│  ~/.appstoreconnect/AuthKey_ABC123DEF4.p8

This saves credentials to ~/.dtc/config.json under the apple key.

CLI Usage

# Archive a project and submit to TestFlight (full flow)
dtc provision submit --project ./my-app

# Archive with a specific scheme
dtc provision submit --project ./my-app --scheme PetApp

# Submit a pre-built .ipa directly (skip archive)
dtc provision submit --ipa ./build/PetApp.ipa

Pipeline Integration

When Apple TestFlight is configured and all tests pass, the pipeline automatically archives and submits to TestFlight as the final step (SwiftUI projects only):

dtc run --prompt "Pet adoption app" --platform swiftui --out ./pet-app
# Pipeline: design → spec → tests → codegen → build → validate → fix → report → deliver → provision

MCP Tool

The dtc_provision_submit MCP tool is available in Claude Code:

dtc_provision_submit({ projectDir: "/path/to/app" })                    # archive + submit
dtc_provision_submit({ projectDir: "/path/to/app", scheme: "PetApp" })  # with scheme
dtc_provision_submit({ ipaPath: "/path/to/App.ipa" })                   # pre-built IPA

Programmatic Usage

import { runTestFlightUploadPhase } from '@appifex/provision'
import { runXcodeArchivePhase } from '@appifex/build'
import { createRunner } from '@appifex/runner'
import { ProgressEmitter, loadConfig } from '@appifex/core'

const config = await loadConfig('~/.dtc')
const runner = createRunner(config.runner, { cwd: './my-app' })
const emitter = new ProgressEmitter()

// Archive (reads package.json version, computes next build number via ASC REST)
const archive = await runXcodeArchivePhase({
  runner,
  config,
  projectDir: './my-app',
  scheme: 'PetApp',
})
if (archive.skipped) {
  console.log('Archive skipped:', archive.reason)
  process.exit(0)
}

// Upload + assign to internal TestFlight group
const result = await runTestFlightUploadPhase({
  runner,
  config,
  emitter,
  ipaPath: archive.ipaPath,
  buildNumber: archive.buildNumber,
  marketingVersion: archive.marketingVersion,
})
console.log(result.status, (result as any).buildId)

Android (Play Console)

Prerequisites

1. Google Play Developer Account

Register at Google Play Console ($25 one-time fee). Create your app listing.

2. Create a Service Account

  1. Go to Google Cloud Console → IAM & Admin → Service Accounts
  2. Create a service account (e.g. play-console-uploader)
  3. Click ActionsManage KeysAdd KeyCreate New KeyJSON
  4. Download the JSON key file and save it (e.g. ~/.config/gcloud/play-console-key.json)
  5. In Google Play Console → SetupAPI Access, link your Google Cloud project
  6. Go to Users and PermissionsInvite New User, paste the service account email
  7. Grant Release Manager permission for your app

3. Create a Release Keystore

keytool -genkey -v -keystore release.keystore -alias release \
  -keyalg RSA -keysize 2048 -validity 10000

4. First Upload (Required)

The Play Console API requires at least one manual upload before API uploads work. Upload your first AAB manually via Play Console → Internal TestingCreate new release.

Setup

Run dtc setup and answer Yes to "Configure Google Play Console?":

◆  Configure Google Play Console?
│  Yes
│
◆  Service account JSON key path
│  ~/.config/gcloud/play-console-key.json
│
◆  Package name (application ID)
│  com.example.petapp
│
◆  Release keystore path (.jks)
│  ~/.android/release.keystore
│
◆  Keystore password
│  [hidden]
│
◆  Key alias
│  release
│
◆  Key password
│  [hidden]
│
◆  Play Console track
│  Internal Testing

This saves credentials to ~/.dtc/config.json under the android key.

CLI Usage

# Build AAB and submit to Play Console (auto-detects Android from project)
dtc provision submit --project ./my-app

# Submit a pre-built .aab directly (skip build)
dtc provision submit --aab ./app/build/outputs/bundle/release/app-release.aab

The CLI auto-detects the platform from the project directory (build.gradle.kts → Android, otherwise iOS).

Pipeline Integration

When Google Play Console is configured and all tests pass, the pipeline automatically builds a release AAB and submits to the configured Play Console track:

dtc run --prompt "Pet adoption app" --platform kotlin-compose --out ./pet-app
# Pipeline: design → spec → tests → codegen → build → validate → fix → report → deliver → provision

MCP Tool

The dtc_provision_submit MCP tool auto-detects the platform:

dtc_provision_submit({ projectDir: "/path/to/app" })                        # auto-detect + submit
dtc_provision_submit({ projectDir: "/path/to/app", platform: "android" })   # explicit Android
dtc_provision_submit({ aabPath: "/path/to/app.aab" })                       # pre-built AAB

Programmatic Usage

import { PlayConsoleClient } from '@appifex/provision'
import { bundleKotlin } from '@appifex/build'
import { createRunner } from '@appifex/runner'

const runner = createRunner({ type: 'local' })

// Build release AAB
const bundle = await bundleKotlin(runner, {
  projectDir: './my-app',
  keystorePath: '~/.android/release.keystore',
  keystorePassword: 'mypass',
  keyAlias: 'release',
  keyPassword: 'keypass',
})

// Submit to Play Console
const client = new PlayConsoleClient({
  serviceAccountKeyPath: '~/.config/gcloud/play-console-key.json',
})
await client.submitToTrack({
  packageName: 'com.example.petapp',
  aabPath: bundle.aabPath!,
  track: 'internal',
})