r/webdev • • 18h ago

Just a reminder to every web dev, optimize your images!

Post image
443 Upvotes

So last night I was working on optimizing some code for a clients website. The site has been getting hammered by AI bots recently so I thought I’d go through all my code and make sure it was all as optimized as possible.

While analyzing the log file I noticed that someone was actively trying a SQL injection attack, so I thought I’d have some fun, I redirected all their requests to this image, which I didn’t compress in my rush to have some fun.

37,000 requests later and almost 10Gb of data transferred they finally stopped.

Yeah I realize it was probably an automated attack and they never actually saw the image, but part of me wishes it was some script kiddie and the image popped up on their screen 😜

So remember people, optimize your images!!


r/webdev • • 10h ago

Discussion Users asking to remove their commits under GDPR

73 Upvotes

Seeing a spike of people asking to remove their commits from open-source GitHub repositories that I am the owner of because those commits carry their personal email or other identifiers.

How are you handling these?


r/webdev • • 20h ago

Discussion Our CTO asked for more hand-written code a year after sending everything through the agents

203 Upvotes

I had a ticket last week, an order export skipping rows with no error. Went looking for where we parse the payload and there are seven functions that turn a string into JSON, safeParse, parseJsonSafe, a jsonOrNull in utils and some others in the services. I asked a teammate about one of them, he thought that was my side. One of the seven is probably mine from before last year, when they told us to put everything through the agents and anything by hand needed a why field on the PR, which I filled in for a bit and then stopped writing by hand.

I asked glm-5.3 to list the JSON parse functions and what calls them, do not touch anything. It came back with a table, all seven as the same thing and a lot of call sites. The checkout one looks like it does something different on bad input, I have not worked out what depends on it. Nobody has claimed the others either. I have a branch that merges the rest but I have not touched it since Tuesday. We had a couple of outages in October, in code none of us knew that well, and at the all hands a few weeks ago the CTO said something like he would like a bit more of the code written by people again.

How are you guys keeping AI agents from duplicating half your utils folder, or is anyone else's team quietly walking back the "AI-first" mandate once the maintenance debt started piling up?


r/webdev • • 2h ago

Showoff Saturday [Showoff Saturday] VinUI: an open-source component library where 8 visual styles share the same markup

Post image
3 Upvotes

I've been working on VinUI, an MIT-licensed component library for plain HTML, React, Vue and Svelte.

The main idea is that each of the eight styles (Precision, Tactile, Clay, Tonal, Editorial, Terminal, Paper, Bento) is only a set of CSS variables, so markup and props never change between looks. Instead of a runtime package, a CLI copies plain source files into your project:

npx /ui init
npx /ui add <component>
npx u/vinish/ui diff   # see upstream changes since you copied
  • 63 components, 13 page blocks and 16 plain-SVG charts
  • WCAG 2.2 AA checked in every style, light and dark
  • Works next to Tailwind or your own CSS

Repo: https://github.com/devvinish/vin-ui
Docs and live style switcher: https://vinish.dev/ui

Feedback welcome, especially on the theming approach and the copy-in model.


r/webdev • • 1h ago

Can someone explain why flag emojis don't display on most sites using Microsoft Edge on Windows 11. But when I paste the same flag emoji into Google, they are able to display it. Are they using some polyfill or what? I do not have this issue on Firefox, only on Edge.

Post image
2 Upvotes

For example the 🇸🇪 emoji is not being displayed for me here on Reddit. It only shows "SE" (the ISO country code for Sweden). It's supposed to display the Swedish flag.

If I paste this into Google.com and just search for it, I can see Google.com display it just fine, as seen on the screenshot.

I'm using the latest stable build of Microsoft Edge, on Windows 11.

I'd like to know how Google is able to display it, but other sites like Reddit does not. Because right now users of my site on Edge can't see any flag emojis. This only happens to me on Microsoft Edge.


r/webdev • • 2m ago

Showoff Saturday I built an interactive underwater depth preview with Web Audio & vanilla JS for a minimal audio scratchpad page

1 Upvotes

I wanted a landing/preview page that feels like the concept itself instead of a generic SaaS template, so I put together https://whitealpaca.tech/#iceberg.

The idea behind the project: an offline-only scratchpad for unfinished song fragments where ideas "sink" out of sight and resurface later. On the web page, I built an interactive depth preview (#deep) with glowing depth markers (3 weeks ago down to 2 years ago) that surface sample lyric fragments and play a hummed audio sketch directly in the browser.

Looking for technical & UX feedback from web devs:

  1. Does the interactive depth preview feel intuitive on first load, or do people miss that the light nodes are clickable?
  2. How does the layout/scroll pacing feel on mobile vs desktop?
  3. Anything in the typography, contrast, or above-the-fold clarity you'd change?

r/webdev • • 1h ago

Showoff Saturday I developed this website to be as interactive and animation-heavy as possible using GSAP and Three.js, and to see what we could do with RTL design. Feedback is welcome!

Post image
0 Upvotes

This is a landing page I've been working on for two months. The desktop version features the full experience, with plenty of animations and interactive elements.

The animations are also adapted to better suit different devices, simplifying some of them on lower-powered devices like phones and tablets to keep performance as smooth as possible, and they were also made to feel more natural to each device. For example, on mobile devices and tablets, tilting and moving your device triggers an animation that makes the 3D model move along with it.

Would love to hear your feedback!

Here's the link!


r/webdev • • 7h ago

Showoff Saturday [Showoff Saturday] I built a real-time multiplayer board game on Cloudflare Workers + Durable Objects

3 Upvotes

Landgrab is a free Monopoly-like game for 2–8 players or play with bots: https://landgrab.top

Stack:

- Game engine is pure TypeScript with a seeded RNG, shared by server, client and bots

- One Durable Object per room over WebSockets, with SQLite for accounts, stats and game logs

- React + Vite frontend, deployed as Worker static assets

- A simulator plays thousands of bot games to catch rule bugs and check board balance

Happy to answer questions about the architecture.


r/webdev • • 1h ago

Showoff Saturday HTML-Land — A platform for everyone who wants to get into web development.

0 Upvotes

Hello everyone !

I'd like to share one of my self builded projects called HTML-Land. It’s an interactive platform to play with HTML elements. I implemented a lot of features in this project to make the platform very user friendly and for everyone who wants to get into web development. Feel free to check out the project repository here:

GitHub: https://github.com/newst4rt/HTML-Land

If you like the project, I'd appreciate a star! ⭐
It's my first React project, and I'd be happy to receive any feedback, suggestions, or constructive criticism.

Thank you! <3


r/webdev • • 7h ago

Showoff Saturday All 2,000+ wordles at the same time

Thumbnail
everydle.jakeo.dev
2 Upvotes

For when dordle, quordle, octordle, sedecordle, duotrigordle, and sexagintaquattordle aren't enough.

GitHub: https://github.com/jakeo-dev/everydle [human made]


r/webdev • • 1d ago

Discussion An old client basically told me she doesn't need developers anymore because of AI

324 Upvotes

I've been trying to grow my own development business recently, so I decided to reach out to some old clients, share my new website and see if they needed anything or knew someone who did.

One of them gave me a response I wasn't really expecting.

She's from a creative background and told me that she no longer has much need for my services. She's spent a lot of time learning how to do things herself and is now learning how to use AI effectively.

What I found interesting was her advice on what developers and designers could offer nowadays.

She said she'd be more inclined to pay someone for:

- Creative work where she's guaranteed no AI is being used kind of like how photorealistic paintings are right now with the existence of cameras.

- Work involving sensitive information.

- Reviewing and auditing AI-generated code.

- Teaching people how to get better results from AI and make their work look less AI-generated.

She also talked about how sad she finds the whole situation because she used to genuinely enjoy learning things like Three.js and figuring stuff out herself.

She was actually very respectful about it and wanted to see me succeed, so I appreciated her taking the time to write all of that.

I've personally been leaning more towards custom business software, automation and solving problems specific to how a business operates. I still think there's a market for that, but her response got me thinking about how clients perceive the value of our work now. And especially if pricing needs to be significantly reduced.

I'm curious if other freelancers or agency owners have been getting similar responses from clients lately.

Are you finding it harder to sell development services? Have you changed what you offer because of AI? Is there anything you're actually seeing more demand for?

I'd especially love to hear from people who have been freelancing since before the whole AI boom.


r/webdev • • 4h ago

Showoff Saturday I built a nav bar that shrinks to icons as you scroll, with a live playground to try it

Post image
0 Upvotes

I first noticed this on District: scroll down and the bottom nav quietly shrinks to its icons, scroll back up and the labels return. Nothing hides, so the tabs are always one tap away. I wanted it in React Native, so I built it as a package.

The site has a phone running the real component (React Native Web in an iframe) with controls next to it. Change the layout, active tab colour, glass, placement or action button, then scroll the phone and see how it behaves.

react-native-shrinking-tab-bar

A few things I ran into building the playground:

• The phone is the real app, not a video. It's an Expo web export of a small demo, and the settings panel talks to it with postMessage.

• Reanimated's animated lists didn't forward onScroll on the web, so the hook returns a plain listener there and the demo uses a normal FlatList.

• A mouse doesn't scroll like a finger, so I added drag to scroll with a bit of momentum and a round "fingertip" cursor.

• Only transforms animate. The bar's layout box stays 346 × 66 in both states. The rounded bar is drawn in three pieces so scaleX doesn't squash its ends.

• The icon colour on the active tab is picked from contrast (WCAG luminance), so any colour you choose stays readable.

Demo: https://ninadsutrave.github.io/react-native-shrinking-tab-bar/
Code: https://github.com/ninadsutrave/react-native-shrinking-tab-bar

Feedback on the site or the component is welcome, and a ⭐ helps if you like it.


r/webdev • • 13h ago

Showoff Saturday I built MirageUI – a wireframe-to-code tool that uses geometric heuristics instead of LLMs for layout detection

Post image
0 Upvotes

I've been working on MirageUI with my team, and I wanted to share the project and some of the engineering behind it.

Live: https://mirageui.vercel.app/
Source: https://github.com/Veer1778/Mirage

The idea was to explore an alternative to prompt-based website generation.

Instead of describing a webpage to an AI, you draw a rough wireframe using rectangles, and the editor interprets the layout and generates frontend code.

How it works

The interesting part is the layout interpretation engine.

I deliberately avoided using an LLM for component recognition. Instead, Mirage uses geometric heuristics to infer what the user is trying to build.

It considers four main signals:

  1. Position: A full-width rectangle at the top is likely a navbar; the same rectangle at the bottom is likely a footer.
  2. Aspect ratio: Tall and narrow shapes can indicate rails, while wider shapes suggest horizontal sections.
  3. Spatial relationships: Multiple similarly sized rectangles sharing a row can indicate a card grid.
  4. Width and alignment: Elements snap to a 12-column grid before being interpreted.

One implementation decision I'm particularly happy with is storing sketches as integer grid coordinates rather than raw pixel positions.

Each box is represented using its column, row, width and height. This makes snapping, collision detection and layout calculations much more predictable.

Boxes that overlap vertically are grouped into horizontal bands, which are then translated into CSS grid layouts.

The editor also prevents overlapping boxes. When a drag is blocked, movement is retried along individual axes so elements can slide around obstacles.

Component detection

Mirage currently supports 19 component types, with nine detected automatically.

When the classifier isn't confident, it flags the element instead of silently guessing. Users can manually override classifications, and manually overridden elements aren't reclassified.

Code generation

The same sketch can be exported into three targets:

  • HTML: Semantic markup with a token-driven stylesheet.
  • React: Component-based output with props.
  • Tailwind: Utility classes with mobile-first breakpoints.

Sketches can also be saved and reloaded through a JSON format.

I kept styling separate from structure using design tokens. This means switching themes doesn't require changing the underlying markup.

Tech stack and architecture

One thing worth mentioning is that the entire application is built using:

  • Vanilla JavaScript
  • HTML
  • CSS
  • Vercel for deployment

There are no external dependencies, no build step and no backend. Everything runs in the browser as static files.

The repository is structured around separate editor, engine, theme and landing-page files.

What I learned

A few things I found interesting while building this:

  • Geometry alone can communicate a surprising amount of layout intent.
  • Using a consistent coordinate system simplifies several seemingly unrelated problems.
  • Automatic classification needs a manual override mechanism. You can't expect heuristics to understand every possible layout.
  • Generating valid code is one thing; generating code that developers would actually want to maintain is another.

This is still an evolving project, and I'd particularly appreciate feedback from people who have worked on frontend tooling, visual editors or code generation.

A few things I'd love opinions on:

  1. Would you approach component recognition differently?
  2. Are there better ways to handle ambiguous spatial relationships?
  3. What would make the generated React output more useful in a real development workflow?

Demo: https://mirageui.vercel.app/
GitHub: https://github.com/Veer1778/Mirage

It's MIT licensed and free to use. Would love to hear your thoughts!


r/webdev • • 15h ago

Discussion With the advent of coordinated AI agents, do you think troubleshooting and debugging are valuable skills any longer?

0 Upvotes

This is something that I've been thinking a lot about, partially because I have a desire to want to talk and teach people about troubleshooting and debugging in general and I've definitely also had individuals ask me why we need to learn these skills any longer, when an AI agent can parse error logs and often trace down the root cause (and even patch/deploy it).

While I have my own personal opinions that we should not be sacrificing our institutional knowledge at the altar of the technology, I also want to give a more practical answer. One of those practical answers being of course: what if you have an agent that can't solve the issue or is not available when you need it at its most critical time?

The pushback I receive on that is that the likelihood of all AI providers not being available is slim to none, and that building this skill for an event that might not ever come to pass isn't worthwhile (unlike a skill that you use each and every day).

In my personal work, I'm still debugging all the time, but I definitely can admit that I've been able to pass a lot of issues over to an agent and they tend to find the root cause in the same way that I would have. Not always, mind you, and there have been many instances where the suggested fix is pretty terrible (but I don't know if I have a percentage of exactly how much time that is).

The other concern that I have is that these models are always backwards facing and novel issues crop up all the time that might be out of its distribution.

I guess to me: I think it is inherently risky in abandoning this ability through what would evolve to blind trust, and reliance, on what is essentially a service provider.

Edit - I figured this would get downvoted, and probably rightfully so. You can read my post history/profile and know that I'm the furthest thing from an AI booster. But I've been feeling a lot of anxiety lately, as probably many others are, and wanted to just address the anxiety head-on...so please don't be too harsh, I'm just trying to navigate the new landscape.


r/webdev • • 21h ago

Trying to follow along this tutorial but the link doesn't work

Post image
0 Upvotes

Apparently this website shown in the video isn't hosting these project files anymore. The link glitch.com/~tensorflow-js-boilerplate redirects to their blog post about problems with unsustainable project hosting. Is there a way I can still follow the tutorial?

Or maybe there's just a really stupid answer that I dont know about because I never worked with a ML model before haha


r/webdev • • 1d ago

Discussion What does your local development setup look like?

18 Upvotes

I'm curious about how you guys have your development environments set up, both at work and for personal projects.

What does your local setup look like?

Do you debug inside containers? Do you run exactly the same setup as production, e.g. a local kind cluster? Do you connect to a remote server that hosts the codebase?

Similarly, how do you test DevOps-related changes? Do you use any specific tools? Do you run single-node clusters or multiple vms etc?

Do you mainly test deployed on a server or locally first?


r/webdev • • 1d ago

Switched from an Android to an IPhone, looking for the best setup.

0 Upvotes

So I recently switched my hand coding from an absurdly cheap Android to an iPhone and I still have not found anything I like, like my Android.

I am an edge case. I code a lot of SVGs. QuickEdit was a rock-solid app. I was totally 100% satisfied with it and I could go like lightning on it. I wish they had it for iPhone.

I find my self reaching back for my Android to do code work. This phone is $1,500 so it has to be better, no?

Can you just help me get there with my iPhone? What apps am I looking for that are like QuickEdit that can just handle piles of text easily? What do you use to write code on your iPhone?

Thanks in advance.


r/webdev • • 1d ago

Question Any free non kyc hosting platfrom? In tokyo japan

0 Upvotes

Hey guys so am trying to host my rust script near tokyo japan. But I can;t seem to find any who allow free tier for hosting without kyc and cards stuff in japan. Cloudflare workers is in Singapore. Gemini tells vercel too but google tells vercel also has tokyo option? Any idea?


r/webdev • • 1d ago

Webdev on a budget. What to do..

0 Upvotes

So. I've had a good idea. Well I think so.. It may or may not take off.

I'm using a Nextjs, payload, neon, vercel stack with Resend for emails.

Vercel on hobby, everything else on free plan.

Initially only a few people will test it with me and be told under no circumstances to share just yet.

So.. what if it leaks? What if I have to cough up my £20 for vercel, put neon on paid, suddenly realise I'm hitting my 100 emails signups a day on resend , one of my testers posts it on their socials, and 'm not running ads as I wouldn't know where to start, and costs start to get out of control?

Basically I'm going to ask for "Buy me a coffee" but I don't see that doing anything really.

So what is a way to cover hosting and other expenses quietly or is it just a case of "Deal with it"


r/webdev • • 2d ago

Do even find it enjoyable to create personal projects anymore?

57 Upvotes

I've lost pretty much all my enjoyment for it recently. I know I can hand code it still, but it doesn't feel the same anymore. My Github was flooded with green but its dwindled down my reward system.

If you do, what are you making to feel the same reward of problem solving? If you don't, what do you do instead?


r/webdev • • 1d ago

Is i3 1005g1 enough for front end web development?

1 Upvotes

It's a 10th gen 2 core/ 4 threads CPU from 2019 (10 nm, base speed 1.2 GHz, turbo boost 3.4 GHz, 15W TDP), running on 8 gb single channel ddr4 RAM and SSD, Windows 11.

I am an absolute beginner in web development. How much can I learn on this current laptop? When I will need a new laptop?

I don't like lags during my workflow. After 4-5 seconds lag, it becomes frustrating. Please give me honest review of this hardware. Will switching to Ubuntu help?

For reference, with only 5 total extensions (Java, Python), it takes 30-35 seconds for VS Code to launch, initialise extensions, complete indexing and apply syntax highlighting to the code. After that, it runs smoothly.

Microsoft store lags while scrolling when it loads new images and videos, similarly I think web pages also contain multimedia content.


r/webdev • • 1d ago

Getting started with WebMCP: building and testing tools

Thumbnail
polypane.app
2 Upvotes

r/webdev • • 1d ago

Curious about people's workflow using AI

0 Upvotes

So, yeah. I'm very curious about how developers use AI in their workflow. I go first: if I need to start a project from the scratch for example using pnpm, At first I plan endpoints, etc. Then, I think about .css styles. So, I write all colours, dark/light mode, etc. Then, pages, buttons, etc. but in a very rough way. Then I make components in a way AI will understand later to make it right and finally security but very incomplete way, for example: CORS, then I add some security skills, for example from Cloudflare, etc. The point here is showing AI what you want to do later, not writing the whole code yourself. But, showing the path AI must follow. After that, I ask AI to improve the small code I made. But I don't ask: "AI finish this project". I go instead for every unfinished function, component, hooks, etc and ask:"make it better". Knowing that every path AI takes is because I instruct to it already. So, in a way I have the control, since AI already have the context of the project I make AI to work recursively. I also ask to comment changes that are relevant to the project in the changed files for future references. For me, It works great, because if you show AI some code before completion, even if it's small. AI agents will just works great. Anyone working this way too? Last but not least, I take care of commits, GitHub actions, etc. myself. I don't trust AI to push any files outside my dev projects.


r/webdev • • 2d ago

Discussion Whats one thing you used to do in web dev that you completely stopped doing?

83 Upvotes

I was looking through some old projects recently and honestly cringed at a few decisions i made back then. From putting way too much logic in components to overcomplicating simple features, there are things I'd definitely approach differently today.

Im curious what that looks like for other developers. Is there a framework, coding habit, workflow, or even a popular practice you used to swear by but eventually realized wasnt worth it?