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

fourthread

v0.2.1

Published

Local-first 4-bot assistant: one shared thread, shared memory, zero cloud.

Readme

fourthread

Your local AI team — 4 specialized agents, one shared memory, zero cloud.

fourthread is a local-first, self-hostable multi-agent assistant that runs four specialized bots (1 Chief of Staff + 3 specialists) in a single shared conversation thread per workspace. Each bot's model is independently configurable against any OpenAI-compatible endpoint (including local Ollama), and all context, memory, and session state persist in plain files (SQLite + per-directory MEMORY.md and per-bot .fourthread/memory/<bot-id>.md) so that model swaps, process restarts, and directory changes lose nothing.

No accounts. No telemetry. No cloud dependency. Just a binary you run.

Install

npm install -g fourthread

Quickstart

# 1. Create config (edit endpoints/models as needed)
fourthread init   # writes ./fourthread.yaml with 4 bot configs

# 2. Run
fourthread        # starts REPL in current directory

# 3. Work
> plan a REST API for a todo app
# Chief → SpecialistA → SpecialistB → SpecialistC → Chief(summary)

# 4. Memory persists automatically
# ./MEMORY.md updated; SQLite thread saved to .fourthread/thread.sqlite

Config Example (fourthread.yaml)

bots:
  chief:
    endpoint: "http://localhost:11434/v1"
    model: "llama3.1:70b"
    temperature: 0.3
    maxTokens: 2048
  specialist_a:
    endpoint: "http://localhost:11434/v1"
    model: "codellama:34b"
    temperature: 0.2
    maxTokens: 2048
  specialist_b:
    endpoint: "https://api.openai.com/v1"
    model: "gpt-4o"
    temperature: 0.4
    maxTokens: 2048
  specialist_c:
    endpoint: "http://localhost:11434/v1"
    model: "qwen2.5-coder:32b"
    temperature: 0.1
    maxTokens: 2048

safety:
  allow_network_tools: true
  require_approval_for: [shell, file_delete]
  max_turn_tokens: 8192

How it works

  • Every user message is processed by Chief → the 3 specialists (in order) → Chief summary; each response is appended to the shared SQLite thread (checkpoint_v1.json schema) immediately, so Ctrl+C loses nothing.
  • MEMORY.md in the working directory is shared by all bots; .fourthread/memory/<bot-id>.md is loaded into that bot's prompt only.
  • Swap any bot's model in fourthread.yaml and restart — memory and thread come from disk, not the model.
  • Tools (v0.2.0): bots may emit @tool <name> <args-json> lines. Built-ins: fs.read, fs.write (both sandboxed inside the workspace root), and mem.append (writes long-term memory). Results are appended to the shared thread so every bot sees them; the bot is called again to act on them.
  • Model endpoint calls retry (3 attempts, backoff) on 429/5xx/network errors and abort after a 30 s timeout per request, so flaky local models don't kill a turn.

Development

npm install
npm test          # vitest, fully offline (adapters are mocked)
npm run demo      # scripted offline demo of the vertical slice
npm start         # REPL (needs fourthread.yaml + a live endpoint)

License

Apache-2.0 — see LICENSE.