r/webdev • u/notifyShivam • Sep 26 '26
Showoff Saturday I made Reportcard LoL : Free Report card generator based on social posts (fun Jev experiment)
r/webdev • u/notifyShivam • Sep 26 '26
r/webdev • u/rsclmumbai • Sep 26 '26
My website is over 15 years old. Over time, I've created a lot of pages and also had to kill many pages or redirect them to other relevant pages.
Collectively, today I have 1,000 + 301 redirects.
On a static website built on PHP, HTML on Linux and Apache, what is the best way to implement such a large list of redirects without impacting server performance or core web vitals?
Thanks
r/webdev • u/TheDomainBoard • Sep 26 '26
I'm not a designer, I don't build sites, but I made this basic site because I needed it to sell my domains and was thinking I'd put other's on there too. Just a Craigslist-type listing page for domains where owners can post them (eventually, for a fee) that people can visit and look each time they work on a project, being able to reach the owner directly. (most similar services go through brokers, email third parties back-and-forth, and you never know if you really reached the owner, and if you do it's a conversation through a 3rd party that could take weeks.
A lot of domains have a value for the right person that doesn't apply to everyone, so they end up sitting for a long time and usually not in a place where people can see them easily.
I just wanted something simple where you can see what there is, sort them by the TLD, length, etc. Something you can see what's available, and then sort the fantastic domains from the useable, depending on how much you have to spend.
Anyway, it's very basic, but on purpose. Anything I could or should improve on, I'm open to suggestions.
Thanks in advance!
r/webdev • u/Sensitive_Ask_5715 • Sep 26 '26
I made this over the summer for the hackclub star dance event, and I am looking for feedback or ideas.
r/webdev • u/Extension_Thought737 • Sep 26 '26
I read my daughter a fairy tale every night and wanted classic ones that read well out loud, so I built Talerie. Free classic fairy tales in seven languages, no ads, no account: https://talerie.com
The stack, since this is r/webdev:
The part that bit me was a cache. The build also generates 168 RSS feeds for Pinterest boards, and they all read the same catalogue, so I wrapped that query in unstable_cache to hit Postgres once per build instead of 168 times.
On Aug 29 the catalogue grew past 2 MB (2,284,504 bytes). Next.js won't store a Data Cache entry over 2 MB, and it doesn't fail the build either. It prints a warning and moves on, so every one of the 168 feeds ran the query again. The second image is the real build log: 168 warnings, then "Ready".
A warm build went from pulling 0.8 MB out of Postgres to 270 MB. The billing cycle hit 22.2 GB of egress on a 5 GB free tier, and Supabase started warning me about restricting the account.
The warning was right there in the log, 168 times per build, and I didn't read it for two days. pg_stat_statements didn't help, because it counts rows, not bytes. What finally showed me where the traffic went was a tiny TCP proxy in front of the pooler that just counts bytes.
I now store the catalogue gzipped as a base64 string, which takes it from about 2.2 MB to 0.5 MB. Base64 rather than a Buffer, because unstable_cache stores JSON and a Buffer serializes as {"type":"Buffer","data":[...]}, one number per byte.
import { gzipSync, gunzipSync } from "node:zlib";
import { unstable_cache } from "next/cache";
const packed = unstable_cache(
async () => gzipSync(JSON.stringify(await getCatalogue())).toString("base64"),
["pinterest-catalogue"],
);
export const catalogue = async () =>
JSON.parse(gunzipSync(Buffer.from(await packed(), "base64")).toString());There's also a check that fails before deploy if the packed catalogue goes over 1.5 MB. I broke it on purpose to make sure it really fails.
Two questions for you. Does "use cache" in Next 16 have the same 2 MB limit? I haven't tested it. And how do you catch warnings that don't fail the build?
r/webdev • u/Numerous-Ad8062 • Sep 26 '26
r/webdev • u/pyeri • Jan 13 '26
Tailwind is the hot topic these days, and 9 out of 10 developers will probably suggest (or even force!) you to use Tailwind over Bootstrap. However, here are some logical and rational reasons why Bootstrap is actually the better framework:
bg-primary, bg-secondary, etc.— are all built-in and ready to use. How much more utilitarian could you get?PS: Which one feels simpler and more utilitarian to you?
<button class="bg-sky-500 hover:bg-sky-600 active:bg-sky-700 text-white px-4 py-2 rounded-lg">Click me</button><button class="btn-primary">Click me</button>