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

@talocode/codra-code

v0.3.1

Published

A local-first, open-source coding agent for real software work.

Downloads

694

Readme

Codra Code v0.2.6

What's New

Codra Code Terminal Composer

When launched interactively, codra-code now shows a clean centered terminal composer:

                          codra-code

        Local-first coding agent by Talocode

┌──────────────────────────────────────────────────────────────┐
│ Ask Codra to build, fix, review, test, or understand code... │
└──────────────────────────────────────────────────────────────┘

Build · <provider>/<model> · <mode> · confirm-edits

/ commands    tab autocomplete    @ attach file soon    ctrl+c exit

/workspace/projects/codra:main
v0.2.4

Responsive layout:

  • Wide terminal: shows centered title, subtitle, boxed prompt, status, shortcuts, footer
  • Narrow terminal (< 60 cols): minimal text-only layout that does not overflow

Elements:

  • Title: codra-code in brand color (centered, bold on wide screens)
  • Subtitle: Local-first coding agent by Talocode
  • Prompt box: Box with placeholder text "Ask Codra to build, fix, review, test, or understand this repo..."
  • Status row: Build · provider/model · mode · edit-policy
  • Shortcuts: / commands, tab autocomplete, @ attach file soon, ctrl+c exit
  • Footer: workspace path with git branch, version number

Auth + Hosted Gating

  • Tera/Talocode account required for hosted providers (openai, gemini, anthropic, xai)
  • Local providers (mock, ollama) work without auth
  • codra login (or codra-code login)
  • codra auth status
  • codra logout
  • Safe storage only, never prints tokens
  • Supports TERA_AUTH_BASE_URL / CODRA_AUTH_BASE_URL
  • Clear "Sign in with your Tera/Talocode account to use hosted Codra Code."

Interactive Slash Command Interface

  • In REPL, type / to open command picker menu
  • Number or type /cmd to select
  • Groups: Auth & System, Coding
  • Includes /help /model /provider /auth /login /status /project /plan /build /review /test /commit /clear /exit etc.

Model & Provider Picker

  • /model opens interactive picker
  • Select provider then model from registry
  • Persists to ~/.codra/config.json via saveConfig
  • Shows current, local vs hosted, auth notes

Login Error Sanitization

  • If Tera auth endpoint returns HTML (e.g. 404 page), Codra Code now sanitizes the output
  • Shows clean message: "Login failed: Tera auth endpoint was not found."
  • Never prints raw HTML, tokens, or secrets

/status and /auth enhanced

  • Git branch, auth details, config paths, slash cmd count, hosted avail
  • Clear guidance

Placeholder Commands

  • /build /review /test /commit show "not wired yet" helpful msg

Tests

  • Added commands.test.ts for parser, auth, gating, persist, providers
  • Composer UI state, status line, footer line
  • Auth HTML sanitization
  • Slash command routing

Docs

  • Updated README, added docs/AUTH.md, docs/CODRA_CODE.md

See full list in /help

Tera Authentication Foundation

Codra Code uses Tera/Talocode account as the identity layer for hosted usage. This prepares for future billing/credits tied to account. Local-first always available.

Commands:

  • codra login
  • codra logout
  • codra auth status

Token file: ~/.codra/auth.json (600 perms, never log contents)

Slash Commands

Type / in interactive mode for picker. Full list via /help

Model Picker

/model shows providers and models, persists selection.

Hosted vs Local

Mode: local - mock/ollama, no auth needed Mode: hosted - requires auth for Tera hosted models

Installation

npm install -g @talocode/codra-code

Usage

codra login codra code

then type /

/model

/status

Development

cd apps/code pnpm install pnpm build pnpm test

Limitations (v0.2.6)

  • Some / commands are placeholders (build/review/test/commit)
  • Full Tera backend device flow may use dev bypass for testing
  • No payment/billing yet
  • Rust CLI wrapper for "codra code" subcommand separate
  • @ attach file not yet implemented (shows "soon" placeholder)
  • Login flow requires Tera device auth backend; if not deployed, shows clean error message

Telemetry

codra-code sends an anonymous daily ping (once per day per instance) with:

  • Anonymous instance ID (random UUID stored at ~/.codra/instance-id)
  • Package version, Node.js version, platform, architecture
  • No PII, no code, no file paths, no IP stored

The ping is fire-and-forget — never blocks, never alerts on failure. To disable, unset the CODRA_TELEMETRY_DISABLED environment variable (future).

Support Talocode - open source tools for builders.