Kibo: Generate Your Infrastructure

Transform your DSM model into production-ready C++ and Python code.

57x Code Amplification 273 lines DSM → 15,592 lines generated
0 Boilerplate to Write Focus on business logic, not plumbing
2 Target Languages C++ and Python from single source

What Kibo Generates

From your DSM model, Kibo generates complete infrastructure for both C++ and Python:

C++ Infrastructure

  • Type definitions - Classes with full Viper integration
  • Serialization - Binary and JSON codecs
  • Database mapping - SQLite persistence layer
  • RPC stubs - Remote procedure call infrastructure
  • Builders - Fluent API for object construction

Python Infrastructure

  • Type stubs - Full .pyi files for IDE support
  • Wrapper classes - Pythonic API over C++ bindings
  • Documentation - Docstrings from DSM comments
  • Validation - Type checking at construction

The Bridge Pattern

Kibo uses the Bridge Pattern to separate your application code from generated infrastructure:

Your Code Business logic, custom behavior
↓ extends
Generated Bridge Type-safe accessors, validation
↓ uses
Viper Runtime Persistence, serialization, RPC

Regenerate infrastructure anytime without losing your application code.

Workflow

1

Write DSM

model.dsm
2

Validate

dsm_util.py check
3

Generate

kibo generate
4

Build

cmake && make

Automate Your Infrastructure

Learn how to set up Kibo and generate your first codebase.