File-Based Routing
Intuitive routing powered by your file structure. Create page.tsx and route.ts files, and Cloudwerk handles the rest.
Pre-Alpha
Cloudwerk brings the developer experience of modern frameworks like Next.js to Cloudflare Workers. Write intuitive file-based routes, use familiar patterns for data loading, and deploy globally in seconds.
File-Based Routing
Intuitive routing powered by your file structure. Create page.tsx and route.ts files, and Cloudwerk handles the rest.
Compiles to Hono
Your routes compile to Hono, giving you the performance and flexibility of one of the fastest web frameworks.
Cloudflare Native
First-class support for D1, KV, R2, Durable Objects, Queues, and all Cloudflare primitives.
Edge-First
Deploy to 300+ edge locations worldwide. Your code runs milliseconds from your users.
Create a page with data loading in seconds:
// app/users/[id]/page.tsximport type { PageProps, LoaderArgs } from '@cloudwerk/core';
export async function loader({ params, context }: LoaderArgs) { const user = await context.db .selectFrom('users') .where('id', '=', params.id) .executeTakeFirst();
if (!user) throw new NotFoundError(); return { user };}
export default function UserPage({ user }: PageProps & { user: User }) { return ( <div> <h1>{user.name}</h1> <p>{user.email}</p> </div> );}loader() functions for server-side data fetchingInstallation
Set up a new Cloudwerk project in minutes.
Quick Start
Build your first page and API route.
Project Structure
Learn the Cloudwerk file conventions.
Examples
Explore full example applications.