Bootspring Internals

Deep dive into the core Bootspring system architecture.

Package Structure#

Bootspring is organized as a monorepo:

bootspring/ ├── packages/ │ ├── cli/ # Command-line interface │ ├── core/ # Core business logic │ ├── mcp-server/ # MCP server implementation │ ├── sdk/ # JavaScript/TypeScript SDK │ └── shared/ # Shared utilities ├── skills/ # Built-in skill patterns ├── agents/ # Agent definitions ├── workflows/ # Workflow definitions └── templates/ # Project templates

Core Package#

The core package contains the primary business logic:

packages/core/ ├── src/ │ ├── agents/ # Agent system │ │ ├── registry.ts │ │ ├── invoker.ts │ │ └── profiles/ │ ├── skills/ # Skill system │ │ ├── loader.ts │ │ ├── applier.ts │ │ └── registry.ts │ ├── context/ # Context generation │ │ ├── generator.ts │ │ ├── analyzers/ │ │ └── templates/ │ ├── workflows/ # Workflow engine │ │ ├── orchestrator.ts │ │ ├── phases.ts │ │ └── signals.ts │ ├── quality/ # Quality gates │ │ ├── gates.ts │ │ └── checks/ │ └── config/ # Configuration │ ├── loader.ts │ └── schema.ts └── tests/

Context Generation System#

Generator Architecture#

Loading code block...

Built-in Analyzers#

AnalyzerPurpose
PackageAnalyzerpackage.json analysis
FrameworkAnalyzerFramework detection
StructureAnalyzerProject structure
DependencyAnalyzerDependency analysis
DatabaseAnalyzerDatabase schema
ApiAnalyzerAPI routes
ComponentAnalyzerUI components
TestAnalyzerTest coverage

Analysis Pipeline#

┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ File Scan │───▶│ Analyze │───▶│ Aggregate │ └─────────────┘ └─────────────┘ └─────────────┘ │ ┌────────────────┼────────────────┐ ▼ ▼ ▼ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ Package │ │Framework │ │Structure │ │ Analyzer │ │ Analyzer │ │ Analyzer │ └──────────┘ └──────────┘ └──────────┘

Agent System#

Agent Registry#

Loading code block...

Agent Profile Structure#

Loading code block...

Agent Invocation#

Loading code block...

Skill System#

Skill Loader#

Loading code block...

Skill Structure#

Loading code block...

Skill Application#

Loading code block...

Workflow Engine#

Orchestrator#

Loading code block...

Phase Management#

Loading code block...

Configuration System#

Config Loader#

Loading code block...

Configuration Schema#

Loading code block...

Event System#

Event Emitter#

Loading code block...

Event Types#

EventWhen Fired
context.generatedContext file created
agent.invokedAgent called
agent.completedAgent finished
skill.appliedSkill applied
workflow.startedWorkflow begun
workflow.completedWorkflow finished
quality.passedQuality gate passed
quality.failedQuality gate failed

Caching#

Cache Manager#

Loading code block...

Error Handling#

Error Hierarchy#

Loading code block...