r/webdev • • 1d ago

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

Post image
3 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 • • 1d ago

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

Thumbnail
youtube.com
3 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 • • 1d ago

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

Post image
3 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 • • 1d 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 • • 1d 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 • • 3d ago

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

249 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 • • 1d 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 • • 1d ago

Resource Built a zero-upload client-side scrubber to strip API keys, JWTs & .env secrets before pasting logs into AI chats

2 Upvotes

Got tired of manually editing OpenAI/AWS keys, Bearer JWTs, DB connection strings, and user emails out of stack traces before pasting them into AI chats.

Made a free single-page client-side tool (runs entirely in your browser, zero backend, works offline after load): https://larkandlever.github.io/tools/pii-redactor/


r/webdev • • 1d 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 • • 1d 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 • • 1d 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

Discussion How do web devs deal with pressure?

2 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 • • 1d 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 • • 1d 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 • • 1d 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.


r/webdev • • 2d ago

Showoff Saturday HTML-Land — A platform for everyone who wants to get into web development.

5 Upvotes

Hello everyone !

I'd like to share one of my self builded projects called HTML-Land. It’s an interactive platform to play with HTML elements. I implemented a lot of features in this project to make the platform very user friendly and for everyone who wants to get into web development. Feel free to check out the project repository here:

GitHub: https://github.com/newst4rt/HTML-Land

If you like the project, I'd appreciate a star! ⭐
It's my first React project, and I'd be happy to receive any feedback, suggestions, or constructive criticism.

Thank you! <3


r/webdev • • 1d ago

Showoff Saturday I built Backlot because my content was all over the place.

0 Upvotes

I create content for YouTube, Instagram, and TikTok, and one thing I’ve always struggled with is keeping everything organized. Ideas end up in my Notes app, videos and thumbnails sit in different folders, and captions or hashtags are usually saved somewhere else. I’ve tried a few tools, but none really fit the way I create content.

So I built Backlot to keep that in one place. Ideas, posts, files, and captions live with the channel they belong to. Slate is the part that knows what you’ve already saved, so you can ask for a caption, hashtags, or what to make next without re-explaining your work.

It’s live at https://getbacklot.app. I’d love to hear what you think, especially if you create content yourself. What would you change or want added?


r/webdev • • 1d ago

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

Post image
1 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 • • 1d ago

Showoff Saturday [Showoff Saturday] An 8-player co-op voxel game that renders with WebGPU from a web worker, on Rust compiled to WebAssembly

0 Upvotes

Hello!

Far Worlds is a co-op game in a voxel world that runs in a browser tab. You start at an old camp, head out on expeditions to worlds you've never seen, and bring what you find back to rebuild the camp. Up to 8 players fit in a party, and friends join from one link.

How it's built:

  • The renderer is Rust on wgpu, compiled to WebAssembly. It runs in a web worker and draws with WebGPU.
  • Terrain meshing, lighting and physics are Rust as well, each compiled to WebAssembly.
  • The game logic is TypeScript.

It runs in Chrome, Brave or Edge, with no install and no sign-up: https://farworlds.com/play

Feedback on how it runs on your machine would help a lot: load time, frame rate, anything that breaks. If something's off, your browser and GPU help me track it down.

Thanks!


r/webdev • • 2d ago

Resource Easy IGCSE: 224 interactive 3D diagrams drawn on a 2D canvas, no WebGL

Post image
0 Upvotes

I'm a Year 11 student and built Easy IGCSE, a free revision site for my exams. The part I'm proudest of is the 3D: a heart you can cut open, crystal lattices you can spin, and a lab bench with 109 practicals. None of it uses WebGL or three.js.

How it works:

  • one ~700-line engine on a plain 2D canvas
  • painter's algorithm, with big faces split into smaller ones so they sort correctly
  • spheres are cached gradient sprites, not polygons
  • it only draws while something moves, so nothing runs when you're just reading

The site is Astro, fully static, on Vercel. No accounts, no ads.

https://easyigcse.com

How does the 3D run on your machine? Any stutter on older laptops?


r/webdev • • 1d ago

[Showoff Saturday] I built a live American football league where all 24 teams are coached by AI. Would love feedback on the UX

Thumbnail
gallery
0 Upvotes

Hey r/webdev,

Snapline is a free browser game I've been building: 24 teams coached by AI agents play a full American football season every week, and every game is shown live, snap by snap.

Stack, for the curious:

- Backend: Python / FastAPI + SQLite, hosted on Railway

- The week's games are simulated ahead by a Python engine in GitHub Actions (~16 min, too heavy for the host), then revealed play by play on a shared clock

- Frontend: one page, no framework, with the field drawn on a canvas

- Web Push for game reminders

What's in the GIFs:

  1. A live game, with the AI coach's 4th-down decision and the win probability of each option
  2. Standings and player rankings, updated after each game
  3. Tracking stats (completion over expected, pass charts) and a player card
  4. Teams and badges

Feedback I'm looking for:

- Is the first screen clear if you know nothing about it?

- Does it feel fast on your device (especially mobile)?

- Anything confusing in the navigation or the stats tables?

Try it (no sign-up to watch): snapline.live

Happy to answer questions about the sim or the live sync.


r/webdev • • 1d ago

Disabled JavaScript = disabled pay wall

0 Upvotes

I can't be the only person who checks if simply disabling JavaScript on a news website removes the pay wall?

Some websites are smarter, they don't load the whole article in the .html, but lots do. Bonus, on major UK news website this also removes ads - so zero revenue streams for my visit.

If this is the main way your business makes its money then it's not great. If you're building anything like this and you have this loop hole, please fix it, it makes all use software people look like amateurs, smh


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] Booking slots without a backend: a barber site that sends the request to WhatsApp

0 Upvotes

Problem I wanted to solve: small barber shops lose bookings while their hands are busy, and they don't want to pay for booking software.

How it works, no backend at all:

- The customer picks service, barber, day and time. WhatsApp opens with the request already written, and the shop confirms when free

- Bookable times come from the opening hours plus the service length: a 50-minute cut won't offer 19:00 if the shop closes at 19:30

- Same-day slots hide anything less than 45 minutes from now, and closed days disappear from the day picker

- Tapping a row in the price list pre-selects that service in the form

Stack: vanilla HTML, CSS and JS. One variable font (Archivo), with the width axis used for headings. Self-hosted fonts and a click-to-load Google Map, so no cookie banner in the EU.

What I'd like feedback on: is four steps quick enough on a phone, or would you merge barber and service into one?

Demo: https://lovely-mooncake-ce596b.netlify.app


r/webdev • • 1d ago

Showoff Saturday [Showoff Saturday] - I built bantr.live a real-time chat and forum of sorts

Thumbnail
gallery
0 Upvotes

Hello all,

I built bantr.live, a real-time chat and forum. You can post videos, images, or plain text in the forum alongside standard social features, or jump into global chats, direct messages, and peer-to-peer chats organized around different interest groups.

Right now, the web version is just the live chat until I free up more time, while the iOS and Android apps have the full feature set. Since it's brand new (around 50 users so far), it's kinda still a ghost town but starting to get people to post. I would love any feedback or if you have questions on how it works let me know!