All work

CASE STUDY · Personal product

Inspiration Garden

A library where people and AI agents collect inspiration together. I designed and built all of it, from the first commit to version 1.0 in 46 days.

inspo.jahattrinidad.com
Inspiration Garden library showing a collection of visual references

AT A GLANCE

My role
Product, design and code, on my own
Built with
Cloudflare Workers, Hono, D1, R2, React, three.js and Zod
Status
Live at inspo.jahattrinidad.com, about 190 items, in daily use
Who adds to it
Me, plus Claude Code, Codex and OpenCode through the same API

01 — THE PROBLEM

My references were everywhere, so I could never find them.

Ideas I saved lived in bookmarks, screenshots, chats and a hundred open tabs. When a project needed them, they were gone.

I wanted one place that is quick to fill and easy to search, and that an AI assistant can help keep in order, not only me.

Requirements
Six item kinds with shared and specific fields. Public reads; writes only from the owner and owner-issued agent tokens.
Constraint
No server to babysit and no database that sleeps: Cloudflare Workers, D1, R2, Images and Access.

02 — WHAT IT DOES

One place to save, find and reuse what inspires me.

Search and filters in Inspiration Garden

Find anything in seconds

Search with filters for kind, tag and colour, all inside one bar at the bottom of the screen.

Under the hood
FTS5 prefix search over D1, with kind, category tree, tags and dominant colour as filters on the same request.
Different kinds of items in Inspiration Garden

Six kinds of things, one place

Images, links, notes, videos, colour palettes and fonts, each one with its tags and where it came from.

Under the hood
Links unfurl their title and preview on save, and the preview image is copied to R2 so it outlives the source page. Image colours are indexed for search.
Inspiration Garden on a phone

Works on a phone, too

Install it like an app. Every window becomes a sheet you can reach with your thumb.

Under the hood
Installable as a PWA. Below 480 px every dialog rises as a bottom sheet sized to its content; the canvas, search and API stay the same.
~/projects · claude

> organize the garden: clean up the tags, put everything in English and sort it into categories

● Loading skill inspiration-garden
  GET /api/tags          75 tags
  PATCH /api/tags/:id    merge ia → ai, ui → ux/ui …
  PATCH /api/items/:id   ~35 translated, 26 titled
  POST /api/categories   4 roots, 9 leaves

Done: 75 → 64 tags, 190 items sorted into Web Design, AI, Learning and Dev Resources.
Reconstructed from the 15 Nov cleanup session [Owner: confirm wording]

AI agents keep it tidy

Claude Code, Codex and OpenCode save, tag and clean up items for me, through the same API the app uses.

Under the hood
An Agent Skill teaches them to search narrowly, so a page of 100 items (about 70 KB) never floods their context. The OpenAPI 3.1 spec comes from the same Zod schemas.

03 — DECISIONS

Four decisions, and what each one cost.

The choiceWhyWhat it cost
The choice

The site and its data live at one address

one origin · API + app on one Worker
Why

My login is a cookie the browser sends on its own. With the API on another address that breaks: CORS becomes mandatory and the CSRF guard loses its same-origin check.

What it cost

One deploy unit: the interface and the API always ship together.

The choice

AI assistants are trusted helpers, not guests

agents write directly · no review inbox
Why

Agents use the same API as the app, with read or read + write tokens I can revoke one by one.

What it cost

Trust over moderation. Revision history, soft delete and a recorded source soften it, but on day 53 one bad patch still cleared 58 items’ tags.

The choice

One shape for every kind of item

hybrid data model
Why

Core columns for what every item shares and a JSON field for what each kind needs, so a new kind does not need a new table.

What it cost

D1 cannot enforce the JSON, so shared Zod schemas validate it in the client and in the API.

The choice

Thumbnails, never originals

thumbnails at the edge
Why

Cards were downloading full originals: 265 MB per session on a phone. Cloudflare Images makes WebP thumbnails once per width, and media fell to about 1.2 MB.

What it cost

A dependency on Cloudflare Images. If a thumbnail cannot be made, the card falls back to the original and retries later.

04 — WHAT I GOT WRONG

Two things I got wrong.

The sky I loved went unnoticed

The first version had a sky behind the canvas and light frosted glass panels. After a few days of real use, nobody noticed the sky and the glass no longer fit. On day 11 (PR #1) I cleared the canvas to a solid dark colour, swapped the glass for solid cartoon panels and made navigation faster. Glass came back on day 35: dark, 75% opaque, and tuned so text stays at WCAG AA even over a pure white card.

Filters

KIND

Image  Link  Video  Font

TAGS

design 137 · portfolio 61 · ai 39
v0.1.0 · DAY 7 — sky and light glass
Lavender sky, glass at 65%, ink text
Filters

KIND

Image  Link  Video  Font

TAGS

design 137 · portfolio 61 · ai 39
DAY 11 · PR #1 — solid ground, cartoon panels
Ink on solid lavender: about 14:1
Filters

KIND

Image  Link  Video  Font

TAGS

design 137 · portfolio 61 · ai 39
DAY 35 → TODAY — dark glass, 75% opaque
Text 5.3:1 even over a pure white card

Panels rebuilt from each release’s design tokens, not screenshots.

An agent wiped the tags of 58 items

On day 53 an agent cleaned up the garden for me, and 58 items lost every tag. The API read a missing tags field as an empty list: a Zod default survives .partial(), so a patch that only fixed a title also cleared the tags. I restored them from a local snapshot, and hotfix v1.2.1 shipped the same day: an omitted list now keeps the stored one.

// packages/shared/src/primitives.ts
export const tagsSchema = z
  …
  .default([]);

PATCH /api/items/:id
{ "kind": "link", "title": "…" }
→ tags: []
58 items
BEFORE · v1.2.0 — a missing list meant an empty one
// patch schema: no defaults
// omitted ≠ cleared
tags: tagListSchema.optional(),


PATCH /api/items/:id
{ "kind": "link", "title": "…" }
→ tags: unchanged
AFTER · v1.2.1, same day — omitted keeps the stored list

05 — HOW IT GREW

Small releases, one foundation, no rebuilds.

DAY 0

The foundation came first

Monorepo, data schema and FTS5 search in the first commit.

DAY 7

In daily use within a week

v0.1.0 live on Cloudflare Workers.

DAY 36

Shipped in small steps

10 releases in one day: v0.5.0 → v0.8.1, interface and speed.

DAY 46

v1.0 without a rewrite

Phones, PWA install and search on the same API.

33 releases

Each one runs lint, typecheck, tests, D1 migrations, deploy and a health check on its own. Shipping small is cheap when the checks are automatic.

Where it is now

Live and in daily use: about 190 items under 64 tags, sorted into four categories. An agent did that last cleanup through the API, and the canvas keeps up with all of it.

What I would do differently

Use the product with real content before polishing the look. The sky took days to build, and I only learned it went unnoticed by using the first release.

NEXT CASE STUDY

Viora

All work →

CONTACT

06 — CONTACT · FOR DEVELOPERS

Looking for someone who can design it and build it? Let’s talk.You've seen how I build. What should we build together?

Looking for
An internship in frontend or product design engineering
Available
Now
Based in
Lima, Peru open to remote

Jahat Trinidad

OPEN TO AN INTERNSHIP

YOU WROTE

[component · composer]free text or a chip · scripted, no AI model

Goes straight to my inbox.

  1. [component · composer]free text or a chip · scripted, no AI model