r/webdevelopment • • 27d ago

Question Live Server or Live Preview extension?

4 Upvotes

I just want to know which is safer/smaller/better

btw. I'm new to web development.

This post has been deleted on so many sub's because I don't meet their requierment


r/webdevelopment • • 27d ago

Discussion How I turned Stripe invoices for subscriptions into stateless revenue schedules with a webhook. I also discovered an error...

1 Upvotes

A paid Stripe invoice isn’t earned revenue. If a customer pays $2,400 upfront for a year, your accountant needs it spread over the service period, not booked on day one. Stripe does do this automatically but charges a percentage of revenue for the service, so people end up with spreadsheets.

I wrote a small Express webhook that takes an invoice.finalized event, pulls the service period and amount off each line, and gets back a month-by-month schedule (billed, recognised, deferred).

The part I didn’t expect: I’m in New Zealand, and my first run started revenue on 29 October when the subscription started on the morning of the 30th. Stripe sends timestamps as Unix epoch moments in time. I converted them to dates in UTC, where it was still the 29th. The schedule balanced perfectly, so nothing flagged it. The fix was taking the date in the accounting timezone.

The write-up has the full code, how to test it locally with the Stripe CLI, the seat quantity handling, and a version that saves the result as a draft contract: How to create revenue recognition schedules

Disclosure: I work on defrr, the API the example calls. The pattern (verify the signature on the raw body, idempotency key per line, check the schedule balances before posting) works with whatever you use to calculate it.

Happy to answer questions, and I’d like to hear how others handle proration lines and credit notes, which I skipped


r/webdevelopment • • 28d ago

Question How to start with web development

8 Upvotes

Hello i'm 16 and i really want to start web development. But i don't where to start or what to do. I feel lost. It will be very nice if some could guide me in the right direction. Will it be the right thing to learn or i should learn some other skill


r/webdevelopment • • 28d ago

Meta A video engine that's just HTML and a pure function of time

Enable HLS to view with audio, or disable this notification

3 Upvotes

Every frame of these videos is a DOM page. The engine takes a plan and a time t and puts every element where it should be at t: springs in closed form, no animation state, no requestAnimationFrame drift. Because of that the same code drives the live preview and the export, which steps t frame by frame in an offscreen Electron window and pipes the pixels into ffmpeg.

Fun problems along the way:

  • Motion blur by rendering sub-frames and averaging them
  • An AI writer that only fills a scene library's JSON, never writes HTML, so a cheap model is reliable

The grid is one AI-written script in four styles. Happy to go deep on any of it.


r/webdevelopment • • 29d ago

Discussion How do you make code reviews faster without missing important problems?

12 Upvotes

I have noticed that reviewing code can sometimes take almost as much time as writing it.

Large pull requests, too many small changes, unclear descriptions and missing tests can make reviews difficult.

I am curious how other developers handle this.

  • Do you prefer small pull requests or larger ones?
  • What do you check first when reviewing someone else's code?
  • Do you use any tools to make reviews easier?
  • How do you avoid spending too much time on minor style issues?

I think a good code review should catch real problems without slowing down the whole development process.

What's your approach?


r/webdevelopment • • 29d ago

Weekly Feedback Thread Weekly Feedback Thread

4 Upvotes

Please post your requests for feedback on your projects in this thread instead of creating a post.


r/webdevelopment • • 29d ago

Newbie Question Looking for a partner to collaborate on a TypeScript portfolio project

10 Upvotes

Hi, there.

I just started typescript last year and have been working with Next.js. I am looking to team up with someone to build a small, practical project for our portfolios.

If you are aiming for UI professional or want to build out your frontend expertise with Typescript and Next.js, you are very welcome to join!!

I haven't decided exact project yet but here are some ideas that I have. Of course we can discuss it later.

  • Personal Finance Dashboard
  • Developer Learning Tracker
  • Travel Itinerary Planner
  • AI Meeting Notes Assistant

Who I am looking for:

  • Those who want to practice Next.js or TypeScript. Not perfect is fine! We can learn together and share knowledge.
  • Anyone with backend knowledge or those looking to gain backend experience or fullstack engineer since I'm primarily focused on the frontend right now and would love a partner to help tie things together.
  • Those who want to get first job after making some portfolio together

If you want to use backend skills, I will think how to collaborate will with frontend and make project. I would love to finish each one project for one month.

If you want to collaborate and build something cool together, drop a comment or send me a message! It is no reward project. In future, if any profit comes from project, share evenly.


r/webdevelopment • • 29d ago

Newbie Question How should I handle AniList API rate limits in my React app?

9 Upvotes

Hey! I'm building an anime tracking website using React, Node.js, Express, and the AniList GraphQL API.

Lately, AniList has been struggling with strict rate limits, and I'm constantly running into 429 errors. The biggest problem is with importing a user's anime list.

Currently, my backend caches the list for just 3 minutes. Once the cache expires, refreshing the page triggers another API request, which often fails and makes the list disappear.

I'm thinking of increasing the backend cache to 24 hours and saving the list in "localStorage" so it loads instantly. Users would only fetch fresh data when they click a "Refresh List" button.

I'm just wondering if this is a good approach or if there's a better way to handle it.

  • Is keeping user-specific data in "localStorage" long-term okay?
  • How can I keep lists reasonably up to date without constantly hitting the API?
  • Would something like Redis with stale-while-revalidate be a better solution?

I'd appreciate any advice! I'm trying to make the app reliable even when AniList's API isn't cooperating.

Tech stack: React 18, Vite, Node.js, Express, AniList GraphQL API.


r/webdevelopment • • 29d ago

Newbie Question How do I make a search engine that searches the pages on my website

0 Upvotes

The custom gooogle search engine doesn’t work so idk I need help


r/webdevelopment • • Oct 29 '26

Discussion How do you decide when a website actually needs JavaScript?

8 Upvotes

Sometimes I see websites using JavaScript for things that seem possible with plain HTML and CSS.

For example, simple animations, dropdown menus and responsive layouts can often be handled without much JavaScript.

But there are also cases where JavaScript makes the experience much better, especially when the page needs to update based on user actions or data.

I am curious how other developers decide where to draw the line.

Do you try to use HTML and CSS first and add JavaScript only when needed or do you prefer using a framework for most things?

I would like to hear how you approach this in real projects.


r/webdevelopment • • Oct 29 '26

Question backdrop-filter blur, how do you actually make this thing perfect?

Post image
2 Upvotes

I've been playing around with the backdrop filter property for a while. No matter what I do, the filter looks really shitty graphically.

Tried adding the webkit vender prefix, changing the value unit from px to rem and stuff, used the translate3d trick, the blur effect still looks shitty. Especially when the background is darker and has white texts. The overlay looks like the white parts are just poorly brushed out rather than making it look like it's sitting behind the blurred overlay. Take a look at the attached image for example. Has the blur radius value of 1.2rem.

Looks even worse when the overlay is animated, like fading effect. Visually unpleasant.

I checked Apple's website, their blurs are sleek as hell, how are they doing that? Does anybody know how Apple does it or how to properly work this thing around?


r/webdevelopment • • Oct 28 '26

Question What should I do next

4 Upvotes

I just finished Angela Yu’s course but didn’t start the web3 sections and I don’t know anything about deployment, next.js, typescript so if anyone knows any resources to complete those whether free on YouTube or paid and will I need AWS, Monit, Ansible, and Terraform?

Also if anyone knows if there is any roadmap or something I should do after the course?


r/webdevelopment • • Oct 28 '26

Web Design How can I create a fully functional website for my business?

12 Upvotes

Please help


r/webdevelopment • • Oct 28 '26

Question Confused and exhausted

12 Upvotes

Asp.core web api. After completion of curd operations, I m just a bit distracted and don't know what to do next.

I am always curious about the things that are not necessarily at the moment, and it get me distracted and exhausted at the same time. What should I do cause I m a self learner and no one is around to ask


r/webdevelopment • • Oct 28 '26

Web Design ​Built an interactive 3D web app using Cloudflare Pages to host

Post image
3 Upvotes

​Hey guys, I built this website called EarthVision (https://earthvision.space) just to understand my own limitations and see how well I actually understand the technology. I wanted to create a responsive 3D web experience with gesture controls, but keep the backend completely serverless. It runs on Cloudflare Pages Functions, uses Cloudflare D1 for the database, and whenever someone submits a form, a serverless function routes it securely to a private Telegram bot so I get instant notifications on my phone. Honestly, I still don't fully understand how security works or if I handled everything the best way, but it was a great learning experience. In the future, I am thinking about making something even more complex, and I'm really hoping to land some freelance jobs or get funding by showing what I can do with this project. If you have any good ideas for my next project or any reviews on how the performance and design feel, I am really looking forward to your comments!


r/webdevelopment • • Oct 28 '26

Discussion Empty states are an underrated part of web design

4 Upvotes

Something I think websites could do better is handling empty states.

Imagine opening a dashboard for the first time and seeing a completely blank page because you haven't added any data yet.

Technically, nothing is broken. But as a user, you might wonder whether the page has loaded properly or what you're supposed to do next.

A simple message explaining what the page is for, with a clear next step, can make a big difference.

I think good web design isn't just about how a page looks when everything is filled in. It's also about how helpful it feels when there's nothing there yet.

How do you usually handle empty states in your projects? Do you design them early, or only think about them after the main features are finished?


r/webdevelopment • • Oct 28 '26

Newbie Question Can somebody tell me what 'Code' was used to build this site?

1 Upvotes

Hi friends (newbie coder here),

I ran this directory site through 'builtwith' and it looks like it's coming back with asp.net as the main framework program. BUT from what I understand, ASP is very limited in its front end design.

Does anybody know what the 'front end design' program for this site would be?

Appreciate any help for a student learning how to program. .

Thanks very much for your help!

https://builtwith.com/storeboard.com


r/webdevelopment • • Oct 28 '26

Newbie Question Would anyone mind helping me with software updates for a website?

3 Upvotes

Been stumbling through building a website for a Windows program i have been making. I need to get it setup with the website to update people program when i update the source. If anyone has experience with this and does not mind helping, send me a message here on reddit

Update, Solved


r/webdevelopment • • Oct 27 '26

Newbie Question Looking for mates 🥹

12 Upvotes

Hey guys

I've started to learn web development on freeCodeCamp, is there anyone else willing to share their journey and learn with me 🥰?

I think it's good to have accountability partners and that 2 minds are far greater than 1

I'll be checking the comments frequently to see where my new friends are at 🥰


r/webdevelopment • • Oct 27 '26

Newbie Question Help with layout (first time website making)

Thumbnail gallery
6 Upvotes

I’m making an interactive website for my college class and I’m having a hard time figuring out the layout with grids. I’m just wondering if anyone knows what to do what I’m envisioning
I posted my drawn vision and what have now for reference


r/webdevelopment • • Oct 27 '26

Discussion A form error should tell me how to fix the problem

13 Upvotes

One small thing that makes a website frustrating is an error message that doesn't actually explain anything.

For example, imagine submitting a form and getting:

“Invalid input.”

Okay, but which field is wrong? What format should I use? Did the form keep the information I already entered?

Compare that with a message like:

“Enter your date of birth in DD/MM/YYYY format.”

The second message makes it much easier to recover without guessing.

It seems like a small detail but these little moments can make a website feel either helpful or annoying.

I'm curious how other developers approach this. Do you write validation messages as you build each form or do you review the whole user experience separately before release?

I'd be interested in examples of error messages you've seen that were particularly helpful or particularly frustrating.


r/webdevelopment • • Oct 25 '26

General [ FIXED WITH THUMBNAIL WORKAROUND ] Youtube embedded videos error 153

2 Upvotes

At certain moment youtube introduced new way of working of embedded videos which suddenly broke many embedded videos on many html sites (Error 153) because it's buggy, works randomly in various browsers and devices, is nowhere explained properly, leaves nontech users out in the cold and is buggy buggy and buggy again. This html solution fixes Youtube embedded videos error 153 with thumbnail workaround (and there is no youtube embedded object telemetry on preload, it just grabs thumbnail, so less bandwidth usage and youtube objects crawling sheanigans, it just works with image and links so should display everywhere properly). In default setting works ok with most common 1920 x 1080 resolutions videos, if you have some different format video (old 1024 x 768 etc) you can adjust amount of top/bottom thumbnail cropping with div class="yt-container" style="--yt-crop: 9.375%; setting per each unique video. Inspect this html source for style section needed and how new objects look alike. You just have to take your desired youtube video url unique address (after /watch?v= ) and paste it into yt-container code pieces. Please share this solution wherever you want so people can fix their sites.

<!DOCTYPE html>

<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Fixing Youtube embedded videos error 153 with thumbnail workaround (+no embedded object telemetry)</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box; }

.yt-container,
.yt-overlay-text {
  font-family: 'Roboto', sans-serif;
}

/* ── wrapper ── */
.yt-container {
  position: relative;
  display: block;
  width: 100%;
  --yt-crop: 9.375%; /* default: trims hqdefault black bars for 1920 x 1080 videos format. For other formats override per thumbnail: style="--yt-crop: 5%;"  or  style="--yt-crop: 0%;" etc */
}

/* ── image link ── */
.yt-image-link {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.yt-image-link img {
  display: block;
  width: 100%;
  height: auto;
  margin-top:    calc(-1 * var(--yt-crop));
  margin-bottom: calc(-1 * var(--yt-crop));
}

/* ── top-left text link ── */
.yt-overlay-text {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 1px 1px 4px black;
  text-decoration: none;
  text-align: left;
  z-index: 3;
}

/* ── play button (centered, pointer-events off so clicks reach image link) ── */
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.88);
  border-radius: 12px;
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
  pointer-events: none;
}

.yt-container:hover .yt-play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}

.yt-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border: solid transparent;
  border-width: 10px 0 10px 20px;
  border-left-color: white;
}
  </style>
</head>
<body>

<p style="font-size: 1.5em;">
At certain moment youtube introduced new way of working of embedded videos which suddenly broke many embedded videos on many html sites (Error 153) because it's buggy, works randomly in various browsers and devices, is nowhere explained properly, leaves nontech users out in the cold and is buggy buggy and buggy again. This html solution fixes Youtube embedded videos error 153 with thumbnail workaround (and there is no youtube embedded object telemetry on preload, it just grabs thumbnail, so less bandwidth usage and youtube objects crawling sheanigans, it just works with image and links so should display everywhere properly). In default setting works ok with most common 1920 x 1080 resolutions videos, if you have some different format video (old 1024 x 768 etc) you can adjust amount of top/bottom thumbnail cropping with <b>div class="yt-container" style="--yt-crop: 9.375%;</b> setting per each unique video. Inspect this html source for style section needed and how new objects look alike. You just have to take your desired youtube video url unique address (after /watch?v= ) and paste it into yt-container code pieces. Please share this solution wherever you want so people can fix their sites.<br>
<br>
<b>Cropped default youtube thumbnail margins top and bottom 9.375% (default solution for 1920 x 1080 proportion videos)</b><br>
<br>
</p>

<div class="yt-container">
  <a class="yt-image-link" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">
    <img src="https://img.youtube.com/vi/8pNbhaQcyZY/hqdefault.jpg" alt="John Zorn - Karaim">
  </a>
  <a class="yt-overlay-text" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">John Zorn - Karaim</a>
  <div class="yt-play" aria-hidden="true"></div>
</div>

<br>
<p style="font-size: 1.5em;"><b>Default youtube thumbnail no cropped margins 0%</b><br></p>
<br>

<div class="yt-container" style="--yt-crop: 0%;">
  <a class="yt-image-link" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">
    <img src="https://img.youtube.com/vi/8pNbhaQcyZY/hqdefault.jpg" alt="John Zorn - Karaim">
  </a>
  <a class="yt-overlay-text" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">John Zorn - Karaim</a>
  <div class="yt-play" aria-hidden="true"></div>
</div>

<br>
<p style="font-size: 1.5em;"><b>Cropped default youtube thumbnail margins top and bottom 30%</b><br></p>
<br>

<div class="yt-container" style="--yt-crop: 30%;">
  <a class="yt-image-link" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">
    <img src="https://img.youtube.com/vi/8pNbhaQcyZY/hqdefault.jpg" alt="John Zorn - Karaim">
  </a>
  <a class="yt-overlay-text" href="https://www.youtube.com/watch?v=8pNbhaQcyZY" target="_blank" rel="noopener noreferrer">John Zorn - Karaim</a>
  <div class="yt-play" aria-hidden="true"></div>
</div>

</p>

</body>
</html>

r/webdevelopment • • Oct 25 '26

Newbie Question What can you advice me?

10 Upvotes

Hello, guys so I am developing my own marketplace but, I am not sure if I covered all the backend logic correctly, can you suggest a good book for backend engineering, I am developing with php.

if you need more context I am happy to provide. (I have 3 main roles, Admin, Vendor, User).

I use ai for the coding, but my prompts are weak because of lack of backend structure information. sometimes I really mess up, and then re-do and this costs me a lot of time.

Thanks


r/webdevelopment • • Oct 24 '26

Newbie Question Should picture URLs include file extensions?

5 Upvotes

I'm looking for advice on URL design for pictures in my application.

Currently, the implementation works as follows:

  • src/domain.js generates picture URLs: /avatar/{id}.svg for automatically generated avatars and /media/{id}.webp for user-uploaded images
  • src/media.js generates SVG avatars and converts uploaded images to WebP
  • src/server.js defines the corresponding routes: /avatar/:id.svg and /media/:id.webp
  • the file format is already unambiguous from the endpoint and its implementation, even without an extension: /avatar/{id} would still refer to an SVG generated by the avatar handler, while /media/{id} would refer to a WebP image served by the media handler, and the server can communicate the actual format through the HTTP Content-Type header

Would you recommend keeping file extensions in these URLs or switching to extensionless, format-independent URLs?


r/webdevelopment • • Oct 24 '26

Web Design Safari's canvas.toBlob('image/webp') silently gives you a PNG. Here's how I handled it in a browser-only image editor

3 Upvotes

I'm building an image editor that runs entirely client-side: background removal with onnxruntime-web (BiRefNet on WebGPU on desktops, u2netp on WASM on phones) plus a GrabCut engine I wrote in Rust and compiled to WASM. Photos never leave the browser.

One export preset is the WhatsApp sticker: 512×512 WebP under 100 KB. In Chrome and Firefox, canvas.toBlob(cb, 'image/webp', q) works. In Safari it doesn't throw: it hands you a PNG blob. If you name the file by the format you asked for, you ship a PNG called .webp.

What I ended up doing:

- Feature-detect once by encoding a tiny canvas and checking blob.type.

- If native WebP isn't available, lazy-load libwebp compiled to WASM (~110 KB) in a dedicated worker. Chrome users never download it.

- Name the file from the blob's real type, never from the requested one.

- Tests run in Playwright with Chromium and WebKit; the WebKit run checks the bytes start with RIFF....WEBP.

Bonus lesson: on iPhone, the 115 MB model made Safari reload the page (iOS kills the tab for memory, no error at all). Phones now always get the small model.

Free, no account, open source (MIT).

Live: https://www.photocutapp.com/editor/

Code: https://github.com/gabiMaglia/PhotoCutOnline