I'm working on a tool to generate and host full stack web apps from prompts (just like everyone else). I'm loving it. Using llms to do as much of my coding as possible, so in a way eating my own dog food, although it's a more developer-driven effort than what the end product will be.
Strange thing is, the most time consuming part of getting this ready for a user facing launch is not the code generating, but all the scaffolding/queues/storage to run it.
I really wish we could get a privacy-respecting standard for electronic receipts. But every time a shop experiments with it, it's using a shitty app which they use to track their customers.
I've been working on a cloud gaming service (like Stadia). Wanted to see how far I can get it done using open source, without ready-to-use solutions like Parsec/Moonlight/Sunshine.
It works by running a game in Linux (I use NixOS btw) under Wayland (sway), capturing the frames via Pipewire in form of DMAbufs and passing them to ffmpeg's VA-API encoder (so frames don't leave GPU memory and are encoded on GPU right away), and finally sending encoded packets through WebRTC media stream to a web client. Inputs from a client are sent back to the server via WebRTC data channel and injected into Wayland. Running the prototype over local network displays zero perceivable latency. (Of course when playing on a remote AWS server the latency is visible as expected). Pleased with the result so far, although it's my first experience with Pipewire, VA-API, and WebRTC, so my implementation is probably far from optimal. Overall, very impressed by WebRTC - such a powerful thing right in every browser. Continued to be amazed by NixOS - my AWS AMI is NixOS-based and can be built and rebuilt with granular caching, with a single `nix build` command. Also Terraform/OpenTofu - just makes it all possible deploy-wise. So much good stuff exists!
Currently resolution is hardcoded, but sure, can be done. Also need to figure out things like changing language/keyboard layout or using IME, to be able to type text properly. Sending mouse cursor picture from server to client may be nice too, in case a game uses hardware cursor and changes it's appearance, like some RTS games - currently mouse cursor is just being baked into video frames. Many possible improvements!
Not yet, but I'll probably open source it eventually! Still need to clean things up a lot, and implement missing functionality, for example I haven't even bothered to implement audio capture yet, because I wanted to try video first
Comments (1,152) 576 threads
Earlier commentsStrange thing is, the most time consuming part of getting this ready for a user facing launch is not the code generating, but all the scaffolding/queues/storage to run it.
Here is the repo: https://github.com/SafarSoFar/solar-system Demo: https://safarsofar.github.io/solar-system/
Any kind of feedback (good or bad) is appreciated!
dairy: 50%, meat: 10%, alcohol: 5%, etc...
Continue this thread — 1 reply
https://www.5outapp.com/
It works by running a game in Linux (I use NixOS btw) under Wayland (sway), capturing the frames via Pipewire in form of DMAbufs and passing them to ffmpeg's VA-API encoder (so frames don't leave GPU memory and are encoded on GPU right away), and finally sending encoded packets through WebRTC media stream to a web client. Inputs from a client are sent back to the server via WebRTC data channel and injected into Wayland.
Running the prototype over local network displays zero perceivable latency. (Of course when playing on a remote AWS server the latency is visible as expected). Pleased with the result so far, although it's my first experience with Pipewire, VA-API, and WebRTC, so my implementation is probably far from optimal.
Overall, very impressed by WebRTC - such a powerful thing right in every browser. Continued to be amazed by NixOS - my AWS AMI is NixOS-based and can be built and rebuilt with granular caching, with a single `nix build` command. Also Terraform/OpenTofu - just makes it all possible deploy-wise. So much good stuff exists!
All comments shown.
Couldn't load more comments. Check your connection and try again.