demo-endpoints
CLAUDE.md0 starsChanged 17 months agoMITView on GitHub
This is a Cloudflare Workers project that serves random content through REST API endpoints. The project follows a simple Cloudflare Workers architecture: The main fetch handler uses URL pathname matching to route requests to different endpoints. Each endpoint contains its own logic for generating random responses. The project does not have tests.
The file
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is a Cloudflare Workers project that serves random content through REST API endpoints.
Common Commands
Code Quality
npm run format- Format code with Prettiernpm run lint- Check code formatting with Prettiernpm run typecheck- Run TypeScript type checking (includes test directory)
Type Generation
npm run typegen- Generate worker configuration types from Wrangler and format them
Architecture
The project follows a simple Cloudflare Workers architecture:
Core Structure
src/index.ts- Main worker entry point with fetch handlerwrangler.jsonc- Wrangler configuration for deploymentworker-configuration.d.ts- Auto-generated TypeScript definitions for Cloudflare environment
Request Handler Pattern
The main fetch handler uses URL pathname matching to route requests to different endpoints. Each endpoint contains its own logic for generating random responses.
Configuration
- Uses TypeScript with strict mode enabled
- Configured for ES2021 target with bundler module resolution
- Prettier formatting with single quotes, no semicolons, and trailing commas
- Cloudflare Workers compatibility date set to 2025-07-04
Testing
The project does not have tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

