All blocks

App template

Inkwell

Get to inbox zero calmly: a split inbox, triage from the keyboard, snooze, labels and search, compose windows that never lose a draft, and Undo for everything, sending included.

Full preview

Pick a conversation to read

Use this template

Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.

npx shadcn@latest add checkfu/uicontext/email
  1. Run itLoad from your page’s script. It builds the app with createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, render EmailTemplate, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Mail in . Implement it over your API and point MailLive at your Layer.
  3. Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .

Screens

  • Inbox

    /

    Important and Other, threads grouped by day, j/k to move, e to archive, # to delete, s to star, l to label, b to snooze, z to undo. Swipe rows on touch.

  • Conversation

    /mail/:box/:id

    Earlier messages and quoted text folded, attachment previews, invitations to answer, unsubscribe, block and print.

  • Search

    /search

    Words and operators (from:, to:, has:attachment, is:unread, before:, after:, in:, label:) with suggestions, grouped by where the mail lives.

  • Settings

    /settings/:tab

    Signatures, filters that show what they match, and a vacation reply.

Where your backend plugs in

Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Mail service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:

export const MailLive = Mail.sample
// becomes your Layer, such as
export const MailLive = Layer.effect(Mail, makeHttpMail)

The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.

What to delete

  • services/seed.ts, and Mail.sample in services/Mail.ts

To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .