Hi, 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.
This was my biggest question. Thanks for preemptively answering (and being proud!).
When I was playing with this, I immediately thought of TiddlyWikis, which I've always been fond of, but they never took for me. However, an easily editable presentation -- that's a use case I can understand.
I couldn't see how there was a CDRT when I'm just working with a single file. I was trying to figure out where the server was. So -- this is just on for everyone? Are you concerned that your Cloudflare account will be hammered with this?
You can play around in the guestbook. I'm in it right now and you can see me editing things.
Cloudflare Durable Objects are pretty cheap and I'm using it like a very basic pub/sub with each deck having it's own DO. I did some calculations and it should be well within my spend limits.
Looks 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.
This 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?
This 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"
I 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.
Thanks. That would be a cool feature, and definitely possible. Currently it's already got a feature where you can export and import it's data JSON. We just need to find a way to squeeze a whole frontend in.
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?
Some unexpected behavior: I reloaded the page, double-tapped on the first slide to go back to it, then hit slideshow. Instead of starting out on the slide like I chose, it went to a slide further in othe presentation. I think it’s a bit too persistent about resuming where you left off?
Also, swiping left to get back to the first slide puts me back in the editor (I went too far), and then hitting slideshow puts me back where I started so I have to swipe left again.
Also, viewing slides on a tablet, I don’t see a way to open speaker notes since I can’t “press the S key.” These instructions should probably be different if you’re not on desktop.
Maybe display speaker notes by default if the screen is in portrait mode?
The slideshow button is a split pill, you can open it there where there is this tiny up arrow that opens up a drop down menu. But on tablet it probably doesn't do what you want it to as it was built for multi-screen use on the desktop.
I'll have a think on this tonight and I'm sure we can do a tablet speaker notes mode.
I’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.
Thanks! I guess there are some drawback to this approach, large companies especially would be completely adverse to it. But it's cool and I'm hoping people would find it useful!
this 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.
Thanks! I started on this last week in my spare time and I used Claude, all my commit history is on Github. I did most of the coding via Claude Code, no fancy system or exotic harness.
I would love to do more by hand, but I look after a tech team inside a renewables firm, so I don't have much time between job and my preschooler.
Why 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?
It's really to solve a use case where there are a lot of these cool web-based presentations being created by AI, but they are all disposable things that non-technies can't work with easily.
Base64 is paired with compression to keep the size small so you can share it easily. The original version was around 1.3MB and maybe we can have a switch to output without compression. The source that generates it is all in Github.
Because whatever you like or not, AI support these days is a must. Nobody who makes PPT does everything by hand nowadays. And the project is on GitHub, you can get the full code there if you must...
Thanks! It's a project I did in my spare time and it's made with a lot of MIT licensed JS libraries, so it's natural to make this MIT licensed as well. I don't know even know how anybody would start to monetise something local-first like this in this day and age.
Did you chew on monetization at all? I'm building something similar but for bio-imaging scientists, where I've packed everything I can into a single HTML (and even some modern segmentation models like Cellpose3 and StarDist that fit under Cloudflare's 25MB free tier limit haha.
Maybe I'm thinking too far ahead but I'm hoping maybe I can cover the (future?) compute costs by charging for the heavy duty ML that would have to be run non-locally but IDK. This isn't critical yet but would love to hear your musings.
If you have a backend that does processing, I'm sure you can monetise it. But for Bento, the whole idea is to forgo the backend, so I didn't really think about it that much. If an enterprise version comes, I'm sure there is a way to integrate stuff like SSO that you can charge for.
Hi, 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.
This was my biggest question. Thanks for preemptively answering (and being proud!).
When I was playing with this, I immediately thought of TiddlyWikis, which I've always been fond of, but they never took for me. However, an easily editable presentation -- that's a use case I can understand.
I couldn't see how there was a CDRT when I'm just working with a single file. I was trying to figure out where the server was. So -- this is just on for everyone? Are you concerned that your Cloudflare account will be hammered with this?
You can play around in the guestbook. I'm in it right now and you can see me editing things.
Cloudflare Durable Objects are pretty cheap and I'm using it like a very basic pub/sub with each deck having it's own DO. I did some calculations and it should be well within my spend limits.
What 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.
Looks 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.
Aw man! Well it is very different to what BentoPDF is doing. I'm sure nobody would get confused!
This 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?
Awesome. 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
https://hyperclay.com/ could be on there I think
Thanks for sharing this! Let me take a look. I was only aware of TiddlyWiki when I first started on Bento.
Awesome. Perfect for editing with agents and sharing with coworkers.
- Even works well on mobile. - Embedding images and videos also works flawlessly.
Love that it's just one HTML file, really easy way to share software. Great work!
This 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"
Thanks, you're right, that is the achilles heel. Most of the functionality actually is in the browser. We're just running fancy scripting on it.
I 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.
Thanks. That would be a cool feature, and definitely possible. Currently it's already got a feature where you can export and import it's data JSON. We just need to find a way to squeeze a whole frontend in.
This 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?
Thanks for the feedback, that's a really good idea! I'll try to roll it out shortly!
Some unexpected behavior: I reloaded the page, double-tapped on the first slide to go back to it, then hit slideshow. Instead of starting out on the slide like I chose, it went to a slide further in othe presentation. I think it’s a bit too persistent about resuming where you left off?
Also, swiping left to get back to the first slide puts me back in the editor (I went too far), and then hitting slideshow puts me back where I started so I have to swipe left again.
The slide resume behaviour is definitely a bug, I'll take a stab at it shortly.
The swipe left on first slide is a feature though, its to help mobile users get back to the editor easily.
Also, viewing slides on a tablet, I don’t see a way to open speaker notes since I can’t “press the S key.” These instructions should probably be different if you’re not on desktop.
Maybe display speaker notes by default if the screen is in portrait mode?
The slideshow button is a split pill, you can open it there where there is this tiny up arrow that opens up a drop down menu. But on tablet it probably doesn't do what you want it to as it was built for multi-screen use on the desktop.
I'll have a think on this tonight and I'm sure we can do a tablet speaker notes mode.
Absolutely love seeing products like this. Starred, saved link, will definitely use soon.
I’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.
This is awesome! I do love this software is one file thing. A breath of fresh air on these you-rent-everything-owns-nothing days
Thanks! I guess there are some drawback to this approach, large companies especially would be completely adverse to it. But it's cool and I'm hoping people would find it useful!
OMG coming from bigtime consulting this is...AMAZING. Thank you!
Yeah, if you do a lot of slides, this is for you! The whole point of this is to make doing slides bearable!
>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.
this 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.
Great job! How long did this project take total? How much percent is AI generated?
Thanks! I started on this last week in my spare time and I used Claude, all my commit history is on Github. I did most of the coding via Claude Code, no fancy system or exotic harness.
I would love to do more by hand, but I look after a tech team inside a renewables firm, so I don't have much time between job and my preschooler.
Are you kidding me? I gave it a spin, and it's solid. That's crazy, I'm impressed!
Looks nice, but I'd love to have a setting where all animations can be switched off.
Good idea! Let me roll that out. I guess you can also print to PDF.
This is awesome!
I like it. I us
Why 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?
It's really to solve a use case where there are a lot of these cool web-based presentations being created by AI, but they are all disposable things that non-technies can't work with easily.
Base64 is paired with compression to keep the size small so you can share it easily. The original version was around 1.3MB and maybe we can have a switch to output without compression. The source that generates it is all in Github.
Because whatever you like or not, AI support these days is a must. Nobody who makes PPT does everything by hand nowadays. And the project is on GitHub, you can get the full code there if you must...
Um, that's amazing... and it's free?
Thanks! It's a project I did in my spare time and it's made with a lot of MIT licensed JS libraries, so it's natural to make this MIT licensed as well. I don't know even know how anybody would start to monetise something local-first like this in this day and age.
Did you chew on monetization at all? I'm building something similar but for bio-imaging scientists, where I've packed everything I can into a single HTML (and even some modern segmentation models like Cellpose3 and StarDist that fit under Cloudflare's 25MB free tier limit haha.
Maybe I'm thinking too far ahead but I'm hoping maybe I can cover the (future?) compute costs by charging for the heavy duty ML that would have to be run non-locally but IDK. This isn't critical yet but would love to hear your musings.
If you have a backend that does processing, I'm sure you can monetise it. But for Bento, the whole idea is to forgo the backend, so I didn't really think about it that much. If an enterprise version comes, I'm sure there is a way to integrate stuff like SSO that you can charge for.
Also, bento: https://github.com/chef/bento. No relation.