Novi Sad, Serbia
Pavle Jovanović
Senior full stack engineer · Team lead
Full stack engineer and team lead with six years of building for the web, mobile and ecommerce. Right now I lead frontend at Florbs, a Google Workspace security and automation platform, working across React, Python, Go and Kotlin. Before that: Next.js and NestJS products, React Native apps, AI features built on LLMs and RAG, and high-traffic stores for brands like FENDI Casa and Louis Poulsen. I like owning a feature end to end, from the database to the last pixel, and helping a team ship well.
- Building since
- 2020
- 6+ years
- Now
- Florbs
- Frontend team lead
- Projects
- 10
- shipped & shown
- Skills
- 48
- across 7 areas
Skill constellation
Every skill, linked to the ones it was used with. Step inside it in the 3D studio.
01 / Experience
Experience
Apr 2025 – Present
Frontend team lead · Full stack engineer · Florbs
Leading a frontend team of four on a Google Workspace security and automation platform (Netherlands, remote). Building features end to end: React and TypeScript on the front, Python APIs behind them, and later Go and Kotlin services.
- React
- TypeScript
- Python
- Go
- Kotlin
- BigQuery
- PostgreSQL
- Google Cloud
- Terraform
Apr 2025 – Apr 2026
Team lead · Nortik Software Solutions
Led a team of three across five client projects, owning delivery and code quality for Next.js and NestJS web apps and React Native mobile apps. Set up and ran the AWS infrastructure for all of them, and built AI features including a RAG assistant.
- Next.js
- NestJS
- React Native
- AWS
- Python
- LLM integration
- RAG
Mar 2024 – Apr 2025
Full stack engineer · nQode Solutions
Client work, mostly on Source, a greenhouse analytics platform: real-time sensor data, yield prediction and comparisons, built with Next.js, GraphQL and NestJS.
- Next.js
- GraphQL
- NestJS
- TypeScript
Aug 2023 – Mar 2024
Magento 2 developer · Bee IT
Merged Lilly Drogerie's web shop and marketing site into one Magento 2 platform, built a loyalty programme and improved the UX across full stack features.
- Magento 2
- PHP
- JavaScript
Jun 2021 – Aug 2023
Salesforce Commerce Cloud developer · Bee IT
Backend ecommerce features in Node.js on SFCC for Flos, B&B Italia, Louis Poulsen and FENDI Casa: Adyen payments and fraud detection, multi-shipping and a store locator.
- Salesforce Commerce Cloud
- Node.js
- Adyen
Jan 2020 – Present
Full stack developer · Freelance
Where it started, and still going alongside the day job: booking apps for a hair studio and a bus company, a face recognition app with a rewards scheme, and client work since, built with React, Next.js and Express.
- React
- Next.js
- Express
- MySQL
02 / Projects
Projects
Products I built or led, the latest first.
- 2026Featured
Moj Vulkanizer
A booking platform for tire shops. Every shop gets its own subdomain, customers book through a chat-style flow, and owners run the day from a mobile-first admin panel. An availability engine handles hours, holidays, service bays and time zones, and a PostgreSQL exclusion constraint makes double bookings impossible. Push notifications (iOS included) and WhatsApp reminders keep everyone on time.
- Next.js
- React
- TypeScript
- PostgreSQL
- Drizzle ORM
- Tailwind CSS
- Better Auth
- Vitest
- PWA
- GitHub Actions
- Vercel
- Neon
- Docker
- 2026
Knowledge Loft
This place. A first-person 3D portfolio you can walk through, with the real sun path and live weather of Novi Sad, synthesised ambient sound, and every room built from data. A playground for learning 3D rendering, shaders and, next, AI.
- Next.js
- React
- TypeScript
- three.js
- WebGL
- Web Audio
- 2025
Florbs: Google Workspace security
Leading the frontend of a B2B platform that secures and automates Google Workspace: Drive sharing audits, security posture scoring, risk ratings for third-party apps and AI tools, workflow automation and backup, plus an internal admin tool for support and sales.
- React
- TypeScript
- Python
- Go
- Kotlin
- BigQuery
- PostgreSQL
- Google Cloud
- Terraform
- 2025
AI energy optimisation and booking
A platform that books energy-hungry work for when it is cheapest, with Python models behind a Next.js app. Alongside it, an internal RAG assistant that answers questions over product documentation and analytics data, running on AWS Bedrock.
- Next.js
- Python
- LLM integration
- RAG
- AWS
- AWS Bedrock
- 2024
Source: greenhouse analytics
Frontend and backend for a greenhouse analytics platform: real-time sensor data, yield prediction simulations, and side-by-side comparisons across greenhouses.
- Next.js
- GraphQL
- NestJS
- TypeScript
- 2023
Lilly Drogerie web shop
Merged a drugstore chain's web shop and marketing site into a single Magento 2 platform, added a loyalty programme and reworked the UX.
- Magento 2
- PHP
- JavaScript
- 2022
Ecommerce for design brands
Backend features on Salesforce Commerce Cloud for Flos, B&B Italia, Louis Poulsen and FENDI Casa: Adyen payments with fraud detection, multi-address shipping and a Google Maps store locator.
- Salesforce Commerce Cloud
- Node.js
- Adyen
- Google Maps
- 2021
Pasionis
Booking app for a hair studio. Clients pick a day and a free slot; staff accept or cancel bookings and set their working hours from an admin dashboard.
- Next.js
- React
- 2020
RecognAi
Face recognition with a twist: every face found in your photos (via the Clarifai API) earned a point, and points turned into discount codes from partner shops.
- React
- Express
- MySQL
- Clarifai
- 2020
Eurocompass
Bus seat reservations in React, deployed on Netlify, with serverless functions that email each booking request to the bus station.
- React
- Netlify
- Serverless functions
03 / Skills
Skills
Grouped by area. The highlighted ones I've used the most across projects and roles.
Languages
- TypeScript
- Python
- JavaScript
- Go
- Kotlin
- PHP
Frontend & mobile
- React
- Next.js
- React Native
- Tailwind CSS
- PWA
- three.js
- WebGL
- Web Audio
- Vite
- MUI
Backend & APIs
- NestJS
- Node.js
- Express
- GraphQL
- Drizzle ORM
- Better Auth
Data
- PostgreSQL
- MySQL
- BigQuery
- MongoDB
Cloud & DevOps
- AWS
- Google Cloud
- Terraform
- Docker
- GitHub Actions
- Vitest
- Vercel
- Neon
- Netlify
- Serverless functions
AI & LLMs
- LLM integration
- RAG
- AWS Bedrock
- Clarifai
- LangChain
- Pinecone
- Agentic coding
Ecommerce & integrations
- Salesforce Commerce Cloud
- Magento 2
- Adyen
- Google Maps
- Stripe
04 / Right now
Right now
What I'm up to. Updated 26 November 2026.
Building
Knowledge Loft
This place: a walkable 3D portfolio with real sun, live weather and GitHub data. Next up, an AI guide.
Source on GitHub ↗Working on
Florbs
Leading frontend on a Google Workspace security and automation platform.
Learning
3D, shaders & AI agents
three.js and GLSL for this loft, and building LLM features into real products.
05 / Field notes
Field notes
The books on the lobby shelf: what I know, problems I've solved, and things I learned along the way. Open one to read it.
Field note · AIHow AI integrations workThe moving parts behind "add AI to it", and how to choose between them.
Under every AI feature is one HTTP request: send text to a model, get text back. Everything else is technique on top of that.
The basics
- Tokens. Models read and write chunks of about three quarters of a word. You pay per token, separately for what you send and what comes back.
- Stateless. The model remembers nothing between requests. A conversation means sending the whole history every time, and paying for it again.
- Context window. How much the model can read in one request. Current models take a million tokens; most portfolios, docs or product catalogues fit with room to spare.
- System prompt. The instructions channel: who the model is, what it may use, what it must not do. Users can't overwrite it, but they can try to talk it out of it.
- Streaming. The answer arrives as it's written instead of all at once. It doesn't make the model faster, but it makes the feature feel fast.
Giving a model knowledge
- Put it all in the prompt. The simplest and most reliable when the content fits: the model sees everything, so nothing can fail to be found. Prompt caching makes the repeated part cheap.
- RAG (retrieval-augmented generation). Split content into chunks, store them as embeddings, and send only the closest few per question. It scales to millions of documents, but every wrong answer is usually a retrieval miss. RAG is a workaround for content that doesn't fit.
- Fine-tuning. Training the model further. Good for a style or a format, wrong for facts: they go stale, and you'd retrain for every change.
- Tools. Describe functions to the model; it asks you to run one and continues with the result. This is how a model does things or fetches live data.
- Agents. A model chaining tool calls on its own toward a goal. Powerful for open-ended work, and slower, costlier and harder to control.
SDK, abstraction or your own model
A provider's own SDK gives every feature first. An abstraction layer makes switching providers easy, at the cost of the features they don't share. Self-hosting an open model removes the per-token bill and adds GPUs and operations. Whichever you choose, the API key lives on the server, never in the browser.
Picking a model
Start with the smallest model that answers well, and measure before moving up. For grounded Q&A over a few thousand words, a fast, cheap model is usually enough; the bigger ones earn their price on reasoning and long, multi-step work.
Field note · AIShipping LLM featuresWhat it takes to get an AI feature from a good demo to something people trust.
I've built LLM features into real products, most recently an internal RAG assistant that answers questions over product documentation and analytics data on AWS Bedrock. The demo is the easy part. These are the things that decided whether people actually used it.
Retrieval matters more than the model
Most bad answers were retrieval problems, not model problems: the right passage was never found, or it was cut in half by the chunking. Time spent on chunking, metadata and search quality paid off more than switching models.
Show your sources
An answer with links to the documents it came from can be checked in seconds. Without them, one confident wrong answer and people stop trusting the whole tool.
Keep a small test set
A list of real questions with known good answers, run after every prompt or retrieval change. Without it, every "improvement" is a guess.
Budget latency and cost early
Streaming, caching and choosing a smaller model where a big one isn't needed are design decisions, not things to bolt on once the bill arrives.
Allow "I don't know"
The assistant should be allowed, and told, to say it doesn't know when retrieval finds nothing relevant.
Field note · EcommerceEcommerce for big brandsWhat stores for FENDI Casa, Louis Poulsen and others taught me about commerce code.
I built backend features on Salesforce Commerce Cloud for design brands like Flos, B&B Italia, Louis Poulsen and FENDI Casa, and later worked on Magento 2 for a drugstore chain. Commerce code is unforgiving: every bug costs someone money.
Payments are a state machine
Authorised, captured, refunded, failed, under fraud review: model the states and transitions explicitly (we used Adyen), and make every webhook safe to receive twice.
Checkout edge cases are the product
Multi-address shipping, split deliveries, store pickup. Those "rare" paths are where the expensive bugs live.
The platform has opinions
SFCC and Magento both reward working with their extension points and punish fighting them. Learn the platform's way before adding your own.
Content and commerce drift apart
Shops and marketing sites tend to grow separately. Bringing them together (see the Lilly Drogerie case file) removes a whole class of inconsistencies.
Field note · CraftLaunching a SaaS for freeGetting Moj Vulkanizer into production without paying anything up front, and knowing when that ends.
I didn't want to spend money on Moj Vulkanizer before knowing whether anyone would pay for it. Here's how that turned out.
The plan that didn't survive
The first plan was a small Hetzner server running Coolify (self-hosted, so no €5 a month for the hosted dashboard). Hetzner wanted a card, then an account verification before the first project, where the quick option was a prepayment. Reasonable for them, but money spent before I knew anything.
What it runs on instead
- Vercel's free Hobby plan for the Next.js app: no card, deploys straight from GitHub.
- Neon's free Postgres. The app only needs a standard
DATABASE_URL, so moving later is easy. - A Namecheap domain, the one real cost.
- Maps without Google: MapLibre for the map, OpenFreeMap for the tiles and Photon for address search. All free, commercial use included. "Get directions" is a plain Google Maps link, which needs no key.
Know where free ends
Vercel's Hobby plan is for non-commercial use only. The day shops start paying, the app moves to Pro. That's fine, as long as it's a known step and not a surprise.
The rules I'd keep
- Keep everything portable: standard Postgres, a standard Next.js app, nothing tied to one host.
- Read the terms, not just the price.
- Spend money when there's revenue to spend.
Field note · CraftOwning features end to endWhy I like building a feature from the database to the last pixel, and how I go about it.
I'm happiest owning a feature across the whole stack: the schema, the API, the UI and the deploy. A few habits make that work:
- Start from the data. Get the model and its constraints right first. A rule the database enforces can't be broken by a bug in the UI.
- Make the API boring. Predictable names, typed contracts, errors that say what went wrong.
- Build the UI around real states. Loading, empty, error and "too much data" are designed in from the start, not discovered in production.
- Ship small, behind a flag if needed. A thin slice in production teaches more than a perfect branch.
- Leave it observable. Logs and metrics that answer "is it working?" without reading the code.
The benefit is that there are no hand-offs to lose context in. The risk is going deep on one layer for too long, so I timebox.
Field note · CraftPicking up new languages fastGoing from React and TypeScript to Python, Go and Kotlin on the same product.
At Florbs I started on React and TypeScript, then worked on the Python APIs behind them, and later on Go and Kotlin services. Learning a language on a live product is different from learning it from a book. What helps me:
- Read the codebase before the tutorial. The team's conventions matter more than the language's full feature list.
- Learn the toolchain first. How to run, test, debug and format. Once that loop is fast, everything else is quicker to learn.
- Start with small changes. A small endpoint, a migration, a test, reviewed by people who know the language well.
- Map, don't translate. Go's errors and Kotlin's null safety aren't TypeScript with different syntax. Write them the way the language wants.
- Keep notes. Things that surprised me go in a list; that list is how this shelf started.
Field note · CraftReminders people don't hateDesigning Moj Vulkanizer's seasonal "time to change your tyres" reminders.
Tire shops live by the seasons: twice a year, everyone needs a change. Reminding customers at the right time brings them back, but a careless reminder is spam. How I approached it:
Ask first
A checkbox when someone books asks whether to remind them next season. It only appears when they book a seasonal tire change, not a wash or a repair.
One message per person, not per car
We first considered one reminder per vehicle. But all of a customer's cars change tyres in the same season, so that would mean three messages for three cars. Now each customer gets one message, with a personal link to the booking chat, where they can book every car in one visit.
The link does the work
The personal link records that it was opened, then goes straight to booking. Opting out is on the same page, one tap.
Send from the shop's own WhatsApp
The official WhatsApp Business API charges per conversation and needs business verification, which is a lot for a small shop. Instead, the admin panel builds a daily queue, with a limit, of ready-made
wa.melinks. The owner taps each one to send it from their own WhatsApp, and it's marked as sent.The principle
A reminder should be welcome, easy to act on and easy to stop.
Field note · FrontendReact apps that survive growthThe habits that keep a React codebase pleasant once it has many features and many people.
Most React codebases don't fail because of React. They fail because nobody can find anything, and every change breaks something far away. What helps:
Organise by feature
Keep a feature's components, hooks, API calls and types together. A folder you can delete is a feature with clear edges.
Keep server state and UI state apart
Data from the API lives in a cache layer; UI state stays local to where it's used. Global state is the exception, kept small and named well.
Types at the edges
Validate what comes from the network once, at the boundary, then trust the types inside.
Design components for their states
Loading, empty and error are props and stories too, not afterthoughts.
Measure before optimising
Profile first, then memoise. Most slowness is too much rendering or too much JavaScript, and both are visible in the tools.
Field note · LeadershipLeading a small teamHow I run a team of three or four engineers while still writing code myself.
I've led small teams twice: three engineers across five client projects at Nortik, and a frontend team of four at Florbs. Both times I was also writing code. What works for me:
Make ownership explicit
Every feature has one owner from the first ticket to production. The owner doesn't do all the work, but they know its state and they decide.
Reviews are for the team, not the gate
Code review is where conventions spread and where people learn the parts of the codebase they don't usually touch. I try to review quickly, explain the "why", and mark nitpicks as optional.
Protect focus
Fewer meetings, written decisions, and one place to look for what matters this week.
Stay hands-on, carefully
Writing code keeps my estimates honest and my reviews grounded. The trap is taking the critical-path work myself and becoming the bottleneck, so I pick the work that unblocks others instead.
Say what good looks like
Clear expectations up front save hard conversations later.
Case file · AIBuilding the loft's AI kioskA kiosk in this loft that answers questions about me and can walk you to what it's talking about.
Context
Recruiters often want one answer, not a tour: has he led a team, what's his strongest project. The lobby kiosk answers in seconds, from the same content the rooms are built from.
Approach
- Everything in the prompt, no RAG. The whole portfolio, notes included, is about 11,500 tokens. It's generated from the site's content on every server start, so a new project is something the kiosk knows straight away, and nothing can fail to be found.
- A small, fast model. Short, grounded answers don't need a big model. Thinking is off and effort is low, so answers start quickly.
- Prompt caching. The instructions, tools and portfolio are the same on every request, so they're cached. The first question writes 11,500 tokens to the cache; the next ones read them at a fraction of the price, and only about 20 new tokens are billed in full.
- Streaming. The answer is typed out on the kiosk's screen as it's written.
- Tools for "take me there". Three tools take visitors to a room, an exhibit or a role. Their inputs are fixed lists of real places, and the server validates every call before acting. The stream carries both text and actions, one JSON event per line.
Guarding a public endpoint
- Cost. A per-visitor rate limit, a daily cap and a cap on answer length. The rate limit lives in memory, so on serverless it's soft; the monthly spend limit at the provider is the hard one.
- Prompt injection. "Ignore your instructions" gets a polite refusal. The real protection is that the kiosk has no secrets and no dangerous tools: the worst case is an off-topic reply.
- Hallucination. It answers only from the portfolio and says when it doesn't know, pointing to the CV instead of guessing salaries or dates.
- Refusals. A refused answer is never acted on, in case it was cut off mid-tool-call.
Result
Accurate, short answers with directions to the right room, a fraction of a cent per question, and a camera that flies you to the exhibit you asked about.
What I'd keep
Tool descriptions are how you steer a model. One of my projects shares its name with an employer, and "take me to that exhibit" first went to the job instead. One line in the description, "exhibit means a project", fixed it.
Case file · BackendCase: a subdomain per shopGiving every shop on Moj Vulkanizer its own address, on a free hosting plan, without breaking login.
Project: Moj Vulkanizer, a booking platform for tire shops.
The problem
Shop owners send their admin link around, so
mojvulkanizer.com/admin/my-shopshould bemy-shop.mojvulkanizer.com. The platform's own dashboard should live atplatform.mojvulkanizer.com. All of it on Vercel's free plan, with the domain staying at Namecheap.The approach
- DNS: a wildcard
*CNAME pointing at Vercel. Vercel's free plan does support wildcard domains. - The certificate was the tricky part. A wildcard SSL certificate needs a DNS-01 challenge, and Vercel can't answer it while the domain's DNS lives elsewhere. The fix: two NS records that hand only
_acme-challengeto Vercel's nameservers. Everything else, email forwarding included, stays at Namecheap. - Routing: Next.js middleware rewrites
{shop}.mojvulkanizer.comto/admin/{shop}andplatform.to/platforma. The customer booking page stays on the main domain. - Login across subdomains: Better Auth's cross-subdomain cookies and wildcard trusted origins, so one sign-in works everywhere.
What broke along the way
- Login redirects lost their place, until the
nextparameter survived the hop between hosts. - Nav links still contained
/admin/{shop}, so paths doubled up on the subdomain. Links became host-aware. - The platform rewrite swallowed the password-reset pages, which now pass straight through.
- Signups can no longer take reserved names like
platform.
Result
Every shop has its own address. I checked it in production with
curl: each subdomain answers with the expected rewrite.- DNS: a wildcard
Case file · BackendCase: game servers for friendsGameNest, a dashboard that starts game servers for my friends and me in a few clicks.
Project: GameNest, a personal project in progress.
The problem
My friends and I play survival and co-op games. Setting up a dedicated server each time means installing, configuring, opening ports and remembering how it all worked last time. I wanted a dashboard: pick a game, click, and get an address to share. It should run on my own PC now and in the cloud later, and maybe one day other people would pay for it.
The approach
The key decision was to split the control plane from the node agent, the same way Pterodactyl (panel and wings) and Kubernetes (control plane and kubelet) are built:
- Control plane: a NestJS API with Postgres (through Prisma) and a React dashboard. It knows who owns what.
- Node agent: a small NestJS service on each machine that runs servers, using Docker through
dockerode. It's deliberately simple. - The agent dials out. It opens a WebSocket to the API, registers with a token and sends a heartbeat every 15 seconds. Because the connection starts from the agent, a home PC behind a router works the same as a cloud machine.
- Typed end to end. A
shared-typespackage holds the WebSocket protocol, so the API and the agent can't disagree about a message (a pnpm and Turborepo monorepo).
Games are data
Each game is a template: a Docker image, its ports, settings and defaults. Adding a game means adding a template, not writing code. Minecraft and 7 Days to Die work today, with port allocation so several servers can share one machine, a restart button, and email or Google sign-in.
Where it stands
It works for us. Next on the list: an honest "preparing" status and, eventually, the cloud.
Case file · BackendCase: no double bookingsMaking it impossible, not just unlikely, for two customers to book the same slot.
Project: Moj Vulkanizer, a booking platform for tire shops.
The problem
Two customers can open the same free slot at the same moment. Checking availability in application code and then inserting is a race: both checks pass, both inserts succeed, and the shop has a conflict.
The approach
Let the database enforce it. PostgreSQL has exclusion constraints: a constraint that rejects a row if it conflicts with an existing one under rules you define. With the
btree_gistextension, "same service bay and overlapping time range" can be declared as a conflict.The application still checks availability to show free slots, but correctness no longer depends on it. A losing insert fails with a clear error, and the customer is offered another time.
Around it
- An availability engine for opening hours, holidays, service bays and time zones.
- Times stored in UTC, shown in the shop's time zone.
- Reminders over WhatsApp and push notifications, iOS included.
Result
Double bookings went from unlikely to impossible by construction.
Case file · BackendCase: tire shops to car washesHow a booking app built for tire shops took on a car wash without a rewrite.
Project: Moj Vulkanizer.
The problem
The app was built for tire shops: seasonal tire changes, three vehicle types, tire-specific wording. Then a potential client turned up who washes cars, and some shops wanted to offer bikes or motorbikes.
The approach
Most of the work had been done earlier, by modelling one level more generally than the first customer needed:
- Services have a kind. "Seasonal tire change" is one kind; everything else is "other", with its own prices and durations per vehicle type.
- Vehicle types belong to each shop. A shop adds bikes or motorbikes and sets prices for them; the others never see them.
- Tire-only features check the kind. The "remind me next season" checkbox only appears when a customer books a seasonal tire change, so a car wash customer never sees it.
So a car wash could add services like interior cleaning without a single code change. What stayed tire-specific was wording: the product name, the domain and some landing page copy.
Result
The car wash is on the platform alongside the first tire shops.
What I took from it
A first customer defines the problem, not the data model. Model the general case ("a service, for a kind of vehicle") and let the specific one ("seasonal tire change") be a value in it.
Case file · EcommerceCase: one Magento, shop and siteMerging a drugstore's web shop and marketing site into a single Magento 2 platform.
Project: Lilly Drogerie, at Bee IT.
The problem
The web shop and the marketing website were separate systems. Content and products drifted apart, and every campaign had to be built twice.
The approach
Bring both onto one Magento 2 platform: marketing pages and product pages served by the same system, sharing the same catalogue, navigation and design.
Along the way
- A loyalty programme built into the shop.
- UX improvements across browsing and checkout.
- Full stack work across PHP and JavaScript.
What I took from it
Consolidating platforms is mostly about content migration and agreeing who owns what. The code is the smaller half.
Case file · FrontendCase: a 3D portfolio on a laptopBuilding this loft so it looks real and still runs smoothly in a browser.
Project: Knowledge Loft, the place you're standing in.
The problem
A walkable 3D space with real furniture, live sun and weather, and sound, that loads quickly and runs smoothly on an ordinary laptop, not just a gaming PC.
The approach
- Real models, made small. Free models from Poly Haven and Sketchfab go through a build script that merges meshes, simplifies dense ones, resizes textures to WebP and compresses geometry with meshopt: 53 MB of sources became about 8 MB.
- Few draw calls. Hundreds of stars and LEDs are one instanced mesh each. Small props don't cast shadows.
- Light that follows the real sky. The sun is computed for Novi Sad's actual time and date, and the sky is captured into an environment map every half second, so reflections change with the weather.
- Sound with no files. Rain, wind, birds and footsteps are synthesised with the Web Audio API.
- Text stays text. Screens and books show real HTML placed in 3D, so it's sharp and its links work.
Result
Around 300 draw calls per frame, smooth on a laptop, and every room is built from data.
Today I learned · AITIL: prompt cachingHow a repeated prompt gets cheap, and the one rule that keeps it cached.
When most of a prompt is the same on every request (instructions, documents, tool definitions), mark the end of that shared part as cacheable. The provider keeps it for a few minutes; requests in that window read it at a fraction of the input price and start answering sooner.
On the kiosk in this loft: the first question writes about 11,500 tokens to the cache, every question after that reads them, and only the ~20 new tokens of the question are billed in full.
The rule: caching matches the prompt's beginning exactly. A timestamp, a random ID or a shuffled list anywhere in the cached part makes every request a miss, silently. So stable content goes first, what changes per request goes last, and the usage numbers in the response tell you whether it's working.
Today I learned · BackendTIL: exclusion constraintsPostgreSQL can reject overlapping time ranges by itself.
A unique constraint stops two equal values. An exclusion constraint stops two rows that conflict under an operator you choose, for example overlapping time ranges:
create extension if not exists btree_gist; alter table bookings add constraint no_overlap exclude using gist (bay_id with =, during with &&);&&means "overlaps". Two bookings for the same bay with overlappingduringranges can no longer both exist, however the application races.Today I learned · BackendTIL: LinuxGSM for game serversOne tool that installs and runs about 180 different game servers.
GameNest started with a different Docker image for each game, each with its own quirks. The 7 Days to Die one kept giving connection timeouts, because the server never finished setting itself up.
LinuxGSM is a long-running command-line tool that installs, configures, updates and starts dedicated game servers (through SteamCMD) in one standard way, for about 180 games. It has an official, maintained Docker wrapper:
gameservermanagers/docker-gameserver.Switching the 7 Days to Die template to it (with
VERSION=stable) fixed it: the server installs, comes up, and we can connect.The lesson: before maintaining many per-game setups, look for the one tool the game-server community already standardised on.
Today I learned · BackendTIL: running isn't readyA game server's container can be running long before anyone can join it.
Docker says a container is running as soon as its process starts. A game server then spends minutes downloading, installing and loading a world before anyone can join. Showing "running" during that time is a small lie, and it sent us chasing connection timeouts.
What I found:
- Some images can tell you. The popular Minecraft image (
itzg/minecraft-server) ships a healthcheck that speaks Minecraft's own query protocol. Docker reports it ashealth: starting, thenhealthyonce players can really connect. - Others can't. The 7 Days to Die images define no healthcheck at all.
So the design for GameNest is a separate "preparing" status: running, but not yet confirmed ready. Use a real healthcheck where the image has one, and never claim "ready" without evidence. Not built yet, but it's next.
- Some images can tell you. The popular Minecraft image (
Today I learned · FrontendTIL: Esc and pointer lockWhy pressing Esc to resume a browser game kept failing, and the fix.
When a visitor presses Esc, the browser releases the mouse, and Chrome then refuses to capture it again for about a second. If the page releases it itself (
document.exitPointerLock()), it may capture it again whenever it likes.Second catch: requesting the lock on Esc keydown loses a race, because the browser handles that same Esc right after the page and releases the lock again. Requesting it on keyup works.
So: release the mouse yourself whenever you can, and resume on keyup.
Today I learned · FrontendTIL: every click needs feedbackWhy switching days in a Next.js schedule looked broken, and the fix.
In production, switching days in Moj Vulkanizer's schedule changed nothing on screen until the next day's data arrived. It worked; it just felt broken.
loading.tsxshows instantly when you navigate to another page. It doesn't reliably show when only the search params change on the same page, like?day=2026-11-28.Why:
loading.tsxis a<Suspense>boundary around the page. Going to another page mounts a new one, and a new boundary shows its fallback right away. A new?day=keeps you on the same page, so the server re-renders the whole page for it, but on the client it's the same boundary, already showing content. Next.js runs navigations as React transitions, and a transition never replaces content that's on screen with a fallback: it keeps the old page up until the new one is ready. So nothing changes until the data arrives.The fix: navigate inside
useTransition, and use its pending flag:const [pending, startTransition] = useTransition(); const go = (day: string) => startTransition(() => router.push(`?day=${day}`));While
pendingis true, show a spinner and dim the old content. Buttons that call server actions get disabled, with "…" text while they wait.Looking into it also showed that four of the six settings pages ran the same database query twice per click. Fixing that sped things up for real.
Now it's a rule: anything that waits on the server shows feedback the moment you click.
Today I learned · FrontendTIL: fixed bodies ignore rotationA react-three-rapier fixed body applies its rotation to physics, not to what you see.
In
@react-three/rapier, a<RigidBody type="fixed" rotation={...}>passes the rotation to the physics body, but a fixed body never writes its transform back to the rendered object. The collider turns; the model doesn't.Fix: put the position and rotation on a plain
<group>around the rigid body. The body reads its parent's world transform when it's created, so the visual and the collider stay together.Today I learned · FrontendTIL: focus scrolls hidden boxesFocusing an input scrolls its containers into view, even ones with overflow hidden.
The kiosk's chat sits on a 3D screen: HTML placed with a CSS 3D transform. With an input inside, the whole screen vanished, drawn about 200,000 px away.
The maths was right. The cause:
input.focus()scrolls every container needed to bring the input into view, including containers withoverflow: hidden, which you can't scroll by hand. One wrapper got scrolled 519 px, and the 3D placement went with it.Fix:
focus({ preventScroll: true }), plus a capture-phasescrolllistener that sets any container around the chat back toscrollTop = 0, because clicking into the box or typing can trigger the same scroll.Today I learned · FrontendTIL: import.meta.glob in Next.jsTurbopack can import a whole folder of markdown files at build time.
Next.js with Turbopack supports
import.meta.glob, the Vite feature for importing every file that matches a pattern:const files = import.meta.glob<string>('./notes/*.md', { query: '?raw', import: 'default', eager: true, });Turbopack has no built-in
?raw, so a rule innext.config.tsturns those imports into strings:'*.md': { condition: { query: '?raw' }, type: 'text' }This bookshelf is built that way: every book is a markdown file.
06 / Off the clock
Off the clock
Code, languages and AI
Programming doesn't stop when work does. I pick up new languages for the fun of seeing how they think, and I follow what's new in AI closely: what models can do now, and how to build them into real systems in ways that actually help.
Scuba diving
A certified diver with more than eight years underwater. Diving is the one place my phone can't follow me: slow breathing, total focus, and a world that looks nothing like a screen.
Reading
Mostly epic fantasy and spy fiction: The Witcher, A Song of Ice and Fire, James Bond. Long stories with big worlds, sharp politics and characters who have to think their way out.
Co-op games with friends
Survival and co-op games, played with the same group of friends. Building a base together, planning a run, and failing loudly is my favourite kind of teamwork outside work.