Rithub is now positioned as a hosted product, not a self-hosted one: removed the last literal "Gitea"/"self-hosted" mentions from the docs comparison pages (rit, rithub-vs-gitlab, rithub-vs-codeberg, rithub-vs-github, import-from-github), the landing-page stat tile, and the OAuth mark's JSDoc comment. Also dropped an unsubstantiated "no per-seat billing" claim on rithub-vs-github (no live pricing page exists to back it). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
104 lines
4.6 KiB
TypeScript
104 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 a mature, battle-tested open-source git engine, hosted by us. 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>
|
|
)
|
|
}
|