create-lastspace-app
v0.2.0
Published
Scaffold a new LastSpace.ai app — Foundry UI shell + Spaces module + Docker compose + Bicep deploy. Thin wrapper around create-foundry-ui-app --preset lastspace.
Downloads
294
Maintainers
Readme
create-lastspace-app
Scaffold a new LastSpace.ai app — Foundry UI shell + Spaces module + Docker compose + Bicep deploy, ready for your Azure tenant.
Quick start
# 1. One-time: get your customer PAT from LastSpace onboarding, export it
export LASTSPACE_TOKEN=ghp_yourtoken
# 2. Scaffold
npx create-lastspace-app my-app
cd my-app
pnpm docker:up && pnpm dev:allThe app boots at http://localhost:8010 with the Spaces module loaded.
What this is
A thin wrapper around create-foundry-ui-app. It invokes the OSS CLI with --preset lastspace, which fetches @lastspace/preset from GitHub Packages and overlays:
@lastspace/spaces-web-uidependency (private Spaces UI)bootstrapShell({ modules: [spacesModule] })wiring.npmrcrouting@lastspace/*to GitHub Packages- Docker compose for the local stack (MongoDB + Azurite + DTS)
- Customer onboarding docs (
docs/CUSTOMER_ONBOARDING.md)
Azure deploy templates (Bicep /
azd) are not bundled yet — they land in a follow-up release alongside the ANDRITZ extraction reference (#100-G). Until then, source-tree templates live inltwlf/lastspace/infra(collaborator access required).
Required environment
| Var | Why |
|---|---|
| LASTSPACE_TOKEN | Fine-grained PAT with read:packages scope on ltwlf/lastspace. Authenticates the preset fetch + pnpm install of @lastspace/spaces-web-ui. |
See also
- Scaffolded app's
docs/CUSTOMER_ONBOARDING.md— full customer onboarding (env vars, deploy, update flow) - LastSpace.ai — product page
- Foundry UI — the OSS framework underneath
License
SEE LICENSE IN LICENSE
