Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Alpha Note: Cloesce is under active development, expanding its feature set as it pushes toward full Cloudflare support across any language. In this alpha, breaking changes can occur between releases.

The Cloesce Compiler converts object definitions into a full stack Cloudflare application.

Inspired by

Cloesce is not just an ORM, migration engine, web framework, runtime validation library, IaC tool, or API Generator. It is all of these things and more, wrapped in a clean paradigm that makes building Cloudflare applications a breeze.

@Model(["GET", "SAVE", "LIST"])
class User {
    id: Integer;
    name: String;
    posts: Post[];

    @KV("user/settings/{id}", namespace)
    settings: KValue<unknown>;

    @R2("user/avatars/{id}.png", bucket)
    avatar: R2Object;

    @POST
    async hello(): User {
        // D1, KV, and R2 all hydrated here!
        return this;
    }
}
# Coming in a later release!
// Coming in a later release!

How easy can full stack development get?

Contributing

Contributions are welcome at all levels. Join our Discord to discuss ideas, report issues, or get help getting started. Create an issue on GitHub if you find a bug or have a feature request.

Coalesce

Check out Coalesce, an accelerated web app framework for Vue.js and Entity Framework by IntelliTect. Many core concepts of Cloesce come directly from Coalesce (Cloesce = Cloudflare + Coalesce).