SPB Git forge

spb/websensor

Public
33commits 1branches 0releases
3.4 MBsize
maindefault branch
10 days agolast push
TypeScript 55.4% Python 43.2% SQL 1.2%
2.3 KB · 59 lines dotenv
Raw Blame History
1# WebSensor — environment (never commit real values)2NODE_ENV=development3DATABASE_URL=postgres://localhost:5432/websensor4REDIS_URL=redis://127.0.0.1:637956# Content-addressed blob store (fs driver). S3/MinIO driver can be plugged in later.7BLOB_STORE_DIR=./data/blobs89PUBLIC_BASE_URL=http://localhost:826010API_PORT=826011API_HOST=127.0.0.112WEB_PORT=826113WEB_URL=http://127.0.0.1:826114ENGINE_METRICS_PORT=82621516# Optional acquisition fallbacks17FIRECRAWL_API_KEY=18SCRAPFLY_API_KEY=1920# AI interpretation (heuristics run without any key)21ANTHROPIC_API_KEY=22WS_LLM_MODEL_FAST=claude-haiku-4-523WS_LLM_MODEL_DEEP=claude-opus-524WS_LLM_DAILY_CALL_BUDGET=60025WS_LLM_MIN_IMPORTANCE=352627# Engine tuning28WS_FETCH_CONCURRENCY=1629WS_USER_AGENT="WebSensorBot/0.2 (+https://www.websensor.io/bot; contact@websensor.io)"30WS_SOURCES_FILE=./config/sources.yaml31WS_PER_HOST_CONCURRENCY=232WS_MEANINGFUL_SIGNAL=0.3233# Silent-change bar: only silent-eligible types with importance >= this are flagged (spec §23)34WS_SILENT_MIN_IMPORTANCE=4535# Storage lifecycle (spec §58): raw bodies of unchanged snapshots are dropped after N days (canonical + hashes kept);36# snapshots referenced by an event are never pruned. WS_RETENTION=0 disables the job.37WS_RETENTION=138WS_RETENTION_RAW_DAYS=2139WS_RETENTION_CHANGED_RAW_DAYS=604041# API — internal operations (/api/v1/admin/*, /ops). Unset = admin API disabled.42WS_ADMIN_TOKEN=43# Custom URL monitors per anonymous owner (spec §45)44WS_MONITORS_PER_OWNER=54546# Source Factory (apps/engine/src/factory-main.ts — separate `websensor-factory` process). Seeds come from47# config/coverage/*.yaml (members not yet monitored, or carrying hints) and config/factory/seeds/*.yaml.48WS_FACTORY=149WS_FACTORY_CONCURRENCY=10         # organizations discovered in parallel (continuous worker pool)50WS_FACTORY_DEADLINE_MS=120000     # wall-clock deadline per organization51WS_FACTORY_BUDGET=90              # HTTP requests per organization52WS_FACTORY_MIN_SCORE=0.35         # candidate score needed to enter shadow monitoring53WS_FACTORY_SHADOW_MIN_CHECKS=5    # checks before a shadow sensor can be accepted54WS_FACTORY_SHADOW_MIN_HOURS=2455WS_FACTORY_SHADOW_MAX_HOURS=12056WS_FACTORY_TICK_SECONDS=2057WS_COVERAGE_DIR=./config/coverage58# GITHUB_TOKEN=                   # optional: lets the factory rank an organization's repositories via the GitHub API59