Repository navigation
web-terrarium 0.2.0
Added
- Static apps (
app.type: 'static'): React, Vue, Svelte and other apps built with Vite, or any site whose build output is only files.stagerunsapp.build(defaultnpm run build) and shipsapp.dir(defaultdist). In the desktop app, a static server built into web-terrarium serves it:- correct file types; hashed files cached for good,
index.htmlchecked on every load; - single-page apps: paths with no file extension that match no file get
index.html(app.spa, default on); app.proxyforwards path prefixes to another server, like Vite's dev proxy, e.g.{ '/api': 'http://{host}:{port:mock}' };- refuses paths that would leave the build output.
- correct file types; hashed files cached for good,
app.typeis guessed when it's not set:nextfor projects that depend on Next.js,staticfor Vite projects.
Changed
- Every launch starts fresh: the app's window storage (local storage, IndexedDB, cookies, cache) is cleared at start-up. Before, it was only out of reach because the port changed, and it piled up on disk.
- CI template (
templates/desktop-app.yml):- smoke-tests each packaged app: launches it, waits for
app readyinservers.log, loads the page, quits; - uploads zips as they are (
upload-artifact@v7witharchive: false), so a download is the app's zip, not a zip inside a zip; - attaches the zips to a GitHub Release on
v*tags; - documents that
install-toolsswaps native binaries for sharp only.
- smoke-tests each packaged app: launches it, waits for
- README: an Examples section with three real apps (two Next.js, one static), and a simpler per-system CI workflow for projects whose packages are all on public npm.
Install: npm install --save-dev web-terrarium · npm