r/webdev • • 20h ago

3 Postgres migration patterns that silently lock production tables (and how to catch them in PRs)

0 Upvotes

We’ve all seen a migration pass staging in 50ms and then lock a production table for 20 seconds under real traffic. After reviewing dozens of incident post-mortems, almost all avoidable Postgres migration outages come down to three patterns: 1. Adding a NOT NULL column without a DEFAULT Running `ALTER TABLE users ADD COLUMN email text NOT NULL;` acquires an ACCESS EXCLUSIVE lock and rewrites/validates the table. On a busy table, every read and write queues up behind it. Fix: Add the column as nullable first, backfill in batches, then add a `NOT NULL` constraint using `NOT VALID` + `VALIDATE CONSTRAINT`. 2. Creating an index without CONCURRENTLY `CREATE INDEX idx_users_email ON users (email);` blocks all writes (`INSERT`, `UPDATE`, `DELETE`) on `users` until the index build finishes. Fix: Always use `CREATE INDEX CONCURRENTLY` (outside a transaction block). 3. Running ALTER TABLE without a lock_timeout Even a fast metadata-only `ALTER TABLE` needs an `ACCESS EXCLUSIVE` lock. If a long-running analytics query is holding a read lock on that table, your migration waits in the queue—and every subsequent query piles up behind your migration, causing a cascading outage. Fix: Always prepend `SET lock_timeout = '2s';` so the migration fails fast instead of taking down the app. To stop relying on human code review for this, I put together a lightweight static analyzer (`pgguard`) that parses SQL migrations in PRs and flags these exact lock risks before merge. Curious what other Postgres migration footguns you’ve hit in production that static checks should catch?


r/webdev • • 13h ago

Showoff Saturday Couch Plays - A "Twitch Plays Pokemon" style website

Thumbnail couchplays.online
0 Upvotes

Hey gang, I've been working on this for a bit now. It's a website where you can play emulated games with friends, and have each of their inputs read in to different (or same) controllers over the web.

Sharing a link here of a "Crowd" lobby, where all players submit inputs to one controller, ala "Twitch Plays Pokemon". It works on mobile and PC, it should also work with controllers, though you may have to remap your buttons.

On the tech: I've rebuilt a couple RetroArch cores for WebAssembly, and take advantage of ggpo style rollback to make the whole thing feel pretty seamless and snappy.

Looking for feedback and help stress testing! Bugs and ideas welcome, I'll be chilling in the discord here: https://discord.gg/XWAhVEw9A


r/webdev • • 22h ago

Showoff Saturday Turtle Par – a daily puzzle where you program a LOGO turtle (static site, no backend, no accounts)

Thumbnail
turtlepar.com
1 Upvotes

I built a daily puzzle around the LOGO turtle: everyone gets the same shape each day, and you draw it with blocks (FD, RT/LT, REPEAT, pen up/down) in as few blocks as you can. Every puzzle has a par.

Under the hood: Vite + Preact + an SVG board, hosted as a static site. Scores and streaks live in localStorage, and analytics are cookieless, through a small edge function on my own domain. The interesting bit was matching a drawing to the target: both are cut at every endpoint and compared piece by piece, so order, direction and retracing don't matter.

It's been live since 9 Nov, and players on Lemmy shaped a lot of it (an angle tool, "best run counts", an "Add before" button). Feedback on the first minute is welcome. https://turtlepar.com/?ref=webdev


r/webdev • • 22h ago

Showoff Saturday [Showoff Saturday] A city quiz that picks your next grid of street photos with Thompson sampling, all in the browser

0 Upvotes

Hello! I built CityType, a quiz that matches you to cities from the streets you tap. A few parts I had the most fun with:

- It adapts while you play. After two grids of variety, every tap and every skip refits a small logistic regression over 19 street traits, right in the browser. Each new grid mixes a Thompson sample from that model, a "probe" tile that differs from something you tapped in just one trait (same glass towers, but leafy), and a wild card far from everything you've seen. The idea is that a wrong guess can still get corrected. Once the taste looks clear it offers to stop, which happens somewhere between grid 8 and 20, depending on how consistent your taps are...

- There's no backend for the matching. The scoring runs client-side based on a ~300 KB JSON of 290 cities and towns.

- Results can be shared without a database. The whole taste profile is packed into the link, 30 to 108 base64url characters. I first stored 5 bits per trait and it looked fine, but then I ran a simulation that showed only 73% of simulated profiles kept the same top 3, so I switched to 8 bits, which gets 98.6%.

- The share cards are drawn on a canvas in three formats, with a contour-line terrain seeded by your result.

- The 496 street photos are AI-generated on purpose so that they all have the same light and lens. The idea is to make users react to the buildings and not to whichever photo had the nicest sky...

Stack: Astro with a Preact island, Cloudflare Workers + D1, d3-geo for the globe on the results page. There's no sign-up and no tracking cookies either.

I'd love to know whether the adaptive part feels like it's learning you, or just like a stream of random photos. And how it feels on your phone as well.

https://citytype.fyi/?ref=r-webdev

Have fun!


r/webdev • • 22h ago

Showoff Saturday [Showoff Saturday] Quantmaxxing — a live head-to-head mental math game in the browser

1 Upvotes

built a browser game where two people get the same arithmetic questions on the same clock. inspired by zetamac, not affiliated.

the client is React 19, Vite, and TypeScript. the match itself runs on a Cloudflare Worker, with a Durable Object per room over WebSockets. the server creates the questions and checks every answer, so you can't just edit the page to cheat.

it's free, no ads, MIT licensed. no account needed for a casual game. quick match, private rooms with a code, ranked if you sign in.

site: https://quantmaxxing.web.app/?s=reddit-webdev
repo: https://github.com/SrikarrKoli/Quantmaxxing


r/webdev • • 23h ago

Showoff Saturday [Showoff Saturday] A procedural 3D city in the browser, no model or image files

1 Upvotes

Live: https://venus.tezzarida.io · Code (Apache 2.0): https://github.com/fulfilledbyai/venus

It's a model of Jacque Fresco's circular city. Everything is procedural: buildings are lathe profiles and arc sweeps, windows and dome ribs are drawn in shaders, and one plan file drives every generator. About 41,000 instanced trees, a day/night cycle, animated flow overlays, and a first-person mode with simple circle-based collision.

Built with a lot of help from an AI coding assistant; happy to talk about what that was like.

It draws around 16 million triangles a frame, so I'd like to hear how it runs on your machine, and any ideas for cutting that down.


r/webdev • • 1d ago

Showoff Saturday Showoff Saturday: I wrote a linter that checks Chrome extensions for Web Store rejection risks before you submit

1 Upvotes

Submitting an extension to the Chrome Web Store and then waiting days to hear back is the worst part for me. The rejection usually turns out to be something that was in the package all along, like a permission nothing uses, a script loaded from a remote URL, or obfuscated code.

I wanted something like eslint for that, a quick local check before I hit submit, so I built it. It's called tabsmith-lint. It's a TypeScript CLI under the MIT license, and you can run it on an unpacked Manifest V3 folder or on the .zip/.crx you're about to upload:

npx tabsmith-lint ./my-extension
npx tabsmith-lint ./my-extension.zip

A few design decisions, in case you're building something similar:

  • Findings use the violation names Chrome reviewers use (Purple Potassium, Blue Argon, Yellow Magnesium, Red Titanium), so the output matches what you'd see in a rejection email.
  • The unused-permission and eval checks are warnings, not hard fails. A static check can't see everything, and I'd rather miss something than tell you to remove a permission you need. On a hand-labeled set of 28 real extensions, the unused-permission check had no false positives. That's a small set, so take it with a grain of salt.
  • The obfuscation check looks for patterns minifiers don't produce, so normal minified bundles shouldn't trip it.
  • The zip reader only uses Node built-ins. It extracts to a temp dir, doesn't follow symlinks, and bails out on encrypted or oversized archives. If manifest.json is nested in a folder, which happens when you zip the folder instead of its contents, it tells you why that fails.

It's Chrome-only for now. Source: https://github.com/rsub122/tabsmith-lint

I'd like to hear about false positives, especially on minified or bundled code, and what you'd do differently.


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] A client-side APK/ELF inspector for Android's 16 KB page-size rule

1 Upvotes

I built a one-page tool that inspects Android APKs, AABs, and .so files entirely in the browser. Nothing is uploaded. The practical job is Google Play's 16 KB page-size requirement (updates from 1 Feb 2027 for apps targeting API 35+ with native code), but the interesting part for this sub is the client-side parsing.

It walks ZIP/AAB local file headers (including stored vs deflated entries and 16 KB data-offset alignment via the zip extra field) and parses ELF64 program headers for PT_LOAD p_align. AABs are treated as a zip of zips. Larger files are read with random-access slices in a Web Worker so the tab doesn't freeze.

Happy to talk through the ELF/ZIP details or anything that's messy. The tool is on my site: https://byteorbit.tech/tools/16kb-page-size-checker


r/webdev • • 20h ago

Showoff Saturday unwrapped for local music

Thumbnail
gallery
0 Upvotes

Every one sharing their Spotify wrapped thingy. I don't really use streaming. I have nearly 600 albums all ripped to my music app. So I created a wrapped like thing for local music. In Apple Music/iTunes you can export your library as an xml. not really a fan of xml and the library xml is a mess. but I know I can parse into JSON. which gave me the idea to do this and I enjoyed for the problem solving. Grouping the songs by album/single. grouping by artists. filtering total plays/skips/ genres and so on. Just something challenging for me to do.

The stack is just plain JS, Gsap and Matter,js. and pulls images from iTunes and music brains api. The only downside is I had started a clean library back in October, ha! so the data sample is quite small compared to a full year. and next year can just export the xml and drop it in.

if anyone else also prefers their non-streaming alternative I can push this to GitHub.


r/webdev • • 14h ago

Showoff Saturday I made a web based cute psx style racing game

Thumbnail
gallery
0 Upvotes

Hey folks I built Outpost Racer, a web based psx style retro racing game.

You can play it online from here: https://outpostracer.com

What tech was used?

I used threejs for graphics, rapier3d for the physics, that's all. The UI is actually css but pre rendered in canvas before overlaying on the screen.

Since I vibecoded this game, the frameworks are not relevant, how I prompted is very relevant. Here are some things I learnt.

Level editor was the best choice I made

Early on, I got chatgippty to make a level editor, this is great as ai simply can't inject personality in the games(most of the personality is derivative)

Later, I also made a car editor for car specific tuning too.

Thinkings in terms of independent systems

Early on when i prompted, the game came out quickly, but later on it turned into a mess over time. This mainly had to do with differenty systems working in a haphazard way.

It would've been better if I built and tested systems independently from each other, eg built and test physics seperately, document it in agents.md, etc.

For instance, I'm working on multiplayer and physics and other stuff should work in harmony, but since I've changed physics, multiplayer code might not know the context and it breaks.

Know how things work

While this is vibe coded, I had a knowledge of game design by dabbling in it over the years and creating levels for games a long time ago. So I could give very specific prompts, like "implement backface culling, test fps before after on caldera track, test it on multiplayer and document it in agents.md", but for a lot of things I didn't have the specific knowledge.

So I would tell ai to do heaps of research and tell me how things worked, what are best practices, etc. Then I would drill deeper and ask specific questions, and also get a glossary of terms attached to it, then I would tell it to implement that thing in a very specific way. This yielded much better results, than just yolo prompting.

Another thing is that if you're not sure what exactly you're building, you'll waste a lot of iterative cycles. So this technique helps a lot.

Determinism

Ai is inheritly not deterministic. Meaning that if you tell it to create a 3d model of a car it might actually make a really nice 3d model, but if you try that prompt again, it will utterly fail.

Most of comes from changing ai providers, versions and effort levels.

So instead of yolo prompting, ask ai what specific prompts do you need to give it a more deterministic result. this is called meta prompting.

So instead of telling ai, "generate a 3d model of a 90s car psx style", you give it a design document(created by ai itself), and give your own directions over it, eg specific car category, look, etc.

This also extends to other things like assets, entities, etc.

Ps: if you're good at creating 3d assets or textures, don't rely on ai, its still pretty bad at it.

Conclusion

I hope that was insightful. Let me know how you like the game and if you have any other questions.


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] Serving 2.13M Singapore company register records sharded and gzipped from Cloudflare R2 behind a Cloudflare Worker

7 Upvotes

I put together Oxaide as a small engineering project to make Singapore's ACRA company register (2,131,548 entities, about 625k live, snapshot dated 16 Nov 2026) and GST status checks queryable by serving the corpus from object storage rather than a traditional database.

ACRA publishes the register as open data on data.gov.sg, while IRAS's official API is gated behind CorpPass onboarding. The core setup is a data pipeline that processes the 2,131,548-entity register snapshot, shards the corpus, gzips the shards, and writes them to Cloudflare R2. A Cloudflare Worker sits in front of R2 to handle lookups, search, and batch requests directly against the sharded static objects. Every API response includes the snapshot_date field so callers can see which register cut they are reading against.

On top of the Worker layer, I built a few developer and browser interfaces:

One practical constraint worth noting: this is strictly a screening and research tool built on the dated register snapshot, and statutory confirmation always belongs on BizFile and IRAS.

Interested in how others here approach sharding multi-million-row public datasets on object storage like R2, or handling updates cleanly when a new register snapshot drops.


r/webdev • • 21h ago

Showoff Saturday [Showoff Saturday] I open-sourced the homepage of my Next.js 16 SaaS template (MIT)

0 Upvotes

I've been building a SaaS website template and launched it a couple of weeks ago. The homepage is now free and MIT licensed, and I'd love feedback from this sub on the design and the code structure.

Free homepage (GitHub): https://github.com/mohdfaizanahmed/arcline-lite

Free homepage demo: https://arcline-lite.vercel.app

Full 33-page demo: https://arcline-omega.vercel.app

Some details:

- 33 pages, all statically rendered (Next.js 16 App Router with Cache Components)

- Light/dark themes, each designed separately rather than inverted

- The whole brand is one set of CSS variables, so charts and the HTML/SVG product mockups re-theme too

- Tested at 360/390/768/1024/1440px; Lighthouse Accessibility 100 on public pages

- Frontend only: auth, forms and billing are UI with validation, ready to wire to Auth.js/Clerk/Supabase/Stripe

The homepage is free to use for anything. The full 33-page version is paid ($39 launch price through December, link in the demo's top bar). The thing I'd most like feedback on is the dashboard. What's missing for a real SaaS?


r/webdev • • 1d ago

Showoff Saturday VideoPuzzle, the video jigsaw I launched here two years ago, has now been played over 1 million times

Post image
0 Upvotes

Hey!

2 years ago I posted my game https://videopuzzle.org here. The feedback was overwhelming, even though most of you thought it looked like a horrifying new CAPTCHA ;)

Since then, I have posted over 750 videos to play, and over 1.3 million puzzles have been played! It was also runner-up in the Playlin Games Awards 2025 (Classics Reimagined). I added plenty of new features, such as shifting the entire board with arrows, login and dark mode.

The stack this is based on is relatively straightforward: Vue and Quasar for the frontend and PocketBase for the backend. WebGL is used to split the video into tiles, and a seed is used every day so that everyone receives the same shuffle. This also means every puzzle is different - some can be solved in 10 moves, while some need 12 or more. You can see how the others did and how you compare in terms of the number of moves you used. Traffic has mostly been organic, a lot coming from the post here and from my other games (see https://emplexity.com for an overview).

Happy to answer any questions, and would love to hear your feedback! :)


r/webdev • • 1d ago

Showoff Saturday Showoff Saturday: got my web server from 4.2 KB to 1.75 KB per held TLS connection

0 Upvotes

I've been working on viltrum, a web framework for V where the HTTP and TLS stack is written from scratch instead of wrapping another server.

HttpArena has a test that holds a million TLS connections open and scores peak memory. Mine used 8.6 GiB there and the leader 5.1. Cleartext was close (4.8 vs 4.4), so the gap was basically all TLS.

I measured with 30k held connections: about 600 bytes per cleartext connection, about 4,200 per TLS one. Most of that was stuff only the handshake needs. The mbedtls context, the exported secrets, the hello and the handshake keys just stayed on every connection forever.

So I changed two things.

The handshake state now lives in a pool per worker. A connection borrows it for the handshake and gives it back once the record layer has its keys. The per-connection struct went from 1,464 bytes to about 450.

The expanded AES-GCM keys were around 530 bytes each, two per connection. Now a session only keeps its raw 64 bytes of keys and borrows an expanded pair from a per-worker cache of 1024. If a busier session took its pair, it expands again, which costs about 450 ns. That only happens when a worker has more than 1024 open TLS sessions, so in practice only on the million connection test.

Ended up at 1,754 bytes per TLS connection. Still 3x cleartext but a lot better.

Repo (MIT): https://github.com/Tuntii/viltrum PR with the numbers: https://github.com/Tuntii/viltrum/pull/157

Has anyone done something like this with OpenSSL or rustls? Or is lending the handshake state just the obvious thing everyone already does and I'm late to it.


r/webdev • • 21h ago

[Show off Saturday] - I built bantr a fourm, and chat of sorts.

Thumbnail
gallery
0 Upvotes

Hello all, and happy weekend!

I built bantr.live, a real-time forum and chat platform. You can post images, videos, or just plain text. It also features live chat functionality both global and direct peer-to-peer. The mobile applications currently have the real-time forum, and I'm working on getting the web version up to par with the functionality of the mobile apps. This application is in constant development, so if you have the app, updates are coming soon. The platform currently has about 75 users and is growing daily, though it is still kind of a ghost town as of now. If you have any questions, let me know feedback is always welcome.


r/webdev • • 1d ago

[Showoff Saturday] stillwatch: a youtube player that shows only the video, on a node server with zero dependencies

2 Upvotes

stillwatch is a youtube viewer for watching tutorials and lectures without the rest of youtube. no comments, no recommendations, no autoplay, and search hides thumbnails by default. here's the technical side since that's more interesting for this sub.

the server is plain node 20 with no runtime dependencies. it handles search, channel pages and transcripts, and tries providers in order: innertube first, then the youtube data api, then an invidious instance. the api only answers its own origin.

the frontend can also run as a plain static site with no server at all. on load it checks api/health, and if there's no server it turns off search and transcripts and says why in the ui instead of just breaking.

share links have no backend either. the video, clip start and end, a lesson title and a short note all go into the url, so nothing is stored and links can't expire.

the annoying part was youtube's own suggestions. the player is a youtube-nocookie iframe so you can't touch what's inside it. when a video ends i cover the related videos wall with my own layer, and on pause i cover the "more videos" strip. it works, but it's a cover, not a fix.

https://still.watch

has anyone found a cleaner way to deal with the end screen than covering it?


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] I built a chess trainer where you can train your chess visualization

Post image
1 Upvotes

I built Mind Gambit, a free chess (visualization) trainer: mind-gambit.com

My original idea was when seeing grandmasters play without a board. So i was thinking to myself, how can you progress with chess using chess visualization. Basically the app takes the board away a step at a time.

Classic is a normal board, Figureless draws every piece as the same shape, and Blind hides the pieces once the game starts.

Some parts that were fun to build:

- Stockfish runs as WebAssembly in a Web Worker, so playing the computer never touches my server (i am also a student so the funds are questionable).

- Practice and the Computer play as a guest with the API down. The FastAPI backend handles accounts, sync, the puzzle decks and rated scoring.

- The 8-bit look: square corners, hard pixel shadows, a pixel font for headings.

Not so fun parts:

- Voice moves in Blind: tap the mic, say "knight f3", confirm, and speech recognition in the browser plays it (this is work in progress cause like i have limited funds to actually run the speech recognizer and to optimize it)

- Home screen (i tried a lot of different looks and i am not happy with this one as well; this and other spacing around the website is my main concern to fix)

Stack: React 19, TypeScript, Vite, Zustand, chess.js, FastAPI, PostgreSQL.

One question: on the first screen; is it clear what the website is about?

Thank you for checking it out!:)


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] Testing a multi-role web app in one browser: our open-source browser now lets a script or agent work in background tabs, each with its own cookie jar

Thumbnail
gallery
0 Upvotes

We make Kelpie, an open-source (Apache-2.0) browser for Mac, Windows, Linux, Android and iOS that you can also drive over HTTP or MCP. This week's change is something I wanted for my own testing, so here's how it works and where it got awkward.

The problem: anything with roles (admin vs member, two people in the same workspace) meant juggling a normal window, a private window and a second browser. And when a script drove the browser, it took over whichever tab was on screen.

Partitions. new-tab takes a partition string. Tabs with the same string share cookies, localStorage and IndexedDB, different strings are fully isolated, and tabs without one use the normal default store. So admin and member can be signed in to the same origin side by side on one device. get-partitions lists them and delete-partition closes their tabs and wipes the store.

Background tabs. Since release/2026-12-04, a tab opened over HTTP, MCP or the CLI opens in the background, and page commands (navigate, click, fill and so on) take a tabId on all five platforms. The tab you're looking at stays where it is.

POST /v1/new-tab  {"url": "https://staging.example.com", "partition": "admin"}
-> {"success": true, "tabId": "..."}
POST /v1/click    {"tabId": "...", "selector": "#login-button"}

Things that were less obvious than I expected:

  • A tab that has never been shown has no size. On Android a hidden WebView would lay out at 0x0, so a background tab is now measured and laid out at the visible tab's width and height. On iOS the WKWebView is created with the active tab's bounds. Without that, your breakpoints are wrong in exactly the tab you're testing (second image).
  • Screenshots still need a visible renderer. For background work you read a page snapshot instead, or switch to the tab when you actually want to look at it.
  • It's isolation, not parallelism. Commands still run one at a time on each platform's main thread, so two partitions take turns.
  • Support differs by engine: macOS on WebKit, Windows and Linux on Chromium (CEF), iOS 17+, and Android when the system WebView supports multi-profile (M114+). macOS on the Chromium engine returns PARTITION_UNSUPPORTED with a hint to switch to WebKit. Mobile partitions are always persistent; desktop can also do memory-only ones.
  • On Windows and Linux, a CEF request context's cache_path has to be a direct child of root_cache_path. Anywhere else and Chromium quietly falls back to memory, so the login is gone after a restart and nothing reports an error. That one took a while to find.

Trying it: install the browser app from https://kelpie.rocks (Mac zip, Windows zip, Linux packages, Android APK; iOS is built from source until the App Store version is out). The HTTP API and the MCP server are part of the app. There's also an optional npm CLI (@unlikeotherai/kelpie) that finds Kelpie browsers on your network over mDNS and pairs with them. It doesn't install the browser.

Repo: https://github.com/UnlikeOtherAI/kelpie

What I'd like feedback on:

  • If you test multi-role apps, how do you do it today? Playwright contexts, browser profiles, something else?
  • Is "background by default" right for programmatic tabs, or would you expect a new tab to come to the front unless you say otherwise?
  • Anything about the partition model that would bite you on a real project?

Images: the first one is a generated concept picture, not a screenshot. The others are real: the tab code from the repo, the partitions doc, and Kelpie on Windows.


r/webdev • • 16h ago

Showoff Saturday Meet Spamly: An API to detect disposable emails and risky domains

0 Upvotes

Over the past couple of years, I've had quite a few people reach out because their forms and trial signups were getting flooded with throwaway email addresses and newly registered junk domains.

Initially, I tried using GitHub blocklists. They're useful, but they only get you so far. You know a domain is on a list, but you don't really know why it ended up there or whether there are other similar domains flying under the radar.

I also checked out a few existing services, but most were either too slow or way too expensive to use at scale.

So I decided to build something myself.

It started with a few basic checks and gradually grew into a much bigger project. After about nine months of development, quite a few changes in direction, and more scope creep than I'd like to admit, I ended up combining some of my existing work on pattern analysis and web crawlers into what eventually became Spamly.

You can check it out here: https://spamly.app

The idea is pretty simple. You send an email address to a single GET endpoint and get back a risk score (0-100), a verdict (clean, suspicious, or high_risk), and a breakdown of the signals behind the result.

These include disposable email provider matches, mail infrastructure hygiene, domain maturity and status, high-risk extensions, and a few other things.

So far, Spamly has analyzed more than 3 million domains. I'm expecting that number to pass 10 million within the next six months or so. The more domains I analyze, the more patterns I can identify and the better the detection gets.

One thing I wanted to handle differently was what happens when someone checks an email address from a domain that's not in the database yet.

Instead of returning an incomplete result and charging for it, Spamly responds with HTTP 202, queues the domain for background analysis, and doesn't count that request against your quota. It just didn't seem right to charge someone for a check that couldn't give them a meaningful result.

I originally built this to help protect SaaS signup forms and free trials, but there are plenty of other potential uses:

  • Keeping disposable addresses out of newsletters and waitlists.
  • Filtering suspicious submissions from contact and lead forms.
  • Reducing fake registrations and coupon abuse.
  • Cleaning up CRM data before sending email campaigns.
  • Generally identifying risky email addresses before they become a problem.

I'm still actively working on Spamly, so there's plenty of room for improvement. I'd be interested to hear what other signals developers would find useful, or if there are things you think I'm missing.

There's a free tier with 300 checks per month, and no credit card is required.

If you have a few minutes, give it a try: https://spamly.app

Any feedback is welcome, especially if you find domains that should have been flagged but weren't. That's probably one of the most useful things you can send me.


r/webdev • • 1d ago

[Showoff Saturday] What can a page script learn about how the visitor left, with no cookies or storage? (pagehide.persisted, bfcache)

0 Upvotes

Small experiment: what exit signals does the browser give a page script when you're not allowed to store anything?

- visibilitychange to hidden is the reliable flush point, but it also fires on tab and app switches, so it isn't an exit.

- pagehide always fires on navigate-away or close. e.persisted === true means the page went into bfcache, so the visitor navigated away and the tab stayed open. A tab close gives false.

- On the next document, performance.getEntriesByType("navigation")[0].type === "back_forward" tells you it was reached via Back or Forward.

I send cumulative visible and active time on each hidden period, and always on pagehide, with the persisted flag.

I use it to estimate pogo-sticking for visitors from search: one page view, no events, short stay, left with persisted. A later arrival from a search engine joining the same session is a stronger "went back to the results" signal.

Caveats: persisted fires on any bfcache-eligible exit, not only Back. Ineligible pages never report it, so it's a lower bound. An app switch isn't an exit. Compare within one browser. I looked at the Navigation API, but it only exposes same-origin entries, so activation.from is null for a cross-origin return to the SERP.

It's part of an open-source cookieless analytics plugin (~3 KB script, Apache-2.0): https://github.com/infinitnet/cookieless-analytics

Is there a better exit signal than persisted?


r/webdev • • 1d ago

Honest opinion about my situation?

15 Upvotes

Have over five years of experience working as a web dev for several agencies, but I’ve always kept a full-time agency job. A little over a year ago, I started trying UP and have landed some good clients. Right now I have my full-time job, a partnership with another agency, and around three clients of my own.

My income outside my full-time job is currently about 25% of my current salary, and the agency work is inconsistent, like sometimes it’s a full project that pays double my income, and other times it’s just small tweaks. But my other clients mostly pay for ongoing maintenance, although two of them each sent me a full project last month.

The problem is that I’m getting really burned out by my full-time job and the repetitive tasks, but as everyone says, it pays the bills. But also I’m just exhausted by the time I get around to working on 'my own business', I feel like I have so many ideas for creating content, making reels, and 'growing the business ', but between my full-time job and the upcoming client and agency work, it feels like a lot. I do delegate some work to a teammate who helps out, but even with that support, I’m still stretched thin.

I feel confident in my development skills and reasonably comfortable with the business side. Still, the uncertainty around AI and where the industry is heading honestly scares me... which is why my full-time job gives me that 'certainty' that I still have work and I am very grateful... thats why I know if I leave I won't get the same job back.

For those who’ve made this transition, how did you decide you were ready? How much savings or consistent freelance income did you have before leaving? Would you keep building on the side in my situation, or set a savings target and a deadline to make the jump?

Thank you all!


r/webdev • • 2d ago

Discussion JS on the backend feels weird to me after years of using Spring Boot

99 Upvotes

Ive been working with Spring Boot on the backend and React/Angular on the frontend, so I'm in JS/TS pretty much every day. on the frontend it all makes sense to me when im handlign components ,state, UI in general and i have no complaints there.

But every time I try to build a backend in Node, I hit this weird mental block, with spring I'm used to structure being baked in like DI and clear layering, transactions and validation handled for me, itsl ike theres one dominant path of like this how u handle stuff. In Node it feels like im assembling my own framework from parts i pick a router then a validation lib then an ORM then something for DI, and every project ends up organized differently.

I know part of this is bias. plenty of people run serious backends on Node, and NestJS basically brings the Spring style over with modules, decorators and DI. But a few things still bug me. TS types vanish at runtime, so you need something like Zod to actually validate input, while in Java the framework and type system do more of that work for you. I also trust the JVM more for heavy workloads, with its threading model, profiling tools and mature libraries for things like batch jobs and enterprise integrations.

its like i have a mental block , do I just need to practice more on it more !


r/webdev • • 19h ago

Showoff Saturday Showoff Saturday: a fake fashion shop where the parcel arrives empty

Post image
0 Upvotes
made this over the last few weeks. it's a parody of the big online fashion shops. everything works like the real thing: sales, size picker, bag, checkout. you just pay with play money.


after you order, a tracking page runs for 1-2 days and pings you when the parcel arrives. won't spoil what's inside. ok fine, it's empty.


the idea came from the dopamine shopping sites in korea. half the fun of online shopping is the waiting, so i wanted to see if that part alone is enough.


no signup, your address never leaves your browser, no analytics. there's also a weekly leaderboard for who "spent" the most money that doesn't exist.


it's a parody, not affiliated with any of the brands on there.


https://dopelando.com


would love feedback, especially on mobile and whether the tracking jokes land.

r/webdev • • 20h ago

Showoff Saturday I rebuilt Discord's profile card in the browser so people can try Shop items before buying

Thumbnail
gallery
0 Upvotes

I built ProfileCord (https://profilecord.com), a free site where you can put real Discord Shop decorations, profile effects, frames and nameplates on your own avatar and banner before buying anything.

Some of the fun parts to build:

  • Matching Discord exactly. Same layer order, sizes and positions as the real app, including the Android and iPhone layouts, so the preview is something you can trust before spending money.
  • Phone screenshot export. It walks the DOM and draws it onto a canvas at 3x, including pseudo-elements and gradient text, so you get a crisp "phone screenshot" of a profile that doesn't exist yet.
  • GIFs in the browser. Animated avatars and banners are decoded and re-encoded client-side, and automatically sized to stay under Discord's 10 MB limit.
  • Colour matching. "Style me" reads your picture's colours and ranks the Shop's ~1,450 items to suggest a matching set.
  • Almost no backend. It's a static site on Cloudflare Pages with a few Functions. Pictures you upload never leave your browser; only share links and gallery posts are stored.

No account needed, no ads. Fan-made, not affiliated with Discord.

An Android app is also in development. It wraps the same site, so every website update reaches the app straight away.

Happy to go into any of it, and I'd love feedback on anything that feels off or slow.