How dnlaldrn/clippass works
ClipPass lets creators pay a flat project fee, then an agent selects and licenses stock-media assets with constrained Stellar payments to artists. The graph follows checkout through job execution, quote/payment verification, and license presentation, while retaining the catalog, payout, owner-policy, activity, and verification capabilities. Some server and web modules were not excerpted; their links are included only where the README or SOURCE INDEX supports them.
Main entry points: run.ts Agent execution · App.tsx Web app · merchant.ts Merchant API · api.ts API client
Components 31
Creator experience
- Web app
apps/web/src/App.tsx - Job submission
apps/web/src/StartJob.tsx - Job and receipt views
apps/web/src/JobPage.tsx - Library and artist pages
apps/web/src/pages/Library.tsx - Activity page
apps/web/src/pages/Activity.tsx - Verification page
apps/web/src/pages/Verify.tsx - Reel preview
apps/web/src/ReelPreview.tsx - Preview rendering
apps/web/src/reel/ReelScene.ts - API client
apps/web/src/api.ts
Job and API server
- Checkout and jobs
apps/server/src/velo.ts - Job store
apps/server/src/jobs.ts - Job runner
apps/server/src/runner.ts - Merchant API
apps/server/src/merchant.ts
Agent purchasing
- Agent execution
packages/agent/src/run.ts - Slot planning
packages/agent/src/plan.ts - Asset selection
packages/agent/src/pick.ts - Payment decision
packages/agent/src/decide.ts - Paid request retry
packages/agent/src/paidFetch.ts - Optional Ollama planner
packages/agent/src/llm.ts
Payments and licensing
- Noir and Stellar
- Payment event watch
apps/server/src/noirWatch.ts - License verifier
apps/server/src/verifier.ts - Quote store
apps/server/src/quotes.ts - Artist payouts
apps/server/src/claim.ts - Card owner controls
apps/server/src/owner.ts - Payment verification API
apps/server/src/verify.ts
Catalog and insight
- Catalog API
apps/server/src/catalog.ts - Asset catalog
packages/shared/src/catalog.ts - Activity API and log
apps/server/src/activity.ts - Artist directory
apps/server/src/artists.ts
Other components
- Creator
Connections 34
- Creator → Web app: creates reel
apps/web/src/App.tsx - Web app → Job submission: routes to
apps/web/src/App.tsx - Job submission → API client: submits job
- API client → Checkout and jobs: calls API
README.md - Checkout and jobs → Job store: creates and reads
apps/server/src/velo.ts - Checkout and jobs → Job runner: starts after payment
apps/server/src/index.ts - Job runner → Agent execution: runs agent
- Agent execution → Slot planning: builds slots
packages/agent/src/run.ts - Agent execution → Optional Ollama planner: optionally retags
packages/agent/src/run.ts - Agent execution → Asset selection: ranks assets
packages/agent/src/run.ts - Agent execution → Payment decision: checks budget
packages/agent/src/run.ts - Agent execution → Paid request retry: requests quote
packages/agent/src/run.ts - Paid request retry → Merchant API: retries with proof
README.md - Merchant API → Quote store: creates and checks
apps/server/src/merchant.ts - Agent execution → Noir and Stellar: checks and authorizes
packages/agent/src/run.ts - Noir and Stellar → Payment event watch: emits payment event
README.md - Payment event watch → License verifier: verifies event
apps/server/src/noirWatch.ts - License verifier → Quote store: checks quote
apps/server/src/merchant.ts - Merchant API → License verifier: validates proof
README.md - Noir and Stellar → Artist payouts: settles artist balances
README.md - Card owner controls → Noir and Stellar: manages card policy
README.md - Payment verification API → Activity API and log: records checks
apps/server/src/verify.ts - Catalog API → Asset catalog: serves assets
apps/server/src/catalog.ts - Merchant API → Artist directory: uses payees
apps/server/src/index.ts - Web app → Job and receipt views: routes to
apps/web/src/App.tsx - Web app → Library and artist pages: routes to
apps/web/src/App.tsx - Web app → Activity page: routes to
apps/web/src/App.tsx - Web app → Verification page: routes to
apps/web/src/App.tsx - Job and receipt views → API client: loads job data
- Library and artist pages → API client: loads catalog
apps/web/src/pages/Library.tsx - Reel preview → Preview rendering: renders frames
apps/web/src/ReelPreview.tsx - Job and receipt views → Reel preview: shows preview
README.md - Activity page → Activity API and log: reads activity
README.md - Verification page → Payment verification API: checks payment
README.md