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

@2anki/cli

v0.1.6

Published

Turn your notes into Anki decks with the 2anki API

Downloads

642

Readme

2anki CLI

Turn your notes into Anki decks, using a 2anki API key.

Under development · invite-only. Access is limited to lifetime accounts and people who have been granted developer access. Request access from the Developers page.

Install (npm)

npx @2anki/cli login          # run without installing
npm i -g @2anki/cli && 2anki login   # or install globally

Node users get zero macOS Gatekeeper prompts this way.

Install (binary)

Download the binary for your platform from the latest release.

macOS — the binary is not yet notarized, so Gatekeeper blocks it on first run. Clear the quarantine flag once:

xattr -d com.apple.quarantine ./2anki-macos-arm64
chmod +x ./2anki-macos-arm64
./2anki-macos-arm64 help

Linux:

chmod +x ./2anki-linux-x64
./2anki-linux-x64 help

Rename to 2anki and put it on your PATH to run it as 2anki <command>.

Install (dev)

From the repo root:

pnpm cli -- <command>        # runs src/cli/index.ts via tsx

Log in

2anki login

Opens the Developers page, where you create an API key (shown once). Paste it back into the prompt. The key is stored in ~/.2anki/config.json with owner-only permissions. To skip the browser:

2anki login --key sk_live_…

Access to the Developers page is limited to lifetime accounts. Free and subscriber accounts can request access from that page.

Commands

| Command | What it does | | ---------------------- | ------------------------------------------------------ | | 2anki login | Connect an API key | | 2anki whoami | Show the account and keys this machine is connected to | | 2anki convert <file> | Convert a file into an Anki deck | | 2anki logout | Remove the stored key from this machine | | 2anki help | Show help |

Configuration

| Env var | Purpose | | -------------------- | ----------------------------------------------------------------------- | | TWOANKI_API_BASE | Point the CLI at a different API host (defaults to https://2anki.net) | | TWOANKI_CONFIG_DIR | Override where the key is stored (defaults to ~/.2anki) | | NO_COLOR | Disable colored output |

Notes

  • The CLI authenticates with the same quota and plan as your account — an API key acts as you.
  • convert uploads the file and waits for conversion. Headless .apkg download lands with the deck-download route once it accepts key auth; today the CLI points you at the web downloads page.