@lastspace/preset
v0.3.0
Published
LastSpace preset for create-foundry-ui-app — full-stack scaffold: Spaces module, Docker compose, and Python web-api consuming lastspace-web-api + lastspace-spaces-client via git+https.
Readme
@lastspace/preset
LastSpace preset for create-foundry-ui-app. Adds the Spaces module + Docker compose stack + customer onboarding docs to the default Foundry UI scaffold.
Public on npmjs — the preset itself contains zero proprietary code (just scaffolding files + Spaces module wiring). The actual gated commercial package is @lastspace/spaces-web-ui, which the scaffold pulls in at pnpm install time — that's where customer PAT auth applies. Customers don't install this preset directly; they run npx create-lastspace-app my-app (which invokes create-foundry-ui-app --preset lastspace under the hood).
What this preset adds
@lastspace/spaces-web-uidependency (private Spaces UI extension — separate auth boundary)bootstrapShell({ modules: [spacesModule], ... })wiring insrc/main.tsx@sourcedirectives + Spaces theme tokens insrc/index.css.npmrcrouting the entire@lastspace/*scope to its private registry (auth viaLASTSPACE_TOKEN); covers@lastspace/spaces-web-uiinstall and any future@lastspace/*private packages a customer pulls in. Note:@lastspace/presetitself ships from npmjs default, not via this.npmrcroute — it's only fetched at scaffold time by the CLI.docker-compose.ymlfor the local dev stack (MongoDB + Azurite + DTS emulator)docs/CUSTOMER_ONBOARDING.md— LastSpace-flavored onboarding
Azure deploy templates are not bundled yet. Bicep /
azdlands in #100-G alongside the ANDRITZ extraction reference. Until then, customers wire their own deploy or followdocs/RELEASE_AND_DEPLOY.md.
Customer flow
export LASTSPACE_TOKEN=ghp_yourcustomerpat
npx create-lastspace-app my-app
cd my-app
pnpm docker:up && pnpm dev:allOr directly via the OSS CLI:
LASTSPACE_TOKEN=ghp_yourcustomerpat npx create-foundry-ui-app my-app --preset lastspaceSee also
- LastSpace customer registry access — PAT setup + rotation
create-foundry-ui-app— the OSS CLI this preset extends- LastSpace product docs — collaborator access required
