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

@bytesbrains/pi-factory-gate

v1.0.2

Published

AI Factory gateway for pi agents — dispatch jobs, manage environments, list agents/workers/workflows, stream results from a wrok.in orchestrator.

Readme

pi-factory-gate

AI Factory orchestration gateway for pi agents — dispatch jobs, manage environments, list agents/workers/workflows, and stream results from a wrok.in orchestrator.

Install

pi install npm:pi-factory-gate

Configuration

Add a .factoryrc.yml to your repo root:

orchestratorUrl: http://localhost:3002
defaultEnvironment: default
defaultLimit: 20
requestTimeout: 15000
maxLogLines: 500

| Key | Default | Description | |-----|---------|-------------| | orchestratorUrl | http://localhost:3002 | Base URL of the wrok.in orchestrator | | defaultEnvironment | (none) | Default environment for job dispatch | | defaultLimit | 20 | Default page size for list operations | | requestTimeout | 15000 | API call timeout in ms | | maxLogLines | 500 | Max lines for streamed job output |

Tools

Agents

| Tool | Description | |------|-------------| | factory_list_agents | List all agents, optionally filtered by environment | | factory_get_agent | Get agent detail including inheritance and resolved config |

Jobs

| Tool | Description | |------|-------------| | factory_create_job | Dispatch a job (single, chain, or parallel mode) | | factory_get_job | Get job status and results | | factory_list_jobs | List all jobs in the factory | | factory_stream_job | Poll for completion, returns final state |

Environments

| Tool | Description | |------|-------------| | factory_list_environments | List all registered environments | | factory_get_environment | Get environment detail | | factory_create_environment | Register a new environment (clone a repo) |

Workers

| Tool | Description | |------|-------------| | factory_list_workers | List all workers with health/status |

Workflows

| Tool | Description | |------|-------------| | factory_list_workflows | List workflow templates (DB + disk discovery) | | factory_run_workflow | Execute a workflow template |

Events & Status

| Tool | Description | |------|-------------| | factory_get_events | Get recent system events | | factory_status | Health check — is the orchestrator reachable? |

About wrok.in

This gate works with the wrok.in AI Factory — a personal AI workflow orchestrator that manages pi workers across Docker containers with multi-repo environments, agent inheritance, DB-backed agents, and workflow scheduling.

License

MIT