mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-30 14:58:08 +00:00
The commits section read numbers that were typed into scripts/sync-oss.ts (5,420 repositories, 214 orgs, 784 pushes a day, 245,417 commits, each contributor's count), a day's count scaled by a made-up factor, and a star count that began at 1,420. The forge's database holds 1,150 repositories and 46 orgs; none of that was read. Its panels were tinted rgba over a stylesheet, DualStarButton showed its guess before GitHub answered, and BulkStarModal said "successfully starred" over a forge PUT. scripts/sync-oss.ts (was .mjs) now counts GitHub's public activity for the orgs we publish: commits a day, the year, the week, active repositories and the newest commits, written at each build with the moment it was read. A figure the snapshot does not hold is not drawn. The grid, bars and repository card are @hanzo/ui/marketing (8.29.19); the showcase stylesheet and DayActivityModal are deleted. The org and repo pages lose their typed "velocity" banners. Design lint is zero in components/oss, home/OpenSource and ForgeBetaBanner. e2e/gates/activity.spec.ts holds each figure to the snapshot, the cards to one fill and edge in both schemes, a card's name, line and foot to their own rows, and the phone to no sideways scroll. Claude-Session: https://claude.ai/code/session_017vrVus6PPBgP5YRzKV1iqW
71 lines
2.9 KiB
TypeScript
71 lines
2.9 KiB
TypeScript
import Link from 'next/link'
|
||
import { Page, PageHero, Prose, Section } from '@/components/marketing/page-kit'
|
||
import { pageMeta } from '@/lib/page-meta'
|
||
import HanzoOpenSourceShowcase from '@/components/oss/HanzoOpenSourceShowcase'
|
||
|
||
/**
|
||
* The open-source royalty, as hanzoai/cloud apps/author pays it: `defaultShareBps`
|
||
* 2000 of a deploying org's metered spend, per period, to the verified author of
|
||
* the repository the deployed project was built from.
|
||
*/
|
||
const SHARE = '20%'
|
||
|
||
export const metadata = pageMeta({
|
||
title: 'Open source royalty',
|
||
description: `A verified author earns ${SHARE} of the metered spend of every org that deploys a project built from their repository.`,
|
||
path: '/oss',
|
||
})
|
||
|
||
export default function Oss() {
|
||
return (
|
||
<Page>
|
||
<PageHero
|
||
eyebrow="Open source"
|
||
title="Your repository runs, and you are paid"
|
||
lede={`Verify that you own a repository. Every org that deploys a project built from it pays you ${SHARE} of its metered spend, accrued each period, with the record behind every number.`}
|
||
/>
|
||
<Section title="How it works">
|
||
<Prose>
|
||
<ol>
|
||
<li>
|
||
Connect your GitHub account with <code>POST /v1/author/connect</code>.
|
||
</li>
|
||
<li>
|
||
Prove you own a repository, or a whole owner, with <code>POST /v1/author/repos/verify</code>: through a
|
||
linked GitHub account that can push to it, or a <code>hanzo.json</code> on its default branch carrying
|
||
your verify code.
|
||
</li>
|
||
<li>When an org deploys a project built from that repository, the deploy is recorded against it.</li>
|
||
<li>
|
||
Each period, you accrue {SHARE} of that org’s metered spend — once per org per period, and never from
|
||
your own org.
|
||
</li>
|
||
<li>Payouts are recorded against what has accrued, and settled by a person.</li>
|
||
</ol>
|
||
<p>
|
||
Repositories Hanzo maintains earn the same {SHARE} when other orgs deploy them, recorded to Hanzo’s own
|
||
account.
|
||
</p>
|
||
</Prose>
|
||
</Section>
|
||
<Section title="What you can read">
|
||
<Prose>
|
||
<p>
|
||
<code>GET /v1/author</code> answers your verified repositories, the deploys recorded against them, and what
|
||
has accrued, is pending and has been paid. <code>GET /v1/author/basis</code> is the audit trail: every
|
||
ledger row, the spend it was computed from and the share applied.
|
||
</p>
|
||
<p>
|
||
Referring customers is a separate programme, paid on Hanzo’s margin: see{' '}
|
||
<Link href="/affiliate">affiliates</Link>. Everything Hanzo publishes is on{' '}
|
||
<Link href="/open-source">the open source page</Link>.
|
||
</p>
|
||
</Prose>
|
||
</Section>
|
||
<Section title="Ecosystem activity">
|
||
<HanzoOpenSourceShowcase activityOnly />
|
||
</Section>
|
||
</Page>
|
||
)
|
||
}
|