PromptGram
A solo full-stack project from planning to deployment, under one self-imposed rule: usable and deployed within two weeks.
A social feed for saving AI prompts as cards, finding them by tag and sharing them. Shipped in two weeks.
What this project gave me
- Cutting scope to a two-week deadline and shipping to production
- Designing ahead for problems that appear at scale, such as cursor pagination, token rotation and rate limits
- Wrapping an external LLM API's failures (429s, timeouts) in caching and backoff so users never see them
- Period
- Jul 2026 (2 weeks)
- Team
- Solo
- Role
- Planning · design · full stack · deployment
- Status
- Live
- Highlights
- 31 endpoints, 11 tables and 22 pytest cases built within two weeks, with GitHub Actions running the tests and the build on every push, deployed on Vercel + Render
- Variable templates: [placeholders] in a prompt are detected and filled in before copying
- Gemini tuning with a 24-hour cache, 5 requests per minute per user and exponential backoff on 429
- Stack
- Vue 3
- Pinia
- Tailwind
- GSAP
- FastAPI
- SQLAlchemy
- PostgreSQL
- Redis
- Alembic
- Gemini API
- Vercel
- Render
- Supabase
Feed: prompt cards with [variables] highlighted, plus like, save and copy counts
Detail: fill in the variable fields and copy the finished prompt
Background and goal
Good prompts end up scattered across notes and chat history. I wanted a feed where they are saved as cards, found by tag and borrowed from others.
Main features
- Prompt CRUD with target model (ChatGPT, Claude, Gemini) and public or private visibility
- Variable templates:
[placeholders]in the body are detected, filled in through inputs and copied as a finished prompt - Masonry feed with cursor-based infinite scroll, newest and popular sorting,
#tagfilters and keyword search - A FLIP detail modal that expands the card in place, and card PNG download
- Likes, bookmarks, comments, follows and three kinds of notifications
- Gemini suggests an improved prompt with reasons and three to five tags
Architecture
Vue 3 + Pinia on Vercel, FastAPI + async SQLAlchemy on Render, PostgreSQL 16 on Supabase, Redis on Upstash for caching and rate limits. The server applies Alembic migrations on startup. GitHub Actions runs pytest and the front-end build on every push.
Problems solved
- Korean particles made tsvector full-text search a poor fit, so search uses a pg_trgm GIN index with ILIKE.
- Offset pagination duplicates items when new posts arrive, so (created_at, id) and (like_count, id) compound cursors are passed as base64.
- Gemini is called over REST without an SDK. On 429 the client retries up to three times with jittered exponential backoff, and identical requests are cached for 24 hours.
- Refresh tokens are stored hashed and rotated on every use. A reused token is rejected with 401.
Results
- 44 commits, about 7,000 lines (4,600 front-end, 2,400 back-end), a 1,182-line landing page
- 31 endpoints, 11 tables, 7 migrations, 22 pytest cases, Playwright end-to-end checks
- The live site is still running
Looking back
The landing page carried a lot of scroll choreography. I later extracted that pattern into a reusable skill and used it on another project.