A minimal Vite + React app for testing the reposell CLI end-to-end.
This example walks you through the full reposell workflow: initialize a project, build a signed artifact, publish a release, generate a license, and list it for sale.
# install dependencies
npm install # or bun install
# start the dev server
npm run dev
# open http://localhost:5173The repo ships with a pre-configured reposell.yml that sets up:
| Feature | Config |
|---|---|
| Product | reposell-example |
| Licensing | RSL-1.0 (one-time) |
| Sell page | sell/ — static storefront with payment link |
| Listing | Enabled — discoverable on listing.reposell.dev |
| CI | GitHub Actions → validates, builds, deploys /sell to Pages |
# 1. Initialize signing keys + reposell.yml (already done in this repo)
reposell init
# 2. Build + sign the artifact
reposell build
# 3. Publish a release to GitHub
reposell release
# 4. Generate a buyer license
reposell license
# 5. Announce to the reposell listing directory
reposell listingThe app animates these steps in the browser — watch the terminal-style UI tick through each one.
reposell-example/
├── reposell.yml # reposell protocol config (product, releases, payment)
├── sell/ # /sell storefront (built by `reposell build`)
│ ├── index.html # sell page with embedded reposell-data JSON
│ ├── styles.css # dark theme storefront styles
│ └── scripts.js # scroll-reveal animation
├── .reposell/
│ ├── storefront.json # storefront theme + section layout
│ └── ai-policy.json # AI usage restrictions
├── src/
│ ├── App.tsx # React app — animates the CLI steps
│ └── main.tsx # entry point
├── .github/workflows/
│ └── reposell.yml # CI: validate → build → deploy sell page to Pages
├── index.html # Vite entry HTML
├── vite.config.ts # Vite config (React plugin)
└── package.json
The key file is reposell.yml:
version: 1
product:
name: reposell-example
licensing:
schemes:
standard:
name: Standard
billing: one-time
template: rsl-1.0
releases:
mode: manual
definitions:
v0.1.0:
status: published
offers:
- scheme: standard
pricing:
amount: 29
currency: USD
payment:
provider: stripe
payment_link: https://buy.stripe.com/test_...
sell:
enabled: true
listing:
enabled: true
contribution:
amount: 5
currency: USDlicensing— declares the license scheme (RSL-1.0 one-time purchase)releases— maps versions to payment links and pricingsell— enables the/sellstorefront pagelisting— enables discovery on the reposell listing directory with a $5 USD contribution per sale
The workflow at .github/workflows/reposell.yml runs on push to main and on release publish:
- Validate — checks
reposell.ymlis well-formed - Build — signs the artifact, validates payment links against Stripe API, generates the
/sellsurface - Deploy — publishes the sell page to GitHub Pages
| Secret | Purpose |
|---|---|
REPOSELL_SIGNING_KEY |
Ed25519 signing key for manifest signatures |
REPOSELL_STRIPE_SECRET_KEY |
Stripe API key for payment link validation (test or live) |
The CI validates that your Stripe payment link is active before building. If the link is deactivated:
- The release is marked as
blocked - The
/sellpage shows "not currently purchasable" instead of the Buy button - The page also runs a runtime check on load to disable Buy buttons for dead links
This project is licensed under the RepoSell Source License v1.0.