Archived Cloudflare Workers stock analytics prototype.
This repository is retained for reference and possible future rebuild work. It is not an active production service.
- Production Worker
stock-analyticswas removed on 2026-06-14. - The D1 database was deleted on 2026-06-14 and its data is not recoverable from this repo.
wrangler.toml, deploy scripts, remote migration scripts, and Workers Cron trigger configuration were intentionally removed.apps/worker/src/index.tsstill contains the historicalscheduled()handler logic for reference and regression coverage.- Do not recreate production deploy or remote migration configuration without an explicit resurrection plan.
apps/worker/src/: Worker HTTP routes, scheduled handler reference code, data ingestion, signal, LLM, Discord, and review logic.apps/worker/tests/: Vitest coverage using Cloudflare Workers test pool and test-only Miniflare bindings.apps/worker/wrangler.test.toml: test-only Worker config for local Vitest D1 bindings. It is not a production deploy config.docs/agents/: Domain and issue-tracking guidance for future agent work.docs/superpowers/: Historical planning and review notes.TECH-STACK.md: Source of truth for decommissioned infrastructure and future rebuild constraints.
pnpm install
pnpm run checkUseful focused commands:
pnpm -r test
pnpm --filter worker typecheck
pnpm --filter worker devpnpm --filter worker dev is only for local experimentation. It does not imply production deployment is configured.
The project keeps only variable names and placeholders in repo files. Raw values must stay in 1Password or the target platform secret store.
Historical secret names:
FINMIND_TOKENFINNHUB_KEYALPHAVANTAGE_KEYANTHROPIC_API_KEYINGEST_WEBHOOK_TOKEN
If the project is rebuilt, create or verify 1Password items first, then wire local env files with op:// references. Do not commit raw tokens, API keys, webhook secrets, database passwords, or private keys.
The repository has a non-deploying CI gate at .github/workflows/ci.yml. It installs pnpm dependencies and runs pnpm run check.
Before any production resurrection:
- Write a short rebuild plan covering D1 schema/data source, Worker name, Cron triggers, platform secrets, and deploy rollback.
- Recreate infrastructure in a branch, not directly on
main. - Add or update tests before changing runtime behavior.
- Run
pnpm run checkand a local Worker smoke test. - Store all raw secrets outside the repo.