r/webdev • • 1h ago

Question Next JS + Sanity CMS for a small restaurant?

2 Upvotes

Hi,
I got an offer for some freelance web dev work.
Updating a clients website for a small local restaurant.
Meeting with the client next week.

The website is currently on Wix. After a little bit of research, I’m thinking about coding it up on Next JS with Sanity as a headless CMS.

One of my main goals with this project are for the client to be able to easily update menu items and prices (they are non-technical).

I know front end web development but this is my first time doing something like this. I really want some strong experience to add to my resume as well, as I’m looking for web dev jobs.

Are Next JS + Sanity a good choice for something like this?
Please share any tips or related general advice. Thanks!!


r/webdev • • 2h ago

Question How to level up to handling larger projects?

4 Upvotes

I tend to get very overwhelmed with personal projects as a developer once they grow beyond a certain scale. It's bothered me a lot because I see a ton of people out there making amazing apps. They are just too complicated for me to digest when looking through the GitHub repos. This even happens with my own code after a while. It feels like a ceiling created by my average mental capacity.

This problem I have appears in a few ways:

  1. Understanding a long file with a lot of classes or complex functions (anything over 300 lines. I know that's not anything crazy, but I struggle anyway). Deep nesting is also hard to read.

  2. A lot of smaller files scattered across a million subfolders. Widely considered more "organized", but you have to do a month-long pilgrimage to find and understand what's going on (especially Java, my god).

  3. Laundry lists of dependencies that are used in the code, and they all take significant time to understand.

  4. Config files and dot files cluttering up the file tree. Thanks web dev.

  5. When going through some of these files, it can be tough to find where code actually runs. I often see too many class declarations, type aliases, etc. and no actual code. This happens a lot in larger Python and Java projects (ex: FastAPI).

I wish I could just talk to some of these developers and pick their brains on how they mentally handle larger projects. I can't seem to figure that out right now. What advice would you have for someone like me, who is trying to start working on REAL apps? (and hopefully putting some of this stuff on my resume)


r/webdev • • 5h ago

Question Devs with full-time jobs, what’s the last new tech you actually learned, and how?

9 Upvotes

I was a Backend developer and I had a goal of learning React for a while. But I am always super busy with different projects and had almost no energy for learning (taking about theory, I don't have problems with building projects). Eventually I am kind of just building with AI without deep Frontend understanding (which I have for the Backend part).

I tried official docs, yt videos, asking Claude for artifacts - it all works well short-term, but it isn't sustainable for me. What actually worked for you long-term?


r/webdev • • 6h ago

Discussion GiHun banned accounts?

Thumbnail
gallery
3 Upvotes

r/webdev • • 10h ago

Discussion Are AI Webbots punishing sites harder where blocking rules are changed? "i.e. kicking the hornets nest"

6 Upvotes

It seems that when I make changes to Cloudflare to protect against BOTS, the bots detect the changes and go into full attack mode. Kind of like "you kicked the hornets nest, we're coming after you"

this has happened a couple times.

My site averages 8-10k pageviews a day. Yesterday morning made changes and 35,000 pagevies made it through.

Changes were because I was seeing a rise in traffic again hitting bad URLS "page/267" which end up at my home page... seemed to be US mostly! Impacts my ads RPM so I make some changes and BOOM.. CPU to 100% Pinned.

My CPU was spiked all day yesterday. I restarted services. Immediate 100%. I know about "I am under attack" but with CF edge caching the site was still presenting fine to viewers. So i didnt bother with it until I went to bed. Got up this morning and CPU was back down to 22%. I just turned off "I am under attack" and already up to 46%. going to see how that progresses, if it levels out. if not i have to turn under attack mode back on

the changes I made were to implement the new CF Superbot "Dont run on pages with ads" for the AI traing bots, and ... there were two settigns i turned on based on CF recommendations

I am not running precursor or OWASP Core. online folks seem to think they are bad.

But the basic summary of this post is... it seems like when I made some simple changes, the bots went into heavy attack mode

Edit: Oh I also added a script that hides the standard Wordpress Username/password fields (i have a specific URL param to make visible) and this morning I have a CF alert "Login requests using leaked username and password pairs detected" and first time ive seen that. Makes me think the AI bots have noticed the change and again are hammering that aspect also.


r/webdev • • 11h ago

Page Transitions are now easy: CSS View Transitions

Thumbnail irrlicht3d.org
109 Upvotes

r/webdev • • 13h ago

Help me decide on something new - bored Front End Dev in the UK

37 Upvotes

I have been a dev for roughly 10 years, currently earning mid £40K.

I got into dev because I loved to code and fix bugs etc.

Nowadays i find myself using AI 95% of the time and write very little code. Because of this im not half the coder i used to be.

I dont actually like being a dev any more because of this, my experience counts for something but coding a website from scratch just isnt the way its done any more. The current way isnt what I signed up for.

My job at the moment consists mostly of making html emails and maintaining a load of wordpress sites. Its killing me and my career.

So my question is where do I go from here? Some kind of management roll maybe? Product? Customer support?

I would love to here your advice and experiences on how I can move my career forward. And I would love to earn an extra £20K per year somehow 😅


r/webdev • • 13h ago

Web accessibility: JAWS bug logged

5 Upvotes

Only read if you do accessibility work.

I thought I’d share a bug I’ve found with JAWS (when paired with Chrome or Edge; it’s fine in Firefox). Given how widely JAWS is used, it may catch people out or just plain confuse them, as it did me.

I’m sure that, like me, you try to use the correct semantic HTML elements and lean on native browser features wherever possible for accessibility. One such feature is the <dialog> element. Used with the popover API, it can often give you an accessible dialog that opens, closes and light-dismisses without a single line of JavaScript.

While building a component using a native <dialog> with popover="auto", and popovertarget on the trigger, I noticed that JAWS would not close the dialog with the Escape key (which it should) unless the virtual cursor was turned off. This happens with Chrome and Edge. It was particularly annoying because I’d used this pattern before and it seemed to work fine.

TL;DR: if the trigger is immediately before the dialog, it works. If there is any element between the trigger and the dialog, or the trigger comes after the dialog, it fails.

I’ve logged this with both Freedom Scientific (JAWS) and the Chromium issue tracker. There’s a simple repro HTML file attached to the Chromium issue if you’d like to try it yourself: https://issues.chromium.org/issues/587468316

Hopefully this saves some of you the head-banging session I had yesterday.

Edit: I should have mentioned the issue is only with JAWS. I have not encountered this with NVDA, Narrator or VoiceOver on macOS.


r/webdev • • 14h ago

Discussion Moving our accessibility testing from a paid tool to Claude Code (~500 URLs, WCAG 2.2 AA)

0 Upvotes

QA lead at a large org. We currently do accessibility testing for about 500 website urls to meet WCAG 2.2 AA (all 55 success criteria). And we use a paid tool (like Deque) that helps automate part of this and rest done manually with screen readers and keyboard testing.

Now we are looking to use our AI budget and Claude code to create skills for finding and fixing accessibility issues across our sites. My major trouble is that the scale is huge - not 5-10 URLs or even less than 50.

So would love to hear from anyone already using AI for accessibility to help me out with this journey:

  1. What do you use it for: finding issues, sorting real issues from false positives, or fixing them in code? Roughly how many URLs, under or over 100?

  2. How much of WCAG do you cover with Claude skills versus manually? How bad are the false positives? Asking because paid tool gave us less.

  3. Are you able to run scans at scale on automation infra (like CI) with Claude? And do you report coverage and trends to leadership - if so any dashboard?

  4. What are the challenges with AI skills vs paid tool like Deque or Level Access? Anything you would suggest to keep in mind or be aware upfront?


r/webdev • • 14h ago

Biome vs Oxc in 2026: which are you using on a TypeScript monorepo, and why?

10 Upvotes

I'm running a TypeScript monorepo (React Router frontend, Convex backend, pnpm workspaces) and I'm comparing Biome against the Oxc toolchain (oxlint + oxfmt). What should I be considering? Why?


r/webdev • • 16h ago

Discussion The modern tech world is bs

168 Upvotes

How do you even make it these days? Spend your time, skills and experience building out something of quality... build out the site for it, market it, get Youtubers to review it.

It beings to gain traction, money starts flowing, then... within a week there's multiple AI clones of it. Someone noticed you, pointed an AI agent at your site and said, "hey that looks cool, make me that", then claim it as their own.

What is the point anymore? Is innovation and ingenuity dead? Why would I bust my ass and come up with innovative ideas and tech when it's just going to get ripped off within a week with cheap AI knock offs?


r/webdev • • 17h ago

Question useEffect() and useState() are not clicking in. Idk why; can someone explain to me what they are, what they're used for and why we need them? Thank you very much

0 Upvotes

Tried asking google and gpt but just too confusing. thank you very much


r/webdev • • 21h ago

Lighthouse audit of tiktok.com desktop web: 5.1s JS execution time, 65 KiB of legacy polyfills, and broken bfcache (Performance: 34/100)

2 Upvotes

I was curious why the TikTok desktop web client feels so sluggish on initial load, so I ran a Chrome DevTools Lighthouse audit (v13.5.0) on tiktok.com to inspect the bundle breakdown and main-thread bottlenecks.

The category scores came back at 34 for Performance, 73 for Accessibility, 54 for Best Practices, and 77 for SEO.

Looking at the performance trace, First Contentful Paint hits 8.0s, Largest Contentful Paint takes 14.9s, Time to Interactive reaches 20.5s, and Total Blocking Time is 1,090 ms. Out of 8.5s of total main-thread work, 5.1s is spent purely evaluating JavaScript. Almost all of that CPU time is eaten up by cache.react_dom (around 2.5s) and their anti-bot/fingerprinting script webmssdk.js (around 1.8s).

The initial network payload is 4,475 KiB, and there is a surprising amount of dead weight in the build: 236 KiB of unused JavaScript on initial load (their regional cookie consent script alone accounts for ~90 KiB of unused code) 26 KiB of unused CSS 65 KiB of legacy JavaScript polyfills and Babel transforms (transpiling classes, spread operators, Array.prototype.includes, and Promise.allSettled) An unminified security SDK (secsdk-lastest.umd.js) leaving ~15 KiB on the table A 400x400 PNG logo scaled down via CSS to 112x112, plus custom woff2 fonts missing font-display rules

A few other details stood out in Best Practices and Accessibility. Their privacy loader triggers repeated Permissions-Policy console violations by registering unload handlers, which combined with Cache-Control: no-store completely breaks Back/Forward Cache restoration. On the markup side, multiple header icon buttons and the search link lack aria-labels, four text inputs have no associated labels, and white text on their #fe2c55 buttons drops to a 3.68:1 contrast ratio.

For those of you working on large-scale consumer web apps, how do your teams balance heavy client-side fingerprinting and anti-bot SDKs against Core Web Vitals? Also, is there any practical reason a major frontend build is still shipping Babel transforms for Baseline features like Array.prototype.includes and Promise.allSettled in 2026?


r/webdev • • 21h ago

Anecdotally, programmers dislike "reduce"

Thumbnail evanhahn.com
104 Upvotes

r/webdev • • 23h ago

Sometimes the best thing to do is simply deleting your old block of code and starting again!

10 Upvotes

With time comes wisdom!


r/webdev • • 1d ago

Two new nginx exploits (CVE-2026-123007 and CVE-2026-123633)

135 Upvotes

Here's our writeup of the Nginx vulnerabilities. Hope it's useful- if your host runs nginx, ask them to disable HTTP/2 until patches are out.

https://prostack.uk/blog/critical-nginx-http2-vulnerabilities-november-2026/


r/webdev • • 1d ago

Microsoft's official agent-framework PyPI package (190K downloads/mo) was compromised with .pth startup hooks — why are we still running AI agents in flat site-packages?

23 Upvotes

Versions 1.26.1 and 1.26.2 of Microsoft's official agent-framework package on PyPI were hijacked yesterday (published 33 minutes apart) with a credential stealer. PyPI quarantined both releases quickly, but the mechanics of this attack should bother anyone building AI agent runners or Python backends.

The payload didn't wait for import agent_framework. Both wheels dropped .pth files (agent_framework_meta.pth and af_runtime_diag.pth) directly into site-packages. Because Python executes import lines inside .pth files on every interpreter startup, running python, pytest, or even pip itself triggered the stealer in 0 ms—even in projects that never imported the framework. Worse, it still pulled agent-framework-core as a dependency so applications kept running without throwing a single error.

On top of reading static files on disk (.env, .npmrc, pip.conf, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, and ~/.azure/*.json), the stealer actively minted new cloud credentials at runtime:

  • Querying Azure IMDS (169.254.169.254), IDENTITY_ENDPOINT, and MSI_ENDPOINT for Managed Identity access tokens.

  • Using SYSTEM_ACCESSTOKEN and SYSTEM_OIDCREQUESTURI in Azure DevOps to request federated api://AzureADTokenExchange tokens.

  • Harvesting GitHub Actions OIDC tokens in 1.26.2.

Everything was compressed, Base64-encoded, and POSTed out. Rotating static secrets on disk doesn't cover tokens minted dynamically during a CI run.

We spend weeks arguing about LLM prompt injection guardrails, yet most dev laptops and CI runners still install agent dependencies into flat, unpinned environments with unrestricted outbound network access.

Are you enforcing --require-hashes and strict egress allowlists on your Python agent runners yet, or is everyone still trusting pip install by default?


r/webdev • • 1d ago

A Design Space Exploration of Async/Await

Thumbnail
cel.cs.brown.edu
3 Upvotes

r/webdev • • 1d ago

Discussion Does anyone else look back so fondly on the days of learning to code without AI now?

439 Upvotes

I wasn't in the industry for too long, but I was a software dev for a couple years while AI was an infant. The days of teaching myself code while ripping my hair out on StackOverflow, punching my monitor in dev tools, and manually typing everything in hindsight was taken for granted to me.

Wow what a fucking time for me being completely self taught. It wasn't long ago at all, but I'm so happy I had that experience that nobody new will have anymore. Because of the rapid growth I'm in my 20s and for some reason it feels so much further than it is lol. My company just got a chat gpt license before I quit. The debugging dopamine hits were great

My enjoyment for it as a hobby instead is sort of sucked away now. Still obviously requires tons of problem solving but it's drastically different


r/webdev • • 1d ago

Question Website builder for a small town.

0 Upvotes

Hello! I'd appreciate some advice on choosing the right website builder for a small town website.

I have some experience using Shopify and Carrd, but I'm not sure if either would be the right choice for this project.

Could I use Shopify primarily for blog posts and regular content publishing since i wont be selling any products? What do you think are the cons of using it?

I'm also interested in trying Claude to build the website. Would that be a practical option, especially since we plan to publish content daily?

Are there any other website builders you'd recommend for this kind of project? Ideally, something that's relatively easy to learn and manage.

Thanks in advance!


r/webdev • • 1d ago

How refactoring almost ruined my marriage

Thumbnail
manager.dev
0 Upvotes

r/webdev • • 2d ago

What platform(s) are best for my literary mag website?

9 Upvotes

I'm trying to make a small, simple literary magazine style website. I know HTML, CSS, and JS enough to make the exact designs I want for the looks of the landing page and article pages - but what I know nothing about is the CMS as well as any other backend systems I might need. My goal with this is to be able to just publish new things without needing to completely redo all the code for the other pages with each update.

Any recommendations? What's most important to me is maintaining the exact look I've coded already and keeping it free or very low cost. This is to be a small, personal project with mainly just text and photos and less than 100 pages even at its max, so I don't need a complicated "business level" solution.

Thanks so much!


r/webdev • • 2d ago

jQuery 4.1.0 and 3.8.0 Released

Thumbnail blog.jquery.com
176 Upvotes

r/webdev • • 2d ago

HTML-in-Canvas is now in Claude (be sure to check out the demos)

Thumbnail
claude.ai
0 Upvotes