# engram

Release management, update channels, and in-place software updates without losing PIDs or depending on GitHub.

Shipping releases through GitHub ties distribution and availability to one hosting provider, and restarting a live service drops its child processes and open terminals. engram replaces both with signed static channels in any S3-compatible bucket and in-place binary updates over `execve`.

- Release management and update channels (`stable`, `dev`, or private) with OpenSSH Ed25519 signatures, build withdrawal (`scrap`), rollback protection, and unattended host updates (`engram follow`).
- In-place software updates without losing PIDs via `enboot`, replacing a running binary over `execve` while keeping child processes, PTYs, and listening sockets open with automatic rollback on failed startups, plus thin package-manager launchers (`enlaunch`).
- No dependency on GitHub, serving signed static files from any S3-compatible bucket behind a CDN (AWS S3, Cloudflare R2, MinIO), verified against pinned keys with standard Unix tools and zero external Go dependencies in the root module and `enboot`.

<!-- docs:figure -->
![Channel storage separates unsigned mutable files (head, journal, latest/) from immutable commit directories verified by the client's pinned Ed25519 key.](https://engram.neuroplast.io/docs/_files/docs/channel.svg)

## Install

```
curl -fsSL https://engram.neuroplast.io/install.sh | sh
```

Installs the signed `engram` binary to `~/.local/bin`, verified against the pinned release key (see [Installing and verifying](https://engram.neuroplast.io/docs/installing) for platforms and CI options). Set `ENGRAM_BINDIR` to change the target directory or `ENGRAM_CHANNEL=dev` for development builds, or build from source with Go 1.24+ (`go build -o engram ./cmd/engram`). Check what you installed with `engram version`.

## Modules

| Component | Import path / command | Purpose | External dependencies |
| --- | --- | --- | --- |
| Library | `neuroplast.io/engram` | Read, verify, and publish release channels | None (stdlib only) |
| CLI | `engram` (`cmd/engram`) | `publish`, `scrap`, `verify`, `pubkey`, `follow`, `version` | None (stdlib only) |
| In-place updater | [`neuroplast.io/engram/enboot`](https://engram.neuroplast.io/docs/enboot) | Preserve file descriptors across `execve`, plus `cmd/enboot` | None (stdlib only) |
| Package launcher | [`neuroplast.io/engram/enlaunch`](https://engram.neuroplast.io/docs/enlaunch) | Thin binary for package managers that delegates to a user home | `neuroplast.io/engram` |

## Documentation

- Start: [Publishing a channel](https://engram.neuroplast.io/docs/publishing), [Installing and verifying](https://engram.neuroplast.io/docs/installing)
- Guides: [Following a channel on hosts](https://engram.neuroplast.io/docs/follow), [Go client integration](https://engram.neuroplast.io/docs/go-client), [In-place updates (enboot)](https://engram.neuroplast.io/docs/enboot), [Package launchers (enlaunch)](https://engram.neuroplast.io/docs/enlaunch)
- Reference: [Channel specification](https://engram.neuroplast.io/docs/spec), [enboot protocol](https://engram.neuroplast.io/docs/enboot-protocol)

## Status

Format version 1 ([`SPEC.md`](https://engram.neuroplast.io/docs/spec)) and `enboot` protocol version 1 ([`enboot/PROTOCOL.md`](https://engram.neuroplast.io/docs/enboot-protocol)) are stable. engram is self-hosted: every commit on `main` publishes to `dev`, and `YY.MM.DD` tags promote to `stable`. Run tests with `make check`. Report vulnerabilities to [security@neuroplast.io](mailto:security@neuroplast.io) ([security policy](https://github.com/neuroplastio/.github/blob/main/SECURITY.md)). Licensed under [Apache-2.0](https://github.com/neuroplastio/engram/blob/main/LICENSE).

---

[GitHub](https://github.com/neuroplastio/engram) · [Docs](https://engram.neuroplast.io/docs) · [pkg.go.dev](https://pkg.go.dev/neuroplast.io/engram) · Apache-2.0
