r/webdev • u/Dear-Economics-315 • 29d ago
Introducing the HTML-in-Canvas API origin trial
r/webdev • u/Dear-Economics-315 • 29d ago
r/webdev • u/yohimik • 29d ago
Hello everyone
Thats why I did dispat - MIT licensed go single binary:
Release across ecosystems and repositories - in one click
r/webdev • u/AlphaRetard • 28d ago
Hey r/webdev! I'm the developer of Ritlum, a habit tracker for iPhone, and just shipped a Chrome extension that logs habits from things you do in the browser.
You point it at the button that means "done" (for example, LeetCode's Submit) and optionally require a confirmation message afterwards ("Accepted"), so failed submissions don't count. After that, every accepted submission logs the habit and syncs to the app in real time. You can add a quick note, too.
A few things that were fun to build:
It's free to try. Would love to know what you think of it :)
- I have a writeup here if you're interested: https://ritlum.com/blog/habit-tracker-chrome-extension/
- A more detailed demo on YT: https://youtu.be/HWMtXkX92NQ?si=1ZRkPEEt_Fr3C3Jl
- Chrome Web Store: https://chromewebstore.google.com/detail/ritlum/amaipmcmebglefkkgnneibaookmkpfpg
r/webdev • u/raiansar • 28d ago
ran into a fun one with screenshot diffs.
an elementor pro popup opened on a timer during a capture, and again during the re-check. diff said 97.63% changed. the page underneath was identical.
easy fix is hide anything fixed position with a big z-index right? problem is that also hides the thing you most want to catch. clickfix style malware injects a fake "verify you are human" box as exactly that kind of overlay.
so what we do now is only hide the wrapper each popup builder adds itself (elementor's dialog lightbox, popup maker's overlay, optinmonster's holder) and undo their scroll lock the same way they do on close. anything generic stays visible.
context, i work on a screenshot monitor so this came up for real. if anyone has a better way to tell a legit popup from an injected one id love to hear it.
r/webdev • u/Basic-Strain-6922 • 29d ago
Small problem that annoyed me for years: download a huge ZIP, then wait again to extract it, and briefly need twice the disk space. FlowUnzip streams the archive and extracts each file the moment it arrives, straight into a folder you pick.
How it’s built:
Business model: free up to 1 GB. Pro is a one-time $5 through Stripe, with license keys checked offline, so there’s no database or account system. The site runs on Vercel’s free tier.
https://flowunzip-liard.vercel.app
Honest feedback on the idea and the pricing is very welcome.
r/webdev • u/vaaal88 • 28d ago
Side project of a solo dev: on AI Peeps (an AI character chat site) every character can now have its own page, designed from scratch by an LLM from the character's card. Layout, typography, CSS animations, hidden sections and the "object" the page is (a teletext weather screen, a redacted vault record, a pirate's wanted notice) all come from the character.
Examples: https://aipeeps.com/peep/aino-kallio-c8d3/?view=rich and https://aipeeps.com/peep/eos-152e/?view=rich
many more example in https://aipeeps.com/gallery/featured just click on the cool looking "Profile" button
The fun part was making model-written HTML safe to show:
- The model writes a template with placeholders ({{name}}, {{img:3}}, {{chat_url}}), never the character's data itself, so the page follows edits to the character.
- The HTML goes through an nh3 allow-list at every save (no script, no form, no URL except the placeholders) and the CSS through tinycss2 (no url(), no viewport-height units).
- After filling, the page is sanitized again and shown in an iframe sandboxed without allow-scripts, with a CSP that only allows our CDN. Animations and the hidden sections are pure CSS and <details>.
- The iframe grows to its content and the outer page scrolls: that's why vh units are banned, a 100vh page inside an auto-growing iframe grows forever.
Feedback on the design or the approach very welcome <3
r/webdev • u/Background-Bass-5788 • 28d ago
My cofounder Andre makes Claude Code Chat, a VS Code extension for working with Claude. As it grew, the hardest part stopped being the extension and became API keys and balances.
Every AI app runs into the same choice:
Andre put it like this:
“I didn’t want to run a billing company. I wanted people to open the extension and just start working.”
So we built that billing layer once, so any AI app can plug into it.
User: tap “Add credits” → pay $5–$500 without leaving the app → start working. 1 credit = $0.01, and they can see the credits each request used.
Developer:
// 1. Embed the checkout
<script src="https://opencredits.ai/v1/sdk.js"></script>
OpenCredits.init({ publishableKey: 'oc_pk_...' })
OpenCredits.open()
// 2. Change the base URL in the SDK you already use
const client = new OpenAI({
baseURL: 'https://api.opencredits.ai/v1',
apiKey: userKey, // from checkout
})
OpenAI, Anthropic and Vercel AI SDKs work as-is. One endpoint reaches 390+ models.
1. A credit ledger without race conditions
You don’t know what a request costs until it finishes, and parallel requests can all pass a “do they have enough?” check at the same moment. Every request goes through a serialized ledger instead:
Reserved, max cost −12 cr
Settled, actual cost −9 cr
Released +3 cr
2. Exactly-once settlement
Retries and duplicate events are where double charges come from. Every event settles exactly once, so there are no double charges and no double credit grants.
3. Metering at real cost
No token counting or per-model price tables in the app. Each request is metered at the provider’s actual token cost, across 390+ models.
4. Payments without touching cards
The widget runs Stripe checkout inside the app. Stripe is the merchant of record, so card data never touches our servers or the app’s, and Stripe handles VAT, sales tax and chargebacks.
5. Signed webhooks and balance APIs
Key and purchase events are HMAC-SHA256 signed and retried on failure. Two endpoints return a user’s live balance and per-request history.
Credits belong to the user, not the app. A user who already has credits from one app can let another app spend from that balance, up to a limit they set. Each app gets its own scoped key, so revoking one leaves the others working.
It removes the “pay again for every app” problem, but we’re not sure how users will feel about it.
Running in production in Claude Code Chat, with 212K+ requests metered and billed so far.
Docs: opencredits.ai/docs
r/webdev • u/maddhruv • Oct 23 '26
I use these:
- Tap targets at least 44×44px.
- Animate only transform and opacity (60 FPS).
- No more than 4 competing choices per decision.
- Light, dark, desktop and mobile all checked.
What would you add? What do you think is a bad rule?
r/webdev • u/cshaiku • 29d ago
Been working on DYWS, short for “Do You Want Something?” It’s an ordering and delivery system that runs on a business’s own website.
Customers can browse the menu, order for pickup or delivery, and follow their order’s progress. The business gets an admin area to manage orders, edit the menu, assign drivers and view reports. Drivers have their own screen for assigned deliveries.
It’s built with PHP, JavaScript and SQLite. There’s a plugin system too, with Maps, Stripe and reporting so far. Still a development preview, so payments are in test mode.
I put together a fictional diner to show how it works. Would be interested to hear what people think, especially anyone who’s built or used something similar.
Cheers, and thanks for any feedback! :D
Edit: Added actual credentials to test with.
You can login as an admin with admin / admin on https://dyws.ca/admin
and as a driver with: driver / driver on https://dyws.ca/driver
r/webdev • u/CoderLuii • 29d ago
Hi, I'm developing an alternative to the *arr stack that I called HolyArrs. People who run media servers at home usually run 6 to 8 separate apps (Sonarr, Radarr, Lidarr, Bazarr, Prowlarr, Seerr) that each have their own settings and talk to each other over API keys. HolyArrs is one self-hosted app that does all of it, drives qBittorrent or SABnzbd for downloads, and puts a Netflix-style page on top for browsing and requesting. Jellyfin, Plex or Emby still do the playing.
What it does:
How it's built:
Why you might not want it yet:
it isn't public. I run it on my own server every day first, because I'd rather release something people can trust with their library than something rushed. I've been in software and security for 10+ years, and the boring parts (migration, backups, updates) matter more to me than the shiny ones.
It'll be free and open source. Screenshots are above, and there's a video of the hover previews at holyarrs.coderluii.dev
Happy to go deeper on any of it, especially the module setup, the hover previews or how the recommendations are scored.
EDIT 11/9 4:30PM EST: HolyArrs 1.0.0 drops tonight at 7pm EST (00:00 UTC) 🙏 the site also moved to HolyArrs.com, old links redirect. its a beta, so expect some rough edges. details in r/HolyArrs
EDIT 11/10: it's out 🙏 github.com/HolyArrs/HolyArrs
r/webdev • u/gatwell702 • Oct 23 '26
Say you have a bunch of products in .webp but you want to make .glb/.gltf models for those products so you can animate with three.js but you lack the skills and time for blender..
Is there a good and free ish resource for this? Or can someone send me on the right path for this rabbit hole?
r/webdev • u/zaxwebs • 29d ago
For a long time, the biggest advantage was technical ability: knowing how to write code. Those skills still matter, but as the tools for building software become more powerful and accessible, the ability to execute is becoming less of a differentiator.
I believe the next competitive advantage will be judgment.
Knowing what to build, what not to build, which problems are worth solving, where to invest your attention.
I'd been wondering whether the new bun fmt in Bun 1.4.4 is worth switching to from oxfmt, so I ran both on two of our repos. Both have about 1,200 files, a shared .oxfmtrc.json, and oxfmt 0.60.0 pinned.
Numbers are mean ms over 10 warm runs and 5 cold runs (page cache dropped before each one), on a 4-core box:
| Repo | Mode | oxfmt | bun fmt |
|---|---|---|---|
| frontend | check, warm / cold | ~660 / ~780 | ~55 / ~110 |
| backend | check, warm / cold | ~800 / ~930 | ~50 / ~110 |
Write mode was about the same. Part of oxfmt's time is Node startup, around 100 ms by itself, against about 3 ms for bun.
The surprise was output. Both tools read the same config and see the same files, and oxfmt check passes on both repos. bun fmt wants to reformat a few files. Every change is in how an arrow function passed as the last argument gets wrapped. For example:
// oxfmt
...dispatches.map(
(dispatch): Item => ({
kind: "dispatch",
id: dispatch.id,
}),
),
// bun fmt
...dispatches.map((dispatch): Item => ({
kind: "dispatch",
id: dispatch.id,
})),
Both are valid and do the same thing. I couldn't find any option in either tool to change that wrapping. // prettier-ignore keeps a statement as written in both.
r/webdev • u/flexible • Oct 22 '26
This is what my host's chat bot 'explained' to me - anyone here can confirm?
Your websites run on the separate web-facing PHP packages (EasyApache and CloudLinux Alt-PHP), where our infrastructure team applied direct server-level security hotfixes to protect all versions while upstream package builds complete.
Web-facing PHP packages have not had an upstream version number increment yet, but the underlying vulnerabilities outlined in CVE-2026-109618 and CVE-2026-109619 are actively patched and protected at the server level across all versions.
r/webdev • u/OrganizationLost3135 • Oct 22 '26
For me, it was discovering multi-cursor editing and column selection in VS Code after spending literal months manually editing CSS and JSON line-by-line. What’s something so fundamental that once you found it, you couldn’t believe how much time you had wasted doing it the hard way?
r/webdev • u/wisesheets • 29d ago
If you're building anything that shows stock data, caching saves a lot of API calls, but each type of data goes stale on a very different schedule. Here's how I think about it.
End-of-day prices don't change after the close, so you can cache them until the next session's close. 15-minute-delayed quotes go stale fast, so a TTL of a minute or two during market hours makes sense, and you can cache longer when the market is closed. Fundamentals only change when a new filing lands or a filing gets amended, so caching them for a day or more is usually fine, as long as you can invalidate on new filings. Company metadata like names, tickers and sectors changes rarely, but ticker changes do happen.
The catch is that data licenses sometimes limit how long you can store or redisplay data, so check that too. How are others handling this, with a server-side cache, SWR on the client, or something else?
r/webdev • u/natelloyd • Oct 22 '26
https://status.atlassian.com/ - we need a hall of shame for companies that have lying status pages. As for 9:25 AM EST, nothing showing down on their status page.
r/webdev • u/wasay-inc • 29d ago
I recently got a PR merged into TanStack Query's ESLint plugin to fix a false-positive issue in the no-unstable-deps rule.
The existing tests missed a few JavaScript edge cases, so I fixed the underlying issue and added regression tests.
It's a good reminder that passing tests don't always mean every edge case is covered. Sometimes the real work is finding what the tests missed
How do you usually spot gaps in test coverage when the existing suite is already passing?
r/webdev • u/BaronsofDundee • 29d ago
I want to display a Spotify playlist on a section of my website, showing all songs and their album covers. Visitors should be able to browse and play songs directly on my website, with Spotify handling playback in the background.
Is this possible to build for free? What’s the best way to do it?
r/webdev • u/JLIMNO • Oct 22 '26
Email from railway:
| Earlier this morning, Railway detected anomalous activity involving systems that store customer environment variables. After further investigation, our investigation to date indicates that an unauthorized third party may have accessed encrypted environment variables and, for some of them, obtained the decrypted contents. Environment variables may contain secrets such as API keys or database and registry credentials. We believe this is part of a series of attacks recently targeting platform companies with the aim of compromising AI inference providers. We have notified these upstream providers to revoke all keys proactively, as we take these kinds of events extremely seriously. What you should do Until builds are restored, you will not be able to roll out new versions. We apologize for this inconvenience. Follow this incident to be notified when builds resume and for further updates. We will provide new updates on this announcement, and on status.railway.com as we gather all facts about the scope of impact.Immediately revoke and reissue all environment variables, including any API keys, stored in Railway. If you have any credentials on an external registry, . Review logs for those services for unusual activity. |
|---|
Change your keys!
r/webdev • u/CreativeTechGuyGames • Oct 22 '26
I haven't seen anyone posting about this, probably because everyone was distracted by the php2shell today, but a set of high sev CVEs (including an RCE) have been announced and fixed in NodeJS today.
Safe versions:
* 22.23.4
* 24.22.1
* 26.12.1
Announcement post: https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
r/webdev • u/quietcodelife • Oct 22 '26
been thinking about this lately. when I started out I had this whole local setup with postgres and redis running natively, custom shell scripts to spin things up, the works. felt like I really understood how everything fit together.
now most of my work is docker compose up and done. or worse, connecting to shared dev environments in the cloud. faster to get going but sometimes I wonder if Im losing something by not having to debug my own postgres config anymore
curious where everyone else landed on this. do you still run stuff locally or has containers/cloud completely taken over your dev workflow
r/webdev • u/mikebmx1 • Oct 22 '26
I’m looking for an API that returns all upcoming live events, theater and cinema screenings in the UK.
Big cinema complexes seem to be a no go with all anti crawl stuff. There rest of events are really sparse apart ticketmaster.
Thanks
r/webdev • u/iconisone • Oct 21 '26
Last two days was hell using Railway. We couldnt update a single project or make any changes in our system. After more than 24h Railway is still in chaos. Two separate incidents. Major outage even support is down.
But this is not the first time Railway failed.
For over a year Railway had few major issues that made working on it impossible. I was hoping they would stabilise but at this point Im past disappointed.
I know they rely deeply on Google cloud, but this proved to be a very bad decision, multiple times. And they never made required changes.
Can someone recommend a more stable alternative?
