A self-hosted email client with an AI agent, running entirely on Cloudflare Workers
TypeScript
// Copyright (c) 2026 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0
import {
index,
type RouteConfig,
route,
} from "@react-router/dev/routes";
export default [
index("routes/home.tsx"),
route("mailbox/:mailboxId", "routes/mailbox.tsx", [
index("routes/mailbox-index.tsx"),
route("emails/:folder", "routes/email-list.tsx"),
route("settings", "routes/settings.tsx"),
route("search", "routes/search-results.tsx"),
]),
route("*", "routes/not-found.tsx"),
] satisfies RouteConfig;