@hstm-labs/forge-profiles
v0.4.0
Published
Technology profile management for Forge — defines, validates, and loads technology stack profiles that configure code generation behavior across the pipeline.
Readme
@hstm-labs/forge-profiles
Technology profile management for Forge — defines, validates, and loads technology stack profiles that configure code generation behavior across the pipeline.
Installation
npm install @hstm-labs/forge-profilesBuilt-in Profiles
node-react— Node.js backend + React frontendnode-vue— Node.js backend + Vue.js frontendpython-django— Python/Django full stackjava-spring— Java/Spring Boot backenddotnet-blazor— .NET/Blazor full stack
Public API
Types
TechnologyProfile— complete profile definitionRuntimeConfig,BackendConfig,FrontendConfig— stack configurationDatabaseConfig,InfraConfig,TestingConfig— infrastructure and testing
Functions
validateProfile(profile)— Ajv-based JSON Schema validationloadProfile(name)— load a built-in or workspace profile by namelistProfiles()— list all available profile names
Usage
import { loadProfile, listProfiles } from '@hstm-labs/forge-profiles';
const profiles = await listProfiles();
const profile = await loadProfile('node-react');
console.log(profile.backend.framework); // 'express'