-
Notifications
You must be signed in to change notification settings - Fork 0
Install and Load
Leonard Ramminger edited this page Aug 31, 2026
·
1 revision
- Parse YAML with validation.
- Compile to Protobuf bytes.
- Write
~/.config/ycallr/apis/<name>.pb(native install paths).
Source YAML may live anywhere. Install accepts a file path, expands ~, and resolves .yaml / .yml when the extension is omitted.
The profile name comes from the YAML name: field, not only the file stem.
At runtime, only compiled .pb profiles are loaded:
- Native:
load_installed_profile(name)reads from the config directory. - FFI:
ycallr_load_installed(name) - WASM:
loadInstalled(name)orYcallrApi.fromProto(bytes)
If .pb is missing, callers receive an error that suggests running install.
| Function | Purpose |
|---|---|
compile_yaml_str |
YAML string to protobuf bytes |
install_profile |
Compile and write .pb
|
load_installed_profile |
Load by installed name |
load_from_proto_bytes |
Load from in-memory bytes |
ycallr install ~/.config/ycallr/apis/github.yaml
ycallr install ./examples/github_api.yamlSee the ycallr-cli wiki for terminal usage.
Overview
Profiles
Integration
Project