How createnexxusvision/nextplay-rights-passport works
NextPlay is an experimental rights-intelligence app: owners register assets and seal policies, while a requester submits a proposed use and receives a deterministic decision with reasons and a signed receipt; the web app presents a shareable passport. The API can analyze free text through a guarded AI-agent path, but the policy engine—not the model—decides. The README documents private encrypted copies and field-level proofs; Midnight integration is explicitly experimental and does not make transactions in this milestone. Some UI and API wiring is unsampled, so uncertain links are omitted.
Main entry points: runtime.ts Agent runtime · App.tsx Web application · server.ts HTTP API · commitment.ts Policy commitments
Components 25
Passport app
- Web application
apps/web/src/App.tsx - Asset vault
apps/web/src/features/VaultView.tsx - Royalties and splits
apps/web/src/features/RoyaltiesView.tsx - Proof passport
apps/web/src/features/ProofView.tsx - Encrypted copy
apps/web/src/privateCopy.ts - API client
apps/web/src/api.ts - Midnight wallet status
apps/web/src/midnight/useMidnightWallet.ts
Rights API
- HTTP API
apps/api/src/server.ts
AI agent
- Agent runtime
apps/api/src/agent/runtime.ts - Agent configuration
apps/api/src/agent/home.ts - Model routing
apps/api/src/agent/router.ts - AI budgets
apps/api/src/agent/budget.ts - Nemotron gateway
apps/api/src/ai-gateway.ts
Rights core
- Policy engine
packages/core/src/policy-engine.ts - Rights schemas
packages/core/src/schemas.ts - Injection screening
packages/core/src/injection.ts - Ledger boundary
packages/core/src/ledger.ts
Privacy and proofs
- Policy commitments
packages/core/src/commitment.ts - Signed receipts
packages/core/src/receipts.ts - Field proofs
packages/core/src/merkle.ts - Encrypted vault crypto
packages/core/src/vault.ts
Other components
- Rights owner
- Brand or agent
- Lace wallet
- Nebius Token Factory
Connections 28
- Rights owner → Web application: manages rights
README.md - Brand or agent → Web application: requests use
README.md - Web application → Asset vault: renders
apps/web/src/App.tsx - Web application → Royalties and splits: renders
apps/web/src/App.tsx - Web application → Proof passport: renders
apps/web/src/App.tsx - Web application → API client: checks health
apps/web/src/App.tsx - Web application → Midnight wallet status: observes wallet
apps/web/src/App.tsx - Asset vault → Policy commitments: seals policy
apps/web/src/features/VaultView.tsx - Asset vault → Encrypted copy: uses panel
apps/web/src/features/VaultView.tsx - Encrypted copy → Encrypted vault crypto: encrypts copy
apps/web/src/privateCopy.ts - Proof passport → API client: loads decisions
apps/web/src/features/ProofView.tsx - Midnight wallet status → Lace wallet: connects
apps/web/src/midnight/useMidnightWallet.ts - API client → HTTP API: calls API
README.md - HTTP API → Policy engine: evaluates request
apps/api/src/server.ts - HTTP API → Agent runtime: runs analysis
apps/api/src/server.ts - HTTP API → Policy commitments: checks policy seal
apps/api/src/server.ts - HTTP API → Signed receipts: signs decision
README.md - HTTP API → Ledger boundary: respects demo boundary
README.md - Agent runtime → Injection screening: screens text
apps/api/src/agent/runtime.ts - Agent runtime → Agent configuration: uses configuration
apps/api/src/agent/runtime.ts - Agent runtime → Model routing: routes calls
apps/api/src/agent/runtime.ts - Agent runtime → Nemotron gateway: calls model
apps/api/src/agent/runtime.ts - Agent runtime → Policy engine: evaluates readings
apps/api/src/agent/runtime.ts - Agent runtime → Rights schemas: validates readings
- Model routing → AI budgets: checks spend
apps/api/src/agent/router.ts - Nemotron gateway → Nebius Token Factory: sends completion
apps/api/src/ai-gateway.ts - Policy commitments → Field proofs: supports field commitments
packages/core/src/merkle.ts - Signed receipts → Policy commitments: commits receipt data
packages/core/src/receipts.ts