How ktyfujkjdfx/bountyteam-carbon-mrv works
BountyTeam Carbon MRV is a satellite forest-carbon verification and credit-management product, with a frontend for monitoring plots and initiating actions, a backend API and durable worker, and chain operations. The intended flow runs from plot verification through remote-sensing evidence and backend policy decisions to credit operations; confirmed fire reversal can plan a chain freeze. The README cautions that this baseline is not the completed application. Edges reflect sampled calls or explicit source descriptions; unsampled subsystem wiring is omitted.
Main entry points: worker.py Durable worker · main.py API routes · ingest.py Evidence import · App.tsx Dashboard app
Components 19
User dashboard
- Dashboard app
frontend/src/App.tsx - API client
frontend/src/api/client.ts - Tracked actions
frontend/src/hooks/useTrackedAction.ts - HTTP client adapter
frontend/src/api/httpAdapter.ts - Fixture adapter
frontend/src/api/fixtureAdapter.ts
Evidence generation
- RS pipeline
rs/pipeline.py - Evidence previews
rs/preview.py - Fire attribution
rs/firms.py
API and decisions
- API routes
backend/app/main.py - Action operations
backend/app/operations.py - Read views
backend/app/views.py - Evidence import
backend/app/ingest.py - Decision policy
backend/app/policy.py - Application database
backend/app/db.py - Durable worker
backend/app/worker.py
Chain operations
- Chain adapter
backend/app/chain/web3_adapter.py
Other components
- Demo user
- Browser storage
- Blockchain network
Connections 20
- Demo user → Dashboard app: uses dashboard
- Dashboard app → API client: requests data
- Dashboard app → Tracked actions: tracks actions
- Tracked actions → Browser storage: persists intents
- API client → HTTP client adapter: dispatches HTTP
- API client → Fixture adapter: dispatches fixtures
- HTTP client adapter → API routes: sends requests
- API routes → Read views: calls reads
- API routes → Action operations: calls actions
- Action operations → Application database: persists work
- API routes → Evidence import: imports evidence
- Evidence import → Decision policy: validates by policy
- Evidence import → Application database: stores records
- RS pipeline → Fire attribution: fetches hotspots
- RS pipeline → Evidence previews: produces previews
- Durable worker → Evidence import: imports job evidence
- Durable worker → Action operations: plans freezes
- Durable worker → Chain adapter: submits operations
- Chain adapter → Blockchain network: sends transactions
- Durable worker → Application database: reconciles state