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

@toothfairyai/tfcode

v1.2.5

Published

**ToothFairyAI's AI coding agent** — a command-line interface that brings AI-powered coding assistance to your terminal with deep ToothFairyAI workspace integration.

Downloads

3,354

Readme

TF Code

ToothFairyAI's AI coding agent — a command-line interface that brings AI-powered coding assistance to your terminal with deep ToothFairyAI workspace integration.

Agents

TF Code ships with three built-in agents:

| Agent | Purpose | Key Ability | | --------------- | ----------------------------- | ----------------------------------------------------------- | | Build | Execute and implement | Full read/write access, the default agent | | Plan | Explore and plan | Read-only analysis, writes plans to .tfcode/plans/ | | TF Engineer | Manage ToothFairyAI workspace | Exclusive access to live MCP tools for workspace operations |

Switch between them at any time with Tab or the --agent flag.

Prerequisites

  • Node.js 18+
  • A modern terminal emulator (WezTerm, Alacritty, Kitty, Ghostty recommended)
  • ToothFairyAI API credentials (from Admin → TFCode & API Integration)

Install

npm install -g @toothfairyai/tfcode

Verify:

tfcode --version

Configure

Run the interactive setup to create a profile:

tfcode setup

This prompts for profile name, workspace ID, API key, and region. Alternatively, set environment variables:

export TF_WORKSPACE_ID="your-workspace-id"
export TF_API_KEY="your-api-key"
export TF_REGION="au"

Validate:

tfcode validate

Usage

Interactive session

tfcode

Single command

tfcode run "Explain this codebase"

Plan first, then build

Use Tab to switch to Plan mode, describe what you want, then switch back to Build to implement.

  1. Plan — describe the feature, review the plan
  2. Build — switch back and ask it to implement

Workspace management

tfcode run --agent "TF Engineer" "Create a retriever agent called SupportBot"
tfcode run --agent "TF Engineer" "Search documents about refund policy"

Undo changes

/undo

Profiles

Profiles store multiple sets of ToothFairyAI credentials so you can switch between workspaces instantly.

Create

tfcode setup

Non-interactive:

tfcode setup --profile dev --workspace-id dev-ws-456 --api-key dev-key-xxx --region dev --name dev

Switch

tfcode profile prod

Use in commands

tfcode -p prod run "Deploy to production"
TF_PROFILE=prod tfcode run "Force prod workspace"

Regions

| Region | Base URL | Streaming URL | | ------ | ------------------------ | ------------------------- | | dev | ai.toothfairylab.link | ais.toothfairylab.link | | au | ai.toothfairyai.com | ais.toothfairyai.com | | eu | ai.eu.toothfairyai.com | ais.eu.toothfairyai.com | | us | ai.us.toothfairyai.com | ais.us.toothfairyai.com |

Environment Variables

| Variable | Description | | ------------------------- | ----------------------------------------------- | | TF_WORKSPACE_ID | ToothFairyAI workspace ID | | TF_API_KEY | ToothFairyAI API key | | TF_REGION | ToothFairyAI region: dev, au, eu, us | | TF_PROFILE | Profile name to use (overrides default profile) | | TFCODE_SERVER_PASSWORD | HTTP basic auth password for server mode | | TFCODE_SERVER_USERNAME | HTTP basic auth username (default: tfcode) | | OPENCODE_CONFIG | Path to custom config file | | OPENCODE_CONFIG_CONTENT | Inline config content (highest priority) |

CLI Commands

Top-level

| Command | Description | | --------------------- | ----------------------------------- | | tfcode | Start interactive session | | tfcode run <prompt> | Execute a single task and exit | | tfcode serve | Start headless HTTP server | | tfcode web | Start server and open web interface | | tfcode attach <url> | Attach TUI to a running server |

Setup & credentials

| Command | Description | | -------------------------- | ------------------------------------------------------ | | tfcode setup | Interactive credential setup (creates a profile) | | tfcode validate | Validate credentials (--profile <name> for specific) | | tfcode profile | Show current profile and list all | | tfcode profile <name> | Switch to a different profile | | tfcode sync | Sync workspace tools metadata | | tfcode providers list | List available providers | | tfcode models [provider] | List available models (optional provider filter) | | tfcode models --verbose | List models with metadata | | tfcode models --refresh | Refresh the models cache |

MCP

| Command | Description | | ------------------- | ---------------------------------- | | tfcode mcp list | List MCP servers and tools | | tfcode mcp add | Add a local MCP server | | tfcode mcp auth | Authenticate with OAuth MCP server | | tfcode mcp logout | Logout from MCP server |

Chat commands (interactive)

| Command | Description | | ------------------------- | --------------------------------------- | | /compact [instructions] | Compact context with preservation hints | | /help | Show available commands | | /undo | Undo last changes |

Documentation

Full documentation at https://docs.toothfairyai.com/tfcode/intro

License

MIT