Demos and architectures
Learn how you can use D1 within your existing application and architecture.
-
Starter code for D1 Sessions API ↗: An introduction to D1 Sessions API. This demo simulates purchase orders administration.
Explore the following demo applications for D1.
- Starter code for D1 Sessions API: ↗ An introduction to D1 Sessions API. This demo simulates purchase orders administration.
- E-commerce Store: ↗ An application to showcase D1 read replication in the context of an online store.
- Jobs At Conf: ↗ A job lisiting website to add jobs you find at in-person conferences. Built with Cloudflare Pages, R2, D1, Queues, and Workers AI.
- Remix Authentication Starter: ↗ Implement authenticating to a Remix app and store user data in Cloudflare D1.
- JavaScript-native RPC on Cloudflare Workers <> Named Entrypoints: ↗ This is a collection of examples of communicating between multiple Cloudflare Workers using the remote-procedure call (RPC) system that is built into the Workers runtime.
- Workers for Platforms Example Project: ↗ Explore how you could manage thousands of Workers with a single Cloudflare Workers account.
- Staff Directory demo: ↗ Built using the powerful combination of HonoX for backend logic, Cloudflare Pages for fast and secure hosting, and Cloudflare D1 for seamless database management.
- Wildebeest: ↗ Wildebeest is an ActivityPub and Mastodon-compatible server whose goal is to allow anyone to operate their Fediverse server and identity on their domain without needing to keep infrastructure, with minimal setup and maintenance, and running in minutes.
- D1 Northwind Demo: ↗ This is a demo of the Northwind dataset, running on Cloudflare Workers, and D1 - Cloudflare's SQL database, running on SQLite.
Explore the following reference architectures that use D1:
Composable AI architecture
The architecture diagram illustrates how AI applications can be built end-to-end on Cloudflare, or single services can be integrated with external infrastructure and services.Retrieval Augmented Generation (RAG)
RAG combines retrieval with generative models for better text. It uses external knowledge to create factual, relevant responses, improving coherence and accuracy in NLP tasks like chatbots.Ingesting BigQuery Data into Workers AI
You can connect a Cloudflare Worker to get data from Google BigQuery and pass it to Workers AI, to run AI Models, powered by serverless GPUs.Optimizing and securing connected transportation systems
This diagram showcases Cloudflare components optimizing connected transportation systems. It illustrates how their technologies minimize latency, ensure reliability, and strengthen security for critical data flow.Fullstack applications
A practical example of how these services come together in a real fullstack application architecture.Serverless global APIs
An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other.Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-