# Steid

The source of truth for everything in a developer's or organization's portfolio.

## Vision

Steid is a developer/org identity and portfolio platform. It's where you host your
code, your writing, your projects — everything you do, in one place, under your
control.

Git repos are a core feature, not the whole product. Blogs, documentation, project
showcases, and anything else a dev or org wants to present lives here too.

Personal-first, but organizations can collaborate on it.

**What makes it different from Gitea/Forgejo:** those are GitHub clones scaled down.
Steid is portfolio-first — the profile page is the product, and repos are one kind of
thing that appears on it. That framing should win any tie-break.

## Core Principles

- **Fast** — Rust, minimal overhead
- **Reliable** — correct first, then optimize
- **Personal-first** — great for a single dev, scales to orgs
- **Identity-centric** — everything is built around who you are (user/org); auth is
  designed in from day one, not bolted on

## Stack

Starting intent, not settled decisions. Each one gets a record in
[decisions/](decisions/) when it's actually made and confirmed in this build.

| Concern | Intent |
|---|---|
| Web framework | Topcoat (tokio-rs) |
| Git protocol | shell out to the `git` binary |
| SSH transport | embedded russh server |
| Crate layout | single crate |
| Ownership | personal org owns repos |
| Database | SQLite via sqlx |

Architecture and conventions: [architecture.md](architecture.md).

## Milestone Ladder

This repo is a from-scratch rebuild on Topcoat. Milestones 1–4 were built and
verified end-to-end in a previous attempt — see [progress.md](progress.md) for what
that proved. Treat that code as reference, not as a baseline.

| # | Milestone | Status |
|---|---|---|
| 0 | **Skeleton** — Topcoat app boots, config, one page, SQLite wired | nearly done |
| 1 | **Identity** — users, orgs, memberships, sessions, registration policy | not started |
| 2 | **Repo model** — repo records + bare repos on disk | not started |
| 3 | **Git over SSH** — clone and push via embedded russh | not started |
| 4 | **SSH key auth + authz** — pubkey → user, membership-gated push/clone | not started |
| 5 | **Repo browsing** — tree, blob, commit log in the web UI | not started |
| 6 | **Portfolio** — blogs, pages, project showcases | not started |
| 7 | **Collaboration** — issues, PRs, review | not started |
| 8 | **API / federation** | not started |

Milestones 5–8 have never been built. Everything below 5 has a working reference
implementation to crib from.

**One numbering scheme.** The previous attempt kept two (a roadmap ladder and a
separate build log with conflicting numbers) and they drifted apart within three
milestones. If the plan changes, edit this table — don't start a second list.

Milestone 0 is broken into steps in [current.md](current.md).
