Skip to content

About

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.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

reposell-example

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.

Quick start

# install dependencies
npm install          # or bun install

# start the dev server
npm run dev

# open http://localhost:5173

How it works

The 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

The reposell workflow

# 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 listing

The app animates these steps in the browser — watch the terminal-style UI tick through each one.

Project structure

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

Configuration

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: USD

What each section does

  • licensing — declares the license scheme (RSL-1.0 one-time purchase)
  • releases — maps versions to payment links and pricing
  • sell — enables the /sell storefront page
  • listing — enables discovery on the reposell listing directory with a $5 USD contribution per sale

CI / GitHub Actions

The workflow at .github/workflows/reposell.yml runs on push to main and on release publish:

  1. Validate — checks reposell.yml is well-formed
  2. Build — signs the artifact, validates payment links against Stripe API, generates the /sell surface
  3. Deploy — publishes the sell page to GitHub Pages

Required Secrets

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)

Payment Link Validation

The CI validates that your Stripe payment link is active before building. If the link is deactivated:

  • The release is marked as blocked
  • The /sell page 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

License

This project is licensed under the RepoSell Source License v1.0.

About

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.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages