Social feed app
Commons is a complete social feed front end where every control works. It has a 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. It’s one file of vanilla JS with 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 three-column grid. Both rails are position-fixed and hold still while the news feed scrolls between them. The composer expands and 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, and 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, or a student who wants the canonical layout with the wiring left visible.
Most product front ends you can open and 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, with no install, no bundler, no server, and 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 and no router. |
| The sync layer | Every surface derives its state. None of them toggle it. |
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 more details to know 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”, and 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 instead of 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’s seen. And the chrome never re-renders as HTML. Active tabs and badges change 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, exactly as the template renders.






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, or a student who wants the canonical layout with the wiring left visible. The “Who this template is for” section above lists the three cases it fits best.
Yes. The full live build is embedded on this page, and the Preview button opens it in its own tab. There’s no signup, no watermark, and no time limit.
The exact production prompt that built The town square, wired, with the art direction, the structure, and the engineering notes as they were written. You pay once in the prompt shop, and it stays yours.
Yes, that’s the plan for every template. I rebuild it around your brand, your copy, and your goals before anything ships. Start a project and tell me what you’re 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 the “Page sections” panel beside the article describes each one. 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.
I rebuild every template around your brand, your copy, and your goals. Nothing ships as is. Tell me what you’re building and I’ll adapt it.
Start a project Open the live template ❱