Home 👨‍💻 IndieHack r/Webdev - Top Weekly Reddit
author

r/Webdev - Top Weekly Reddit

Delve into a community dedicated to the nuances of web development, a space for both front-end and back-end discussions.

July 1, 2025  23:52:39

Pay per crawl integrates with existing web infrastructure, leveraging HTTP status codes and established authentication mechanisms to create a framework for paid content access.

Each time an AI crawler requests content, they either present payment intent via request headers for successful access (HTTP response code 200), or receive a 402 Payment Required response with pricing. Cloudflare acts as the Merchant of Record for pay per crawl and also provides the underlying technical infrastructure.

Source: https://blog.cloudflare.com/introducing-pay-per-crawl/

submitted by /u/ZGeekie
[link] [comments]
July 5, 2025  07:56:47
I built a tool that tracks what the U.S. President is doing in real-time

I built a POTUS tracker that:

  • aggregates White House news, Truth Social, and official schedules in real-time. All information is publicly available and published by the President's press team.
  • uses semantic matching to surface only the news that are relevant to you.
  • sends you notifications faster than any mainstream channels.

Give it a try and let me know what you think!

https://potus.kadoa.com/

submitted by /u/madredditscientist
[link] [comments]
June 29, 2025  08:35:26
Performance optimizations in javascript frameworks

The amount of actual meaningful work ( routing, authenticating the user, pulling rows from db, rendering the response etc.) compared to everything else just keeps reducing. That feels absurdly counterintuitive since there hasn't been any real algorithmic improvement in these tasks so logically more sensible approach is to minimize the amount of code that needs to be executed. When there is no extra bloat, suddenly the need to optimize more disappears as well.

Yet we are only building more complicated ways to produce some table rows to display on user's screen. Even the smallest tasks have become absurdly complex and involve globally distributed infrastructure and 100k lines of framework code. We are literally running a webserver ( with 1-2g or ram....) per request to produce something that's effectively "<td>London</td>" and then 50kB of JavaScript to update it onto the screen. And then obviously the performance sucks since there's simply 1000x more code than necessary and tons of overhead between processes and different servers. Solution? Build even more stuff to mitigate the problems that did not even exist in the first place. Well at least infra providers are happy!

submitted by /u/yksvaan
[link] [comments]
July 4, 2025  20:10:53

Hello everyone, I know this may sound stupid but I am tired of React. I have been working with React for more than a year now and I am still looking for a job in the market but after building a couple of projects with React I personally think its over engineered. Why do I need to always use a third party library to build something that works? And why is Next.js a defacto standard now. Im learning Next.js right now but I don’t see any use of it unless you are using SSR which a lot of us dont. Next causes more confusion than solving problems like why do I have think if my component is on client or server? I am trying to explore angular or vue but the ratio of jobs out there are unbalanced.

submitted by /u/stealth_Master01
[link] [comments]
July 1, 2025  02:40:01
Is it okay to pass an API key in a script tag?

In this Google video talking about the new places SDK this guy shows a screenshot where they put the API key in the script tag for the Google Maps API.

Wouldn't this be visible to users on the front end where others could see it? Does setting an HTTP referrer restriction negate the risk?

My understanding is that when calling an external API with an API key, you should make that call on the back end and return the response data to the client.

submitted by /u/scienceyeaux
[link] [comments]
July 2, 2025  22:49:19

I always felt like my work laptop (even with decent specs) was way slower than a MacBook, especially when coding or running dev tools. After using a MacBook M1 for a bit, I really wanted that experience for my day-to-day work but my company only provides Windows laptops.

I’d was curious about Linux and my superior was using it.. So I decided to dual-boot Linux Mint on my work laptop and WOW. The difference is night and day. Everything just feels snappier and smoother, and for dev work, it's a lot closer to the MacBook experience than it is from the same laptop with Windows.

After just a week, I don’t want to go back to Windows for web development. If I had known this sooner, I could’ve saved so much time.

If you're in the same boat and your curious, give Linux a shot.

Any similar experience ?

submitted by /u/F2DProduction
[link] [comments]
June 30, 2025  05:25:01
Twitter API plans are a joke!

Preface: Building a platform which needs a subset of a logged in user's tweets for processing.

The pricing is ridiculous, the free their is pretty much useless! No wonder every tries to scrape their content in whatever ways possible.

Does anyone know of or has used frameworks for Next.js which supports Twitter's OAuth 1.0a authentication? Clerk says that the Twitter v1 is deprecated.

https://x.com/XDevelopers/status/1641222782594990080

If you had to, how would you access a user's subset of tweets. Twitter v1.1 APIs have a better more generous tier but maybe I will need to roll my own Twitter v1 auth instead.

https://preview.redd.it/vtdgq4ys00af1.png?width=1652&format=png&auto=webp&s=46fbb323bf66b76481f4c5a6bfe5376174c2afe9

submitted by /u/kaizoku_95
[link] [comments]
July 1, 2025  13:07:46

Hey all - could use some guidance here. I took on a client Jan 1 2024 to build a Wordpress site (hourly).

Basically worked for like 6 mo. Then I lost contact with the client for a bit (she had personal issues arise). Months later (Feb 2025) she hits me up asking me to finish the work to launch the site (for free).

I shouldn't have said yes, but I said I would help out as time allows. There are still several larger bugs that Im having trouble with and my personal schedule has changed over the last year. I really don't have the time anymore.

I sent her a professional email stating that my schedule had become hectic and that I would need to step back. I listed the remaining bug(s) and then provided a link to another dev who I suggested she reach out to.

She got mad, sent a bunch of texts. I completely ignored. Its been 2 weeks now. She just sent me a message saying she's getting her lawyer involved.

What do I do here? Do I need to get a lawyer?

edit: Sorry, no contract was signed. I signed an NDA that expired Jan 1, 25

submitted by /u/Choadson
[link] [comments]
July 3, 2025  03:37:47

For me it would be cookies especially tracking cookies.

How about you?

Edit: The consensus is in! The biggest pain for us devs is... Javascript https://www.reddit.com/r/webdev/s/npjZ7cAOFs - Now WHERE is it the biggest pain?

submitted by /u/metalprogrammer2024
[link] [comments]
June 28, 2025  21:07:36

I found that a thousand very small and even indexed queries on load of an application still took a fair amount of time. Changing the approach to make fewer calls greatly improved the performance.

What's something that y'all found?

submitted by /u/metalprogrammer2024
[link] [comments]
June 29, 2025  05:16:19
no worries. apple can't center their icons either.

the cross icon*

and so they decided to "create" liquid glass to make up for it.

submitted by /u/am_a_cup
[link] [comments]
July 5, 2025  13:59:46
ascii portal + hand tracking, a video effect that runs in real-time on the web

I'm working on a computer vision / augmented reality project, using hand movements to distort webcam video

This runs in real-time in the browser, using a normal laptop + webcam

Built with threejs, mediapipe computer vision, and webgl shaders

Live demo: https://www.funwithcomputervision.com/whirlpool-camera/

submitted by /u/getToTheChopin
[link] [comments]
July 3, 2025  19:40:31

I currently have an issue where select menu items on Edge are heavy left aligned, only on Edge.

I got PTSD from the old days of IE

Whenever you are in a hole, just take a breath and be thankful you don't have to fix rare quirks of IE8 anymore

submitted by /u/DeeYouBitch
[link] [comments]
July 4, 2025  15:23:47
I achieved multiplayer mode in my game using just database listeners

I’ve been working on a coding puzzle game where you guess what a code snippet prints. I recently added a basic multiplayer mode, and surprisingly, I got it working using just Supabase database listeners (on ‘postgres_changes’), no sockets, no WebRTC, just real-time database events.

The experience was a mix of “this is magic” and “why did nothing update just now?”

One issue was that sometimes a listener wouldn’t fire, so the room state wouldn’t update. To work around it, I added a few safeguards:

•Resetting local state when a player reconnects. •Forcing an update every few seconds •Re-subscribing if something breaks 

I know this isn’t a scalable solution. I’ve used socket servers before on the player side, but I’m not too confident with setting up a solid backend for multiplayer yet.

Still, it was cool to get it working this way, and I’d love to hear how others approach real-time multiplayer at scale.

Here’s the game if you want to try it: https://whatitprints.com

You can play solo in Endless Mode, or try out the new Multiplayer Mode and race friends to guess what the code prints.

submitted by /u/Nilelier
[link] [comments]
July 3, 2025  22:09:23

I used to work as a frontend engineer at this scaleup on an Angular frontend. Classic SPA, shipped to web and mobile and had a REST backend that was written in typescript. When I asked if it was possible to become more cross functional and work on the backend as well, I was in shock when they told me they built there entire backend in Next.js. No, not node.js, not nest.js, actual Next.js as in vercel react frontend ssr framework. And crazy thing was, they did not even have a backoffice admin panel running with that next app. Do more companies actually do this?

FYI, I have quit that job for the better.

submitted by /u/Budget-Length2666
[link] [comments]
July 4, 2025  12:04:39

For me, !important. It's the CSS equivalent of flipping the table because specificity lost the argument.

What's yours? Which CSS feature makes you sigh deeply and contemplate backend work?

submitted by /u/Glittering_Ad4115
[link] [comments]
July 4, 2025  22:13:39

Hey everyone,

I’ve finally shipped all the features you’ve been asking for. If there’s anything else that would make your Reddit life easier or more fun, just let me know!

Features:

  1. Feed post deduplication
    • Detection modes
      • Hash – best for memes and static images (≈ 90 % accuracy)
      • Similar – for photos/illustrations only (≈ 99 % accuracy; not ideal for memes). Adjustable similarity threshold
    • Scope – apply entire site or profile page only.
    • Quick on/off toggle
  2. Bulk-save viewed media
    • Save images, GIFs, RedGIFs and videos as a single ZIP
    • Edit the download list before saving
    • *(This one nearly broke me—browser security restrictions are brutal 😅)
  3. Inline playback for cross-posted videos even when there’s no visible play button
  4. Support for old reddit
    • Added infinite scroll

Grab the update from the Chrome Web Store or Firefox Add-ons, give it a spin, and let me know what you think!

Chrome: https://chromewebstore.google.com/detail/reddit-bro/hjpcclcicecepbgndkjadaojdabheccn

Firefox: https://addons.mozilla.org/en-US/firefox/addon/reddit-bro/

submitted by /u/DeimosFobos
[link] [comments]
July 1, 2025  15:35:11
I asked 6,000 people around the world how different AI models perform on UI/UX and coding. Here's what I found

Disclaimer: All the data collected and model generations are open-source and generation is free. I am making $0 off of this. Just sharing research that I've conducted and found.

Over the last few months, I have developed a crowd-source benchmark for UI/UX where users can one-shot generate websites, games, 3D models, and data visualizations from different models and compare which ones are better.

I've amassed nearly 4K votes with about 5K users having used the platform. Here's what I found:

  1. The Claude and DeepSeek models are among the best for coding and design. As you can see from the leaderboard, users preferred Claude Opus the most, with the top 8 being rounded out by the DeepSeek models, v0 (due to website dominance), and Grok as a surprising dark house. However, DeepSeek's models are SLOW, which is why Claude might be the best for you if you're implementing interfaces.
  2. Grok 3 is an underrated model. It doesn't get as much popularity online as Claude and GPT (most likely due to Elon Musk being a controversial figure), but it's not only in the top 5, but much FASTER than it's peers.
  3. Gemini 2.5-Pro is hit or miss. I have gotten a lot of comments from users about why Gemini 2.5-Pro is so low. From a UI/UX perspective, Gemini sometimes is great, but many times it develops poorly designed apps, all though it can code business logic quite well.
  4. OpenAI's GPT is middle of the pack and Meta's Llama Models are severely behind it's other competitors (no wonder they're trying to poach AI talent of hundred of millions and billions of dollars recently).

Overall Takeaway: Models still have a long way to go in terms of one-shot generation and even multi-shot generation. The models across the board still make a ton of mistakes on UI/UX, even with repeated prompting, and still needs an experienced human to properly use it. That said, if you want a coding assistant, use Claude.

submitted by /u/adviceguru25
[link] [comments]
July 5, 2025  10:19:56

Hey everyone,

A while back, I saw a post somewhere that said "Sinkedin - a LinkedIn but for posting failures". My brain thought it was a brilliant idea, so I spent my free time building it.

And now, it's live! sinkedin.app

Sinkedin is exactly what it sounds like. A place to post your work screw-ups, career embarrassments, and failures. It also has option to post things anonymously.

A few warnings:

  1. The UI: I am not a designer. I tried my best, but please bear with the UI. If you have good taste and it physically hurts you to look at my site, I invite you to make it better. The GitHub repo is here: https://github.com/Preet-Sojitra/sinkedin
  2. The Performance: The entire thing is running on free-tier services. It's held together with hope and duct tape. So if it's a bit slow, that's the... uh... "feature" of being a budget project. Go easy on it!

Would love to get your feedback, bug reports, or even just see you post your first failure on there!

submitted by /u/TheQuirkyOne_0307
[link] [comments]
June 29, 2025  15:47:22
Built a multi-language sentence analyzer for my wife - now we're almost at 1,000 users!

Started as a one-evening MVP in February - a Next.js page that called the Gemini API and displayed color-coded Korean grammar for my wife. Since then, Hanbok now generates hundreds of analyses per day (up to 40,000 total now!) and we're almost at 1,000 users, which is amazing and I'm so grateful for the support!

It's gone through a few redesigns, and I've added several new features like spaced repetition flashcards, 9 additional languages, song lyric analysis, and a chat interface for asking followup questions based on a sentence analysis!

Demo: https://hanbokstudy.com (feedback welcome).

The stack:

- Next.js front-end

- Custom CSS for all the styling

- Express web server

- Redis

- MongoDB

- GPT-4.1 for OCR and chat

- Gemini for analysis

- DigitalOcean/NGINX

In the near future I plan on adding a forum for language Q&A, more languages per user requests (like Vietnamese, Hindi, and Indonesian), and grammar practice quizzes based on your history!

The github repo and the discord server are linked on the site :)

submitted by /u/jamesfy49
[link] [comments]
July 1, 2025  08:16:17

I've recently turned 40 and have been in the web game in some form for nearly 20 years. I've done okay for myself, generally working as a contractor and freelancer in that time.

The milestone has caused me to look back and really see the differneces between then and no, and really kick myself for not taking advantage more. This was a time when it was easy to rank organically just by putting stuff in your meta tags, almost any idea you had hadn't been done before, and so in general it was so much easier to build something rather than exchange time for money.

I feel like I've woken up on the other side and realised I missed out - I did of course make money in the industry, which i realise is harder to get into now and faces big challenges, so I'm thankful for that - but wow - hindsight really shows up how different things were then.

Anyone else feel the same way?

EDIT: Title should read 'web IS over'

EDIT: Wow thanks for the replies everyone; quite taken back by how much this has hit a chord. I can't reply to everyone but appreciate the sense I get that I'm not alone. For now I'm choosing to appreciate that we were part of a fun time, and that it's still laid a path for today, both for me and others. Yes i could have taken more risks and built some stuff that could be paying off more today, but its not certain it would have worked whereas what I did has.

submitted by /u/Tiny_Major_7514
[link] [comments]
June 29, 2025  19:39:37

I am really studying and understanding the effects of good Design vs something that is just unusable. I came across this little website called Facebook and it... man it's overkill.

It's like a company had too much time on their hands and wanted to cram every idea they ever came up with into one single platform. It is the definition of an omni application.

I know the smart folks at Silicon Valley have better QA and Designers are better than this. The main screen is overcrowded, layers of app bars and icons. The "Hamburger" Icon brings you to a full page of just "stuff" then from that page there is a settings cog wheel icon that takes you to more nonsense and confusion.

From the settings page you just go down rabbit holes after rabbit holes of pages.

Like how does something like this happen and someone think that this is Ok?

submitted by /u/Key-Singer-2193
[link] [comments]
July 4, 2025  17:27:34

I made it to the "signing the contract" stage on a job application but couldn't sign it because their was a clause that allowed the company to claim ownership of ANYTHING (including side projects produced in the evenings and weekends outside of work hours) I built while employed with them.

Both the CTO and recruiter claimed this was a perfectly normal contract, that I was looking too deep into it, and that no one else had objected to this in the last 7 years and that I should sign it.

But to me this was extremely unfair as a contract is supposed to protect the interest of both parties - and I work on a lot of stuff on the side that is as important to me as there code is to them.

I said the contract was to ambiguous and could only really accept something along the lines of "all work produced on your time is yours and all work produced on my time is mine" which they wouldn't accept.

Which basically ended the job application.

This sounds completely unreasonable to me.. am I right in thinking this or is this a standard part of any contract in the UK and I should have just signed it?

submitted by /u/StudiousDev
[link] [comments]