shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ Data & Persistence/ Codegen/ Modelscaffold
Go Package

modelscaffold

Model scaffolding — generate Go structs and YAML from protocol definitions

Go Ready MD
Scaffold Generation
$ sbx generate model --entity project --protocol entity
[scaffold] reading: .sbx/.framework/protocols/entity.yml
[scaffold] entity: project (12 attributes, 3 references)
[generate] pkg/models/project.go — struct + validation
[generate] pkg/models/project_test.go — table-driven tests
[generate] migrations/001_create_projects.up.sql
[generate] package.yml — model descriptor
[scaffold] 4 files generated

About

Generates Go struct definitions, YAML model files, and migration stubs from framework protocol definitions. Reads entity specifications and produces type-safe code that conforms to the modeling standard.

Public API

NameKindSignature
Scaffoldfuncfunc Scaffold(spec ProtocolSpec, opts Options) (*Output, error)
Generatortypetype Generator struct
Templatetypetype Template struct
Optionstypetype Options struct

Dependencies

Imports (1)

config Go Ready

YAML configuration reader — typed config loading with environment overlay

yamlconfigurationenvironmenttyped-config
4 exports 4 deps

Imported By (1)

codegen Go Ready

Code generation engine — template-based output for Go, SQL, and YAML targets

code-generationmulti-targettemplatespipeline
4 exports 2 deps

Related Packages

codegen Go Ready

Code generation engine — template-based output for Go, SQL, and YAML targets

code-generationmulti-targettemplatespipeline
4 exports 2 deps
config Go Ready

YAML configuration reader — typed config loading with environment overlay

yamlconfigurationenvironmenttyped-config
4 exports 4 deps

Source

github.com/shredbx/sbx-core/pkg/modelscaffold
code-generationscaffoldingprotocolstemplates
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |