<- Back
Comments (93)
- starfallgHi, I'm the creator of Bento. Just wanted to share a bit more about how I created it beyond what's in Github.The file contains more or less two sections. There is a plain block of JSON near the top of the file which is the slide data. You can read, grep, or point a harness at it. The app itself is in a base64 blob that loads through a small shim which deflates in the browser with DecompressionStream, which keeps the package small and so that we don't need to fetch any external files at runtime. File System Access API is used for JSON writeback into the same file, which falls back to a plian download and all updates are ECDSA signed.I started with reveal.js which served as a base, and incorporated GSAP/Flip to handle the animation. Then I added charting with echarts, but due to a number of issues with size and how the worked, I ended up re-implementing both.What I'm most pleased about is how seamless the CRDT works. The blind relay is a small file that runs on Cloudflare Durable Objects, and all it sees are the encrypted data from the clients. Collab is off until we turn it on in the app (by starting a session by sharing by invite file), and then some sets of keys are generated. Access is handled by user key, and you can have read-only users, and also revoke live collab access by user as well.
- praveer13This is amazing. I also think this will become more common. I feel there is a lot of software that can just be served locally via html/typescript/react etc and even have local state. There's just not been an economic incentive till now.I am personally using kimi k3 to create a mobile friendly set of games, starting from math like linear algebra to quantum physics - neurodivergent friendly, completely local state, served from github pages - to get someone interested in the field. This needs an economic incentive to exist without LLMs, because of so much different expertise needed, and time.if anyone's interested in the games let me know - i plan to play it myself, improve it, remove bugs etc before publishing on HN.
- notpushkin> Go to https://bento.page/guestbook/ to try out the live guestbook to experience share editing / collab.My M1 Mac froze in the end (had to hard-reboot), but that was so much fun! I guess there’s a reason Figma uses WASM and a custom renderer, though I guess your implementation should work fine for most cases (i.e. not when all of HN are trying to edit everything simultaneously :^)Two notes:1. It would be nice if another person changing something unrelated to what I’m doing didn’t reset the focus for me.2. WAY too llm-y copy both on the landing page and the example deck. Your HN submission text is way easier and more pleasant to read.And huge kudos for releasing this as FOSS!
- calebmAwesome. I've been trying to promote this kind of Single-File Web Apps as a concept - feel free to add this to the proposed Wikipedia page: https://en.wikipedia.org/wiki/Draft:Single_File_Web_Apps
- ozheroThis is excellent work!Thanks for sharing and deserves a lot of Github stars!
- jmuguyThis might just be a Firefox thing but the animations are really struggling on my system here - very slow and choppy.
- aagWhat an ambitious and impressive project! I'm going to try it.One note: The home page says "Nothing phones home," but the Bento files I've examined include a cloudflareinsights.com beacon.
- syholLooks very good and I'm excited to try it out properly. It's a shame about the name considering a lot of self-hosters will be using BentoPDF. But thats one of two hard things in Computer Science.
- dptrsaI've been reading HN much longer than I've had an account, and I have never once left a comment or interacted with any post. Had to break the seal to say great job with this. Really fantastic out of the box, and timely thinking. I'll be using this for sure.
- trentorI like it. I used Claude and Qwen to build single file HTML decks in the last few months. The nicest thing with HTML decks is that you can not only ship the decks but integrate your prototype/demos in the same file integrated into the flow of your deck. Would love to see a feature like that.
- TeeWEEWas using Reveal.js which worked well because it can use any HTML or any plugin.Bento works with a predefined schema, so you cant use any HTML library (Such as Mermaid.js) if you need it in your presentation.But then again, often you dont need it.Just created a presentation with Bento... I do think Reveal.js gives you more raw power. But I like bentos single html page design, and you can easily edit it manually. You cant do that with Reveal.js
- mklarmannI recently did something similar with just asking claude to create me a presentation with GSAP animations. With a some nice features to embed apps, switch the language while presenting, etc. - it works like a charm: https://eos-lci.gitlab.io/eos-lci-presentations/klimabuendni... (all open source)
- momojoThis blew my socks off. Theres something so satisfying about knowing everything I need is in a single file. I know the caveat is *1. Have a modern browser*, but this is my go to format when trying out random ideas. I even have a macro called `try` that sends me directly to a new folder called `scratch/YYYYMMDD_<try_bento>`.Great work! I hope to see more and more apps like this in the spirit of "Toss it all into context"
- thecombjellyVery cool project! It looks nice and the technical aspect of how sharing/CRDT is implemented is a really great idea! I would definitely be interested in the ability to change the relay; ideally to something self-hosted.
- ethinThis is so cool! When I initially saw the title I was wondering how this is different from SlideJS or similar, but this is really cool and now I'm wondering if this could (at least in theory) be integrated into something like Pandoc as an output option?
- hiltiGreat project. But please check the name:https://en.wikipedia.org/wiki/Bento_(database)
- luanmunizThis is awesome! I do love this software is one file thing. A breath of fresh air on these you-rent-everything-owns-nothing days
- sciencesamaif you extract ppt it is a xml file !! fyi !
- BIGFOOT_EXISTSAbsolutely love seeing products like this. Starred, saved link, will definitely use soon.
- vonniedaThis is really clever and is taking a direction I hope to see more software taking! Totally self contained is awesome. Well done!
- skybrianThis is very neat!For people clicking on a link to some slides that someone shared, it seems like starting out in viewing mode with a prominent edit button might be better than starting out in edit mode?
- shaismAwesome. Perfect for editing with agents and sharing with coworkers.- Even works well on mobile.- Embedding images and videos also works flawlessly.
- francozanardiLove that it's just one HTML file, really easy way to share software. Great work!
- meetingthrowerOMG coming from bigtime consulting this is...AMAZING. Thank you!
- ninjahawk1I’ve honestly been kind of surprised that large companies software hasn’t been recreated for free en masse from the use of AI in a weekend. I’ve definitely seen some cases but it’s not as common as I had personally expected.
- stackghost>There's no install or cloud login, everything works offline. The default deck is around 560 KB and it doesn't need to fetch anything once you got it.This is the best feature.
- truetravellerGreat job! How long did this project take total? How much percent is AI generated?
- bfleschLooks nice, but I'd love to have a setting where all animations can be switched off.
- schainksThis is awesome!
- anonundefined
- luckydatathis project is a monument to the HUGE failure of the Workspace team at Google to enable agent editing in a way that makes sense.Google is really shitting the bed in all the way that matters on GenAI and being an ex employee of Cloud I am not in the least surprised about it, just really sad.
- hathymimpressive, bravo!
- latexrWhy does the homepage mention AI over 20 times? Why does it mention AI at all? Why is most of it absurdly long and obfuscated base 64, which looks be binary data?
- fragmedeUm, that's amazing... and it's free?
- ABO_Studios[flagged]
- nicc047[dead]
- GrinningFoolAlso, bento: https://github.com/chef/bento. No relation.