How cmackenzie1/holster works
Project type and purpose
• This is a serverless micro‑services monorepo (“Holster”) containing a suite of Cloudflare Workers (nine individual HTTP endpoints) plus a shared analytics library.
• Purpose: expose small, single‑responsibility HTTP services (echo, hash, ip, rand, rdap, stocks, paste, tfstate) behind friendly URLs, all managed in a single PNPM workspace.
File structure
• Top‑level files:
• pnpm-workspace.yaml, package.json, tsconfig.json, biome.json – configure the monorepo, TypeScript, linting, formatting
• .github/workflows/workers.yml – CI/CD definition for build, test, deploy
• /packages/analytics – a shared TypeScript module used by Workers for telemetry
• /workers – each subdirectory is its own Worker:
• apigw – API‑Gateway proxy with CF Access integration
• echo, hash, ip, rand – stateless request handlers
• paste, rdap, stocks – integrate with external services (KV, SQL migrations, RDAP servers, YahooFinance API)
• tfstate – HTTP backend for Terraform state, uses Durable Objects or KV and middlewares
• Each worker has its own wrangler.toml (Cloudflare config), src/, test/, tsconfig.json, and vitest setup.
README for additional insights
• Confirms that each worker publishes to its own subdomain on mirio.dev
• Notes tfstate can be accessed via an apigw route for basic‑auth handling
• “Create new Worker” hints at extensibility: plugging additional services into the same workspace