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

@rcrsr/rill-create-agent

v0.8.6

Published

Scaffolding tool for rill extension projects

Readme

rill-create-agent

Scaffolding tool for rill extension projects.

Experimental. Breaking changes will occur before stabilization.

Install

npx rill-create-agent my-agent --extensions anthropic

No global installation required. npx executes the latest version from npm.

Usage

All inputs are provided via CLI flags. The --extensions or --preset flag is required.

npx rill-create-agent my-agent --extensions anthropic,qdrant
npx rill-create-agent my-agent --preset rag

All Options

| Flag | Description | Example | |------|-------------|---------| | --extensions | Comma-separated extension list | --extensions anthropic,qdrant | | --preset | Use predefined extension bundle | --preset rag | | --description | Project description | --description "My agent" | | --package-manager | Package manager (npm, pnpm, yarn) | --package-manager pnpm | | --no-install | Skip dependency installation | --no-install | | --typescript | Generate TypeScript project | --typescript |

Required: Either --extensions or --preset must be provided. They cannot be combined.

Extensions

The tool supports 7 bundled rill extensions:

| Extension | NPM Package | Purpose | |-----------|-------------|---------| | anthropic | @rcrsr/rill-ext-anthropic | Anthropic Claude LLM API | | openai | @rcrsr/rill-ext-openai | OpenAI API | | gemini | @rcrsr/rill-ext-gemini | Google Gemini API | | claude-code | @rcrsr/rill-ext-claude-code | Claude Code integration | | qdrant | @rcrsr/rill-ext-qdrant | Qdrant vector database | | pinecone | @rcrsr/rill-ext-pinecone | Pinecone vector database | | chroma | @rcrsr/rill-ext-chroma | ChromaDB vector database |

All LLM extensions share identical function signatures. Swap providers by changing one line of host code.

Vector database extensions follow the same pattern — qdrant::search, pinecone::search, chroma::search work identically.

Presets

Presets bundle extensions with starter patterns for common use cases:

| Preset | Extensions | Starter Pattern | Use Case | |--------|-----------|-----------------|----------| | rag | anthropic, qdrant | search-focused | Retrieval-augmented generation workflows | | chatbot | anthropic | conversation-loop | Conversational agent loops |

Usage:

npx rill-create-agent my-rag-agent --preset rag

This generates a project with Anthropic + Qdrant extensions and a search-focused starter script.

Generated Structure

The tool creates this file structure:

my-agent/
  agent.rill          # Starter rill script with extension examples
  host.ts             # TypeScript host integration
  run.ts              # Execution entry point
  package.json        # Dependencies and scripts
  tsconfig.json       # TypeScript configuration
  .env.example        # Environment variable template
  CLAUDE.md           # Agent instructions for Claude Code

Files:

  • agent.rill — Starter script demonstrating extension usage patterns
  • host.ts — Initializes extensions and creates runtime context
  • run.ts — Executes agent.rill with context from host.ts
  • package.json — Includes selected extensions and @rcrsr/rill
  • .env.example — Lists required API keys for selected extensions
  • CLAUDE.md — Instructions for Claude Code to understand project structure

Generated scripts:

npm run start          # Execute agent.rill
npm run build          # Compile TypeScript to dist/
npm run typecheck      # Validate types

Examples

With Preset

npx rill-create-agent my-rag-bot --preset rag --package-manager pnpm

Generates project with:

  • Extensions: anthropic, qdrant
  • Starter pattern: search-focused
  • Package manager: pnpm

With Custom Extensions

npx rill-create-agent my-agent \
  --extensions anthropic,openai,pinecone \
  --description "Multi-provider agent" \
  --typescript \
  --no-install

Generates TypeScript project with 3 extensions, skips npm install.

All LLM Providers + Vector DB

npx rill-create-agent my-agent --extensions anthropic,openai,gemini,qdrant

Includes all 3 LLM providers and Qdrant. Starter script demonstrates provider-agnostic patterns.

Next Steps

After scaffolding:

  1. Configure environment variables:

    cd my-agent
    cp .env.example .env
    # Edit .env with your API keys
  2. Install dependencies (if skipped):

    npm install
  3. Run the starter script:

    npm run start
  4. Edit agent.rill to build your workflow. See rill documentation for language reference.

Documentation

| Document | Description | |----------|-------------| | Language Reference | rill language specification | | Host Integration | Embedding rill in applications | | Bundled Extensions | Extension API reference | | Examples | Workflow patterns |

Error Handling

| Error | Cause | Solution | |-------|-------|----------| | Missing project name | No positional argument | Provide project name: npx rill-create-agent my-agent --extensions anthropic | | Project name must be valid npm package name | Invalid npm package name | Use lowercase alphanumeric, hyphens, underscores | | Unknown extension: X | Invalid extension name | Use one of: anthropic, openai, gemini, claude-code, qdrant, pinecone, chroma | | Unknown preset: X | Invalid preset name | Use rag or chatbot | | Cannot combine --preset and --extensions | Both flags provided | Use --preset OR --extensions, not both | | Provide --extensions or --preset | Missing required flag | Add --extensions or --preset flag | | Invalid --package-manager value | Unknown package manager | Use npm, pnpm, or yarn |

License

MIT