# Guide: Submitting to the Catalog (Components & Themes) + Staking

ChainRender's catalog — components, apps, and themes — is **open and permissionless**. You don't ask permission to
be listed; you register with a refundable stake, and your entry appears. This guide covers the submission process
and how staking works.

## The philosophy: open entry, earned prominence

**Anyone can submit; not everyone is surfaced equally.** Entry is open to any wallet with a refundable stake. What
you *earn* — through a clean history and community attestations — is *prominence*. No gatekeeper can block you; no
one can be forced to feature you. This keeps the catalog un-censorable while still letting quality rise.

## Submitting a component or app

1. **Build + grade + register** your component (see **[Deploying an App](./deploying.md)**) — it's now a live,
   content-addressed hash.
2. **Register a subname** for it via the staked registrar (`SubnameStakeRegistrarV2`; see
   **[Registering a Subname](./registering-a-name.md)**). The builder's **Submit** does this in one step — the name,
   the stake and the component hash. This is what surfaces it in the catalog.
3. That's it — your entry is Active and discoverable. Prominence grows with a clean history and any attestations.

## What happens after you submit

- **Explore lists it on its next load**, read live from the registrar on its chain — no catalog rebuild, no review
  queue. Its card carries the **Named (staked)** badge (**ENS-verified** if the ENS owner was proven), and a full
  hash pasted into the search box finds it. If the app was already in the catalog, it gets the badge rather than a
  second card. See **[Explore: the App Directory](../concepts/apps-directory.md)**.
- **Its grade is not claimed in Explore**: nothing there compiled it. The viewer grades what it renders.
- **It can be shared** with the short link `/app/?c=<chain>&h=<hash>&n=<name>` right away. The next site build
  (`npm run site:submitted`, part of `site:build`) also gives it its own page `/app/<hash>/` with a preview card.
- **A single component can be forked** from its Explore detail (**⑂ Fork in builder**); a fork is a new app with a
  new hash and does not change yours.

## Submitting a theme

Themes are submitted to a **ThemeSet** (the ownerless, staking-aware theme registry):

1. **Author + preview** your theme locally (see **[Authoring & Committing a Theme](./authoring-themes.md)**) —
   iterate at zero gas, and it must pass the built-in contrast + legibility invariants.
2. **Seed** the theme CSS on-chain (content-addressed → a theme id).
3. **Submit** the theme to a ThemeSet with a stake, the same open-entry model as components.

## How staking works

The stake is a **refundable anti-spam deposit** — not a fee, not a payment, not a subscription:

- **You post it** when you register/submit.
- **You get it back** after a lock window passes with no upheld flag against your entry (state: *Refunded*). Your
  entry stays; only the deposit returns.
- **It's only forfeited** (*Slashed*) if a **quorum of the immutable attester set** upholds a flag against your
  entry — e.g. spam or abuse. Only an Active entry can be slashed. The stake goes to the treasury, the name is
  released (anyone can claim it again), and Explore stops listing the entry. The component's bytes stay on-chain and
  still render by hash: slashing removes the name and the listing, it never deletes or blocks the app.

| Status | The stake | The name | Explore |
|---|---|---|---|
| Active | held | resolves | listed, **Named (staked)** |
| Refunded | returned | still resolves | listed, **Named (stake refunded)** |
| Slashed | to the treasury | released | not listed |

Why a stake at all? Because open, permissionless entry needs *some* cost to deter spam — but that cost shouldn't be
a paywall or a gatekeeper's discretion. A refundable stake is the honest answer: it costs nothing to an honest
participant (you get it back) and something to a spammer (they risk it, and lose it if flagged).

## Ownerless economics

Every economic parameter — stake size, lock window, slash quorum, the treasury/sink, the reserved-name list — is
**fixed at deployment** in the ownerless registrar. No admin can raise the stake, change the rules, or seize funds.
Every wei is either refundable to you or routed by immutable rules. You're trusting code, not a foundation.

## Related
- **[Registering a Subname](./registering-a-name.md)** · **[Authoring & Committing a Theme](./authoring-themes.md)**
- **[Trust Signals & Lineage](../concepts/trust-signals.md)** — attestations + advisories, the prominence layer.
- **[Contracts → Registries](../contracts/registries.md)**
