MCPcopy Index your code
hub / github.com/apeacock1991/serverless-apps-on-cloudflare

github.com/apeacock1991/serverless-apps-on-cloudflare @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
58 symbols 116 edges 47 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Demo Projects for Serverless Apps on Cloudflare

Serverless Apps on Cloudflare is a book focussed on how to build applications on Cloudflare's developer platform.

The book will teach you how to make use of core Cloudflare developer products including:

  • Workers
  • Pages
  • D1 databases
  • Queues
  • KV caches
  • R2 object storage
  • Workers AI
  • Durable Objects

Plus all the essential glue that ties them all together. By the end of the book, you'll have all the knowledge required to build applications on Cloudflare's serverless platform.

Each project has a folder in this repository, that you can use as a reference and to sense-check against if you build the projects yourself. For each one, you can pull the code, create any required resources and update wrangler.toml and the rest should just work.

Extension points exported contracts — how you extend this code

CloudflareEnv (Interface)
(no doc)
image-app/env.d.ts
Env (Interface)
(no doc)
image-analysis-consumer/worker-configuration.d.ts
Env (Interface)
(no doc)
image-analysis-consumer/src/index.ts
CloudflareEnv (Interface)
(no doc)
weather-app/env.d.ts
Env (Interface)
(no doc)
chat-app-durable-objects/worker-configuration.d.ts
Env (Interface)
(no doc)
photo-service/worker-configuration.d.ts
Env (Interface)
(no doc)
photo-service/src/env.ts
Env (Interface)
(no doc)
authentication-service/worker-configuration.d.ts

Core symbols most depended-on inside this repo

fetch
called by 12
chat-app-durable-objects/src/chat.ts
fetch
called by 5
photo-service/src/index.ts
getExternalWeatherData
called by 1
weather-app/src/lib/get_external_weather_data.ts
broadcastMessage
called by 1
chat-app-durable-objects/src/chat.ts
formatUserMessage
called by 1
chat-app-durable-objects/src/chat.ts
persistHistory
called by 1
chat-app-durable-objects/src/chat.ts
uploadImageForAnalysis
called by 1
image-app-with-queue-producer/src/lib/upload_image_for_analysis.ts
retrieveImageAnalysisQuery
called by 1
image-app-with-queue-producer/src/lib/retrieve_image_analysis_query.ts

Shape

Function 34
Interface 15
Method 7
Class 2

Languages

TypeScript100%

Modules by API surface

chat-app-durable-objects/src/chat.ts9 symbols
image-app/env.d.ts3 symbols
image-app-with-queue-producer/src/app/page.tsx3 symbols
image-app-with-queue-producer/src/app/api/files/route.ts3 symbols
image-app-with-queue-producer/env.d.ts3 symbols
weather-app/src/components/Button/index.tsx2 symbols
image-app/src/app/page.tsx2 symbols
image-analysis-consumer/src/index.ts2 symbols
authentication-service/src/index.ts2 symbols
weather-app/src/lib/get_external_weather_data.ts1 symbols
weather-app/src/components/WeatherInfo/index.tsx1 symbols
weather-app/src/app/weather/[location]/page.tsx1 symbols

For agents

$ claude mcp add serverless-apps-on-cloudflare \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact