r/webdev • • 2d ago

Showoff Saturday I built a PDF editor that runs entirely in your browser. It turns print-only forms into fillable ones, and when a PDF is missing a letter, it finds a font that matches

Post image
7 Upvotes

Hey r/webdev,

For the past 2 and a half months I've been building OasisPDF (https://oasispdf.com), a PDF editor that runs entirely on your own device. Your file is never uploaded. There's no account and no watermark.

I know. "Another PDF editor." That's exactly what I was afraid you'd say, so here are the two parts I'm most excited about.

1. Forms made for printing become fillable in one click
You know those PDF forms that are just lines and boxes, where you can't click anything? Open one and press Make it fillable. It finds the lines and boxes and turns them into real fields. You type, press Tab to get to the next field, check the boxes, and save. The fields are written into the file itself, so the form works in other PDF readers afterwards too.

It even works on scanned forms, where the page is just a picture. It looks at the picture (on your device) and offers to make the fields from it. Scans are harder, so give the fields a quick look. If it missed a spot, you can add a field by hand.

It also works with no connection. Open the page once, turn off Wi-Fi, and you can still make a form fillable, fill it in and save it.

Here's a form going from flat to fillable: https://oasispdf.com/make-pdf-fillable/ (you can find examples there or try your own !)

2. The Tailored font
This is the part I can't stop playing with.
Most PDFs only carry the letters they actually use. So when you fix a word and type a letter the file doesn't have, most editors drop in Arial and the word suddenly looks wrong.

OasisPDF looks at the shapes of the document's own letters and picks the closest font from about 700 open font families. Then it adjusts that font to the text around it. The rest of the word keeps the document's original letters, and only the new letter comes from the replacement. Many accented letters like é or ñ are built from the document's own letter, so they look like they were always there.

The first time I typed a letter into a strange display font and it just fit, I knew this was worth all the late nights.

Being honest about the limits:

- Desktop Chrome and Edge only, because it needs WebGPU. No Safari, Firefox or phones for now. I know...
- Very decorative fonts are still hard. Not every new letter comes out perfect.
- Scanned forms need a quick look-over.

It also edits the real text of a PDF (the paragraph re-wraps as you type), reads scanned pages in six languages, and does signatures and page reordering. It's free.

I'd really love your feedback, and please try to break it. Bring the ugliest PDF you have.


r/webdev • • 2d ago

Showoff Saturday [showoff-saturday] - I built an Interactive look at the Europa Clipper mission, ahead of its Earth flyby next week.

Thumbnail
gallery
6 Upvotes

Europa Clipper launched in 2024 and is on a 2.9 billion km trip to Jupiter's moon Europa. On 3 Dec it flies past Earth one last time, so I built an interactive 3D story of the whole journey, with a live mode that follows the spacecraft in real time.

How it's built:

  • React 19, React Three Fiber, TypeScript and Vite, hosted on Cloudflare
  • one scene in real kilometers, from the 30 m spacecraft out to Jupiter's orbit, using a logarithmic depth buffer and a Float64 floating origin that rebases every frame
  • positions from NASA/JPL's real trajectory data, baked into binary files
  • a painted, hand-drawn look made with custom shaders
  • works on phones too, which took a fair bit of extra layout work

Any feedback welcome, especially on how it runs on your device!

https://journeytoeuropa.com/


r/webdev • • 2d ago

Discussion Building software sized to its community

6 Upvotes

In the many years that I’ve been thinking of ideas and projects I should build, they’ve always centered around being ‘the next big thing’

But as I’ve built more for work and with what AI enables a solo dev. I’ve started to think of this idea of building ‘software sized to its community’

Essentially what this is, is the idea of finding one small group of people of who could utilize and appreciate a specific piece of software. Or the inverse don’t build with the intent of getting a million users

I have two experimental projects going with this in mind, a local puzzle/community homepage and a DnD companion app for a single campaign.

Curious what everyone thinks, or if anyone builds with this thinking in mind?


r/webdev • • 3d ago

Just a reminder to every web dev, optimize your images!

Post image
865 Upvotes

So last night I was working on optimizing some code for a clients website. The site has been getting hammered by AI bots recently so I thought I’d go through all my code and make sure it was all as optimized as possible.

While analyzing the log file I noticed that someone was actively trying a SQL injection attack, so I thought I’d have some fun, I redirected all their requests to this image, which I didn’t compress in my rush to have some fun.

37,000 requests later and almost 10Gb of data transferred they finally stopped.

Yeah I realize it was probably an automated attack and they never actually saw the image, but part of me wishes it was some script kiddie and the image popped up on their screen 😜

So remember people, optimize your images!!


r/webdev • • 2d ago

Question Building tool, wondering if needed

1 Upvotes

Hey everyone, I hope this is allowed on the sub.

I’m currently working at an insurance company and my current workload involves a crazy amount of refactoring legacy code and overall modernising it.

I know everyone is exhausted of shills here but I’m just curious if people would find it useful to have an open source CLI tool that would automatically test API parity across releases to catch regression or it’s something that people usually write vast testing suites for.

Thanks for the feedback in advance.


r/webdev • • 3d ago

Discussion Users asking to remove their commits under GDPR

188 Upvotes

Seeing a spike of people asking to remove their commits from open-source GitHub repositories that I am the owner of because those commits carry their personal email or other identifiers.

How are you handling these?


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] A game directory in Django and htmx, signed-out pages cached at the edge

6 Upvotes

I built a game directory with Django, PostgreSQL and htmx, without a big JavaScript framework: pages work without scripts and get faster with them.

Signed out pages are cached for 30 seconds at the edge and purged when something changes, uploads are decoded in a sandboxed worker, and visitor counts are anonymous and cookie free.

Happy to get roasted and to answer anything about how it's built, and to hear what feels slow or odd on your device: https://gameplaydex.com


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] I built a hiragana practice site where every audio clip is checked against its reading. Made this for me to practice Hiragana; ended up making it public.

Post image
5 Upvotes

I'm learning Japanese and built this to practice reading hiragana: https://hiragame.com/

It's a static site on Cloudflare with no account and no backend. Your selection and mistakes stay in your browser.

The part that took the longest was the audio. Every sound is generated with VOICEVOX and checked against the written reading, and the pitch accents are checked against an accent dictionary, so a word doesn't quietly get read wrong.

Happy to go into any of it. Feedback on the UI is very welcome too.


r/webdev • • 2d ago

Showoff Saturday Co-browsing without a screen share: streaming rrweb events over a WebRTC data channel

Post image
4 Upvotes

Hey r/webdev!

This is a live "see what the user sees" view for support. The user asks for help from the page they are on, someone from support joins, sees the page live, can point at things, take control after the user clicks Allow, and talk over audio or video. The GIF shows it with two real browsers.

A few things that were fun to figure out:

It's a DOM mirror, not video. rrweb already records the page as DOM events for session replay. Instead of streaming pixels, the live view sends those same events over a WebRTC data channel and replays them in the support person's browser, about 300 ms behind. Since it is the same masked stream, a masked input shows asterisks on their side too. rrweb does the heavy lifting here, and OpenReplay's Assist was the model for the idea.

Signaling with plain HTTP polling. Two peers only swap a handful of SDP offer/answer and ICE messages, so short polling was enough and no websocket server is needed. It runs only while someone is waiting or a call is open.

Hidden tabs throttle timers. Chrome slows timers in a background tab, so the server thought the visitor had left. Running the poll in a Web Worker fixed it, since worker timers aren't throttled the same way.

Remote control has honest limits. The helper's clicks and typing arrive as synthetic events, so anything that needs a real user gesture (popups, file pickers, clipboard) is refused by the browser, and that's fine. Password fields are never filled, and Escape gives control back.

The calls are their own package. Audio, video and screen share come from Holler, which does peer-to-peer calls between the users of a Laravel app, one on one or in small groups. The media goes browser to browser, and the server only relays the signaling over the same HTTP polling. A call survives a page load and reconnects in seconds. It uses a free public STUN server by default, and you can add your own TURN relay with credentials that expire per call. It works without the live view too: a call button next to any user.

The backend is Laravel, the recorder also ships as an npm package for standalone Vue/React frontends. Both are free and MIT:

Happy to go deeper on any of it: the data channel protocol (big messages go in 64 KB parts, pointer samples are dropped first when it falls behind), the masking, how control carries across page loads, or the calls.


r/webdev • • 2d ago

Is there a good alternative to Google Search API?

0 Upvotes

I'm building an app with a map with my own data on it, however I need to search for locations, like trains stations or stores and get their position.

I tried Photon/Nomination from OpenStreetMaps and it's ridiculously bad for basic things. It cannot find simple things like stations and it messes up with different languages.

Mapbox API is a little bit better but still unreliable.

Apparently Google cannot be beaten?


r/webdev • • 2d ago

Showoff Saturday Remade the UI & UX in my free SVG editor.

Post image
4 Upvotes

This week I've released the version 0.4 of my fully client side, no sign up SVG editor and along that more types of gradients, expanded on the filters editor, better performance, and a complete UI, UX and keybindings remake to make it easier and more intuitive to use for graphics designers which are used to illustrator.

Along that, improvements to animation export dialog have been made (playback controls for gif, mp4, animated svg, lottie and Sprite sheet) and improvements for performance on PDF imports and illustrator and Figma exports, mousewheel scroll over numeric inputs and sliders to controll them and many small quality of life improvements.

You can try it here, completely free, no signup, no ads, fully client side.

https://tools-4all.com/svg-editor

(to keep GIF size small the colors are quantized and some frames were skipped, hence the GIF might look a little blurry and choppy).

Any feedback, suggestion is welcome.

(I deleted the previous post and uploaded this instead with better wording and GIF, as my English is not perfect).


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] How I fit a 3D game into 1KB of JavaScript

Thumbnail
youtube.com
4 Upvotes

Skydreams is my endless 3D arcade game that won first place in JS1024 2026. The whole game is only 1019 bytes of JavaScript. No WebGL or libraries, just the 2D canvas.

I made a video that builds it up step by step: the 3D projection, the curving road, the track generator, the physics, and the tricks it took to pack it under 1KB. Hope you enjoy, thanks!

🕹️ Play Skydreams: https://killedbyapixel.github.io/TinyCode/1K/Skydreams/
💾 More size code experiments: https://github.com/KilledByAPixel/TinyCode
🏆 Official entry on JS1024: https://js1024.fun/demos/2026/25/bar


r/webdev • • 2d ago

Showoff Saturday First try at sprite stacking: "Roswell's Revenge," a WebGL2 UFO game

Post image
4 Upvotes

I have other games that are top-down shooters, and I wanted to try something different. I read about the technique called "sprite stacking," and decided to give it a try.

So this new project, "Roswell's Revenge," went up on itch the same night we thought of it. We did this deliberately for a couple of reasons. I'd rather have people poking at it while it gets built than show up in six months with something nobody asked for. Also, since there are experienced game devs on itch, their comments along the way are likely to be very helpful to me as I decide what direction to take the game in. I included a board on the page with three pinned threads: what to abduct next, bugs, and the headline the in-game tabloid gave you.

I decided to try sprite stacking where every object is a pile of flat 2D slices drawn one above the other, so it reads as 3D without a single model. It started as a tank and some trees. Then the question was, what if you were the UFO.

What we learned, mostly from other people's write-ups:

  • dev_dwarf's GameMaker guides say to draw each slice more than once as the gaps open up. We do. Past about 70 degrees of tilt it draws up to 8 passes.
  • GameMaker's z-tilting article says let the depth buffer do the sorting. Our first version sorted on the CPU in a 2D canvas and kept breaking at the edges of things. Moving to WebGL2 with instanced quads and one texture atlas fixed it.
  • The Stack3D guide says un-project the mouse or aiming breaks when the camera tilts. It does. The same author says don't use Stack3D, so we stayed with plain stacking.
  • The Sprite Sandwich guide says bake the light into the slices, because stacks can't take real lighting.

Where it ended up: the camera goes from nearly top-down to about 85 degrees and holds 75 fps on my PC. It's orthographic, so no perspective. One HTML file, no server.

Most of the art is still drawn in code as a stand-in. Real art goes in a scene at a time.

Next is more things to abduct, rival aliens, and government agents. Later, real places built from map data, like Stonehenge and Giza.

There's no engine and no 3D tool. The game is a handful of plain JavaScript files. A short Python script joins them into one HTML file and packs the art and fonts inside it, so there's nothing to load after the page. The renderer came out of our own stacking test from earlier in the week. For art we run our own image generator, a small Cloudflare Worker in front of an open image model. We ask it for two flat views of a thing, like the front and the end of a barn, or the side and top of a truck. Then a script of ours carves the stack of slices out of those two pictures. Round things like the saucer and the silo get spun from a single side view.

Every change gets played by a script before I touch it. The game runs in a headless browser with a software GPU, and the script steps the simulation and plays whole missions start to finish: the hover route, the on-foot route, the cows, the laser. The lab scene gets played with real mouse input. Then it renders the game at phone, tablet and desktop sizes, and at the steep camera angles, and somebody looks at the pictures. Clipping and gaps don't show up in code. They show up in an image. A new test has to fail on the old build before we trust it. After all that I play it myself. Then I find the things that the AI can't, like wonky images or controls that don't make sense.

Keep in mind, this was only launched yesterday so there is a lot to work out, and everyone's critiques and suggestions is what I am looking for. A lot of the crap is just a placeholder while I work. What I need is everyone's good suggestions about the best way to replace the crap placeholders.

AI disclosure

The code was written with Claude. I direct it, test it and decide what goes in. The trees, rocks, saucer, buildings and trucks started as pictures from an image model and were cut into slices by our own script. People and animals are still drawn in code. Nothing calls an AI while you play.

GAME: https://mdawg74.itch.io/roswells-revenge

Sources:


r/webdev • • 2d ago

Showoff Saturday [showoff saturday] Knockout Club: a live voting bracket for movies, series or books

Post image
0 Upvotes

Hoyy, guys

Just a disclaimer: I know you guys are tired of AI slop and I did use A.I for this one :/ That said, I'm kinda proud of the final result, I have no intention of making money of it and it's being useful for me so I decided to post it anyway

Knockout Club is built with Nextjs and Supabase. It's basically a voting app that lets you and your group vote down a list of participants (movie, series or books for now)

I created a tournament to show how the app works

The Sci-Fi Novel Showdown: 2000–Now: what was the best sci-fi book of the century (since 2000)?

How is it going to work?

I picked the 20 sci-fi books with the most Goodreads ratings.

Round 0, the preliminary round. Each participant picks exactly 5 of the 20 nominees to keep, once. The 5 nominees with the most votes move on, and the other 15 are out. If a tie straddles the 5th spot, it is settled by a random draw.

Knockout phase, 3 rounds and 4 battles.

  • Round 1: 5 nominees means 2 battles and 1 bye ( a nominee that advances automatically)
  • Round 2: 3 nominees means 1 battle and 1 bye, so 2 advance
  • Round 3, the Grand Final: the last 2 face off and one champion is left

I'll close every battle after 1 hour.

I have never tested the app with hundred of people, so I am hoping the fallbacks I put to get around my free limits hold up.

Wish you guys enjoy! No account needed to vote (only for creating tournaments)

Link to enter the tournament:

https://knockout-club.oakhouse.dev/vote/06180b89-020c-4690-ab7e-5c2fa7f559ff?code=P7BCS8

(if the app is in portuguese, select the language in the header)


r/webdev • • 3d ago

Discussion Our CTO asked for more hand-written code a year after sending everything through the agents

258 Upvotes

I had a ticket last week, an order export skipping rows with no error. Went looking for where we parse the payload and there are seven functions that turn a string into JSON, safeParse, parseJsonSafe, a jsonOrNull in utils and some others in the services. I asked a teammate about one of them, he thought that was my side. One of the seven is probably mine from before last year, when they told us to put everything through the agents and anything by hand needed a why field on the PR, which I filled in for a bit and then stopped writing by hand.

I asked glm-5.3 to list the JSON parse functions and what calls them, do not touch anything. It came back with a table, all seven as the same thing and a lot of call sites. The checkout one looks like it does something different on bad input, I have not worked out what depends on it. Nobody has claimed the others either. I have a branch that merges the rest but I have not touched it since Tuesday. We had a couple of outages in October, in code none of us knew that well, and at the all hands a few weeks ago the CTO said something like he would like a bit more of the code written by people again.

How are you guys keeping AI agents from duplicating half your utils folder, or is anyone else's team quietly walking back the "AI-first" mandate once the maintenance debt started piling up?


r/webdev • • 2d ago

Discussion How do web devs deal with pressure?

3 Upvotes

So I was thinking of doing freelance work but I feel like I couldn’t handle the pressure of the client not liking the website or getting stuck with a design, although I can deliver I feel like I’d overreact or panic trying to fix anything. Any tips?


r/webdev • • 2d ago

GitHub Pages and 11ty?

1 Upvotes

Hey everyone,

I was able to upload my project to GitHub Pages. I added a blog element to the project, however when I press the blog link on my page it says the page isn’t found.

I’ve already added an action (a yml file) to my project. However, is there anything else I need to do to view my website with its blog or do I push it live to the actual domain for it to work? Everything works on my localhost!

I appreciate any help!

Edit: I did "npm install (@)/11ty/eleventy --save-dev" in the terminal, and it added some bits and bobs to the package.json and package-lock.json files. I pushed my live changes, and it works! If you decided to use the terminal command, make sure there are no () around the @ sign! ^_^

Edit 2, explaining why I did the terminal command: I did this because I decided to just push the changes live and not change any of my URLs. When I deployed it to Netlify, I was getting build errors. But after running that terminal command, it added what I needed for my blog to show up. My blog still doesn't show up on GitHub Pages, probably because my URL doesn't work with the subdomain URL structure. However, it works as intended for my live website.


r/webdev • • 2d ago

Showoff Saturday [Help] Trying to deploy a Django project on Railway, but I can't create a super-user or start celery tasks.

1 Upvotes

I'm trying to deploy a project of mine onto Railway for the first time, but I'm having trouble creating super-users and getting the Celery tasks to work properly. I keep getting these error messages:

Railway: Celery instances crash

Traceback (most recent call last):
  File "/app/.venv/lib/python3.14/site-packages/django/utils/connection.py", line 58, in __getitem__
    return getattr(self._connections, alias)
  File "/app/.venv/lib/python3.14/site-packages/asgiref/local.py", line 158, in __getattr__
    return getattr(storage, key)
AttributeError: '_thread._local' object has no attribute 'default'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/.venv/bin/celery", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/celery/__main__.py", line 15, in main
    sys.exit(_main())
             ~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/celery/bin/celery.py", line 227, in main
    return celery(auto_envvar_prefix="CELERY")
  File "/app/.venv/lib/python3.14/site-packages/click/core.py", line 1631, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/click/core.py", line 1552, in main
    rv = self.invoke(ctx)
  File "/app/.venv/lib/python3.14/site-packages/click/core.py", line 2032, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/click/core.py", line 1415, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/click/core.py", line 910, in invoke
    return callback(*args, **kwargs)
  File "/app/.venv/lib/python3.14/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/app/.venv/lib/python3.14/site-packages/celery/bin/base.py", line 158, in caller
    return f(ctx, *args, **kwargs)
  File "/app/.venv/lib/python3.14/site-packages/celery/bin/beat.py", line 72, in beat
    return beat().run()
           ~~~~~~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/celery/apps/beat.py", line 82, in run
    self.init_loader()
    ~~~~~~~~~~~~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/celery/apps/beat.py", line 132, in init_loader
    self.app.loader.init_worker()
  File "/app/.venv/lib/python3.14/site-packages/celery/fixups/django.py", line 148, in django_setup
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    django.setup()
  File "/app/.venv/lib/python3.14/site-packages/celery/loaders/base.py", line 110, in init_worker
    self.import_default_modules()
    ~~~~~~~~~~~~^^
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/django/__init__.py", line 24, in setup
  File "/app/.venv/lib/python3.14/site-packages/celery/loaders/base.py", line 104, in import_default_modules
    apps.populate(settings.INSTALLED_APPS)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/apps/registry.py", line 116, in populate
    raise response
  File "/app/.venv/lib/python3.14/site-packages/celery/utils/dispatch/signal.py", line 280, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/app/.venv/lib/python3.14/site-packages/celery/fixups/django.py", line 103, in on_import_modules
    self.worker_fixup.validate_models()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/celery/fixups/django.py", line 152, in validate_models
    self.django_setup()
    ~~~~~~~~~~~~~~~~~^^
    app_config.import_models()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/.venv/lib/python3.14/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
                         ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/mise/installs/python/3.14.7/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 759, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/app/.venv/lib/python3.14/site-packages/django/contrib/auth/models.py", line 5, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "/app/.venv/lib/python3.14/site-packages/django/contrib/auth/base_user.py", line 43, in <module>
    class AbstractBaseUser(models.Model):
  File "/app/.venv/lib/python3.14/site-packages/django/utils/connection.py", line 60, in __getitem__
    if alias not in self.settings:
                    ^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/utils/functional.py", line 47, in __get__
    ...<120 lines>...
    res = instance.__dict__[self.name] = self.func(instance)
            )
                                         ~~~~~~~~~^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/db/models/base.py", line 145, in __new__
    new_class.add_to_class("_meta", Options(meta, app_label))
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/db/models/base.py", line 393, in add_to_class
    value.contribute_to_class(cls, name)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/db/models/options.py", line 238, in contribute_to_class
    self.db_table, connection.ops.max_name_length()
                   ^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/utils/connection.py", line 15, in __getattr__
    return getattr(self._connections[self._alias], item)
                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/utils/connection.py", line 45, in settings
    self._settings = self.configure_settings(self._settings)
                     ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.14/site-packages/django/db/utils.py", line 163, in configure_settings
    conn.setdefault("ATOMIC_REQUESTS", False)
    ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setdefault'

Local Terminal: Super-user Creation Operation Fails

Traceback (most recent call last):
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
    self.connect()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 256, in connect
    self.connection = self.get_new_connection(conn_params)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 333, in get_new_connection
    connection = self.Database.connect(**conn_params)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/psycopg/connection.py", line 100, in connect
    attempts = conninfo_attempts(params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/psycopg/_conninfo_attempts.py", line 55, in conninfo_attempts
    raise last_exc
psycopg.OperationalError: failed to resolve host 'postgres.railway.internal': [Errno -2] Name or service not known

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/manage.py", line 22, in <module>
    main()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/core/management/__init__.py", line 437, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/core/management/base.py", line 420, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 90, in execute
    return super().execute(*args, **options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/core/management/base.py", line 463, in execute
    self.check_migrations()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/core/management/base.py", line 591, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/migrations/executor.py", line 18, in __init__
    self.loader = MigrationLoader(self.connection)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/migrations/loader.py", line 59, in __init__
    self.build_graph()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/migrations/loader.py", line 288, in build_graph
    self.applied_migrations = recorder.applied_migrations()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/migrations/recorder.py", line 89, in applied_migrations
    if self.has_table():
       ^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/migrations/recorder.py", line 63, in has_table
    with self.connection.cursor() as cursor:
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 320, in cursor
    return self._cursor()
           ^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 296, in _cursor
    self.ensure_connection()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 278, in ensure_connection
    with self.wrap_database_errors:
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/utils.py", line 94, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
    self.connect()
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/base/base.py", line 256, in connect
    self.connection = self.get_new_connection(conn_params)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/django/db/backends/postgresql/base.py", line 333, in get_new_connection
    connection = self.Database.connect(**conn_params)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/psycopg/connection.py", line 100, in connect
    attempts = conninfo_attempts(params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eclair/Documents/coding/_web-dev/aenir_web/.venv-aenir_web/lib/python3.12/site-packages/psycopg/_conninfo_attempts.py", line 55, in conninfo_attempts
    raise last_exc
django.db.utils.OperationalError: failed to resolve host 'postgres.railway.internal': [Errno -2] Name or service not known

Guides Referenced

Setting Up Celery

https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html

Scheduling Periodic Tasks in Celery

https://docs.celeryq.dev/en/stable/userguide/periodic-tasks.html

Deploying Django Applications onto Railway

https://railway.com/guides/django

Creating Django Superuser in Railway

https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Server-side/Django/Deployment#configure_a_superuser

I'm just a novice. Forgive me for my likely stupid questions.

This is my code-base, by the by: https://github.com/gchang12/aenir_web


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] Tunerva — a '90s clock radio rebuilt as a web app, and the station finder now speaks 38 languages

1 Upvotes

Tunerva — a '90s clock radio rebuilt as a web app: https://tunerva.app

Vanilla JS + Canvas, no framework. Preset banks, podcasts, a 10-band EQ and karaoke fader that process the live stream, spectrum/VU/cassette/reel-to-reel visualizers — the cassette deck simulates real tape (47.6 mm/s, pack radii from tape length, counter geared to exactly 900 at the end of a C90 side).

This week's build story is the station finder. It used to be a country list; now it's a proper directory client: a language picker covering 38 languages (English and Hindi pinned at the top, no regional variants), a country list grown from 20 to 35, and a Global Finder with country + language + genre filters — where a picked genre is actually sent to the directory server as the query, not filtered client-side afterwards. The hard part was making that feel instant on a phone: the directory mirrors are slow and flaky, so the client pins one mirror, waits, and retries http as https, with a codec-aware bitrate floor (MP3 ≥128k, AAC+ ≥64k) so dead or thin streams never reach the list.

Free, no account, runs in any browser. A native iOS version goes to the App Store this Sunday — same process, AI-built, human-verdicted on a real phone.

Feedback I'd love: pick your language or country in the Finder and tell me what it misses — a station that should be there, a genre that returns the wrong thing, or a language that reads wrong.


r/webdev • • 2d ago

Showoff Saturday I built a free API client that reads your code: it finds every endpoint, pre-fills the requests, then tests, mocks and load tests them. No account, no cloud.

Thumbnail
api.live
0 Upvotes

I'm the developer. Every API client I've used makes me describe my API twice: once in the code, then again by hand in a "collection" that goes stale the first time I rename a field. I also ended up with four tools: a client, a mock server, a load generator and a scheduler. So I built one that starts from the code.

44-second demo: https://www.youtube.com/watch?v=ktToD_UVXx8

Smart Indexing of the codebase across 20's of programming languages and frameworks like openapi, python, java, rust etc. to pre-populate the payload and request payload, params, auth, headers etc.

What it does

Reads your code

  • api index finds every endpoint in a repo: 125 frameworks across 28 languages (Express, Next.js, NestJS, FastAPI, Django, Rails, Spring, Gin, Laravel and more), or an OpenAPI file. It only reads the code, it never runs it.
  • Every request is pre-filled from your types, with required and optional fields marked and realistic values (an email looks like an email).
  • Re-indexing picks up new routes and leaves the files you edited alone.

Tests

  • Flows: chain requests into a test. Send, check, save a value, use it in the next step. 50+ step types including branch, loop, poll, run in parallel and wait for a webhook.
  • Build a flow from plain sentences in the app, or write it as text in APL, a small language I made for API tests. One line is one action.
  • It can fire 20 copies of a request at the same moment, which catches double-charge and double-booking bugs that one-at-a-time tests miss.
  • Export a flow to 20 test frameworks, including Jest, pytest, Playwright, Cypress and k6.
Chain multiple api validation steps and on top of them validate scenarios like concurrency, idempotency, double charge. Control the flows like you control the testing in programming languages without the overhead of using a PL.

Mocks

  • A simulator for the services you depend on, each on its own local port. Generated from an OpenAPI file, a saved response or recorded traffic.
  • Stateful (POST stores, GET reads it back), with failures on demand: error rates, timeouts, delays, dropped connections.
  • It can deliver webhooks with the problems real providers have: duplicates, reordering and bad signatures.

Load testing

  • Load test the request you just debugged, or a whole flow, with no script.
  • Concurrent users, fixed arrival rate, ramp, spike and soak. Thresholds like p95 < 150ms fail the run, so it works as a CI gate.
  • A Rust engine that reaches 90,000+ requests a second from a laptop against a local target.
Perform load test, schedule them, and chain them in existing flows to make a comprehensive integration testing layer.

Everything else

  • Capture: a local proxy records real traffic and turns it into flows, mocks or a draft OpenAPI spec. Tokens and cookies are redacted before they touch disk.
  • Health: failing checks, flaky tests and which endpoints your tests have actually hit.
  • Monitors: run any request or flow on a schedule.
  • API design: a visual OpenAPI editor, a linter, and a breaking-change check for pull requests.
  • A CLI with JSON, JUnit and HTML output for CI.
  • An MCP server with 61 tools, so Claude Code or Cursor can index the repo, send requests, run flows and start mocks: claude mcp add apilive -- npx -y @apilivehq/cli mcp

What stays on your machine

Everything. There is no account and no cloud workspace. Requests and tests are plain YAML files in your repo, so they go through code review like the rest of your code. Secrets live in git-ignored files. The app talks only to the hosts you send requests to.

What it isn't

  • Not open source yet. It's free, and I plan to open source it in the future.
  • Not finished. This is v0.1 from one person, so expect rough edges.
  • The desktop app is Mac only. The CLI and MCP server run on Mac, Linux and Windows.
  • Load tests run from one machine.
  • Postman has team workspaces and hosted docs, and Bruno is open source with a bigger community. If those matter most to you, they're the better pick.

Try it

npm i -g @apilivehq/cli
brew install --cask apilivehq/tap/api-live

Or download from https://api.live. It imports Postman, Bruno and Insomnia collections, and exports back to Postman and OpenAPI, so you're not locked in.

The feedback I want most: run api index on your project and tell me which routes it missed, and which framework you use.


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] I built a photobooth you control with hand gestures in the browser: pinch to take the photo, then solve it as a puzzle

1 Upvotes

Live: https://pinchpop.pages.dev (free, no account needed)

Frame a shot with your index fingers, pinch to snap it, then solve the photo

as a 3×3 puzzle by pointing and pinching to swap pieces. You get a polaroid

and a video of your run at the end.

Hand tracking is MediaPipe running in the browser, so video never leaves your

device. Built with React, TypeScript, Supabase and Cloudflare Pages.

Works best on laptop Chrome/Edge with a webcam. Does the pinch feel reliable

for you? That's the part I'm still tuning.


r/webdev • • 2d ago

Showoff Saturday MeshShears: A free, MIT-licensed browser tool to cut 3D models into pieces by painting.

1 Upvotes

I tried a lot of different options to get held/worn props for my makehuman bodies. Having my agent make them lacked the quality i am after, generating them by themselves gave me props that don't fit right so I tried cutting them out. It worked, but not easily so I built this, a free browser tool that cuts a 3D model into separate pieces by painting it. You paint each part a colour, preview the cut, and export one GLB file per piece.

* GitHub (MIT licence): https://github.com/khelevaster-ship-it/Meshshears

* Live browser tool: https://khelevaster-ship-it.github.io/Meshshears/

* Hugging Face Space: https://huggingface.co/spaces/Khelevaster/Meshshears

How it works

100% client-side: Everything runs locally in your browser, and you can also open the tool offline.

Supported formats: Opens GLB, glTF, OBJ, FBX, STL, and PLY.

Painting tools: Brush, fill, lasso, eraser, a wall tool that fill won't cross, and a clone brush.

In browser piece finder: Renders the model from 40 angles and runs Meta's SAM 2.1 model locally with ONNX Runtime Web to suggest pieces, paired with a size slider and manual split/join controls.

Device support: Saves in the browser or to a file, with touch support, keyboard camera keys, and phone/tablet file picking in the import buttons.

Honest limits

Handles models up to about 4 million triangles (bigger needs a good graphics card).

STL and PLY open grey (no texture).

USDZ and `.blend` files must be exported to GLB first.

Draco compression works; Meshopt and KTX2 compressed files don't open yet.

Separate texture files must be opened together with the model.

Yhe automatic piece finder takes several minutes and isn't always dependable on noisy textures yet.

Chrome and Edge are fastest; Firefox works.

Full disclosure: MeshShears is AI-made (I'm not a programmer and built this with AI help). Feedback, bug reports, and tips on pairing SAM with 3D meshes are welcome.


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] A static card comparison site with client-side filtering

0 Upvotes

I built a card comparison site as a single static site on Netlify. No backend, no database, no framework. All filtering runs client side across 30 cards: reward type, no annual fee, no foreign transaction fee, welcome bonus. Points cards show travel value and cash-out value in dollars. All images are embedded as data URIs, so no external image requests, but the page is close to six megabytes. I'm not a coder. I had the idea and used Muse to help build it. The hard part was verifying every bonus and rate by hand against the issuer's own page. The site is pistohub.com. Happy to hear what you'd do differently, especially on the page weight.


r/webdev • • 2d ago

Showoff Saturday [Showoff Saturday] Built a self-hosted multi-user Discord Rich Presence web dashboard with Express, raw WebSockets, and vanilla JS

1 Upvotes

I've been tinkering with a self-hosted web dashboard called Cloud RPC and just cleaned it up to put on GitHub under MIT. Most 24/7 Discord Rich Presence tools ask you to paste your raw account token, so I wanted to see if I could build a multi-user web app that stays completely tokenless by using Discord's OAuth2 flow (identify + sdk.social_layer_presence) instead.

On the backend, it's Node.js with Express and ws. Each logged-in user gets their own long-lived Gateway WebSocket session managed in memory, with proactive OAuth2 token refreshes and automatic recovery if Discord drops the session (4004/401). Custom image URLs are proxied through Discord's external-assets endpoint behind a small LRU cache so it doesn't spam requests. It also handles platform identification via Gateway op: 2 and live presence updates via op: 3.

For the frontend, I deliberately skipped React and any build step and wrote it in plain HTML, CSS, and vanilla JS. It has a live Discord profile preview that updates as you type, preset saving, a basic rotation/sleep scheduler (with a 20s rate-limit floor), a local searchable cache of Discord's games list, and full English/Arabic support with RTL layout switching. I also spent some time locking down the auth flow and tightening the CSP headers since it's meant to be self-hosted for multiple users.

Repo: https://github.com/Mohammask/cloud-rpc

I'm mostly curious how folks here would structure or scale the per-user WebSocket lifecycle in Node, or if anything in bot.js around the auth/CSP setup looks sketchy and worth tightening up.