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

niko-ai

v0.1.4

Published

A Ralph-style Codex loop CLI that iterates `codex exec` with checkpoints, changelogs, and configurable limits.

Downloads

6

Readme

niko

A Ralph-style Codex loop CLI that iterates codex exec with checkpoints, changelogs, and configurable limits.

Overview

niko runs your AI coding agent (Codex or Claude) in a self-referential loop, similar to the Ralph Wiggum technique. Each iteration:

  1. Runs verification commands (tests, typecheck, lint)
  2. Runs the agent with a stable prompt
  3. Creates a checkpoint with artifacts
  4. Runs a review step to catch bugs and shortcuts
  5. Stops when done or limits are reached

Memory persists through repo files, git history, and the .niko/ directory.

Prerequisites

  • Bun runtime
  • At least one of:
  • Git (optional, for auto-commit and diff snapshots)

Installation

From npm (recommended)

# Run without installing
npx niko-ai run
# or with bun
bunx niko-ai run

# Global install
npm install -g niko-ai
# or with bun
bun add -g niko-ai

# Then run from anywhere
niko run

Note: The package is published as niko-ai but installs the niko command.

From source

git clone <repo-url>
cd niko
bun install
bun link

Now you can run niko from any directory.

Quick Start

cd /path/to/your/project

# Just run - the wizard handles everything!
niko run

The interactive wizard will:

  1. Create a session (or select an existing one)
  2. Offer to generate a PRD from your project description
  3. Configure model, iterations, verify commands, etc.
  4. Start the run

Or use the CLI directly:

niko init                                    # Initialize .niko/
niko prd --desc "Build a REST API for todos" # Generate PRD
niko run --max-iterations 25                 # Run the loop

Commands

| Command | Description | |---------|-------------| | niko run | Run the iteration loop | | niko resume | Continue an interrupted run | | niko prd | Generate PRD from description | | niko status | Show story status | | niko init | Create .niko/ directory | | niko clean | Remove old checkpoints/sessions |

Common Flags

niko run --session feature        # Named session
niko run --max-iterations 50      # Override limits
niko run --quiet                  # Suppress output
niko run --no-review              # Skip review step
niko resume --more-iterations 10  # Continue with more iterations

See the CLI Reference for all options.

Sessions

niko supports named sessions for running multiple independent projects:

niko prd --desc "Build auth" --session auth
niko run --session auth
niko status --session auth

Each session has its own PRD, progress log, and checkpoints.

Configuration

Configure via .niko/config.json:

{
  "roles": {
    "execution": { "provider": "codex", "model": "gpt-5.2-codex" },
    "review": { "provider": "codex", "model": "gpt-5.2-codex" }
  },
  "maxIterations": 20,
  "verify": { "commands": ["bun test", "bun run typecheck"] }
}

Mix providers: use Codex for execution and Claude for review, or vice versa.

Documentation

📚 Read the full documentation

Development

bun test           # Run tests
bun run typecheck  # Type check
bun run lint       # Lint
bun run fmt        # Format

E2E Tests

Opt-in end-to-end tests with real LLM providers:

NIKO_E2E=1 bun test tests/e2e/codex-smoke.test.ts
NIKO_E2E_CLAUDE=1 bun test tests/e2e/claude-smoke.test.ts

License

MIT