Skip to the content
Penny

Start

Install and deploy

On this page

This page takes you from the Penny source to a running copy: first on your own computer, where nothing leaves your machine, then on Cloudflare. Start locally. It takes a few minutes and you can look around before you decide anything.

What you need

  • Git. Git is required; rer brings Node and pnpm. rer fetches the exact Node (22.20.0) and pnpm (10.12.4) Penny pins into its own cache, so you never install pnpm and your global tools are not changed.
  • rer, installed for you by the one line below.
  • For your own Cloudflare account: a Cloudflare account and an API token for it. For email, choose SendGrid or Resend with a verified sender, or set it up later. Managed Penny gets email from RER without a provider account or key entry. Running locally needs none of these.

Run it on your computer

curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-penny

Already have Node 22 or later? npx -y @runeditrun/rer dev just-every/run-penny does the same. If the installer prints a line that puts rer on your PATH, run that line too. To start it again later, run the same line from the same folder, or cd run-penny && rer dev.

rer dev installs the locked dependencies, sets up a default local owner (a .test address that never receives mail) with an empty workspace and no sample records, and starts Penny on the first free port from 8787. In a terminal it stays in the foreground; from a script it returns once Penny is ready and keeps it running until rer dev --stop.

From a fresh Git clone, open the run-penny folder. With Node 22 or newer, these two commands install everything and start Penny under your own owner address, without a global rer command:

npx -y @runeditrun/rer setup --owner-email you@example.com
npx -y @runeditrun/rer dev

Replace the example email with yours. Repeat the same command if setup or start is interrupted; it preserves your saved owner and data. If rer reports a problem obtaining the pinned Node runtime, follow its printed recovery command first. To set up from outside a clone without starting it, use npx -y @runeditrun/rer setup just-every/run-penny --owner-email you@example.com.

A few things to know about setup:

  • It writes .dev.vars with fresh secrets and never prints them. Running setup again keeps the owner, your data, the saved address and those private settings exactly as they are.
  • To choose the port, add --port 8788 to rer dev (or to the first rer setup) and use the URLs it prints.
  • Your local data lives in .wrangler/state inside your project folder. A second copy kept in a sibling .penny-local-state- folder is refused before anything changes; Penny never moves or deletes it.

Sign in locally

Local mode needs no email provider and dev signs you straight in.

  1. Open the RER_OPEN link that dev prints. It holds this copy's private dev key, so keep it to yourself.
  2. You land on Finish setup, the first-run page. Enter the company name and postal address, choose the workspace timezone and requester quiet hours, tick the confirmation and press Finish setup.
  3. You arrive on the empty operator Overview, ready for your first board or evidence item.

Until you finish setup, every operator page sends you back to it; afterwards the setup address opens the app. The nav and title read Penny Dev. Mail is silently suppressed. Use rer dev --as teammate or --as signed-out to choose another dev identity, and rer demo to explore an isolated sample workspace as Penny Demo.

To start over, stop the app and run rer reset --yes. It lists what it removes, keeps your source and exports, and a new setup creates a fresh owner. To move your data, rer export --output exports/penny.rer writes an archive and its erasure journal, and rer import --input exports/penny.rer --yes restores them into an empty installation.

Make it yours

Two small files hold the choices most people change first.

In src/ext/config.ts, set the name customers see, the one-line description in the portal footer, and whether the footer credit shows:

export const publicLandingConfig = {
  ownerName: 'Penny',
  portalDescription: 'Share feedback, follow the roadmap, and see published customer updates.',
  showPoweredByCredit: true,
} as const

ownerName is also the browser tab title. In src/ext/config.server.ts, which never reaches the browser, you can change the fallback workspace timezone (the owner records the actual choice at first-run setup), the operator allow-list and the origins you permit. See Make it yours for more, including the one extra step that checking your changes needs.

Email

Local mode needs no provider and sends no email at all: there is no outbox and no printed link. To try the customer side locally, add a test customer from Feedback settings → Test customers (Penny Dev); see Email and notifications. Sign-in links, requester verification and notifications on a deployed copy need configured email.

Managed Penny gets email from RER. You need no provider account, sender verification or API key entry. RER fills and hides MAIL_PROVIDER=rer, MAIL_FROM, MAIL_RELAY_URL and the installation's private MAIL_API_KEY. The relay adapter comes from pinned rer 0.2.22; RER issues the credential and keeps its upstream provider key out of Penny and its build.

Free and Assisted hosting keep SendGrid, Resend and set up later. With your own provider, verify a sender address and supply its API key as MAIL_API_KEY. Choosing later leaves email actions unavailable and public reading available; none does the same and also lets rer signin sign the owner in without mail. Email and notifications covers the configuration and limits.

Deploy to Cloudflare

Or let Run Edit Run host it. Run Edit Run can set Penny up on your own Cloudflare account and keep it updated; sign-ups are by request for now.

The commands below deploy a workers.dev installation in your own Cloudflare account. It creates a Worker, a D1 database, an R2 bucket and a queue, and serves Penny at a workers.dev address. It does not deploy on a push, and it does not support a custom domain yet. Local checks cover the application itself. Mail delivery and the one-minute schedule on a live Cloudflare deployment are things to confirm yourself after you deploy.

Set these in the shell you deploy from, and keep them out of files and history:

VariableWhat it is
CLOUDFLARE_ACCOUNT_IDYour Cloudflare account ID.
CLOUDFLARE_API_TOKENRequired secret: an API token for that account with Workers Scripts, D1, R2 Storage and Queues edit permissions.
OPERATOR_EMAILYour operator address.
MAIL_PROVIDERRequired input: sendgrid or resend. rer deploy refuses a deployment without sign-in email.
MAIL_FROMRequired input: a sender address verified with that provider.
MAIL_API_KEYRequired secret: that provider's API key.

MAIL_PROVIDER and MAIL_FROM are configuration, not credentials, even though deploy.json declares them as Worker secret bindings. MAIL_API_KEY must stay private. Managed hosting supplies these inputs and also requires RER's MAIL_RELAY_URL; you do not enter a personal provider key for Managed mail.

Optional: WORKSPACE_TIMEZONE, an IANA timezone such as Europe/London for requester quiet hours (default UTC). Set it before you deploy and keep it for that workspace.

Then:

rer deploy --dry-run
rer deploy
npm run deploy:health

The dry run builds and validates locally and prints the resource, binding and migration plan. It needs no Cloudflare credentials and makes no provider request, including reads. Target credentials, permissions and readiness are checked by a real deployment. Deploy builds first, then creates or reuses the Worker, D1 database, R2 bucket and queue, applies the database migrations, uploads the build and checks it. Deploy health reads the deployed Worker's identity and /health, which confirms the database, file bucket and queue can be reached; it does not prove that mail is working. Running deploy again reuses the saved resources and secrets and rotates nothing. Use pnpm run deploy rather than bare pnpm deploy, which is a different built-in pnpm command.

Status and release publications start the Queue mail consumer immediately; they do not wait for the first Cron tick. The minute Cron remains a recovery backstop. The deploy prints a notice after it registers that schedule: Cloudflare may take up to about two hours to start the first scheduled run on some accounts, because a new schedule only starts at the account's next provider refresh. Judge delivery by Penny's own rows, not by Cloudflare's scheduled-analytics (which can list a new Worker as __unknown__): notification_batches holds each gathered request delivery and its state and any failure reason, whether handled by Queue or Cron.

The first deploy generates the required private AUTH_SECRET, INSTALLATION_KEY and SETUP_TOKEN once and saves them in .rer/deploy/production-secrets.json, mode 0600, with a ledger of what it created under .rer/deploy/. You do not supply these generated secrets. Resource names begin with penny-production, and the address comes from your account's workers.dev subdomain.

Warning

Deploy changes the Cloudflare account that the token belongs to. Check which account that is first. Do not run remote Wrangler migrations yourself before deploying: Penny keeps its own record of applied migrations and will refuse a history it cannot trust.

Sign in to the deployed copy

The first rer deploy claims the owner for you: it uses the one-time SETUP_TOKEN, then removes it and prints "Claimed the hosted owner". Open /signin, request a link for your OPERATOR_EMAIL, open the message and press Confirm; the first sign-in ends at Finish setup. If the email does not arrive, check your provider's activity log and sender verification, fix MAIL_FROM or MAIL_API_KEY, and run rer deploy again.

Only if a deploy stopped after the Worker went live but before that claim do you claim by hand: POST {"token": "<SETUP_TOKEN>", "displayName": "Your name", "returnTo": "/setup"} to /auth/bootstrap with Content-Type: application/json and an Origin header equal to the deployment's exact origin, reading the token from .rer/deploy/production-secrets.json. Keep the token and the returned cookie out of shell history, logs and screenshots.

Remove a deployment

rer deploy --remove --yes deletes the Worker, D1 database, R2 bucket and queue that the deploy record says rer created, reads back that each is gone and touches nothing else. Add --environment NAME if you deployed with one. Export your data first (see Your data); removal deletes it.

Your public portal stays empty until you create a public board and approve requester content. Deployment never loads sample data.

Check your inputs

Before you deploy, ask Penny which inputs are missing:

pnpm run operations -- check --profile owner-sendgrid

It exits with 1 while inputs are missing, which is expected before you have configured hosting. It checks names and formats only: it does not contact Cloudflare or your email provider, and it does not prove a credential is valid. Use owner-resend or owner-later for the other mail choices; see Email and notifications. rer doctor reports your local tools and saved settings.

If something goes wrong

  • Sign-in says email delivery is unavailable. The deployment has no complete mail configuration. Public reading still works. On Free or Assisted hosting, add the provider, key and sender, then deploy again. On Managed hosting, check the RER installation’s mail and hosting state; RER supplies the credential.
  • A command says another store is present and exits 4. You have a sibling .penny-local-state- folder or a PENNY_LOCAL_STATE setting. Penny will not read, move or delete it: back it up, move it into .wrangler/state yourself if it is the one you want, or remove it, then run the command again.
  • dev or setup says the port is held. Another program owns the saved local port. Stop it, or use rer dev --stop if it is a Penny server you started.

Edit this page on GitHub