No description
  • TypeScript 47.4%
  • HTML 43.1%
  • CSS 9.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
marti 3d52bf6b27 fix: lead the hero with "Take control of your feeds"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:47:44 +01:00
fonts feat: product page for reef 2026-11-26 00:15:37 +01:00
images fix: name the product reaf, new hero, no phone shot 2026-11-26 00:23:14 +01:00
scripts fix: name the product reef again 2026-11-26 00:23:42 +01:00
src feat: product page for reef 2026-11-26 00:15:37 +01:00
.gitignore feat: product page for reef 2026-11-26 00:15:37 +01:00
favicon.svg feat: product page for reef 2026-11-26 00:15:37 +01:00
index.html fix: lead the hero with "Take control of your feeds" 2026-11-26 00:47:44 +01:00
package-lock.json feat: product page for reef 2026-11-26 00:15:37 +01:00
package.json fix: name the product reef again 2026-11-26 00:23:42 +01:00
README.md fix: point links at the reef organisation on Forgejo 2026-11-26 00:25:17 +01:00
styles.css fix: name the product reaf, new hero, no phone shot 2026-11-26 00:23:14 +01:00

reef-web

The product page for reef, a self-hosted RSS reader with a daily brief: one static index.html, the compiled styles.css, the fonts in fonts/ and the screenshots in images/. Serve the folder as it is from any static host. The page loads nothing from third parties.

It uses reef's own theme ("broadsheet": the newsprint and night-edition colours, Fraunces and Schibsted Grotesk, the paper grain and the double rule from apps/web/src/styles.css in reef), light by default and dark when the system is. The Android app's download links point at reef/android releases.

Editing

npm install
npm run build     # compiles styles.css
npm run dev       # recompiles styles.css on every save

styles.css is generated and committed, so the host never builds anything. Rebuild after changing classes in index.html or src/input.css.

Screenshots

images/*-{light,dark}.webp come from a real reef filled with demo data: scripts/demo-seed.ts writes one reader, maya, with nine followed sites in four categories, an AI summary, a daily brief with five outlets of its own and three podcasts. The outlets, shows and their pictures (scripts/art.ts, SVG as data: URLs) are made up. scripts/shots.ts takes the shots at 1440x900 and a device scale of 2. Run it against a throwaway database, never a real one: the seed deletes every feed.

# from this repo, with the reef/reef checkout next to it as ../reef, built (bun run build)
docker run -d --name reef-shots-pg -e POSTGRES_USER=reef -e POSTGRES_PASSWORD=reef \
  -e POSTGRES_DB=reef -p 127.0.0.1:55434:5432 postgres:18-alpine
cd ../reef
cat > shots.env <<EOF
NODE_ENV=production
HOST=127.0.0.1
PORT=18090
DATABASE_URL=postgres://reef:reef@127.0.0.1:55434/reef
APP_SECRET=$(openssl rand -hex 32)
COOKIE_SECURE=false
WEB_DIST_DIR=$PWD/apps/web/dist
FETCH_SCHEDULER_ENABLED=false
VIDEO_DOWNLOADS=false
EOF
nix develop -c bun --env-file=shots.env apps/api/dist/migrate.js
NODE_ENV=development nix develop -c bun --env-file=shots.env apps/api/scripts/seed.ts
nix develop -c bun --env-file=shots.env apps/api/dist/main.js &
nix develop -c bun ../web/scripts/demo-seed.ts postgres://reef:reef@127.0.0.1:55434/reef
# CHROMIUM=/path/to/chrome if Playwright has no browser of its own
nix develop -c bun ../web/scripts/shots.ts . http://127.0.0.1:18090 \
  postgres://reef:reef@127.0.0.1:55434/reef ../web/images
cd ../web/images && for f in *.png; do ffmpeg -loglevel error -i "$f" -c:v libwebp -quality 82 "${f%.png}.webp" && rm "$f"; done

The seed dates everything from the moment it runs, and the brief is the 07:00 (Madrid) edition. Remove shots.env from the reef checkout afterwards.

License

Fraunces and Schibsted Grotesk are under the SIL Open Font License (fonts/OFL-*.txt).