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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:
push:
branches: [main]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
51 changes: 21 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,35 @@
.superpowers/
# dependencies
node_modules/

# next.js
.next/
out/
build/
next-env.d.ts
*.tsbuildinfo

# env files (opt in to committing with a ! rule)
.env*
.claude/worktrees/
!.env.example

# testing
/coverage
# local databases (PGlite)
.data/

# next.js
/.next/
/out/
# testing
coverage/
test-results/
playwright-report/

# production
/build
# deploy and tool state
.vercel
.neon
.superpowers/
.claude/worktrees/

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# local database
.data/

# playwright
/test-results/
/playwright-report/
.neon
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
39 changes: 32 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
<img src="assets/icon.svg" width="64" height="64" alt="">
<p align="center">
<img src="assets/icon.svg" width="72" height="72" alt="Spread logo: three slices of toast fanned out">
</p>

# Spread
<h1 align="center">Spread</h1>

Spread is a phone-first party planner for backyard get-togethers. A host makes an event and shares one link; guests RSVP with no account (plus-ones included); the host turns the headcount into a menu, a shopping list with quantities and costs, and a fair split with prefilled Venmo links.
<p align="center">
<strong>Enough food. More time together.</strong><br>
A phone-first planner for backyard get-togethers.<br>
<a href="https://spreadparty.vercel.app">spreadparty.vercel.app</a>
</p>

Built with Next.js (App Router), TypeScript, Tailwind 4, Drizzle on Postgres, and Better Auth for host accounts.
<p align="center">
<img src="assets/screenshots/landing-desktop.png" width="640" alt="Spread landing page on desktop">
&nbsp;
<img src="assets/screenshots/landing-mobile.png" width="180" alt="Spread landing page on a phone">
</p>

A host makes an event and shares one link. Guests RSVP with no account (plus-ones included). The host turns the headcount into a menu, a shopping list with quantities and costs, and a fair split with prefilled Venmo links.

## Features

- **One link, no guest accounts.** Guests answer in their browser; hosts track who hasn't replied and copy personal reminders.
- **A headcount you can plan for.** Confirmed guests plus plus-ones, plus the share of maybes you choose.
- **Menu from a recipe box.** 29 starter dishes across six sections, scaled per serving to the headcount.
- **Shopping list in whole packs.** Quantities round up to what the store sells, with costs and purchased tracking.
- **Fair split.** Editable shares and prefilled Venmo links the host sends themselves.
- **Try a different crowd.** Explore quantities and costs for another headcount without touching saved RSVPs.
- **Kitchen sheet.** A host-only prep and shopping view you can copy or print.

## Stack

Next.js (App Router) · TypeScript · Tailwind CSS 4 · Drizzle ORM on Postgres (Neon in production, embedded PGlite locally) · Better Auth · Vitest and Playwright · deployed on Vercel.

## Planning a real event

Expand Down Expand Up @@ -73,6 +99,7 @@ After changing `src/db/schema.ts`, run `npm run db:generate` and commit the new
```bash
npm test # unit and component tests (Vitest)
npm run lint
npm run typecheck # generates Next route types, then tsc
npm run e2e # end-to-end flow (Playwright, mobile viewport)
```

Expand All @@ -86,7 +113,7 @@ The first time, install the browser with `npm run e2e:install`. `npm run e2e` bu
DATABASE_URL="<connection string>" npm run db:migrate
```
3. Import the repository into Vercel (the Next.js preset needs no changes).
4. In Project Settings, Environment Variables, add `DATABASE_URL`, `BETTER_AUTH_SECRET` (a long random string), and `BETTER_AUTH_URL` (your production origin, e.g. `https://cookout.example.com`, with no trailing slash).
4. In Project Settings, Environment Variables, add `DATABASE_URL`, `BETTER_AUTH_SECRET` (a long random string), and `BETTER_AUTH_URL` (your production origin, e.g. `https://spread.example.com`, with no trailing slash).
5. Deploy. The first request seeds the starter recipes. Re-run `npm run db:migrate` against the database whenever a deploy adds a migration.

The live deployment is Vercel project `cookout` (https://spreadparty.vercel.app; the old https://cookout-lac.vercel.app 308-redirects there), connected to this repo: every push to `main` deploys to production. Its production env vars are `DATABASE_URL` (Neon production, pooled), `DATABASE_POOL_MAX=1`, `BETTER_AUTH_SECRET` and `BETTER_AUTH_URL=https://spreadparty.vercel.app`. Preview deployments have no database configured yet.
Expand All @@ -98,5 +125,3 @@ Venmo has no public API, so Spread can only build prefilled Venmo pay links (`ht
"Send Venmo link" does not open Venmo on the host's phone. It shares (or, where the browser has no share sheet, copies) a short message such as "Hi Pat, your share of Burger Night is $12.50: <link>" so the host can send it to the guest, and only marks the guest "link sent" once the share or copy actually succeeded. A cancelled share sheet marks nothing. The small "Open link" next to it just opens the link for testing and never marks anything sent.

Venmo may change how it handles these links, so before the first real party, send the link to a second phone that has the Venmo app installed and tap it there. Confirm it opens a prefilled payment screen for the host as the payee, with the right amount and note.

Menu includes “Try a different crowd” to explore ingredient quantities and estimates without changing saved RSVPs or costs. Kitchen sheet provides a host-only saved prep/shopping view with copy and print controls.
Binary file added assets/screenshots/landing-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/landing-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
"name": "spread",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=22"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"typecheck": "next typegen && tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"e2e": "playwright test",
Expand Down
Loading