Skip to content
Projects

About

On-chain event ticketing and ticket resale on Stellar, built with Soroban, Next.js and Prisma.

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

StellarSeat

On-chain event ticketing and ticket resale on Stellar.

StellarSeat turns event tickets into Stellar assets: an organizer issues a ticket asset, sells it through a Soroban contract, and holders can resell it in an on-chain auction without a trusted middleman. Ownership lives on the ledger, not in a ticketing company's database.

What it does

  • Tokenized tickets. Every ticket category is a Stellar asset issued by the event's distributor, so a ticket can be verified by anyone.
  • Primary sales on Soroban. ticket handles the sale window, per-purchase caps, price, and the service fee split between issuer and distributor.
  • Secondary market. ticket_acution runs ascending-price auctions for resale, with bids escrowed in the contract.
  • Freighter wallet. Buyers sign with Freighter; there is also an experimental passkey flow built on WebAuthn.
  • Organizer dashboard. Create events and ticket categories, publish a sale, and watch sales and auctions in one place.

Tech stack

Layer Choice
App Next.js 14 (App Router), React 18, TypeScript
API tRPC 11, Prisma 5, PostgreSQL
Auth NextAuth (see src/server/auth.ts), Freighter, WebAuthn
Contracts Rust, Soroban SDK 21 (Stellar testnet)
UI Tailwind CSS 3, shadcn/ui, Radix

Repository layout

src/                 Next.js app: routes, components, hooks, tRPC routers
  server/api/        tRPC routers (events, assets, auctions, accounts)
  app/               App Router pages
prisma/              Schema (events, assets, auctions, bids, waitlist)
soroban-contracts/
  contracts/ticket/          Ticket sale contract
  contracts/ticket_acution/  Resale auction contract
scripts/             Deployment and asset-setup helpers
public/.well-known/  stellar.toml metadata

Getting started

Prerequisites: Node.js 20 or newer, npm 10, PostgreSQL 14+, Docker (optional, for the local database), and the Stellar CLI if you want to build or deploy contracts.

git clone https://github.com/Stellar-Soroban/stellar-seat.git
cd stellar-seat
npm install

Database

./start-database.sh          # Docker Postgres with a generated password
# or point POSTGRES_PRISMA_URL / POSTGRES_URL_NON_POOLING at your own instance
npx prisma migrate dev       # no migrations committed yet: use `npx prisma db push`

Environment

Copy .env.example to .env and fill in the values. src/env.js validates them at startup and at build time; set SKIP_ENV_VALIDATION=1 to build without a database, RPC endpoint, or issuer keys.

Variables are documented inline in .env.example. Nothing secret belongs in a NEXT_PUBLIC_* variable — those are shipped to the browser.

Run

npm run dev -- --experimental-https

Freighter requires HTTPS, and the passkey flow requires a secure context, so the --experimental-https flag is not optional.

Contracts

cd soroban-contracts
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
cargo build --target wasm32-unknown-unknown --release
stellar contract deploy \
  --wasm target/wasm32-unknown-unknown/release/ticket.wasm \
  --source <your-identity> \
  --network testnet

Deployed contract IDs are kept in .env so the frontend knows where to send transactions.

Checks

npm run lint         # ESLint via next lint
npm run typecheck    # tsc --noEmit
npm run build        # production build

CI runs the same commands on every push and pull request, plus cargo fmt, cargo clippy, cargo test, gitleaks and dependency audits.

Contributing

Issues labelled good first issue are scoped for a first contribution; each one names the files involved and how to verify the fix. Open a pull request against main and keep the checks above green.

License

Apache License 2.0 — see LICENSE and NOTICE.

Acknowledgements

Explore related projects

Loading…