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

@brokkai/brokk-town

v0.7.6

Published

Brokk Town: a local multi-repository agent town with browser and CLI clients

Downloads

143

Readme

Brokk Town

Brokk Town is a local service that coordinates independent repository bots through private worker processes. Use the browser to watch and control work, or the CLI for scripts. Everything runs on your machine.

The browser has two themes. The default is the town; Frontline draws every repository as a base flying one of three armies — humans, humanoid aliens or a swarm — and every committed delivery as a strike between its installations. The theme is a look, not a lever: it reads the same snapshot, keeps the theme and any race chosen for a base in that browser, and never changes what Town does or writes to GitHub.

Install or build

npm install -g @brokkai/brokk-town
# Or install the native Town executable:
sh install.sh vX.Y.Z-town

Both installation paths install Town only. Node.js/npm (including npx) must be available on the Town service PATH. Town starts each bot through its separately published npm package, resolving @latest when a worker starts and using that exact version for its lifetime. Restart Town to pick up new bot releases. To update Town itself, stop it, install the new package, and start it again. The shell installer requires Python 3 and keeps each complete installation in its own directory under INSTALL_DIR/.brokk-town, with bt pointing to it.

Projects have independent versions and suffix release tags: vX.Y.Z-town, vX.Y.Z-issue-bot, and equivalent tags for the other bots. Bot releases retain older versioned worker APIs, so a newer bot continues to serve the API an existing Town uses. See RELEASING.md for workflows and publishing configuration.

To build from source, use the Go version declared in go.mod:

make build
export PATH="$PWD/bin:$PATH"

This builds bin/bt. Bot source builds and releases are independent.

First run

Authenticate gh and your chosen ACP agent, then start Town:

bt
# In another terminal:
bt web
bt add --repo OWNER/REPO
bt start --repo OWNER/REPO --role issue
bt settings --max-workers 4

Open the browser to configure the town's agent profiles and admit work. Repo Bot starts enabled to read the repository; the other houses start paused. All eight worker processes start when a town is added, but agents start only when jobs are dispatched. Repo Bot's configured agent is used only for branch repairs.

For an isolated demo that never invokes bots, agents or GitHub:

bt --demo
# In another terminal:
bt web --demo

Bare bt runs in the foreground and prints its browser URL. The URL contains the access key and is printed only to a terminal; use bt web when output is redirected. Ctrl+C, SIGTERM or SIGHUP stops Town, its bots and their agents. Closing the browser leaves the service running.

bt -d           # start in the background
bt status       # show whether Town is running and which towns it serves
bt shutdown     # stop Town and its bots

Client commands require a running Town and never start one. bt status and bt harnesses also work while it is stopped. Use --state-dir for separate state and --listen for a loopback address. bt COMMAND --help lists a command's flags. There is no login registration, terminal UI, automatic service replacement, version polling, or in-app installer.

Houses and work

| House | Work and handoff | | --- | --- | | Bug greenhouse | Runs bug-bot's investigation and verification; observed filed issues travel to issue-bot. | | Feature study | Runs feature-bot to discover useful new capabilities, independently review their value and feasibility, and compare existing requests; confirmed feature issues travel to issue-bot. | | Simplifier clarifier | Reviews every incoming issue/PR for disproportionate complexity or low value, advises the Mayor, and discovers removal/replacement proposals. | | Town Hall (Mayor Bot) | Runs mayor-bot to judge every arrival awaiting a Mayoral decision and to write the town bulletin: the feed of features gained and bugs fixed, written for users. Also displays Repo Bot reports. Paused by default; decisions wait for you until it is started. | | Issue workshop | Runs issue-bot on eligible issues, opens implementation-ready PRs, and repairs Town-owned PR branches from review feedback. | | Review observatory | Runs review-bot, independently checks the full change and every retained finding, then returns fixes or waits for merge requirements. | | Release depot | Runs release-bot's batching and publishing policy. Confirmed merged/direct commits accumulate here; a published stable release ships only commits proven to be its ancestors. | | Repo watchtower | Polls GitHub, reconciles arrivals and revisions, summarizes new commit titles, reports queue growth and blocked work. |

The browser and CLI use the same committed state. Animation follows recorded events and never writes to GitHub. Reviews require evidence tied to the exact revision; zero new comments never proves a clean review. Interrupted writes stay uncertain until reconciled.

See How work moves for intake, Mayor decisions, review and repair limits, merge authority, release ancestry, and automation outcomes.

Operator reference

Independent bot projects

The bots/ directories are standalone projects with their own Go modules, CLI commands, tests, documentation and packaging:

| Project | Command | |---|---| | bug-bot | bbb | | feature-bot | bfb | | issue-bot | bib | | review-bot | brv | | release-bot | brb | | repo-bot | brp | | simplifier-bot | bsb | | mayor-bot | bmb |

Build any bot by running go build ./cmd/<command> inside its directory. Town never imports bot Go packages. Each module chooses its own released acp-go dependency. The only integration boundary is the local worker protocol.

Town uses npx --yes -- @brokkai/PROJECT@latest version to resolve a bot, then starts the exact reported version with worker --socket PATH. Protocol ranges, required capabilities and the worker identity are checked before dispatch. The running version is recorded with each job; a worker never updates mid-job. Initial package preparation requires registry access. Bot binaries are held in npm's cache, not installed beside bt.

Development

make check runs independent Go race tests and vet in all nine modules, browser syntax/tests, launcher tests, packaging tests and license checks. make smoke builds the complete suite and runs isolated demo integration checks. Use fake GitHub and agents for write tests; never use live repository automation as a test.

Imported open bot issues retain their source links and attributed discussion history.