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

@lanmower/foph

v0.0.39

Published

Open JS agent harness built on pi-mono, floosie, xstate, and anentrypoint-design

Readme

Foph

An open JS agent harness built on pi-mono, xstate, floosie, and anentrypoint-design. Features a full gateway, context compressor, multi-platform adapters, and a live dashboard — built with:

See AGENTS.md for the full subsystem guide and residual complement.

Install

cd c:/dev/foph
npm install

Use

# List tools (>=11 registered)
node bin/foph.js tools

# All slash-style commands
node bin/foph.js help-all

# Interactive REPL (skin-aware, slash commands routed via registry)
node bin/foph.js run

# Profile management (~/.foph/profiles/*)
node bin/foph.js profile list
node bin/foph.js profile create coder
node bin/foph.js profile switch coder

# Skin engine (default | ares | mono | slate)
node bin/foph.js skin
node bin/foph.js skin ares

# Sessions and search
node bin/foph.js sessions
node bin/foph.js search "<query>"

# Cron scheduler (persistent jobs in SQLite)
node bin/foph.js cron list
node bin/foph.js cron add "*/5 * * * *" "summarize my email"
node bin/foph.js cron tick

# Batch runner (parallel runs, JSONL output)
node bin/foph.js batch prompts.txt --concurrency 4

# Web dashboard (express + anentrypoint-design webjsx)
node bin/foph.js dashboard --port 3000

# Gateway (webhook + api_server + 16 platform adapters)
node bin/foph.js gateway --port 3000

# ACP server (JSON-RPC over stdio for IDE integrations)
node bin/foph.js acp

Tools

Built-in: bash, read, write, edit, grep, todo, memory, delegate, web_search, image_gen, browser. Auto-discovered from src/tools/*.js.

Platforms

src/gateway/platforms/: webhook, api_server, telegram, discord, slack, whatsapp, signal, matrix, mattermost, email, sms, dingtalk, wecom, weixin, feishu, qqbot, bluebubbles, homeassistant. Each adapter exposes getRequiredEnv() and throws clear messages when credentials are absent.

Memory providers

src/plugins/memory/: honcho, mem0, supermemory, byterover, hindsight, holographic (local-FS), openviking, retaindb. Set memory.provider in ~/.foph/config.yaml and the corresponding *_API_KEY.

Layout

foph/
├── bin/foph.js                  # commander CLI: tools, skills, profile, skin, sessions, search, gateway, acp, run, cron, batch, dashboard, help-all
├── src/
│   ├── home.js                   # getFophHome + profiles
│   ├── config.js                 # YAML + migrations
│   ├── sessions.js               # SQLite + FTS5
│   ├── auth.js                   # FileAuthStore (~/.foph/auth/)
│   ├── batch.js                  # parallel batch runner
│   ├── tools/                    # registry + 11 built-in tools + environments/
│   ├── toolsets.js
│   ├── agent/{machine,pi-bridge}.js   # xstate turn machine + pi-ai bridge
│   ├── commands/{registry,profile}.js # CommandDef + CRUD
│   ├── cli/interactive.js        # readline REPL
│   ├── context/engine.js         # pluggable context blocks
│   ├── cron/{scheduler,cron-parse}.js
│   ├── web/{server,index.html}   # dashboard
│   ├── gateway/                  # Gateway + 18 platform adapters
│   ├── acp/server.js             # JSON-RPC stdio
│   ├── plugins/                  # PluginManager + 8 memory backends
│   ├── skills/index.js           # SKILL.md loader
│   ├── skin/engine.js            # 4 built-in skins, YAML user-skins
│   └── observability/            # structured logs + /debug
│   └── agent/compress/{tokens,policy,prompt,prune,fallback,compressor,index}.js  # context compressor
├── skills/                       # bundled SKILL.md (creative, software-development, ops, data, planning)
├── website/                      # flatspace-powered docs site (content/pages/*.yaml + theme.mjs)
├── AGENTS.md
├── CHANGELOG.md
└── test.js                       # 21 named groups, ≤200 lines, real services

Status

Tier 0.3 complete and witnessed: 21 named tests passing, dashboard + website both live-witnessed via headless browser.

  • 16 gateway platforms with functional wire-format code (no throwing stubs)
  • 8 memory providers call real endpoints (or local-FS for holographic)
  • 11 built-in tools (bash/read/write/edit/grep/todo/memory/delegate/web_search/image_gen/browser)
  • Cron scheduler, parallel batch runner, auth store, context-engine, pi-ai bridge, interactive REPL
  • Full context compressor (src/agent/compress/*) with handoff-framed summary prefix, structured summarizer prompt, head/middle/tail policy, tool-output pre-pruning, summary-budget ratio, iterative summary update, and 600s failure cooldown
  • Documentation site at website/ powered by flatspace (NOT docusaurus). Build with cd website && node ../node_modules/flatspace/bin/flatspace.js build — output to website/docs/ for GitHub Pages.

What's not in the box yet (residual, see AGENTS.md): real credentials per platform / memory backend; modal / daytona / singularity environments; bedrock / codex provider adapters.

Testing

node test.js

One integration test at root, ≤200 lines, plain assertions, real services. No fixtures, no mocks. Dashboard validation also runs through a live exec:browser witness during EMIT/VERIFY.