Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
cancel-in-progress: false

jobs:
# The marketing site is connected to Cloudflare Pages and deploys from main
# automatically. This job remains responsible for the stateful app Worker.
deploy:
name: Deploy app Worker
runs-on: ubuntu-latest
Expand Down
10 changes: 7 additions & 3 deletions docs/marketing-app.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Marketing site and app

Factorize is deployed as two Cloudflare Workers:
Factorize is deployed as a Cloudflare Pages site and an app Worker:

- `packages/marketing` owns the public landing page at `https://factorize.sh`. It contains no authenticated APIs or tenant data. Set `APP_ORIGIN` to the app origin so login and Create a Job links always cross to the app.
- `packages/marketing` owns the public landing page at `https://factorize.sh`. It is a static Cloudflare Pages project named `factorize-marketing`; its production branch is `main` and its output directory is `packages/marketing/public`. It contains no authenticated APIs or tenant data. Login and Create a Job links cross to `https://app.factorize.sh`.
- `packages/app` owns the authenticated dashboard, OAuth callbacks, API/MCP endpoints, provider webhooks, and job deep links at `https://app.factorize.sh`. Its `/` route is the signed-out login entry point and redirects signed-in users to `/jobs`.

Run the two Workers independently with `npm run dev` and `npm run dev:marketing`. Deploy the complete setup with `npm run deploy`; deploy only the public site with `npm run deploy:marketing`.
The Pages project is connected to `GenerationSoftware/factorize` and automatically deploys production from `main`. Preview deployments are created for pull requests. For a manual deployment, authenticate Wrangler and run `npm run deploy:marketing`; this uploads `packages/marketing/public` to the `factorize-marketing` project.

Run the app Worker locally with `npm run dev`. To preview the marketing package's Worker fallback locally, use `npm run dev:marketing`.

The Pages custom domain is `factorize.sh`. Cloudflare manages HTTPS and redirects HTTP to HTTPS. The apex DNS record is proxied to Pages; the existing proxied `app.factorize.sh` record is retained unchanged.

Configure the Linear OAuth callback and provider webhooks against the app origin, never the marketing origin. Existing `/jobs/*`, `/api/*`, `/mcp`, `/authorize`, and webhook URLs remain app routes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "npm run dev --workspace=factorize",
"dev:marketing": "npm run dev --workspace=factorize-marketing",
"build:marketing": "npm run build:marketing --workspace=factorize-marketing",
"build:css": "npm run build:css --workspace=factorize",
"test": "npm run test --workspaces --if-present",
"check": "npm run check --workspace=factorize && npm run check --workspace=factorize-marketing && npm run check --workspace=factorize-tail-relay",
Expand Down
5 changes: 3 additions & 2 deletions packages/marketing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"type": "module",
"scripts": {
"dev": "wrangler dev",
"check": "tsc --noEmit && wrangler deploy --dry-run",
"deploy": "wrangler deploy"
"build:marketing": "node -e \"console.log('Static marketing assets are ready')\"",
"check": "tsc --noEmit",
"deploy": "wrangler pages deploy public --project-name factorize-marketing"
},
"dependencies": { "hono": "^4.11.4" },
"devDependencies": { "@cloudflare/workers-types": "^5.20260910.1", "typescript": "^5.9.3", "wrangler": "^4.44.0" }
Expand Down
21 changes: 21 additions & 0 deletions packages/marketing/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Factorize: Software Factories for Everybody</title>
<link rel="stylesheet" href="/styles.css">
<link rel="icon" href="/bee-mark.svg">
</head>
<body>
<header><nav><a class="brand" href="/">🐝 Factorize</a><a class="login" href="https://app.factorize.sh/">Log in</a></nav></header>
<main>
<p class="eyebrow">Linear → Exe.dev → Herdr</p>
<h1>No-code Software Factories</h1>
<p class="lede">Create a multiplayer software factory with <a href="https://linear.app/">Linear</a>, <a href="https://exe.dev/">Exe.dev</a> and <a href="https://herdr.dev/">Herdr</a>.</p>
<div class="actions"><a class="primary" href="https://app.factorize.sh/">Create a Job</a><a class="secondary" href="https://github.com/GenerationSoftware/factorize">Host it Yourself</a></div>
<section><p class="eyebrow">How it works</p><h2>Choose when to fully automate</h2><p>Factorize routes Linear issues to your coding agent of choice running on your exe.dev VM.</p><ol><li><b>Plan work in Linear</b><span>Define bugs, features, and product work as Linear issues.</span></li><li><b>Issues are routed to agents</b><span>Factorize listens to Linear and sends issues to agents on your VM.</span></li><li><b>Watch, guide, or take over</b><span>Connect to the VM and steer agents together with your colleagues.</span></li></ol></section>
</main>
<footer>Open-source software factories for everybody. · <a href="https://github.com/GenerationSoftware/factorize">View on GitHub</a></footer>
</body>
</html>
1 change: 1 addition & 0 deletions packages/marketing/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "factorize-marketing",
"main": "src/index.ts",
"pages_build_output_dir": "./public",
"compatibility_date": "2026-09-10",
"assets": { "directory": "./public", "binding": "ASSETS" },
"vars": { "APP_ORIGIN": "https://app.factorize.sh" }
Expand Down