r/webdev • • 2d ago

Discussion Bearer token visible in DevTools?

30 Upvotes

Now I know this is a beginner question, and so I’m building an Angular/Spring project as a web app.

The Angular auth interceptor attaches the token (to the HTTP request) here. Obviously when it gets routed to the backend, it exposes the token. That’s just the trade-off for not using a backend-for-frontend architecture.

Say the reason for my architecture choice comes up during an interview. Will I be failed on the spot, or can I justify it by explaining what production-ready (BFF) will look like?

EDIT: Appreciate the answers everyone. I can breathe easy.


r/webdev • • 1d ago

Resource GitHub - jantimon/css-in-js-bench: CSS-in-JS benchmarks: SSR throughput, payload, hydration and interaction cost of React styling libraries on identical workloads

Thumbnail
github.com
0 Upvotes

r/webdev • • 2d ago

Eleventy Question

5 Upvotes

Hey everyone, I'm new to Eleventy, and I have been messing around with it for the past few days (not without frustration). I'm having fun learning about front matter and have gotten the hang of creating templates. The Eleventy forum is kinda... dead... so I'm coming here for a bit of assistance.

I'm using Eleventy because I want to add a blog to my static portfolio website. My static website is complete, and I've already got a lot I want to add in the future. But my biggest accomplishment will be nailing this blog addition. Not only have I rebuilt my website with Eleventy, but I will also stack DECAP CMS on it.

With that being said, this is my main question:

My root folder is called portfoliov2 (I upload this to GitHub). There is a folder inside of it called _site. This is the public folder that people can access, and it has the .njk files converted to .html files. Great! I have gotten to the part where I have started creating .md files for my blog posts (which go into a folder called posts in my _site folder).

Let's say I have created a blog post called welcome.md; it then goes into the "posts" folder in a new folder called "welcome" with an index.html file in it. When I view the index file by itself, it's fine. All of the blog content shows up. The file path goes something like this: 000.0.0:0000/_site/posts/welcome.html, but when I try to access it from my blog.html (where the list of blogs is appearing properly), it looks something like this: 000.0.0:0000/posts/welcome.html, but it shows an error: "Cannot GET /posts/welcome.html".

I am at a loss with this because after clicking a blog post from the list, it works properly for the gentleman in the tutorial. I don't want to keep manually changing the permalinks, and I am wondering if my website's live URL will look something like "websitename.com/_site/posts/welcome.html". It's driving me a bit bonkers. Is there something I need to do on the server side? I'm of course working locally and checking my work on a live server.

Thank you for your help!

Edit: Added the link to the tutorial I'm using!

Edit: I am NOT creating .md files in the _site folder. They are created outside of the _site folder, and Eleventy converts these .md files into a new folder with an index.html file. It looks something like this after conversion: _site/posts/postName/index.html instead of /posts/postName.md (outside of the site folder)

Edit: IT WORKKS. I rebuilt my _site file, didn't change any folder names, and used 11ty --serve. Things are working as they should be! I appreciate the time everyone has taken to help me out. One step closer to getting this blog up and running 🎯


r/webdev • • 1d ago

Discussion I would like to publish my project on programming subreddits but I have kind of AI-coding related anxiety

0 Upvotes

I made it entirely with AI, there isn't a single line of code written by hand. It took at least a thousands prompts and hundreds of hours of work. I feel like it's propably a cool project and genuiely want to share it with people, but I've been reading this and other similar subreddits for the last year and it built up in me a kind of anxiety that it will meet the same fate as countless other projects I've seen. The most upvoted comment will be "you didn't do it, claude did" and most people will just ignore the amount of work that was put into it.

I am sorry I know this is silly and cringy post, I'm just looking for anything that will give me courage to show off my work.


r/webdev • • 3d ago Bravo

View from the inside: First week working at an AI-heavy company

646 Upvotes

I just got a job where they vibe coded an app and hired me to put out fires and structure the project properly. They're so insistent on "moving fast" that they said on my first day of the job that I'm not allowed to write code by hand. And I should prompt claude instead.

After a week of working there, my view on AI has changed quite a bit.

When I first got the project, it was... worse than a developer's worst nightmare.

  • Users table had 59 columns, at least 50 of which remained empty depending on user role
  • The backend had parts written in python, django, node and php. None of which was doing anything the others couldn't.
  • Some logic was repeated in multiple different controllers and languages that only Claude knew which to use when.
  • Probably because the guy who vibe coded the app was familiar with Jinja templating engine in python, they made Claude rewrite the whole Jinja templating engine in PHP. Instead of using a templating engine that was built for PHP, like Blade.
  • Things that should've been kept in the database was being read from random .json files
  • No foreign keys in the database, all integer columns (no indexes either)

My first task was to make claude turn this "random bullshit go" app into a properly structured Laravel project. I used the Pro tier company account, highest thinking level, and planning mode.And they said the output didn't have the same frontend as their main app. Turns out they were using a separate frontend/backend approach. But here's the neat part: their backend folder already had frontend views within it. That's why Claude was using their "old design". I don't like/use a separate front and backend approach a lot so I don't have much experience with it, but I'm pretty sure if you're separating your frontend from your backend, you shouldn't have frontend views in your backend directory.

This is what top of the line, enterprise tier Claude agent does when the developer knows nothing about development.

After I took over the project and fixed the errors I listed above (and many, many more) I started working on new features on the app. And I must say it's going way smoother, and the output looks way more professional and maintainable with me (and my 15 years of web development experience) giving the prompt.

This experience made me truly understand that AI is literally a tool. It's as good as the person who's commanding it. A vibe coded app truly reflects the experience of the vibe coder.

The bright side is: all those years and years we put into this field are not for naught. A hammer is a hammer, what it does depends on whether it's a sculptor or a toddler holding it. You still need to know the best practices to make sure your app follows the best practices.


All that said, I've always loved coding my apps by hand, and I still do. I'm still coding my own personal projects by hand, line by line. Afterall that's how I was able to spot these mistakes and fix them in the first place. I also don't want to fund building data centers all over the world by giving them my money.


r/webdev • • 2d ago

How is Sunday.app prefilling Google review star ratings from an external website?

1 Upvotes

I'm a web developer investigating whether it's possible to pass a customer-selected star rating from a third-party website into Google's native review submission interface.

Sunday.app explicitly documents this functionality:
https://intercom.help/sundayapp-help/en/articles/6695489-sunday-reviews-how-does-it-work

I've already tested:

  • Standard Google review links using Place IDs
  • Legacy #lrd=FEATURE_ID,3,5 parameters
  • Modified parameters within Google's native review modal URL

None of the tested methods successfully prefill the stars.

Google's publicly documented APIs don't appear to support this functionality.

Has anyone inspected Sunday's actual redirect, encountered a working deep link, or worked with a Google integration that supports this?

I'm not looking to automate review submissions or filter negative reviews. I simply want to transfer a customer's voluntarily selected rating from my clients on-site review page into Google's review interface, where they can complete and publish it themselves.


r/webdev • • 2d ago

Run 'vite build' on DirectAdmin after Git Deploy?

5 Upvotes

Long time PHP-dev here, doing a hobby project in ThreeJS / Node / Vite, so please forgive me if I mess up some terms.

I am making a web-based game in ThreeJS, which I run locally with Vite. It's on Github as well, and I have set my (shared webhosting) server up to automatically fetch and deploy the main branch when I merge the dev branch in it. This works.
I also created a Node.js-app on the server and manually ran 'vite build'. The game is running fine.

Now, I want to run 'vite build' automatically after the git branch has been deployed, instead of having to log in and run th script manually. In DirectAdmin, I see no option for this.

According to both Google and Claude, I can easily set up a cron job running this command every few minutes, but this is massive overkill for a task which should be only running once or twice each month.

Can this be automated in a cleaner way?

[edit]
Got it!
Github Actions pushing /dist over FTP didn't work, but is now writing to a deploy branch which is picked up by Direct Admin.
Very happy. Thanks y'all.


r/webdev • • 4d ago Bravo

This sub is dead

1.8k Upvotes

It used to be fun to see what people were able to do with their minds. Now people just show off what they purchased from Anthropic and OpenAI.


r/webdev • • 3d ago

Things you can do with a browser in 2027

Thumbnail
github.com
105 Upvotes

r/webdev • • 3d ago

How one connection kills a database

Thumbnail
planetscale.com
8 Upvotes

r/webdev • • 3d ago

News JavaScript Gets a New Set of HTML Insertion APIs

Thumbnail
amitmerchant.com
172 Upvotes

Chrome (and Edge) is introducing a new set of HTML insertion and streaming methods that provide a more descriptive way to insert HTML into an existing element, along with the ability to stream content directly into the DOM.


r/webdev • • 2d ago

Question is a CSS overlay label on AI-generated images enough, or does the label need to be in the image file?

0 Upvotes

Our marketing site uses realistic AI-generated photos: office scenes with invented people. Under Art. 50(4) of the AI Act these seem to count as "deep fakes", so they need a visible label.

Instead of editing every image, I'd add the label with CSS:

<img src="/images/team-at-work.webp" class="ai-img" alt="AI-generated: support agents at work">

Is anyone relying on an overlay like this, or are you all embedding the EU icon into the files? If you embed it, how? A script, your image pipeline, a CDN plugin?

the ai-img class does add a relative text on the bottom-right of the img.


r/webdev • • 3d ago

Question Looking for a Full stack developer course. (Not a beginner)

14 Upvotes

I am not a beginner. I have good knowledge of with HTML/CSS/javascript and some other stuffs like PHP with MySQL.

Now I want to get into full stack web development.


r/webdev • • 3d ago

Question Looking for a CSS/JS buddy to talk me through a small scale creative project

4 Upvotes

Hi, I hope this is appropriate to reach out to. I’m an artist and designer with a very basic understanding of webdev and I’ve been looking for someone to help translate the content I have to my site. The major problem I’m having is that there is a bunch of narrative context attached to it that it would be considered more of a game than a website, and I’d really like to find somebody that would be willing to get stuck in with me and talk me through what might be the best way to do it. I’m willing to pay, I’m desperate to get this off the ground.

Please feel free to DM me for more info, but I currently have a domain on Obsidian Publish/Cloudflare and plan for this to be executed on Cloudflare’s JS workers. In essence, it’s a personality test with 16 possible results, with the questions being simplistic in design but atmospheric looking enough that it could belong to a game. Still in the middle of doing visual mock ups, but most of the questions have been made already, I’m just having trouble attributing and calculating the points for each answer (the number of answers varies per question), and more importantly how to structure and program that. Thank you!


r/webdev • • 5d ago

Showoff Saturday Bypassing iOS Safari’s 60 FPS Limit to Build Web Applications That Feel Native

Thumbnail
rida.dev
411 Upvotes

I just posted a new blog post on my website! Check it out!

The entire post is an interactive experience. Do note that if you're trying this on an older device, I'm still clearing some issues off the main thread - so it may be laggy for a few more hours. Lag mostly resolved outside of a few stickier hitches! If you run into any issues, let me know what device you're running and I'll look into it!

Otherwise, enjoy!


r/webdev • • 4d ago

Discussion PHP in 2027?

9 Upvotes

Is it still worth learning for self taughts? Are there jobs despite AI?


r/webdev • • 4d ago

Discussion What separates a professional software development agency from a freelancer with a portfolio?

29 Upvotes

I'm involved in building a software company and have been thinking about what actually makes a development partner trustworthy.

Is it:

  • Code quality?
  • Communication?
  • Documentation?
  • Delivery process?
  • Maintenance and long-term support?
  • Understanding business requirements?

Developers and agency owners: what do you think clients value most, and what do agencies usually get wrong?


r/webdev • • 4d ago

Discussion I'm going to get VPS for the first time in my life and I have couple of questions about it. I'll be grateful if someone could share their experience

7 Upvotes
  1. Do I need something like Coolify? Lots of people recommend this and it seems to be great tool. The thing is, I've read that it had some security patches recently, so potentially it can have more in the future. If I will just use SSH to control my server, will it be much more difficult and time consuming to maintain it? For the sake of having one less attack vector for hackers
  2. Should I get something like Tailscale if I'll use SSH?
  3. I have couple of Next.js apps on Vercel. It works flawlessly and their Analytics service is great, but unfortunately monthly bill is getting higher. Do you think it's a good idea to migrate to VPS + Cloudflare CDN + Umami? This is my current plan after some initial research. VPS would handle mostly SSR and backend stuff while Cloudflare would be in front of it, caching static data and protecting my VPS against DDos attacks. Theoretically. I never tried it.

r/webdev • • 4d ago

Showoff Saturday I implemented YouTube's SABR protocol in my open-source self-hosted YouTube client

Thumbnail
github.com
22 Upvotes

I've been working on TubeHaus, an open-source self-hosted YouTube client focused on privacy and account-free viewing.

Over the last few days I spent a lot of time digging into YouTube's SABR streaming protocol and finally got it working reliably inside TubeHaus.

Most alternative YouTube frontends rely on approaches that have become increasingly fragile as YouTube changes how playback works. SABR was one of the biggest missing pieces for long-term compatibility, so I decided to implement it directly instead of relying on older playback methods.

The result has been surprisingly good:

  • Much more reliable playback
  • Better handling of newer YouTube streams
  • Improved compatibility with recent platform changes
  • Reduced dependence on legacy playback paths

The implementation was based on existing reverse-engineering work from the community, but I had to fill in a number of missing details before I could get consistent real-world playback.

I'm curious if anyone else here has been experimenting with SABR or reverse-engineering YouTube's newer streaming stack. I'd love feedback from people who have worked on media streaming, video delivery systems, or alternative YouTube clients.

Project: https://github.com/biolend83/tubehaus


r/webdev • • 4d ago

Resource Looking for someone's who has created a website as a mentor.

8 Upvotes

I'm a 1st college student, I'll be attempting to create a website for a very specific use. I've got about a month starting November 29th. The plan is I'll share the roadmap I'm following with the mentor and start building the website. I've done front end earlier so HTML and CSS is down. I'll be needing guidance about the backend part specifically. Only in the form of doubts answered once a day at any time convenient to them. Over reddit. I don't have problems with staying on track or motivation, I just require someone to tell me if I'm putting efforts in the right direction. Please dm me if you are willing.


r/webdev • • 5d ago

got a web page to read any site's response with no CORS restrictions and no backend, by running Tor through WASM

11 Upvotes

most of the time when you fetch an something like an API, the server sends no cors headers, and the browser throws the response away. the simple fix is a CORS proxy, which means a server you have to run and pay for.

i wanted to see if i could skip it all entirely. my project runs Arti, Tor's rust client, in WASM, and reaches Tor through Snowflake (WebRTC or WebSocket), so cors never comes up.

its crazy slow but nonetheless cool to see

demo at https://kitakitaaura.github.io/nukemichi/demo/

repo: https://github.com/kitakitaaura/nukemichi


r/webdev • • 4d ago

Discussion How are you actually managing your workflow with AI coding agents?

0 Upvotes

I've been using AI coding agents more lately, and I'm curious how other developers are organizing their workflows around them.

Writing code is easy now, but once you have agents working on multiple tasks, there's a whole other set of questions:

  • How do you decide what to delegate to an agent?
  • How do you keep track of what it's doing without constantly checking?
  • What happens when an agent gets stuck or needs your input?
  • How do you handle code review before merging?

Are you using GitHub Issues, Jira tickets, custom scripts, dedicated tools, or just a bunch of terminal sessions?

I'm especially curious about people working in small engineering teams.

To me today manage multiple repos + multiple Claude Code sessions on terminal is really chaotic + babysit agents.

What's your actual setup, and what's the most annoying part of it?


r/webdev • • 5d ago

Showoff Saturday An app to draw and annotate on maps

Post image
49 Upvotes

Hey folks. Some time back in 2022, I started working on craftbase (a 2d whiteboard app), revamped it later, and recently some months back I forked it and had begun work on mapcursor (You might have come across my post in r/webdev about craftbase some time back).

Now to implement, using the same 2d SVG renderer (two.js ) which was the platform for craftbase and to let "map" be a backdrop, I imagined if we can make this a map annotation tool given craftbase had "base" and SVG renderer for rendering elements on surface.

I swapped "Whiteboard Base" with "Map Base", elements live in plain Two.js surface space, and has specific anchor glue so map keeps in sync beneath it. Fast forward last month, I hosted the web app here - https://mapcursor.com

Original Inspiration:

There were lot of areas in my city which were prone to waterlogging. So to describe to the community, it lacked a way for me to have a proper tool and having ability to share it with others. Nonetheless, I am geography enthusiast (not hardcore) and in my college's final year project I had created google maps transit project (back in 2016).

Tech Stack

It uses react (frontend), hasura (API layer), node.js (backend) as part of core primary tech stack.

Additionally, it uses CARTO for map tiles fetching and "nomanitim" for place searches. You can read more on privacy here - https://mapcursor.com/privacy

As long as you are on home page (/) , all of the data is stored locally on your machine (whether machine's browser or mobile's browser).

Use case:

I am still figuring out the exact and niche use case this can serve to.

I mean it could serve for surveying, clustering on areas, creating hotspots (like marking illegal activity hotspots in a city ) , marking highway corridors/inter city transport routes or I can image road trip memory (since photo upload is supported locally only). Would love some serious feedback on this project. Thanks for dropping by.

Btw, the code's open sourced here - https://github.com/meetzaveri/mapcursor


r/webdev • • 5d ago

Discussion Is the internet falling apart, or do we just notice it more?

Thumbnail adriankrebs.ch
87 Upvotes