SOCIAL FEED APP
Commons is a complete social feed front end where every control genuinely works — sticky navbar, fixed rails around an independent feed, a composer that appends straight into the live posts array, per-post like state, popovers, chat windows and a full dark theme. One file, vanilla JS, no build step.
Commons is the classic social network layout rebuilt as a working product — not a screenshot with dead buttons. A sticky navbar with search and badge counters sits over the classic three-column grid: both rails are position-fixed and hold still while the news feed scrolls between them. The composer expands, takes a photo, a live tag or a feeling, and posting unshifts a new object straight onto the live feed array. Every post card’s Like toggles its own colour and moves its own counter by exactly one; Comment opens a real thread; the ⋯ menu saves, hides or deletes with an undo. Around the feed, everything else answers too: eleven routes without a router, notification and chat popovers, a story viewer, chat windows that send and minimise, live search, and a dark theme swapped through design tokens.
This build is for anyone who needs a feed — a product adding a social surface, a developer studying how a big interface stays in sync, a student who wants the canonical layout with the wiring left visible.
Most product front ends you can actually read are either a framework tutorial with three fake rows in it, or a real app whose logic is buried under a build pipeline. This build is neither.
One index.html. Open it and the whole application runs — no install, no bundler, no server, no network requests.
| Section | Purpose |
|---|---|
| The Fixed Frame | A navbar that sticks and rails that hold still. |
| The Composer | A draft object, not a form. |
| The Like Rule | Each card owns its state. |
| The Routes | Eleven views, no router. |
| The Sync Layer | Every surface derives, none of them toggle. |
The design brief was fidelity: the real product’s tokens, hierarchy and spacing, reproduced closely enough that the differences are the interesting part.
The layout is designed at full width and then composed down, so the same interface holds together on a phone without a separate mobile build.
A working product beats a mockup. The page is arranged so a visitor can use the thing before deciding anything.
A few additional details are worth noting before you build on this template.
one state object is the only source of truth, and every surface derives from it. Navigate to Marketplace from the nav tab and the left-rail item lights up too, because both read the same route field rather than toggling themselves. Add a friend in the right rail and the Friends page already says Requested. The section headings are buttons — “Sponsored”, “Contacts”, a post author’s name — and all of them route through the same one-line go() call.
the post ⋯ menu is anchored in document space, not viewport space — a fixed-position menu detaches from its post on the first scroll event, which can fire asynchronously the same instant the menu opens and close it before it is seen. And the chrome never re-renders as HTML: active tabs and badges mutate by class toggle, so the search input keeps focus and caret while you type. Both are the kind of defect that passes code review and only appears in a driven browser.
Captured from the live build, section by section. This is the template as it actually renders, not a mock-up.






This build is for anyone who needs a feed — a product adding a social surface, a developer studying how a big interface stays in sync, a student who wants the canonical layout with the wiring left visible. The Who-this-is-for section above lists the three cases it fits most directly.
Yes. The full live build is embedded on this page and the Preview button opens it in its own tab. No signup, no watermark, no time limit.
The exact production prompt that built The town square, wired — the art direction, the structure and the engineering notes as they were actually written. It is a one-time unlock in the prompt shop and it stays yours.
That is the intended path. Nothing ships as-is — the template is rebuilt around your brand, your copy and your goals. Start a project and describe what you are building.
Every section listed in the sidebar and in the overview table is built and working in the live preview. There are 5 of them, and each one is described in the Page Sections panel beside the article — expand any row to read what it does.
No. Everything runs in a modern browser on desktop or mobile. Open the live preview and it works.
Every template gets rebuilt around your brand, your copy, and your goals — nothing ships as-is. Tell me what you are building and I will adapt it.
Start a project Open the live template ❱