KEYGO: how I rebuilt a booking site, then built its redesign with the designer
KEYGO · May 2025 – Oct 2026 · frontend tech and architecture owner, then the guest product end to end
KEYGO rents out apartments by the night. I joined in May 2025 and first owned the frontend's tech and architecture. In February 2026 that meant rebuilding it, the stack and the mobile UX. From May 2026 I owned the guest product end to end, the funnel, conversion and retention included, and built the 2026 redesign with KEYGO's designer. Most of the code I wrote with Claude Code, and one thing runs through all of it: code an agent can change and check on its own.
- v0 · Before12 Feb 2026What I got: 10,000 lines of SCSS, the biggest pages still in JavaScript, Redux for everything, three tests.
- v1 · RebuildFeb–Jun 2026 · mineNew stack in a week, then search, checkout and the guest cabinet redone for phones.
- v2 · RedesignJul–Sep 2026 · with the designerThe designer's new look, 468 commits, checked against Figma with a script.
- 11.8 → 4.8 slanding page on a slow phone, Lighthouse
- ~105 → ~180bookings a month through the site, Jan–Feb vs Sep–Oct 2026
- 1.8 suntil real users on phones see the page (p75, October)
One booking, three versions
Every step of one booking, from the landing page to the middle of the stay. Click any screen to see all three versions side by side.
On desktop
All screens come from local builds of the code at each date. The guest cabinet uses a fake booking: the guest, the door code and the Wi-Fi are made up.
v0 → v1: the rebuild
What I got
I'd been shipping features in this frontend since summer 2025, and every one was hard work. In February I stopped patching and counted what we lived with:
- 10,000 lines of SCSS, 2,515 of them in
main.scss. - 303
!important, 34 font sizes, 304 inline styles, no design tokens. - The landing page as one 1,049-line JavaScript file.
- Eleven Redux slices, from popups to auth.
- Three tests.
The styles were global, so fixing a button on one page moved something on another, and you only saw it in the browser. An agent learns that it broke something from types, lint and tests. Here there were almost none, so it worked blind and I checked every screen by hand. I needed code an agent could change and verify on its own.
Before touching anything I saved Lighthouse reports. On a slow phone the landing page took 11.8 s to show its main content, the empty search page 32.7 s.
How I ran it
First a plan, then code. Three workstreams: drop the old SCSS, move to shadcn/ui, replace Redux with React Query and Zustand. A dependency graph set the order, and auth went last, because that step finally killed Redux. Every phase got a file of tasks, and every agent session ended with a note for the next one.
What guests got
- Mobile search in one column, with a list/map toggle, bottom sheets on the map and all filters in one panel.
- Checkout on a phone in three steps, promo code on the first.
- Payment that can't be sent twice, survives the bank redirect and creates exactly one booking.
Checkout on a phone
The guest cabinet
Before reworking the cabinet, I went through 15,000 of its opens over 70 days in PostHog. 91% came from phones. 29% of opens fell in the last 24 hours before check-in and 42% during the stay, and the median guest first opened it a day and a half before arrival. People open the cabinet at the door, not while planning the trip.
So the cabinet now adapts to the stage: check-in in a few days, check-in today, already staying. Whatever matters right now goes on top. It became a boarding pass: the door code, a countdown to when it starts working, and one task at a time.
Collecting emails from marketplace guests was my initiative; there was no ticket for it. In March I went through bookings from Airbnb, Ostrovok and other platforms and saw we had no direct way to reach those guests: only about 10% came with a usable email. I wrote a PRD with six hypotheses and the conditions for dropping each one. Capturing the email at check-in was lever number one, and the CTO opened the tickets the next day. The cabinet started asking for an email up front, and about two thirds of guests who see the form fill it in. The share of marketplace bookings with a usable email went from ~10% to 57%+.
Guest cabinet on arrival day
What came out
Before19 Feb 2026





After31 Oct 2026





The landing page on a slow phone, Lighthouse mobile on production. Frames are matched by time, so each column shows both versions at about the same moment.
| Largest Contentful Paint | 19 Feb | 31 Oct | Change |
|---|---|---|---|
| Landing, desktop | 4.67 s | 0.83 s | −82% |
| Search, desktop | 10.84 s | 2.02 s | −81% |
| Landing, mobile | 11.84 s | 4.84 s | −59% |
| Search, mobile | 32.69 s | 11.91 s | −64% |
Accessibility on the mobile landing went from 88 to 96. For real users, response to taps on phones (INP, p75) fell from 400 ms in March to 136 ms by June.
What I did for speed
Foundation. Moved the site to Next.js 16 with Turbopack builds. Trimmed the bundle: optimizePackageImports for icons and dates, the heavy slider out of the shared bundle, rarely used parts loaded lazily.
A data layer on React Query. In v0 data lived in Redux: a page called the API in useEffect, the answer went into a global store, and the same thing got fetched several times. I replaced that with a request layer on React Query: a keyed cache, deduplication, retries. Client state that really is global moved to Zustand. This step set up SSR: React Query can fetch on the server and hand the cache to the browser ready.
Cookie-based auth. In v0 the token sat in Redux, was persisted to localStorage by redux-persist and went to the API as a header. The Next.js server never saw it, so anything that depends on who's signed in could only be built in the browser. I moved sign-in for every service from JWT to Redis-backed sessions in a cookie, with no downtime.
ISR and SSR. I moved the apartment page to ISR: the HTML is built ahead of time and refreshed every five minutes. In the autumn the server started putting the calendar, the cities and the cleaning price into its React Query cache, so the browser gets the page with the data already in it. The cabinet, the profile and the post-payment page now render on the server: Next.js passes the session cookie to the API and knows who's signed in. Neither would have worked without the two steps above.
Images. Brought in next/image: AVIF and WebP, a set of sizes per screen, a 31-day cache. The main photo on a screen gets preload and high priority; everything below the fold loads lazily. The landing page has its own vertical crop on phones via <picture>.
Prefetching. A search card prefetches the apartment's calendar, cleaning and availability so the click-through opens faster. In September I went through every page with measurements and found the card was also downloading the original photo, 1.3 MB on average, while the apartment page then asked for a 33 KB version. One pass through the results cost a phone up to 25 MB. Now the card warms only its next slide, at exactly the size it will show.
Backend. Bucketed the calendar and added caching, and the availability endpoint got 5× faster on a cold cache.
v1 → v2: the redesign
KEYGO's designer brought a new identity: the font, the colours and every screen of the site and cabinet in Figma. The look was his; I got it onto the live site. We did it in a month, alongside the regular sprints.
Landing on desktop. Drag to compare
v1 · Rebuildv2 · Redesign
Landing on a phone
How we worked with the designer
A mockup draws one perfect screen; a live site needs all the others: empty search results, a failed payment, a long apartment name, a narrow phone. I built those states myself, following the mockup's rules. Questions the mockup didn't answer I didn't settle quietly; I took them to the designer: phone margins, filter group names, the shade of the brand pink.
To check against the mockup without eyeballing it, I built a Claude Code and Figma harness. Through the Figma MCP the mockups live in the repo: screen structure, copy, tokens and a spec per screen. The agent works from that data, not from screenshots. On top I wrote a parity script: it opens the page in a headless browser, takes the same Figma frame and compares block geometry and typography. Before trusting it, I gave it to another agent to break, and the holes it found were closed.
That grew into an AI QA pipeline. The agent fixes a screen, the parity script and the design-system checks show what drifted, the /design-check skill reviews the screen against the mockup, and every branch gets its own QA stand. With the designer we discussed a ready list of differences, not screenshots.
Where the mockup got in the guest's way, I departed from it and explained why. In the cabinet the door code sat below the payment breakdown, and a guest at the door had to scroll a whole screen to reach it. The code moved to the top.
The admin panel too
Nobody asked for the admin app used by support, finance and hosts to be touched. But after the guest site's rebuild and redesign, the new stack and design system were already in place, and the 76-page admin moved onto them almost autonomously: a couple of prompts and workflows in Claude Code. QA ran on its own too: an agent opened every screen in a real browser through Chrome DevTools and compared before and after screenshots.
Admin unit card, made-up data. Drag to compare
Before · May 2025After · Oct 2026
Host cabinet, made-up data. Drag to compare
Before · May 2025After · Oct 2026
Admin on a phone, made-up data
Next.js 16 · Turbopack · TypeScript · Tailwind v4 · shadcn/ui · React Query · Zustand · pnpm · ESLint 9 · Lighthouse · Figma MCP · Chrome DevTools Protocol · Claude Code





































