IdeaCredIdeaCred

vicentereig/sorbet-baml

90

A Ruby gem that converts T::Struct and T::Enum to BAML (Boundary AI Markup Language) type definitions. BAML uses 60% fewer tokens than JSON Schema while maintaining type safety.

What's novel

A Ruby gem that converts T::Struct and T::Enum to BAML (Boundary AI Markup Language) type definitions. BAML uses 60% fewer tokens than JSON Schema while maintaining type safety.

Code Analysis

11 files read · 7 rounds

Converts Sorbet T::Struct and T::Enum type definitions into BAML (Boundary AI Markup Language) format for more efficient LLM prompting with automatic dependency resolution and field description extraction.

Strengths

Clean separation of concerns with dedicated modules for conversion, type mapping, and dependency resolution. Excellent README accuracy showing real examples. Smart defaults that automatically include dependencies and descriptions. Good handling of complex types including unions, arrays, hashes, and nested structs.

Weaknesses

Limited test coverage visible - only basic converter tests shown, no evidence of edge case testing for circular dependencies or complex union scenarios. Some error handling could be more robust (e.g., missing dependency resolution).

Score Breakdown

Innovation
7 (25%)
Craft
84 (35%)
Traction
20 (15%)
Scope
92 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+2
Concept Novelty+2

Craft

Ci+5
Tests+8
Polish+2
Releases+5
Has License+5
Code Quality+23
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+4
Has Dependency Mgmt+5

Traction

Forks+6
Stars+12
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+8
Languages+8
Subsystems+13
Bloat Penalty+0
Completeness+7
Contributors+6
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

53

Contributors

2

Files

164

Active weeks

6

TestsCI/CDREADMELicenseContributing

Repository

Language

Ruby

Stars

8

Forks

1

License

MIT

vicentereig/sorbet-baml — IdeaCred | IdeaCred