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

@aiagentwiki/cli

v0.7.0

Published

AgentWiki CLI — manage notes, docs, media, publish sites, and query your knowledge base from the terminal.

Downloads

280

Readme

@aiagentwiki/cli

Command-line interface for AgentWiki — manage notes, documents, media, publish static sites, and query your knowledge base from the terminal.

Install

# Global install
npm i -g @aiagentwiki/cli

# Or run without installing
npx @aiagentwiki/cli --help

Requires Node.js >=20.

Usage

agentwiki --help
agentwiki login --api-key aw_xxxxx
agentwiki whoami

Authentication

Credentials are resolved with this precedence (highest → lowest):

  1. Environment variablesAGENTWIKI_API_KEY, AGENTWIKI_API_URL
  2. Credentials file~/.agentwiki/credentials.json (written by agentwiki login)
  3. DefaultsapiUrl = https://api.agentwiki.cc

Environment variables

| Variable | Purpose | |---|---| | AGENTWIKI_API_KEY | API key — bypasses login, ideal for CI/Docker/automation | | AGENTWIKI_API_URL | Override API base URL (self-hosted, staging) | | AGENTWIKI_APP_URL | Override app base URL for human-openable share/publish links |

Example (GitHub Actions):

- name: Publish site via AgentWiki CLI
  env:
    AGENTWIKI_API_KEY: ${{ secrets.AGENTWIKI_API_KEY }}
  run: npx @aiagentwiki/cli sites deploy ./build --name my-site

Use agentwiki whoami to verify which source (env/file/default) is in effect.

Documents

agentwiki doc list
agentwiki doc get <id> --markdown
agentwiki doc create --title "Runbook" --description "Deployment runbook for AgentWiki production" --content "# Runbook"
agentwiki doc create --title "Runbook" --description "Deployment runbook for AgentWiki production" --file ./runbook.md
agentwiki doc upload ./runbook.md --description "Deployment runbook for AgentWiki production" --json
agentwiki doc share <id> --expires 365
agentwiki doc share <id> --json
agentwiki doc publish <id> --description "Public deployment runbook for operators"

doc upload <file> accepts .md, .markdown, and .txt. It infers the title from --title, frontmatter title:, first # Heading, then filename. Create/upload/publish commands require a concise, specific --description; generic placeholders like file, upload, or document are rejected.

See the main repository README for the full command reference.

Secrets

Secrets are encrypted at rest and masked by default.

agentwiki secrets list --env dev
agentwiki secrets set API_TOKEN --env dev --value "$API_TOKEN" --reason "bootstrap"
agentwiki secrets update <id> --expected-version 1 --value "$API_TOKEN" --reason "rotate"
agentwiki secrets get <id>
agentwiki secrets get <id> --reveal --reason "debug deploy"
agentwiki secrets export --env dev
agentwiki secrets export --env dev --reveal --reason "local smoke"
agentwiki secrets run --env dev --keys API_TOKEN --reason "local test" -- npm test

Raw reveal, raw export, and env injection require matching secret:* or concrete secret scopes plus an explicit grant.

License

MIT