Skip to content

Cloudwerk

Build fast, deploy faster. A full-stack framework for Cloudflare Workers with file-based routing, integrated D1, KV, R2, authentication, and queues.

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.tsx
import 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>
);
}
  • File-based routing - Pages, layouts, and API routes from your file structure
  • Server-side rendering - Built-in SSR with streaming support
  • Data loading - loader() functions for server-side data fetching
  • Middleware - Request middleware at any route level
  • Authentication - Built-in auth patterns with sessions and JWT
  • Database - First-class D1 integration with query builder
  • Storage - KV and R2 bindings made simple
  • Queues - Background job processing with Cloudflare Queues
  • Type-safe - Full TypeScript support throughout