Owner rule: say Rithub, never Gitea. /docs/rit, /docs/rithub-vs-gitlab and /docs/rithub-vs-codeberg named the upstream engine "Gitea" 6 times total. Kept exactly one plain upstream-license attribution line (Gitea is MIT-licensed, on /docs/rit, the dedicated "what runs rithub.dev" page) and rewrote every other mention to say Rithub instead (including "Gitea Actions" -> "Rithub Actions"). Scoped to these 3 files only -- apps/ritgram/web has other agents' WIP (feed, onboarding, ContentComposer, middleware, api.ts) left untouched.
105 lines
4.6 KiB
TypeScript
105 lines
4.6 KiB
TypeScript
import Link from 'next/link'
|
|
|
|
export const metadata = {
|
|
title: 'What is Rit? A Rust git library (not the production forge) — Ritgram',
|
|
description:
|
|
'Rit is a library-first Rust implementation of git\'s object/authoring model, built alongside Rithub. It is not what runs rithub.dev today — here is what it actually is.',
|
|
}
|
|
|
|
export default function RitDocsPage() {
|
|
return (
|
|
<div className="max-w-3xl mx-auto py-16 px-4">
|
|
<h1 className="text-4xl font-bold mb-4">What is Rit?</h1>
|
|
<p className="text-lg text-muted mb-10">
|
|
Rit is a Rust library for git's local object/authoring model — loose objects, the
|
|
index, trees, commits, and ref transactions. It is part of this same codebase as{' '}
|
|
<a href="https://rithub.dev" className="text-primary underline" target="_blank" rel="noreferrer">
|
|
Rithub
|
|
</a>{' '}
|
|
and Ritgram, but it is honestly scoped: it is a library, not the production forge engine
|
|
behind rithub.dev today.
|
|
</p>
|
|
|
|
<div className="space-y-10">
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-3">What actually runs rithub.dev</h2>
|
|
<p className="text-muted">
|
|
Rithub (the git host at{' '}
|
|
<a href="https://rithub.dev" className="text-primary underline" target="_blank" rel="noreferrer">
|
|
rithub.dev
|
|
</a>
|
|
) runs on the open-source Gitea engine (MIT-licensed, battle-tested, the same
|
|
engine millions of self-hosted git servers run). Rit is kept in this repository and
|
|
under active development, but it is not currently the dependency of the deployed
|
|
forge — see the backend README for the full reasoning behind that
|
|
decision.
|
|
</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-3">What Rit is, concretely</h2>
|
|
<ul className="space-y-2 text-muted list-disc list-inside">
|
|
<li>
|
|
A library-first Rust implementation of git's object model: loose
|
|
blobs/trees/commits/tags, git-exact SHA-1 hashing, canonical object framing.
|
|
</li>
|
|
<li>
|
|
An object database (zlib, atomic no-clobber writes, SHA-1 verification on read)
|
|
and ref storage (HEAD, loose/packed refs, symbolic refs, atomic
|
|
compare-and-swap updates).
|
|
</li>
|
|
<li>
|
|
A checksum-verifying git index (v2/v3) reader/writer, atomic{' '}
|
|
<code>index.lock</code> mutation, recursive ignore-aware <code>add</code>, and
|
|
path-safe status/checkout.
|
|
</li>
|
|
<li>
|
|
Raw/thin git pack import (via gitoxide) with checksum, delta, and connectivity
|
|
verification, plus receive-pack/upload-pack protocol handling for push and clone.
|
|
</li>
|
|
<li>
|
|
A small <code>rit</code> CLI (<code>hash-object</code>, <code>cat-file</code>,{' '}
|
|
<code>ls-tree</code>, <code>log</code>, <code>status</code>, <code>add</code>,{' '}
|
|
<code>write-tree</code>, <code>commit</code>, <code>checkout-tree</code>,{' '}
|
|
<code>restore</code>) for exercising the library directly.
|
|
</li>
|
|
<li>
|
|
Interop-tested against real Git 2.50: objects it writes pass{' '}
|
|
<code>git fsck</code>, and real Git can read trees/indexes it authors.
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-3">What Rit is not</h2>
|
|
<p className="text-muted">
|
|
It is not a hosted product, not what serves any page on rithub.dev or
|
|
ritgram.rithub.dev today, and not something you can sign up for. It is source
|
|
code in this monorepo, kept rather than deleted, available if a Rust-native forge
|
|
backend is ever worth finishing independently later.
|
|
</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-3">Looking for the real git host?</h2>
|
|
<p className="text-muted">
|
|
That's{' '}
|
|
<a href="https://rithub.dev" className="text-primary underline" target="_blank" rel="noreferrer">
|
|
rithub.dev
|
|
</a>{' '}
|
|
— see{' '}
|
|
<Link href="/docs/rithub-vs-github" className="text-primary underline">
|
|
Rithub vs GitHub
|
|
</Link>{' '}
|
|
or{' '}
|
|
<Link href="/docs/import-from-github" className="text-primary underline">
|
|
import your repos
|
|
</Link>
|
|
.
|
|
</p>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|