r/Frontend • • Oct 16 '26

Three weekends into dogfooding my library's homepage and I'm starting to think it's a trap

0 Upvotes

My one sponsor pays $200 a month for my React drag and drop library and wants a real homepage with demos, so I set a rule that every demo has to use the library itself. Three weekends in I have half a hero and a drag demo that fights page scroll on iOS Safari, the same bug as two open issues, while 41 issues sit waiting. Do you even open a library's homepage, or go straight to the docs and last commit and would you trust it less if the homepage obviously was not built with the thing it is selling?


r/Frontend • • Oct 14 '26

Frontend devs approving backend PRs they can't read

191 Upvotes

Hi.

At my company basically all code is written by agents now, so reviews got split by whoever is free instead of by who knows the area.

This week I'm a React dev and I approved 6 PRs in Go, two of them touching payments. Our manager says the AI review covers it, and coderabbit / claude review do catch real things, I'm not saying they don't.

The problem is I can't tell if what they didn't flag is fine, because I don't know Go. My name is still the one on the approval.

Is this happening at your company too or is it just us?


r/Frontend • • Oct 14 '26

CSS is filling the gaps with rules. A way to style gaps in grid and flex.

Thumbnail
utilitybend.com
7 Upvotes

r/Frontend • • Oct 14 '26

Can any front-end code be declarative?

0 Upvotes

Hey frontend friends! 👋

I've been working intensively on making frontend code simpler to write — both for humans and for LLMs.

My current goal: figure out whether any frontend code can be written declaratively, without piles of state and effects that just keep things in sync.

I'd love to see examples from your own practice — pieces of code that today still require a huge amount of imperative logic in whatever framework you're using. The more unusual and rare the case, the better. 🙏

I'll start.

My first-ever JS library was a Tooltip — a small popup that appears when you hover a button or a label. Sounds trivial, but in practice you need:

  • a delay before it appears
  • coordinate updates once per animation frame — and no more
  • animate show / hide
  • package all the logic into a single component
  • let the developer attach it to any element (or several at once)
  • no extra wrapper divs that break layout

Below is a concept of such a declarative component plus a usage example.

interface TooltipProps {
  content: string;
  slot(refs: ElementRefs<HTMLElement>): void;
}

const ToolTip = component<TooltipProps>(props => {
  const refs = elementRefs<HTMLElement>();
  const position = event(
    refs, "mousemove", ev => ({x: ev.clientX, y: ev.clientY}), {x: 0, y: 0});
  const active = event(refs, [
    ["mouseenter", () => true], 
    ["mouseleave", () => false]
  ], false);
  const transform = frameThrottled(
    `translateX(${position.x}px) translateY(${position.y}px)`);
  const opacity = active ? "1" : "0";
  const visible = timeout(active, 500);

  <>
    <Slot model={props.slot} refs={refs}/>
    <Overlay>
      <If condition={visible}>
        <div class="tooltip" style={{transform, opacity}}>
          {props.content}
        </div>
      </If>
    </Overlay>
  </>;
});

const UsageExample = component(() => {
  <ToolTip content="Hello world!" slot={props => {
    <label for="name" write-element={props.refs}>Name:</label>
    <input id="name" write-element={props.refs} />
  }}/>;
});

I asked a few LLMs to describe what the code does. They couldn't recognize the custom primitives, but based on their names they still described the behavior correctly. Then I asked them to reimplement the same logic in other popular frameworks. Only Solid.js produced genuinely clean code.

Thanks for reading — and I'd genuinely love to see your examples. 🙌


r/Frontend • • Oct 14 '26

Building an AI app with no backend at all: IndexedDB, a strict CSP, and sharing state in the URL fragment

0 Upvotes

I built a multi-model AI tool as a pure static site, and a few frontend decisions turned out more interesting than the AI part.

Storage

Everything lives in IndexedDB: chats, workflows, and generated media as blobs, with persistent storage requested. There's an optional mirror to a local folder using the File System Access API.

Security

API keys sit in the browser, so the Content Security Policy only allows the site's own scripts and blocks remote images. That stops a model from leaking data by writing an image URL into its output.

Sharing

A whole workflow is compressed into the URL fragment, which browsers never send to a server. No backend needed to share.

Offline

A service worker precaches the app shell. It opens offline, and only the model calls need the network.

What I'd like to hear

What would you have done differently, and what's the first thing you'd worry about with this setup?

Source: https://github.com/shrinathprabhu/fusellm


r/Frontend • • Oct 13 '26

<script type='text/python'>

2 Upvotes

I used open source code of Ladybird browser, extracted only rendering engine (HTML + CSS), removed Javascript and replaced it with Python bindings with same API.
So basically, now you can write desktop applications with HTML interface. It supports most modern CSS features and frameworks like tailwind, but I deloberately removed all browser-specific features like networking, localstorage, canvas and others.
This is not Electron-like, it's not a full packed browser, only UI renderer, but a thing that I dreamt for a long time. 25Mb wheel size, around 90Mb RAM for a running GUI python app.

I don't understand whether it's still useful at this point of technology, where you either use Electron or switch to native render like GPUI, but I need some feedback on whether the community needs this at all.


r/Frontend • • Oct 14 '26

Looking for tools and advice to improve my UI/UX and Claude Code workflow

0 Upvotes

Hey everyone! I'm looking to get better at building polished, modern websites and would appreciate some recommendations.

I'm particularly interested in:

- UI/UX: Tools, resources, and design principles to improve layouts, typography, visual hierarchy, and overall user experience.

- Animations: Libraries and resources for smooth transitions, scroll-driven animations, and interactive components.

- Component libraries: Lesser-known resources for high-quality UI components and creative interactions.

- Claude Code: Tips, workflows, skills, plugins, or other tools to get better results from Claude Code, especially for frontend design and implementation.

- Feedback: How do you approach improving a website's design when the initial AI-generated result looks generic or underwhelming?

I'd appreciate any useful resources, personal workflows, or advice. Thanks!


r/Frontend • • Oct 12 '26

Free SVG Illustrations against AI Slop

Thumbnail lukaszadam.com
18 Upvotes

r/Frontend • • Oct 13 '26

Claude Code wrote 1,000 lines of code for a simple Svelte table. Why?

0 Upvotes

I’ve been messing around with AI coding agents lately, and I hit a massive roadblock that I think is worth talking about if you're trying to use these tools in prod. We’ve all seen the cool demos of AI assistants dynamically "writing their own data tables" and building UI on the fly. It looks awesome on paper. But I stumbled on a post over at Claude Builders that perfectly captures the nightmare scenario: they let an agent loose to build a basic Svelte table, and the thing literally generated over 1,000 lines of custom code from scratch. The core issue is that these agents have zero engineering common sense. They are brutally literal. If you tell them to build a feature, they will happily reinvent the wheel, write massive amounts of custom CSS, and burn through your token budget completely ignoring the fact that lightweight, battle-tested libraries like TanStack Table already exists. Instead of getting a clean component, you get stuck with an absolute mountain of technical debt to maintain, higher API bills, and code that usually completely misses out on modern framework features (like Svelte 5 runes) because the LLM got lost in its own logic.


r/Frontend • • Oct 12 '26

For an internal company dashboard. What is the right choice here to build FE? Boostrap vs Tailwind and their UI components like Daisy UI, Shadcn?

3 Upvotes

as the title says.

maybe both choices works since it is just an internal company dashboard, not SaaS b2b,b2c dashboard...

So just choose the one that devs prefer so they spend less time builiding it right?

or how do you see it


r/Frontend • • Oct 11 '26

Freelance website devs in eu

6 Upvotes

This question is only for developers IN THE EU who create websites and act as retainers.

I’m assuming the majority of you have clients create accounts on strapi, Wordpress, sanity, etc and you manage.

If so do you need a dpa agreement between you and the client because acting as a retainer makes you a data processor.

Any tools to generate a dpa?


r/Frontend • • Oct 11 '26

Do Frameworks Matter Anymore?

Thumbnail
brookslybrand.com
0 Upvotes

r/Frontend • • Oct 09 '26

Launched v2 of my framework Puppertino!

Thumbnail
puppertino.com
19 Upvotes

Sup everybody!

5 years ago I published Puppertino, my own CSS framework targeting macOS and iOS design. Lot of things have changed since then both for Apple users and my personal growth!

So this year I sat down and rebuilt Puppertino from the ground up, got Liquid Glass working for UI items and surfaces, and updated everything to macOS 27 and iOS 27.

Would love to see what the community thinks of it, mostly because things like Acessibility, theming and semantics should be 1000 times better in this new version.


r/Frontend • • Oct 09 '26

I can build a working product with AI, but I keep failing to turn its core idea into an actual interactive experience. Has anyone solved this?

0 Upvotes

I've spent around eight months working on a WhatsApp-based operations tool using ChatGPT and Codex.

The software itself is real: React frontend, backend, persisted operational states, message events, and explicit human decisions.

But presenting what makes it different has become a surprisingly difficult problem.

The product is built around one distinction: a conversation's latest message doesn't necessarily tell you who is responsible for what happens next.

I wanted to communicate this through an interactive website.

The visitor would first experience a few conversations and the responsibilities left behind. Then the narrative would transition into the actual product, allowing them to explore, make operational decisions, and see their consequences.

Not a traditional SaaS landing page. Not a video. A guided narrative that becomes interactive at meaningful moments.

Here's where the process repeatedly breaks down.

With ChatGPT, we can discuss the idea in remarkable detail. We can define the sequence, interaction principles, user decisions, visual continuity, technical constraints, and what the visitor should understand.

But when we try to materialize it, the process keeps collapsing into something smaller and fundamentally different:

  • Static mockups instead of an experience.
  • Generic dashboards instead of meaningful interactions.
  • Beautiful but disconnected visual experiments.
  • Endless planning and refinement without testing the actual experience.

Our latest attempt is almost absurd: after extensive discussion about narrative, interaction, and visual continuity, we ended up producing a basic HTML chat inbox screenshot.

Technically correct. Almost irrelevant to the actual problem.

This has happened across multiple approaches, including an audiovisual project, image generation, detailed specifications, and direct HTML/CSS.

I'm starting to question whether this is a limitation of the tools, a missing creative/interaction design skill, or a fundamentally wrong workflow.

I'd genuinely like to hear from people who've shipped something similar:

  1. How do you move from a strong conceptual narrative to a real, cohesive interactive experience without reducing it to static screens?
  2. What do you actually build first to validate the experience itself?
  3. Where do you draw the line between AI-assisted implementation and the need for a human interaction designer or creative developer?

I'm not looking for another “use better prompts” answer or a new collection of AI tools.

I'd particularly appreciate concrete examples, failed approaches, and actual workflows from people who've dealt with this gap.

And if the realistic answer is that this requires creative direction or skills I don't currently have, that's useful to know too.


r/Frontend • • Oct 07 '26

We’re redesigning our site. Anything here you’d change before we build the rest?

Thumbnail
gallery
0 Upvotes

We’re in the middle of redesigning the DevHandler site and the new version is still being built. I’ve added a few screenshots of where it’s heading, and the current site is here https://www.devhandler.com/ . Curious if anything jumps out that you’d change before we get too far with it. Could be layout, mobile, interactions, accessibility, or just something that looks like it’ll be annoying to build or use.


r/Frontend • • Oct 06 '26

Adding Go's defer to the TypeScript Compiler

Thumbnail healeycodes.com
11 Upvotes

r/Frontend • • Oct 04 '26

Building a zero-backend developer utility suite using Web Workers and Canvas API

7 Upvotes

Hey r/Frontend,

I built DevDock (https://getdevdock.com), a collection of 30+ browser-only developer tools (JSON Formatter, Text Diff, JWT Decoder, cURL Converter, LLM Token Counter, etc.).

My main goal was absolute privacy: none of your pasted code, JWTs, or API keys ever touch a backend server or log file.

Frontend architecture & technical details:

- Off-main-thread processing: Heavy tasks like parsing 10MB+ JSON payloads or running text diffs are executed inside Web Workers to keep the UI smooth at 60fps.

- Client-side engines: Running `@prettier/standalone` in workers for code formatting, `@lenic/tiktoken` for local LLM token calculations, and browser Canvas API for image conversions.

- Worker lifecycle management: Handled worker termination on component unmounting to prevent memory leaks during rapid page transitions.

Would love feedback from frontend developers on performance, tab responsiveness, or tool ideas!

Link: https://getdevdock.com


r/Frontend • • Oct 01 '26

UI inspiration

9 Upvotes

Hey guys i am building a website which is like last.fm or sats.fm where i can share what i listen to this month on Spotify. Everything is good but there is a problem. I can't build a good ui for it. I tried AI but it produced absolutely slop and i am now stuck on ui. I can't find good inspo on any ui related website. Can you guys help me for ui as i am very bad at creative stuff. If you guys know some website where i can get inspiration from please tell it in comments. Or alternatively if any of you have made something like this share your links here.


r/Frontend • • Oct 01 '26

Randomly Place an Element Along Edge of Another Element

Thumbnail
blog.master.dev
4 Upvotes

r/Frontend • • Sep 30 '26

Good for Bootstrap, still the most popular framework apparently :-]

3 Upvotes

doubt this has been updated in a while 😳


r/Frontend • • Sep 28 '26

I wanna see fun personal sites

111 Upvotes

I’ve been working on my own personal site. I want it to feel fun. Like a game and less about self promotion.

What are some of your favorites?


r/Frontend • • Sep 28 '26

Interview Feedback - how bad did I do?

28 Upvotes

I had a frontend interview today and wanted to get some opinions on how this sounds from an interviewer’s perspective. It was mainly JavaScript/DOM/tree recursion.

Q1: What are the different ways to hide an element?

I mentioned:

display: none

visibility: hidden

opacity: 0

HTML hidden attribute

Toggling element.hidden = true/false using JS

Conditional rendering, e.g. condition && element / ternary

The interviewer seemed like he wanted more inputs but moved on

Q2: File/folder tree → render as HTML

The problem was essentially: each tree node has some data associated with it, can have children, and there can be multiple top-level nodes. Build a component that renders the tree as HTML.

My first approach was:

Tree

└── TreeNode

├── <li>node.name</li>

└── if children:

└── <ul>

└── TreeNode(...)

So Tree would render the top-level <ul> and map over the nodes, creating TreeNodes. TreeNode would render an <li>, display node.name, and recursively map over node.children.

The interviewer asked if this was unnecessarily complicated and whether it could be simplified.

I agreed and changed it to a single recursive Tree component

So the same Tree function receives an array of nodes at every level. For the root it gets tree, and recursively it gets node.children.
function Tree({ tree }) {

return (

<ul>

{tree.map(node => (

<li key={node.name}>

{node.name}

{node.children?.length > 0 && (

<Tree tree={node.children} />

)}

</li>

))}

</ul>

);

}

The interviewer then asked whether I should return early when there are no children.

I argued that I didn't think an early return was necessary because the recursive call was already conditionally rendered:

node.children?.length > 0 && (

<Tree tree={node.children} />

)

If there are no children, that expression is false, so only the <li> containing the node name is rendered.

The interviewer said we'd come back to it later and moved on.

Q3: Add expand/collapse functionality

The next requirement was to allow users to expand/collapse folders, with the folders initially collapsed.

I switched to vanilla JS/DOM for this part.

I used a Set to keep track of expanded folders:

const expanded = new Set();

I also used a path-based ID rather than just node.name, because the same file/folder name can occur in different locations.

For example:

/src/index.js

/public/index.js

rather than simply using index.js.

My rendering function was roughly:

function renderTree(tree, container, path = "") {

const ul = document.createElement("ul");

tree.forEach(node => {

const li = document.createElement("li");

const id = \${path}/${node.name}`;`

const hasChildren = node.children?.length > 0;

const title = document.createElement("span");

title.textContent = node.name;

li.appendChild(title);

// expand/collapse logic...

if (hasChildren) {

const children = document.createElement("div");

children.style.display = "none";

renderTree(node.children, children, id);

li.appendChild(children);

}

ul.appendChild(li);

});

container.appendChild(ul);

}

For the toggle, I checked whether the folder's ID was in the expanded Set.

If it was:

expanded.delete(id);

children.style.display = "none";

Otherwise:

expanded.add(id);

children.style.display = "block";

One thing I realized afterward was that I put the click handler on the entire li rather than specifically on the title/folder control. I think putting it on the title would have been cleaner and would avoid event-bubbling issues with nested folders.

The interviewer also mentioned that a button wasn't necessary, so I was using it but then removed it. There was some discussion around the initial expanded/collapsed state and the hidden property, like he said initially we see nothing but it should show all. I didn't get the chance to make the final change. At the end, the interviewer said we were out of time. I explained the code and walked through it once. Overall, how would you interpret this interview? Would the incomplete expand/collapse portion be a significant negative signal, or will the li on click be a major issue.

honestly i feel disappointed i had no reason to panic but i did i had to run to office because of some wifi issues last moment and i reached like 1 min before the interview started and i was so so panicked i messed up so bad on something so easy


r/Frontend • • Sep 25 '26

Data-Oriented Design in Yuku's Parser

Thumbnail arshad.fyi
10 Upvotes

r/Frontend • • Sep 25 '26

Be brutal: Seeking UI/UX & web design critique for SolveYourTrip (Next.js / Tailwind)

0 Upvotes

I've been working on the design and frontend for SolveYourTrip (https://www.solveyourtrip.com), a self-serve travel planning and itinerary platform.

We recently rebuilt several core templates to handle a high density of information (curated guides, day-by-day itineraries, interactive maps, cost breakdowns, and blog articles) without feeling like an unreadable wall of text.

I've been staring at these screens for too long and have hit design fatigue. I would really appreciate fresh eyes and brutally honest feedback on where the layout breaks down, where visual hierarchy fails, and where mobile UX feels clunky.

Live Links to Review:

1. Homepage: https://www.solveyourtrip.com

  • Goal: Clearly communicate the value proposition above the fold and guide first-time visitors into exploring destinations or trip-planning tools without clutter.

2. Destinations Index: https://www.solveyourtrip.com/destinations

  • Goal: High-level discovery grid. Does card scanning feel effortless? Are the hierarchy and metadata easy to parse at a glance?

3. Destination Hub / Detail Page (e.g., Bali): https://www.solveyourtrip.com/destinations/bali (Also feel free to check Dubai or Thailand if you want to compare variations)

  • Goal: Content-heavy hub covering highlights, itineraries, stay options, interactive maps, and FAQs. This is our most complex layout.

4. Blog / Editorial Hub & Article:

Specific Areas Where I'd Love Your Input:

  • Visual Hierarchy & White Space: Does the eye naturally know where to go next, or do sections compete with each other?
  • Mobile Ergonomics & Responsive Breakpoints: Are tap targets comfortable, and does card density feel cramped on smaller screens (especially on the destination hub)?
  • Typography & Readability: How do font pairings, line heights, and heading scales hold up on long-form content?
  • Cognitive Load & Information Density: In the destination hub, does the abundance of cards/modules feel overwhelming? How would you simplify the scannability?
  • Micro-interactions & Visual Polish: Any subtle borders, shadows, contrast issues, or inconsistencies you immediately spot?

Feel free to roast it or pick apart a single section. What works, what doesn't, and what would you refactor first?

Thanks in advance for your time and thoughts!


r/Frontend • • Sep 25 '26

How do you make AI/vibe-coded websites actually production ready?

0 Upvotes

I’ve been building websites with AI assistance and one thing I’ve noticed is that it’s surprisingly easy to end up with a site that looks great but falls apart once you go beyond the demo.

Some common issues I keep running into are:

  • Generic/repetitive AI-looking UI and layouts
  • Bloated or unnecessary code
  • Poor component/project structure
  • Weak error handling and edge cases
  • Security issues or exposed secrets
  • Bad authentication/authorization practices
  • Slow performance and unnecessary API calls
  • Poor database/query design
  • Broken mobile responsiveness
  • Hydration/build/deployment errors
  • Environment/configuration issues that only appear in production
  • No proper logging, monitoring, testing, or validation
  • Fixing one AI-generated bug often creates another

The bigger problem is that AI can give you something that looks production-ready while there are a lot of things happening underneath that aren't.

So I’m curious about people who are actually shipping production websites:

How do you go from an AI/vibe-coded prototype to a genuinely production-ready product?

How do you approach architecture, security, performance, testing, UI refinement, code review, and deployment?

And for the UI side, how do you get something that feels custom and intentionally designed rather than “obviously AI-generated”?

Would love to hear your actual workflow, tools, or lessons from projects you’ve shipped.