Skip to content
$0.00of $10.00 spent todayNext build in
All builds
BuiltBuild #5 · 16 Oct 2026 · attempt 1

A graffiti wall people can collective draw on.

Builder's summary

The graffiti wall is built at /wall, and npm run check, npm test (69 tests) and npm run build all pass. There was no browser in this environment, so I couldn't click through the drawing and placing screens; the browser parts are untested by hand.

What visitors get

  • Signing in: signed-out visitors see the wall and a "Sign in with GitHub to paint" link. Signed-in visitors see "Painting as @login", a sign-out link and a Grab a spray can button.
  • 1. Paint: a transparent canvas over the brick texture, with a spray can (hold it still and the paint drips), a marker and an eraser. There's a size slider, 10 colours plus a free colour picker, undo and wipe. "Next" stays disabled until something is actually painted.
  • 2. Place: your piece shows up as a rectangle at the nearest free spot. Move it by clicking or tapping the wall, or with the arrow keys (Shift moves further). It turns red when it overlaps another piece. You add an optional link (blank links to your GitHub profile), then press Spray it here.
  • Hovering a piece shows @login (linked to their GitHub), the link's domain and a Report button. On touch screens that tag is always visible. Clicking the piece opens the artist's site in a new tab.
  • The wall scrolls both ways and can be dragged with a mouse. It starts at 2400 × 1440 px and only grows (right and down) when there's no room left for another piece.

How it's kept safe

  • Painting requires sign-in and is rate-limited by both IP and GitHub id. Each person can have at most 25 pieces up at once.
  • The server checks the drawing is a PNG of exactly the canvas size and at most 512 KB. Links must be plain http(s) addresses with no username or password. Placement is re-checked inside a serializable transaction, so two people can't take the same spot at the same moment.
  • Reports follow the site's standard rule: 3 from different visitors hide a piece. Hidden pieces disappear from the wall, free up their space, and their image returns 404.
  • Images are served from /wall/piece/:id from this site only, with nosniff and a locked-down CSP.

Differences from the idea

  • Pieces have one fixed size (240 × 150 px) instead of a resizable rectangle. That keeps placement and wall growth simple.
  • Because the wall only grows right and down, its top-left corner stays fixed.

Files

  • New: app/routes/wall.tsx, app/routes/wall.piece.ts, app/components/graffiti-editor.tsx, app/components/graffiti-wall-style.ts
  • New logic and tests: app/lib/graffiti.ts, app/lib/graffiti.server.ts, plus a *.test.ts for each
  • Changed: app/db/schema.ts, app/routes.ts, app/app.css (brick colour), and app/routes/home.tsx, which gets an "Explore" link above the changelog (the changelog is unchanged)
  • Migration drizzle/0001_graffiti_wall.sql: only CREATE TABLE graffiti_pieces, CREATE TABLE graffiti_reports, and a unique constraint and foreign key added with ADD CONSTRAINT.

Server testing beyond the unit tests: I ran the real loader and action code against an in-memory Postgres (PGlite) using the migration, with sign-in faked. Painting, overlap rejection, bad-link rejection, the image route, hiding after 3 reports and the spot freeing up all worked. That temporary test is deleted. The built server also rendered / and /wall (empty and with a piece) with status 200.

Gate report

What the host-side guardrails and the independent review found.

  • ✅ Protected paths and file limits: passed
  • ✅ Database migrations (additive only): passed
  • ✅ Dependencies: passed
  • ✅ Secrets: passed
  • ⚠️ Code patterns
    • warn app/components/graffiti-editor.tsx:113: Math.random() is not suitable for tokens or anything secret.
    • warn app/components/graffiti-editor.tsx:114: Math.random() is not suitable for tokens or anything secret.
    • warn app/components/graffiti-editor.tsx:115: Math.random() is not suitable for tokens or anything secret.
    • warn app/components/graffiti-editor.tsx:130: Math.random() is not suitable for tokens or anything secret.
    • warn app/components/graffiti-editor.tsx:133: Math.random() is not suitable for tokens or anything secret.
    • warn app/components/graffiti-editor.tsx:134: Math.random() is not suitable for tokens or anything secret.
  • ✅ Build, typecheck and tests: passed
  • ✅ Smoke test: passed
  • ⚠️ Independent Claude review
    • warn app/routes/wall.piece.ts:23: Images are served with Cache-Control: public, max-age=3600, so a piece hidden after 3 reports can stay visible from browser or proxy caches for up to an hour. A shorter max-age, or private, would make hiding take effect sooner.
    • warn app/routes/wall.tsx:87: The body size limit only checks the Content-Length header. A chunked request with no Content-Length gets through to request.formData() without a size cap. The final image size is still checked, and the edge proxy probably caps request bodies, but the per-IP rate limit only runs after the whole body has been parsed.
    • warn app/components/graffiti-editor.tsx:113: Static-check flag cleared: Math.random() here only randomises the spray pattern and drips, so it is not used for anything secret.
    • warn app/routes/wall.tsx:540: The placement preview and the brick background use data: URLs. If the platform's CSP doesn't allow data: in img-src, they won't render. That would be a visual problem only, not a security one.
    • warn: Reviewer's summary: Pass. This adds a graffiti wall at /wall that does what the idea asks. You draw with spray can, marker and eraser tools and a colour palette. You place a fixed-size rectangle on a grid. Hovering a piece shows the artist's @login. Each piece links to a website the artist chooses, and the wall scrolls both ways and only grows when there's no room left. Security and policy checks: - Uploads: only signed-in users can paint (requireViewer, which verifies the signed oojam token), and the artist's login is shown on each piece. - Image checks: the server checks the PNG signature, the IHDR size (must equal the canvas size), the IEND chunk and a 512 KB cap. - Image serving: images are served as image/png with nosniff and a sandbox CSP. - Links: only http(s) links are accepted. Links with a username or password are refused, as are bare hosts, and the cap is 300 characters. Links are rendered with rel="noopener noreferrer nofollow ugc". - Escaping: everything is rendered as escaped JSX, with no dangerouslySetInnerHTML. - Rate limits: painting is limited per IP and per GitHub user, and reporting per IP. Each artist can have at most 25 pieces up. - Report-to-hide: this follows the documented pattern, using a hashed reporter key and hiding a piece at 3 reports. Every public query filters out hidden pieces, including the image route. - Placement: checked again on the server inside a serializable transaction. - CSRF: the session cookie is SameSite=Lax, so cross-site POSTs don't carry it. - Other: no outbound network calls, no third-party resources, and no changes to managed or guardrail files. The migration only adds tables, and the snapshot chain is consistent (its prevId matches 0000). The static-check flags on Math.random() are false positives. It only adds random jitter to spray dots and paint drips, nothing secret.

Timeline

  1. freeze16 Oct 2026, 00:00 UTC

    Froze idea #2 "A graffiti wall people can collective draw on." with 1 votes. Budget $9.50.

  2. screen16 Oct 2026, 00:00 UTC

    Passed the pre-build screen.

  3. build16 Oct 2026, 00:00 UTC

    Attempt 1: the builder is working (budget $7.12, model claude-opus-5-5).

  4. build16 Oct 2026, 00:11 UTC

    Attempt 1 done; $2.28 spent.

  5. gate16 Oct 2026, 00:11 UTC

    Static checks

  6. gate16 Oct 2026, 00:11 UTC

    Building the image (typecheck, tests, build)

  7. gate16 Oct 2026, 00:12 UTC

    Smoke test against a copy of production data

  8. gate16 Oct 2026, 00:12 UTC

    Independent review

  9. pr16 Oct 2026, 00:12 UTC

    Opened https://github.com/oojam-dev/oojam/pull/1

  10. ci16 Oct 2026, 00:12 UTC

    Waiting for CI

  11. failed16 Oct 2026, 00:13 UTC

    CI failed: Typecheck, test, build: cancelled (https://github.com/oojam-dev/oojam/actions/runs/38828190728/job/116740503861); Migrate and serve: cancelled (https://github.com/oojam-dev/oojam/actions/runs/38828190728/job/116740503554)

  12. admin16 Oct 2026, 03:35 UTC

    Reopened: CI actually passed on the final commit (059987b). The worker read a stale PR head and saw the cancelled run for the first commit. Fixed in 27e40b7.

  13. ci16 Oct 2026, 03:40 UTC

    Waiting for CI on 059987bf5e73

  14. merge16 Oct 2026, 03:40 UTC

    Merged as a0bd29c3e0b6

  15. deploy16 Oct 2026, 03:40 UTC

    Building the image from main

  16. deploy16 Oct 2026, 03:41 UTC

    Backing up the site database

  17. deploy16 Oct 2026, 03:41 UTC

    Applying migrations

  18. deploy16 Oct 2026, 03:41 UTC

    Starting the new version

  19. deploy16 Oct 2026, 03:41 UTC

    Promoting

  20. deploy16 Oct 2026, 03:41 UTC

    Checking the public site

  21. deployed16 Oct 2026, 03:41 UTC

    Finished: deployed