13 comments

  • eleventen 57 minutes ago
    You can get a cheap approximation of this with chromium browsers + Filesystem API and a PWA manifest for that native-ish feel. AI has reignited my interest in building based 100% on browser native features.

    https://developer.mozilla.org/en-US/docs/Web/API/File_System...

    • bashtian 47 minutes ago
      If you want to distribute apps to many users this would probably be a better solution. The main benefit of Capsule is the personal document like app. You create a capsule, move it to an USB stick, save it in your cloud storage and it's still the same document. Nothing has changed, not the UI, not the data. The document will stay the same.
  • lewisjoe 1 hour ago
    This is great. Curious: this requires users to have a host app installed on their machine that can read .capsule file right? Won't that be a point of friction for distribution?

    Isn't html/css a better distribution mechanism as most computers already have the tech to run them?

    • Dwedit 1 hour ago
      You'd think so, but web browsers are downright lobotomizing the ability for local HTML files to run any meaningful javascript code. Want to run a JS file from the same directory? CORS ERROR!!!!

      Hence 200MB applications that are complete copies of the Chromium browser to run under 1MB of actual web code.

      • throw101010 8 minutes ago
        Isn't that the price of a relatively well sandboxed experience by browsers?

        I've experienced the same limits building small tools for myself and friends that I wanted to contain in a single HTML file without external dependencies... but I understand why the same project without these restrictions could easily become malware, and ones that could be easily propagated.

      • slipperybeluga 22 minutes ago
        [dead]
    • bashtian 1 hour ago
      The problem is that you can't save the user data in way that you can click a single file, similar to a Word or Excel file. I you think a about it, a Excel spreadsheet is also just UI + data in a single file.
      • paweladamczuk 22 minutes ago
        This is a frustration of mine as well, but I vaguely remember someone showing something on HN where the file could essentially save itself, I think they were using some file APIs for that... sadly I can't find the details anymore. But I keep running into the "HTML file opened locally can't update itself" issue repeatedly now that I build tools for myself with LLM agents.
      • alexis2b 11 minutes ago
        Technically that was more MS Access :-)
    • lukasbm 30 minutes ago
      I imagined the capsule website would be able to either convert or directly run/open them
  • gadders 45 minutes ago
    >>Capsule packs your entire app — UI, data, and everything — into a single portable .capsule file.

    I'm having Lotus Notes flashbacks.

  • redog 18 minutes ago
    This seems ripe for an injection attack. Can it be inspected before running?
  • andai 1 hour ago
    That's pretty cool. But who is this for? What problem does it actually solve?

    How would I know if I need this, vs something else?

    • bashtian 55 minutes ago
      If try to do data management in Excel or need to download an app just to save some recipes, this could be an alternative. For example you can track time and billing with a nice UI without requiring a SaaS subscription. You can try some examples in https://withcapsule.app/preview
  • dgf18 37 minutes ago
    Many big companies are starting now to test agentic coding to automate business processes. This could be a nice tool to distribute apps for workflows that aren't big enough to justify the operational overhed of maintaining a traditional web app backend. Nice!
  • lolakutty 36 minutes ago
    What is wrong with using IndexedDB?
    • bashtian 1 minute ago
      For saving data in the capsule file it would create complexity regarding migration handling when updating the HTML file to add a field to a form for example. Keeping the data schemaless makes it also easier for merging data or importing data from a CSV.
  • fdeth 28 minutes ago
    So, let’s do Visual Basic again, but this time with LLMs and web stuff.
  • blamestross 22 minutes ago
    Seems very "packable into a standalone binary" but doesn't seem like that is a planned use case.
    • bashtian 6 minutes ago
      The problem would be cross-platform support. In the end the capsule file is the standalone binary similar to a PDF or a Word document, you only need the viewer app to open any capsule file.
  • tonymet 21 minutes ago
    is the idea this would be hosted or run locally (like Electron)?
  • pmkary 1 hour ago
    Really really nice
  • zackify 54 minutes ago
    love this idea!
  • bezko 1 hour ago
    [flagged]