Vue Runtime Starter
Suitable for Vue 3 + TypeScript engineered generators.
This starter generates a structure that can be consumed by both full pages and template hosts, rather than just outputting a single Vue page.
For new generators, the recommended host shell is generator-workbench. Keep the runtime focused on state, schema, and rendering, then mount the official shell from App.vue or another host entry.
Recommended Directory Structure
txt
src/
core/
runtime/
pages/
FullPage.vue
EmbedPage.vue
platform/
sdk.tsDefault Capabilities
generator-sdkinitialization and integration.generator-workbenchas the official shell entry.runtime/index.tsexposeswindow.__GENERATOR_RUNTIME__.FullPage.vueas the full generator page.EmbedPage.vueas the entry point for template host embedding.PanelSchema+panelFilterfor parameter panel tailoring.
Recommended Generation via MCP
text
Please generate a starter-vue-runtime for me.
Generator name: ornament-lab.
Support auth, cloud, and export by default.
Enable embed mode mounting for template hosts.Equivalent MCP tool parameters:
json
{
"framework": "vue",
"generator_name": "ornament-lab",
"features": ["auth", "cloud", "export"],
"env": "prod"
}Key Integration Points for Template Hosts
ts
await runtime.mount({
mode: 'embed',
target: 'canvas',
container: canvasContainer,
});
await runtime.mount({
mode: 'embed',
target: 'panel',
container: panelContainer,
panelFilter: {
includeGroups: ['content', 'style'],
excludeFields: ['layout'],
},
});Use Cases
- Generators built as Vue projects.
- Scenarios requiring clear separation between runtime, state, and page shell.
- Future component-based evolution.
Next Steps
- Learn about the Runtime Contract.
- View the Template Host Demo.