How borodooovitsyn/coreshare works
CoreShare is a GPU-compute marketplace. Renters submit jobs through the web client; the API stores and shards work, provider workers claim and sandbox chunks, report GPU usage and return results, and a settlement service converts recorded usage into SOL payouts. The web and Electron clients expose renter, wallet, provider, and earnings experiences. The README supplies several cross-system relationships; sampled excerpts show API handlers, worker execution, metric persistence, and settlement internals. Other UI and subsystem details are represented at documented capability level.
Main entry points: main.py API routing · __main__.py Worker process · run_settlement.py Settlement runner · settlement.py Settlement engine
Components 29
Client apps
- Rent and jobs
apps/web/app/rent/page.tsx - Wallet and earnings
apps/web/app/wallet/page.tsx - Account access
apps/web/app/register/page.tsx - Live job view
apps/web/app/jobs/[id]/JobView.tsx - Provider desktop
apps/desktop/renderer.js - Desktop API client
apps/desktop/src/api.js
Marketplace API
- API routing
services/api/app/main.py - Job queue and chunks
services/api/app/jobs.py - Input and results
services/api/app/artifacts.py - Wallet credits
services/api/app/credits.py
Provider execution
- Worker process
services/worker/__main__.py - Backend client
services/worker/client.py - Claim and run loop
services/worker/loop.py - GPU sampling
services/worker/gpu.py - Container sandbox
services/worker/sandbox.py - Job image handlers
services/worker/images
Metering and settlement
- Metrics and earnings
services/api/app/database.py - Settlement runner
payments/run_settlement.py - Usage source
payments/usage_source.py - Settlement engine
payments/settlement.py - Idempotency state
payments/state.py - Solana transfers
payments/solana_clients.py
Identity and accounts
- Device pairing
services/api/app/pairing.py - Wallet authentication
services/api/app/auth.py - Account and worker links
services/api/app/links.py
Other components
- Renter
- GPU provider
- Tiger Data
- Solana devnet
Connections 35
- Renter → Rent and jobs: submits work
- Rent and jobs → API routing: requests jobs
- Wallet and earnings → API routing: reads wallet data
- Live job view → API routing: views job status
- GPU provider → Provider desktop: controls sharing
- Provider desktop → Desktop API client: uses client
- Desktop API client → API routing: calls backend
- Account access → API routing: registers account
services/api/app/main.py - API routing → Wallet authentication: verifies wallet
services/api/app/main.py - API routing → Device pairing: pairs devices
services/api/app/main.py - API routing → Account and worker links: links accounts
services/api/app/main.py - API routing → Wallet credits: updates credits
services/api/app/main.py - API routing → Job queue and chunks: creates and claims
services/api/app/main.py - API routing → Input and results: stores files
services/api/app/main.py - API routing → Metrics and earnings: records and reads
services/api/app/main.py - Worker process → Backend client: calls backend
services/worker/__main__.py - Worker process → Claim and run loop: runs jobs
services/worker/__main__.py - Worker process → GPU sampling: samples GPU
services/worker/__main__.py - Worker process → Container sandbox: executes chunks
services/worker/__main__.py - Claim and run loop → Backend client: claims and reports
services/worker/loop.py - Claim and run loop → GPU sampling: meters usage
- Backend client → API routing: sends HTTP calls
services/worker/client.py - Backend client → Input and results: transfers artifacts
services/worker/client.py - Container sandbox → Job image handlers: runs workload images
- Metrics and earnings → Tiger Data: writes and queries
services/api/app/database.py - Settlement runner → Settlement engine: runs cycles
payments/run_settlement.py - Settlement runner → Usage source: configures source
payments/run_settlement.py - Settlement runner → Idempotency state: configures state
payments/run_settlement.py - Settlement runner → Solana transfers: configures payments
payments/run_settlement.py - Settlement engine → Usage source: fetches usage
payments/settlement.py - Settlement engine → Idempotency state: checks and marks
payments/settlement.py - Settlement engine → Solana transfers: sends payout
payments/settlement.py - Usage source → API routing: reads earnings
payments/usage_source.py - Solana transfers → Solana devnet: transfers SOL
payments/solana_clients.py - API routing → Account and worker links: resolves workers
services/api/app/main.py