Skip to main content

Generated project layout

The generated project is deliberately small: application source and branding are yours, while the pinned @nzip/lofi package supplies runtime, PWA, identity, sync, diagnostics, and Astro/Vite integration. Package commands regenerate framework tooling and production output without copying framework source into the application.

Exact source-controlled file map

The following keys are extracted by the documentation drift test and compared with a real generated project. Adding or removing a generated file requires updating this map in the same change.

PathOwnership categoryRole
.env.exampleGenerated configurationNames optional public sync settings and server-only secrets without values.
.gitignoreGenerated configurationKeeps secrets, dependencies, package tooling, builds, and failure artifacts untracked.
README.mdGenerated configurationGives the generated app's first commands, package boundary, and hosting path.
deno.jsonGenerated configurationPins one lofi package version and exposes the supported task surface.
public/apple-touch-icon.pngProduct assetSupplies the replaceable 180x180 iOS Home Screen icon.
public/favicon.svgProduct assetSupplies the replaceable vector browser icon and source mark.
public/icon-192.pngProduct assetSupplies the regular 192x192 install icon.
public/icon-512.pngProduct assetSupplies the regular 512x512 install icon.
public/icon-maskable-512.pngProduct assetSupplies a padded 512x512 maskable icon with a safe-zone-aware mark.
public/icon-monochrome.svgProduct assetSupplies the transparent silhouette used where the OS applies a solid icon color.
public/screenshot-narrow.pngProduct assetSupplies a replaceable labeled phone-sized install screenshot.
public/screenshot-wide.pngProduct assetSupplies a replaceable labeled desktop-sized install screenshot.
public/manifest.webmanifestProduct assetDeclares stable install identity, locale, scope, orientation, icons, and shortcuts.
src/app.tsAuthor-owned sourceComposes the app name, storage, sync, credential origins, and repository link.
src/env.d.tsGenerated configurationAdds Astro and lofi build-time environment types.
src/islands/AccountGate.tsxAuthor-owned sourcePresents opt-in account backup, sync, and recovery controls.
src/islands/TaskList.tsxAuthor-owned sourceImplements the replaceable starter task experience.
src/islands/use-tasks.tsAuthor-owned sourceBinds the starter task table to Preact through public package APIs.
src/layouts/Shell.astroAuthor-owned sourceOwns document metadata, install links, and package boot.
src/pages/index.astroAuthor-owned sourceComposes the starter page and package-owned optional UI.
src/permissions.tsAuthor-owned sourceDeclares application read and mutation policy.
src/schema.tsAuthor-owned sourceDeclares persisted application tables and fields.
src/styles/global.cssAuthor-owned sourceStyles the starter page, islands, and optional package surfaces.
tests/auth_e2e_test.tsApplication testDemonstrates an opt-in browser credential round trip.
tests/author-boundary_test.tsApplication testPrevents framework plumbing from returning to author UI.
tests/backup_migration_e2e_test.tsApplication testProves local rows survive sync election and the phrase guard stays pinned.
tests/convergence_e2e_test.tsApplication testDemonstrates the optional two-client synced browser journey.
tests/testing-contract_test.tsApplication testType-checks the public local-first browser helpers.
tsconfig.jsonGenerated configurationEnables strict Astro and Preact source checking.

Regenerated and ignored output

These paths are not source-controlled generated files. Package commands recreate them as needed.

PathOwnership categoryRole
.lofi/Ignored package toolingMaterialized package runtime plus Astro/Vite/Jazz configuration used by dev and build.
dist/Build outputStatic production shell, hashed assets, install icons, build identity, precache manifest, and package-emitted sw.js.

Generated applications do not contain src/_lofi/, a source public/sw.js, or a checked-in astro.config.ts. Upgrade the single pinned @nzip/lofi version to change framework behavior; edit the author-owned source and product assets to change the application.