# Nako
[](https://github.com/Latias94/nako/actions/workflows/release-gate.yml)
[](https://github.com/Latias94/nako/actions/workflows/release-package.yml)
[](https://github.com/Latias94/nako/actions/workflows/crates-publish.yml)
[](https://github.com/Latias94/nako/actions/workflows/docker-publish.yml)




<p>
<img src="assets/brand/nako-app-icon-1024.png" alt="Nako app icon" width="128">
</p>
**Your media home, gently kept.**
Nako is an open-source media server backend for people who want to keep their
own films, shows, anime, and personal collection on hardware they control.
## Status
Nako is currently `0.1.0-alpha.2`.
This is a technical preview. It is useful for development, self-hosted testing,
and early addon work, but it is not a stable Jellyfin or Plex replacement yet.
The public API, Admin API, Addon Protocol, database schema, and generated SDKs
may still change before beta.
Current Addon Protocol Version: `0.1.0-alpha.1`. Addon Version, protocol
compatibility, and Rust crate package versions are separate contracts.
## What works today
- Media Library scanning with Local Inference, Source State tracking, Media
Source records, and Provisional Hierarchy.
- SQLite and PostgreSQL persistence paths with contract tests.
- Local filesystem VFS, with WebDAV-oriented pieces already in place.
- Metadata provider runtime for TMDB, Bangumi, and Douban.
- NFO import/export and local metadata authority.
- Managed Import, Nako-managed artwork, Library File Write, and promotion/apply
flows for operator-confirmed file changes.
- Playback source selection, remux/transcode planning, hardware acceleration
policy, runtime diagnostics, and bounded staging.
- Admin API and Admin Web Console pages for diagnostics, operations, Addon
onboarding, credentials, grants, and runtime status.
- Addon Sidecar protocol support with scoped tokens, grants, health checks,
install guides, and resource-call diagnostics.
- Docker/Compose examples, config preflight, release packaging, and operator
docs.
## Current boundaries
- Addons are externally run Addon Sidecars. Nako does not yet install, update,
start, stop, remove, log, or supervise addon processes.
- `nako-official-addons` is the companion repository for official Addon
Sidecar experiments. The first alpha companion addon is
`nako-metadata-scraper@0.1.0-alpha.2`:
<https://github.com/Latias94/nako-official-addons>
- The repeatable alpha host/addon smoke is
[`scripts/official-addon-e2e-smoke.ps1`](https://github.com/Latias94/nako/blob/main/scripts/official-addon-e2e-smoke.ps1).
It starts the published Nako GHCR image, uses the published
`nako-metadata-scraper@0.1.0-alpha.2` binary from crates.io by default, and
proves registration, hosted health, enablement, and one hosted resource call.
Use `-AddonBinarySource workspace` only when validating a clean candidate
worktree in `nako-official-addons`.
- Network tunnel support is policy/readiness oriented. Nako does not currently
run a built-in NAT traversal or relay service.
- AI-assisted workflows are intentionally not part of the `alpha.2` release
promise.
- Keep Nako local-only, private-network, VPN, reverse-proxy, or tunnel-bounded
with auth enabled. Do not expose placeholder configs to the public internet.
## Rust SDK crates
The first crates.io publishing lane is small on purpose:
- `nako`: facade crate for public Nako protocol and SDK surfaces.
- `nako-addon-protocol`: Addon Protocol wire types and validation helpers.
- `nako-addon-client`: optional Rust HTTP caller helper for Addon Sidecars.
Server implementation crates are not published as library APIs during alpha.
Recommended Rust SDK crate versions for Nako `0.1.0-alpha.2` are
`0.1.0-alpha.2`. The runtime Addon Protocol compatibility contract remains
`0.1.0-alpha.1`.
## Quick start
From source:
```powershell
Copy-Item deploy/sqlite/nako.toml .\nako.local.toml
# Edit nako.local.toml first: database path, artifact/cache roots, and library root.
$env:NAKO_ADMIN_TOKEN = 'replace-with-a-long-random-token'
cargo run -p nako-server -- --config .\nako.local.toml config-check --create-dirs
cargo run -p nako-server -- --config .\nako.local.toml serve
```
Container examples:
```powershell
Copy-Item deploy/compose/.env.example deploy/compose/.env
# Edit deploy/compose/.env before running.
docker compose --env-file deploy/compose/.env -f deploy/compose/nako-sqlite.yml up --build
```
Published alpha image:
```powershell
docker pull ghcr.io/latias94/nako-server:0.1.0-alpha.2
docker pull ghcr.io/latias94/nako-server:alpha
```
Direct image build:
```powershell
docker build -t nako:0.1.0-alpha.2 .
```
If `deb.debian.org` is unstable from your network, override the Debian mirrors:
```powershell
docker build `
--build-arg DEBIAN_MIRROR=http://mirrors.aliyun.com/debian `
--build-arg DEBIAN_SECURITY_MIRROR=http://mirrors.aliyun.com/debian-security `
-t nako:0.1.0-alpha.2 .
```
For full operator notes, see:
- [Self-hosted setup](https://github.com/Latias94/nako/blob/main/docs/deployment/SELF_HOSTED.md)
- [Release checklist](https://github.com/Latias94/nako/blob/main/docs/deployment/RELEASE_CHECKLIST.md)
- [Backup, restore, and upgrade](https://github.com/Latias94/nako/blob/main/docs/deployment/BACKUP_RESTORE_UPGRADE.md)
More docs:
- [HTTP API](https://github.com/Latias94/nako/blob/main/docs/api/HTTP_API.md)
- [Addon author guide](https://github.com/Latias94/nako/blob/main/docs/guides/ADDON_AUTHOR_GUIDE.md)
- [Licensing policy](https://github.com/Latias94/nako/blob/main/docs/LICENSING.md)
## Development gates
Common local checks:
```powershell
rustc --version # workspace rust-version is 1.95
cargo fmt --all -- --check
cargo check --workspace --tests
cargo nextest run --workspace --no-fail-fast
pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/postgres-contract-harness.ps1 -Suite all-contracts
```
## License
Nako server-side code is licensed under AGPL-3.0-or-later unless a crate or file
states otherwise. Addon protocol, addon client, client SDK, and reference addon
crates are licensed as Apache-2.0 OR MIT for Addon and client authors.
See the [licensing policy](https://github.com/Latias94/nako/blob/main/docs/LICENSING.md)
for the crate-level split.