Skip to content

feat(apps): publish a public TypeScript/Bun app template #466

Closed
RentnerProxy/app-template-ts
#1

Description

@RentnerKev

Phase: 5 | Priority: P1

Publish RentnerProxy/app-template as a public GitHub template repository. A fork or a repository created with Use this template should give an app author a runnable example and a clear path from source to an installable package.

Scope

  • Use TypeScript throughout the app, with one pinned Bun toolchain and one lockfile, a Bun HTTP/JSON backend and a separately built static React UI. Keep app identity, version, display metadata and requested capabilities in app.config.json.
  • Provide a small greeting app. The UI edits a greeting stored in the app's own data directory, follows platform theme and language, and uses the typed MessageChannel bridge. The backend demonstrates readiness and reads only its own verified installation context through the versioned Platform App API.
  • Use the platform-issued bootstrap descriptor and the private app.sock and core.sock endpoints. The app calls only the scoped App API. The platform owns peer credential checks, generation authorization, user permissions and resource grants.
  • Provide a local development command with a lightweight platform stub, plus check, test and build commands. Document local use, package layout, permissions and Marketplace submission by source repository and exact commit.
  • Run locked builds and tests natively on Linux AMD64 and ARM64. Package the standalone Bun backend as bin/app, the generated target/source-bound manifest as app.json, the API description as api/openapi.json, the compiled browser assets under ui/, and license material in each immutable .tar.zst archive.
  • Fork CI produces development artifacts. The Marketplace candidate pipeline builds and validates the submitted revision in isolation. Protected publication uses the exact approved digest through the independent signed catalog.

Dependencies

Coordinate the package build interface and submission instructions with Marketplace #4 and the signed catalog workflow.

Acceptance criteria

  • The public GitHub template supports both forking and Use this template. A fresh copy can run the greeting app, typecheck, test and build using the documented Bun commands and synthetic development data.
  • Native AMD64 and ARM64 jobs produce and start their respective standalone packages on the agreed appliance runtime. Each archive validates against the App package contract with the exact architecture and source identity.
  • The greeting persists after restart. The sandboxed UI renders the packaged assets and updates the setting through the platform bridge. The scoped context example reads its own installation and a stale or out-of-scope request is rejected.
  • The starter and fork workflows work with read-only source access. Catalog publication remains in the protected approval/publisher workflow.

Parent: Beta 4 delivery tracker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: uienhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions