Deterministic, gas-bounded NFT observation economy with production-grade front-end delivery.
This repository now hosts both the Solidity protocol and the neomorphic web experience ready for Vercel and Hugging Face Spaces deployments.
| Package | Description |
|---|---|
packages/contracts |
Hardhat project containing the SuperpositionNFT contract, tests, and deployment scripts. |
apps/web |
Next.js 14 App Router UI with neomorphic design system, wallet connectivity, observability, and signed edge APIs. |
npm install
npm run compile:contracts
npm run dev # serves the neomorphic UI at http://localhost:3000To run automated checks:
npm run test
npm run lint
npm run buildCopy apps/web/.env.example to .env or apps/web/.env.local and fill in the secrets. Required variables cover RPC endpoints, WalletConnect, Sentry, OTEL, admin session tokens, and the shared EDGE_SIGNING_SECRET that signs all edge routes.
- Contracts: use Hardhat (
npm run deploy -w packages/contracts) after configuringDEPLOYER_KEYand RPC URLs in.env. - Vercel: connect the repo, set the environment variables listed in
.env.example, and Vercel will runnpm run build. Edge routes are secured via HMAC signatures. - Hugging Face Spaces: choose the Docker runtime and point to
apps/web/Dockerfileor use the providedspace.yaml. Ports default to7860.
Refer to the deployment checklist for the completed production checklist and operational runbooks.
- Sentry and OTEL instrumentation ship by default (configure DSNs and exporters via env vars).
- Rate limiting, CSP headers, and signed entropy APIs are included for abuse mitigation.
- See
docs/runbooks/incident-response.mdfor incident procedures and monitoring dashboards.