Tools for building Offline-first Web Apps
README.md

@inro/cli #

Build tool and dev server for Inro PWAs.

Install #

deno install jsr:@inro/cli -Afg --name=inro

Commands #

inro init #

Scaffold a new app from a template. Run without arguments for an interactive prompt; when more than one template is available you're asked to pick one.

inro init
inro init my-app --url https://myapp.com
inro init my-app --template bare    # skip the picker

Templates:

Template Description
bare Minimal PWA — app shell + client-side routing, no data layer

Apps that want a user-data backend (sync, sharing, E2E encryption) add Civility on top — see jsr:@civility/cli for the server tooling and civ id for minting an appId.

inro build #

Build the project in the current directory. Reads inro.json for configuration.

inro build
inro build --watch   # rebuild on changes
inro build --prod    # minified, permanent release build

inro start #

Start a local dev server with live rebuild on file changes (default port 8000).

inro start
inro start --port 3000

inro icons #

Generate PWA icon sizes from a source PNG or SVG using ImageMagick.

inro icons
inro icons --source ./www/static/icon.svg --output ./www/static/icons

inro static #

Transform and move static files from an input directory to the dist output. Images (jpg/jpeg/png/tiff) are resized and stripped with ImageMagick and a photos.json (dimensions + dominant color) is emitted; other files are copied as-is.

inro static
inro static -i static -o dist/static --max-size 1200 --quality 85
inro static --skip-resize   # copy only, no ImageMagick needed

inro init-config #

Create a default inro.json in the current directory.

inro init-config

Configuration #

Projects are configured via inro.json in the project root:

{
  "name": "My App",
  "type": "pwa",
  "url": "https://myapp.com",
  "root": "./www",
  "outdir": "./dist",
  "icon": {
    "source": "./www/static/icon.svg",
    "output": "./www/static/icons"
  }
}
Field Type Description
name string Project name
type 'pwa' Always pwa
url string Canonical URL
root string Source directory (default: ./www)
outdir string Output directory (default: ./dist)
static string Static assets directory (copied as-is)
icon { source, output } Icon source and output for inro icons
meta.minCompatVersion string Minimum compatible app version
appId string Civility Cloud app identity (optional)

When appId is set, inro build also writes the app's /.well-known/civility-app.json verification document — the artifact a Civility server checks to mark the app "verified". Mint the id once with civ id and never regenerate it.