Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

18 lines · 622 BRaw History
1import type { DiffineryEvent } from "@diffinery/shared";
2import type { Env } from "./env.js";
3import type { MailJob } from "./mail/types.js";
4import { app, queue, scheduled } from "./app.js";
5import { web } from "./web/routes.js";
6
7export { RepoDO } from "./repo/RepoDO.js";
8export { RunnerContainer, SandboxContainer } from "./runner/containers.js";
9export { RunWorkflow } from "./runner/workflow.js";
10
11// The web UI is mounted last so API, git and runner routes take precedence.
12app.route("/", web);
13
14export default {
15 fetch: app.fetch,
16 queue,
17 scheduled,
18} satisfies ExportedHandler<Env, DiffineryEvent | MailJob>;