Inspiration
Is the bakery still open? Has anyone seen the dog that went missing near Mill Pond? Who fixes bikes around here? These are small questions, but the answers can end up scattered across group chats, old posts, and signs in shop windows.
We built Lit Windows to give the fictional town of Fergie one place to look. We started with something people already know how to read. Walk down Main Street, see a light in a window, and you know someone’s open.
What it does
Visit Main Street on Saturday at noon and pick a lit storefront. At Bannock Bakehouse, you can check the hours, see who last updated them, and call the bakery directly. If you already know what you need, the business directory lets you search by name or browse by category.
The boarded-up storefronts tell a story, too. In Fergie’s seed data, people searched for bike repair 63 times and found zero listings. We gave that gap a place on the street. Someone thinking about opening a repair shop can explore what Fergie is missing and see the demand for themselves.
The community board connects the website to the physical town. Open Biscuit’s lost-dog notice, then look at its printable flyer. A neighbour can put it in a shop window, and anyone who scans the QR code lands on the same post.
How we built it
We built the portal with Next.js, React, and TypeScript. We drew the storefronts in SVG and connected each window to that business’s opening hours, holiday exceptions, and Fergie’s local time. The app uses PostgreSQL, with PGlite for local development and Neon for the live deployment on Vercel.
Visitors can explore without an account. The one-click demo logins show what changes behind the counter. A resident can submit a board post, a verified owner can update their own listing, and an admin can review posts and business claims. The server checks permissions for each action.
Challenges and what we learned
One surprisingly tricky detail was midnight. If a shop opens Friday evening and closes at 2 a.m., its window should still be lit at 1 a.m. on Saturday. We added tests for overnight hours, holiday exceptions, and seasonal closures. Someone might cross town because that window is glowing.
We also learned how much a simple count can tell you. A bakery owner can see how many people tapped Call. The town can see repeated searches for a service it lacks. Both work with daily totals, so we could give people useful answers without keeping individual browsing histories. We explain that choice on our privacy page.
Built With
- css
- json-ld
- neon
- nextjs
- node.js
- open-graph
- pglite
- postgresql
- qrcode
- react
- schema.org
- server-actions
- svg
- typescript
- vercel