Skip to content
leojoferPublic

About

next gen git forge

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

lager

A forge for agents and people. Instant, realtime, and in sync with GitHub.

Lager is German for warehouse.

What you get

  • A web interface with files, history, and pull requests, which updates open pages on every push. Nobody reloads.
  • Standard Git over HTTPS and SSH, so every editor and every agent works with it.
  • Two-way GitHub mirrors: a repository follows GitHub, and pushes here go there first. A team moves one repository at a time.
  • Access tokens limited to some repositories, for agents; passkeys and sign-in with GitHub, for people.
  • Per-ref rules, such as who may force-push main or delete a release branch.
  • No disk to lose: repositories live in S3, Cloudflare R2, or anything else that has conditional writes, and the servers in front are disposable.

Next: issues, Actions-compatible CI, and an SDK with which agents commit and open pull requests without a clone.

Try it

You need Rust, Bun, Docker, Git 2.45 or later, and the OpenSSL headers.

scripts/local.ts

This builds the server, starts storage, PostgreSQL, and NATS in Docker, and prints the addresses. Then:

git clone http://dev:dev-password@127.0.0.1:8080/dev/demo.git

The web interface is at http://127.0.0.1:3000/ (sign in as dev / dev-password). For something to look at, bun scripts/seed.ts adds repositories with branches, tags, and pull requests in every state.

scripts/local.ts down

removes the containers and their data again.

Read more

  • HOW_IT_WORKS.md: how many servers share one bucket without stepping on each other.
  • ARCHITECTURE.md: the design, from the log format to recovery.
  • docs/decisions/: why things are the way they are, one decision per file.
  • deploy/README.md: running it for real.
  • README.agents.md: the full reference for every command, environment variable, and endpoint. It is written for coding agents, and it is where to look things up.

License

FSL-1.1-ALv2. Use it, change it, and redistribute it for anything except a competing product or service. Each version becomes Apache 2.0 two years after its release.

About

next gen git forge

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages