▸ note01
Server-rendered catalog
Products are queried in a Server Component on every request, so the catalog is always fresh and indexable — no spinner while the client fetches data.
guest@gubanov:~$ cat ./projects/panamax/README.md
Website for a Volgograd coffee roaster — the catalog straight from PostgreSQL, an order form and a bold retro look.

// context
Panamax is a coffee shop, a store and a roastery in Volgograd. The site had to feel like the brand — heavy type, orange accents, coffee close-ups — and do two jobs: show the current coffee and collect orders.
It is a Next.js app with its own small backend: products live in PostgreSQL and are rendered on the server, the order form writes requests to the database, and a REST API adds new coffee without touching the code.
Versions 0.1–1.0 in spring 2026; the 1.1 redesign in November with Claude Code.
Built the site on Next.js 16 and React 19, split into entities, features, widgets and shared layers.
Catalog from PostgreSQL: products are rendered by Server Components inside Suspense; if the database is down, the page shows a calm fallback instead of an error.
REST API: GET and POST /api/products for the catalog, /api/contact for requests.
Order form with validation, a honeypot field and a per-IP cooldown; statuses instead of alerts, and the chosen coffee is filled into the message automatically.
Motion: marquees, scroll and pointer parallax, sections that reveal on scroll, scrambling text; a mobile menu and a 404 page.
Local infrastructure: PostgreSQL and Adminer in Docker Compose, the schema and seed data in db/init.sql.
Click a screenshot to open it full screen; arrow keys switch between them.
▸ note01
Products are queried in a Server Component on every request, so the catalog is always fresh and indexable — no spinner while the client fetches data.
▸ note02
The connection pool is created lazily and query errors turn into an ok: false state — the page still renders, and a dropped idle connection never crashes the server.
▸ note03
A hidden honeypot field and a 10-second cooldown per IP, taken from X-Forwarded-For behind the proxy, keep the form clean.
▸ note04
A coffee is a row in PostgreSQL with arrays for sizes and prices — adding a product is one request, not a deploy. On the public demo the catalog is read-only.
Next.js 16
App Router, Server Components
React 19
interface and Suspense
TypeScript
types for products and API
PostgreSQL
catalog and requests
node-postgres
a shared pool with graceful errors
Tailwind CSS 4, CSS Modules
styles
Docker Compose
local Postgres and Adminer
hamburger-react
mobile menu