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

@toknbase/cli

v1.1.0

Published

Official CLI for Toknbase -- zero-knowledge secrets management for developers and CI/CD pipelines

Downloads

60

Readme

@toknbase/cli

The official CLI for Toknbase -- zero-knowledge secrets management for developers and CI/CD pipelines.

Read, create, and export secrets from any terminal or pipeline script using a scoped agent token.

Quick Start

1. Install

npm install -g @toknbase/cli

Or run without installing:

npx @toknbase/[email protected] list

2. Set your agent token

Create an agent token in your Toknbase dashboard under AI Agents, then export it:

export TOKNBASE_AGENT_TOKEN=agt_your_token_here

For persistent local use, add this to your shell profile (~/.zshrc or ~/.bashrc).

3. Use it

toknbase list
toknbase get STRIPE_SECRET_KEY
toknbase export > .env
toknbase set MY_API_KEY new_value

Commands

| Command | Description | Scope Required | |---|---|---| | toknbase get NAME | Print the value of a secret | read_only | | toknbase list | List all secret names and environments (no values) | read_only | | toknbase set NAME VALUE | Create or update a secret | read_write | | toknbase export | Print all secrets in .env format | read_only |


CI/CD Usage

GitHub Actions

- name: Load secrets from Toknbase
  env:
    TOKNBASE_AGENT_TOKEN: ${{ secrets.TOKNBASE_AGENT_TOKEN }}
  run: |
    npx @toknbase/[email protected] export > .env
    source .env

Or inject a single secret as a step output:

- name: Get Stripe key
  id: secrets
  env:
    TOKNBASE_AGENT_TOKEN: ${{ secrets.TOKNBASE_AGENT_TOKEN }}
  run: echo "STRIPE_KEY=$(npx @toknbase/[email protected] get STRIPE_SECRET_KEY)" >> $GITHUB_OUTPUT

GitLab CI

deploy:
  script:
    - npx @toknbase/[email protected] export > .env
    - source .env
  variables:
    TOKNBASE_AGENT_TOKEN: $TOKNBASE_AGENT_TOKEN

CircleCI

- run:
    name: Load secrets
    command: |
      npx @toknbase/[email protected] export > .env
      source .env

Shell Substitution

toknbase get prints only the value with a newline, making it safe for shell substitution:

export STRIPE_KEY=$(toknbase get STRIPE_SECRET_KEY)
curl -H "Authorization: Bearer $STRIPE_KEY" https://api.stripe.com/v1/charges

Environment Variables

| Variable | Required | Description | |---|---|---| | TOKNBASE_AGENT_TOKEN | Yes | Your agt_ agent token from the dashboard | | TOKNBASE_CANISTER_ID | No | Override canister ID (default: xi7mc-uaaaa-aaaan-q5raa-cai) | | TOKNBASE_IC_HOST | No | Override IC host (default: https://icp-api.io) |


Requirements

  • Node.js 18+
  • A Toknbase account with an active agent token (sign up free)

Docs

Full documentation: toknbase.net/docs/cli