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

@otakit/cli

v1.1.2

Published

CLI for uploading and releasing OtaKit OTA bundles

Readme

@otakit/cli

Upload and release CLI for OtaKit.

What it does

  • reads project config from capacitor.config.*
  • authenticates with login or env tokens
  • zips the build output
  • computes the bundle SHA-256 checksum
  • creates an upload session
  • uploads the zip directly to object storage
  • finalizes the bundle
  • optionally releases it to the unnamed channel or a named channel

The normal hosted flow is dashboard-first. Create the app in the dashboard, paste its appId into plugins.OtaKit.appId, then ship:

otakit login
npm run build
otakit upload --release

If you want to create the app from the CLI instead:

otakit register --slug com.example.app

There is no otakit init.

Config model

The CLI reads these files when present:

  • capacitor.config.ts
  • capacitor.config.js
  • capacitor.config.mjs
  • capacitor.config.cjs
  • capacitor.config.json

Important values:

webDir: "out",
plugins: {
  OtaKit: {
    appId: "app_xxxxxxxx",
    // Optional:
    // channel: "staging",
    // serverUrl: "https://your-server.com/api/v1"
  }
}

Resolution order:

  1. CLI flags
  2. environment variables
  3. capacitor.config.*
  4. built-in defaults

Main rules:

  1. appId: --app-id -> OTAKIT_APP_ID -> plugins.OtaKit.appId
  2. serverUrl: --server -> OTAKIT_SERVER_URL -> plugins.OtaKit.serverUrl -> https://otakit.app/api/v1
  3. outputDir: upload path arg -> OTAKIT_BUILD_DIR / OTAKIT_OUTPUT_DIR -> webDir
  4. release channel: --release -> unnamed channel, --release <channel> -> named channel

Auth precedence:

  1. OTAKIT_TOKEN
  2. stored token from otakit login

Version precedence:

  1. --version
  2. OTAKIT_VERSION
  3. auto-generated <base>+otk.<commit>.<run>

Release model

  • otakit upload upload only
  • otakit upload --release upload and release to the unnamed channel
  • otakit upload --release staging upload and release to a named channel
  • otakit release <bundleId> --channel staging promote an existing bundle later

Releases are append-only. The newest release for (appId, channel) is what devices see on manifest checks.

Common commands

  • otakit login
  • otakit logout
  • otakit whoami
  • otakit register --slug <slug>
  • otakit upload [path] [--release [channel]]
  • otakit release [bundleId] [--channel <channel>]
  • otakit releases [--channel <channel> | --base]
  • otakit list
  • otakit delete <bundleId> --force
  • otakit config validate
  • otakit config resolve --json
  • otakit generate-signing-key

CI

export OTAKIT_TOKEN=otakit_sk_...
export OTAKIT_APP_ID=app_xxxxxxxx
export OTAKIT_BUILD_DIR=out

otakit upload --release

Set OTAKIT_SERVER_URL only for custom or self-hosted servers.

Upload flow

  1. resolve the build output directory
  2. require index.html
  3. zip the output
  4. compute SHA-256 and size
  5. call bundles/initiate
  6. upload directly to object storage
  7. call bundles/finalize
  8. optionally call releases

The CLI does not own app creation or channel strategy. It packages the build, uploads it, and optionally promotes it.

Build locally

pnpm --filter @otakit/cli build
pnpm --filter @otakit/cli typecheck
pnpm --filter @otakit/cli dev