# NoaSpot API

The REST API behind NoaSpot, a curated travel guide for iOS: it serves cities, places, routes, saved places and semantic search, and feeds the app and the admin dashboard from one OpenAPI contract. The hard parts were search without a slow model call and district borders that stay consistent.

- **Facts:** 2026, Built for a client, Live, role: Sole developer
- **What I did:** I built the whole REST API alone and defined the contract the iOS app consumes.
- **Scope:** backend
- **Domain:** travel
- **Stack:** Hono, TypeScript, Prisma, PostgreSQL, Better Auth, Zod OpenAPI, Upstash Vector, Upstash Redis, Gemini API, Vercel AI SDK, OpenAPI, Pino, Railway, Vitest, REST APIs, Cron jobs, Google Maps, Nodemailer, Twilio, Docker Compose, Cloudinary, sharp, GitHub Actions, Zod, Husky, Biome, Ultracite, T3 Env, date-fns, Claude Code, Docker, pnpm
- **Page:** https://sergey-petrinich.vercel.app/work/noaspot-api
- **Screenshot:** https://sergey-petrinich.vercel.app/work/noaspot.webp

Capabilities:

- 80+ operations, documented in OpenAPI 3.1 with a Scalar reference
- 20+ Prisma models and 15+ migrations on PostgreSQL
- One request pipeline with a global error boundary and one structured log line per request
- Semantic search on Upstash Vector with Gemini embeddings, and tags and districts derived from the query
- Recommendations of three places from different categories, ranked by quality, not distance
- Saved places, curated routes, recent searches and a hand-ordered picks list per city
- Seed, Google Places enrichment, Cloudinary photos and generated map pins, with a monthly refresh
- District borders simplified as one topology, and a grid layout stored in the database
- Data-health endpoint for missing, invalid and overlapping boundaries
- 90+ test files, unit tests without a server and e2e tests over HTTP on a seeded database
- CI with audit, OpenAPI export, lint, typecheck, migrations, tests and build

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
