services: - type: web name: crowdcode-backend runtime: python plan: starter buildCommand: pip install -e . startCommand: crowdcode-mcp # 200 once this instance has loaded what search serves (model, ~48k-offering index, directory), so a # deploy keeps the old instance serving through warm-up. No outside dependency: an outage elsewhere # never makes Render restart the backend (/ready adds the database and redaction checks for monitors). healthCheckPath: /startup envVars: - key: DATABASE_URL sync: false - key: MCP_TRANSPORT value: streamable-http # Half a CPU: one thread for BLAS and the tokenizer (crowdcode/__init__.py sets the same defaults). - key: OPENBLAS_NUM_THREADS value: "1" - key: OMP_NUM_THREADS value: "1" - key: TOKENIZERS_PARALLELISM value: "false" - key: HOST value: 0.0.0.0 - key: MCP_ALLOWED_HOSTS value: crowdcode-backend.onrender.com,crowdcode.app,www.crowdcode.app,127.0.0.1:*,localhost:* - key: MCP_ALLOWED_ORIGINS value: https://crowdcode.app,https://www.crowdcode.app,http://127.0.0.1:*,http://localhost:* - key: CORS_ORIGINS value: https://crowdcode.app,https://www.crowdcode.app,http://127.0.0.1:5173,http://localhost:5173 - key: CROWDCODE_REQUESTS_TABLE value: service_requests - key: PROJECT_IDEAS_CACHE_SECONDS value: "86400" - key: CROWDCODE_REVIEWER_SALT sync: false # Wallet-keyed service-request limit (rolling 24h; 0 disables). - key: CROWDCODE_REQUEST_LIMIT_PER_DAY value: "5" # Required redaction sidecar (server-side enforcement backstop). Point # at the crowdcode-redactor private service; /ready fails if unavailable. - key: REDACTOR_URL sync: false - key: REDACTOR_TOKEN sync: false # Missing REDACTOR_URL rejects writes instead of storing raw text. - key: REDACTION_REQUIRED value: "1" # Root owner references pinned at trust 1.0 (docs/SCORING.md §3.5). # Without at least one, no review is ever weighted. - key: CROWDCODE_SEED_OWNERS sync: false # Published OpenCrowd gateway receipt keys, ":", # comma separated (docs/SCORING.md §3.6). Only reviews signed by one of # these carry ranking weight; GET /api/receipt-keys publishes them. - key: OPENCROWD_RECEIPT_KEYS sync: false # Smallest payment a weighted review may cite, in USDC base units. - key: CROWDCODE_MIN_WEIGHTED_AMOUNT_ATOMIC value: "1000" # Token pin for mppx/Tempo payment verification (docs/SCORING.md §3.4). # Without it, mppx verification fails closed and stores nothing. - key: MPPX_TEMPO_TOKEN_ADDRESS value: "0x20C000000000000000000000b9537d11c60E8b50" # x402 Monad RPC (e.g. Alchemy); falls back to https://rpc.monad.xyz. - key: X402_MONAD_RPC_URL sync: false # x402 Solana RPC (e.g. Alchemy); falls back to the rate-limited # https://api.mainnet-beta.solana.com. - key: SOLANA_RPC_URL sync: false # The nightly demand miner (src/crowdcode/demand_miner.py, SRI-115 C8): # the bearer token CrowdCode's reconciler sends (its DEMAND_MINER_TOKEN), # and the most its model calls may cost in one UTC day. - key: CROWDCODE_DEMAND_MINER_TOKEN sync: false - key: CROWDCODE_DEMAND_MINER_DAILY_USD value: "0.24" # Hourly batch (docs/SCORING.md §8.2): consistency sweep, per-service # review summaries, service proposals, and the services index (its feed # sweep runs once a day; its probes are spread across the hours). - type: cron name: crowdcode-cron runtime: python plan: starter schedule: "0 * * * *" buildCommand: pip install -e . startCommand: crowdcode-cron envVars: - key: DATABASE_URL sync: false - key: OPENAI_API_KEY sync: false - key: OPENAI_MODEL value: gpt-5-mini # The capability tree (src/crowdcode/capability_tree.py) classifies new # index resources with OPENAI_MODEL, capped at this much a day. - key: CROWDCODE_TREE_DAILY_BUDGET_USD value: "1" # Service proposals ask a product question over every request at once; # they get a more capable model than the per-service summaries. - key: CROWDCODE_PROPOSAL_MODEL value: gpt-5.5 - key: CROWDCODE_REVIEWER_SALT sync: false - key: CROWDCODE_SEED_OWNERS sync: false - key: REDACTOR_URL sync: false - key: REDACTOR_TOKEN sync: false - key: REDACTION_REQUIRED value: "1" # Legacy signature-only re-verification needs the same token pin. - key: MPPX_TEMPO_TOKEN_ADDRESS value: "0x20C000000000000000000000b9537d11c60E8b50" # x402 Monad RPC (e.g. Alchemy); falls back to https://rpc.monad.xyz. - key: X402_MONAD_RPC_URL sync: false # Internal-only redaction sidecar: same Rampart + secret-recognizer # pipeline as crowdcode-mcp, called by the backend on ingest/egress. - type: pserv name: crowdcode-redactor runtime: node plan: starter buildCommand: npm install && npm run build -w @crowdcode/redaction startCommand: node services/redactor/server.mjs envVars: - key: HOST value: 0.0.0.0 - key: CROWDCODE_CACHE_DIR value: /opt/render/project/.cache/crowdcode-redactor - key: REDACTOR_TOKEN sync: false - type: static name: crowdcode-frontend buildCommand: "" staticPublishPath: frontend routes: - type: rewrite source: /how-it-works destination: /how-it-works/index.html