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

@seppotarvainen/raili

v0.1.4

Published

Deterministic CLI workflow orchestrator for AI-assisted development with pluggable agent and script execution.

Readme

░█████████             ░██ ░██ ░██
░██     ░██                ░██    
░██     ░██  ░██████   ░██ ░██ ░██
░█████████        ░██  ░██ ░██ ░██
░██   ░██    ░███████  ░██ ░██ ░██
░██    ░██  ░██   ░██  ░██ ░██ ░██
░██     ░██  ░█████░██ ░██ ░██ ░██ 

Keeping agents on the rails since 2026.

Raili

License: MIT Node.js 18+ Pipeline status npm version

Raili is a deterministic CLI workflow orchestrator for AI-assisted development with pluggable agent and script execution. Instead of trusting agents to autonomously decide what to do, Raili gives you full control over the workflow by letting you define exactly which steps to run, in which order, and with what inputs. This makes it ideal for development tasks where precision and predictability are important.

See full documentation.

Quick Take

  • Define workflows as code — YAML state machines with explicit transitions
  • Run agents inside workflows — Full control over prompts and model selection
  • Mix agents + scripts — Combine AI decisions with deterministic shell commands
  • Resumable execution — Pause for approval, continue from where you left off
  • No surprises — Fail-fast validation, explicit error handling, complete audit trail

GOOD FOR: You or your team have established your own best practices for using agents in development and want a simple way to codify and share those practices in a reusable workflow.

NOT GOOD FOR: Ad-hoc experimentation or exploration where you want the agent to have more freedom to decide what to do.

Philosophy

  • Humans do what humans do best: defining the overall workflow, deciding which steps to include and in which order, and providing high-level guidance to the agents.
  • Agents do what agents do best: generating content, making decisions based on information, and performing tasks that require understanding and creativity.
  • Scripts and commands do what they do best: executing deterministic actions in the environment, such as running tests, building code, or making commits to version control.

Installation

Works on macOS and Linux. Windows support is not yet tested.

Prerequisites

Install globally

npm install -g @seppotarvainen/raili

How it works

Setup

Run raili init. This creates a .raili directory along with basic scaffolding. .raili/main/workflow.yaml is your default workflow file.

Define agents

Create agents where copilot sees them. Either globally or by repo. Add them to .raili/agent-registry.json as follows:

{
  "coding": {
    "path": "~/my/project/.github/agents/raili-coding.agent.md",
    "model": "gpt-5-mini"
  }
}

RECOMMENDATION: Agents are run in yolo-mode. Don't give your agents access to shell, rather create scripts or commands in your workflow.

Define scripts

Scripts are executable files in your repo that perform a specific task. They can be written in any language and can be invoked from your workflow. Add them to .raili/script-registry.json:

{
  "run_tests": {
    "path": "scripts/test.sh"
  }
}

Create a workflow

Use a simple YAML syntax to define a workflow that consists of a series of states. Each state can be an agent action, a shell command, or a script execution. Example:

inputs:
  - name: title
    description: "Brief title for the ticket"
  - name: intent
    description: "High-level intent for the ticket"
    
initial: plan  

states:
  plan:
    type: agent
    agent: planning.agent
    prompt: |
      Make the implementation plan for the following ticket:
      Title: ${title}
      Intent: ${intent}
    output:
      store: true
    approval:
      question: "Is the plan good to go?"
      PASSED: code
      FAILED: exit
      
  code:
    type: agent
    agent: coding.agent
    prompt: |
      Write the code for the following implementation plan found in:
      .raili/main/outputs/plan.md
      
      If there are failing tests, they're here:
      .raili/main/outputs/test.md
    on:
      PASSED: test
      FAILED: test
   
  test:
    type: command
    command: npm test
    output:
      store: true
    on:
      PASSED: done
      FAILED: code

  done:
    type: engine
    notify: "echo 'Workflow completed successfully!'"
    success: true

  exit:
    type: engine
    notify: "echo 'Workflow failed!'"
    success: false

Run your workflow

Run raili run and follow the prompts.

More help

Run raili docs for detailed documentation on workflow syntax, routing, variables, and more.

Run raili schema for workflow schema reference.

Local development

Install dev dependencies:

npm install

Build:

npm run build

Run tests:

npm test

Install globally during development:

npm run build
npm install -g .

License

MIT © Seppo Tarvainen

Contributing

This project is source-available. I'm not accepting pull requests, but I do welcome bug reports and feature requests. See CONTRIBUTING.md for details.