Skip to content

echo-layer/vtuber-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vtuber-contracts

Build-time typed interface contracts (proto3) for the vtuber- program — generates a Rust crate, Mojo bindings (via Pixi + Python interop), and TypeScript declarations consumed by every other vtuber- repo to prevent contract drift across 17 services.**

CI Security License: MIT Status

Rust LOD Mojo LOD Total LOD

Rust Mojo buf Pixi


[ English | ภาษาไทย | 日本語 | 简体中文 ]

vtuber-contracts is the build-time source of truth for all inter-service typed boundaries in the vtuber-* program. It defines proto3 schemas for messages such as ConversationDirective, VoiceProfile, and Persona, then runs codegen to publish three consumer surfaces — a Rust crate (via tonic-build), a Mojo binding package (via Pixi + Python interop, see ADR-004), and TypeScript declarations (via ts-proto) — consumed by every other vtuber-* repo and by the public SDK shipped through vtuber-api.

✨ Features

  • 🚀 Feature 1 — proto3 schema for all inter-service messages (ConversationDirective, VoiceProfile, Persona, StreamEvent, ToolCall) under stable package paths
  • 🛡️ Feature 2 — Multi-language codegen pipeline producing a Rust crate, Python typed stubs (.pyi via mypy-protobuf), and TypeScript declaration files (via ts-proto)
  • 📊 Feature 3 — Semver enforcement per .proto package with buf breaking-change linter wired into CI as a hard gate

🛠️ Quick Start

# Install Rust toolchain (rustup) and the buf CLI (https://buf.build/docs/installation), then run cargo build && buf generate to produce Rust, Python, and TypeScript bindings under generated/.

🗺️ Navigation

⚖️ License

MIT

About

Build-time typed interface contracts (proto3) for the vtuber-* program — Rust + Python + TypeScript codegen

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors