Configuration
Project Configuration
Section titled “Project Configuration”Use shape.toml for project-level configuration.
Main sections:
[project]— package metadata and entrypoint[modules]— module search paths[dependencies]— path, git, and bundle dependencies[[extensions]]— runtime extension modules[build]— build target and optimization[build.external]— lockflow refresh policy- Custom extension sections (e.g.,
[native-dependencies])
See Projects & shape.toml and Packages & Building.
Standalone Script Configuration
Section titled “Standalone Script Configuration”Use frontmatter (---) for standalone scripts.
See Script Frontmatter.
Server Ports (Book + Execution Backend)
Section titled “Server Ports (Book + Execution Backend)”- Book UI (Astro Starlight):
9090 shape-server:9091
Book JavaScript resolves backend endpoint in this order:
window.__SHAPE_BOOK_API_BASE<meta name="shape-api-base" content="...">localStorage['shape.apiBase']- default
http(s)://<host>:9091
Environment Variables
Section titled “Environment Variables”shape-server
Section titled “shape-server”SHAPE_SERVER_PORT- override default backend port (9091)SHAPE_LSP_PATH- path toshape-lspbinary
Runtime/Tooling
Section titled “Runtime/Tooling”- Runtime/tooling configuration is project-local (
shape.toml) or script-local (frontmatter).