https://github.com/kreuzberg-dev/alef
Generate fully-typed, lint-clean language bindings for Rust libraries across 11 languages
https://github.com/kreuzberg-dev/alef
bindgen c c-ffi code-generation csharp elixir ffi golang java language-bindings napi-rs php polyglot pyo3 python r ruby rust typescript wasm
Last synced: 15 days ago
JSON representation
Generate fully-typed, lint-clean language bindings for Rust libraries across 11 languages
- Host: GitHub
- URL: https://github.com/kreuzberg-dev/alef
- Owner: kreuzberg-dev
- License: mit
- Created: 2026-03-31T17:01:28.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-03T11:36:04.000Z (about 1 month ago)
- Last Synced: 2026-05-03T11:38:44.474Z (about 1 month ago)
- Topics: bindgen, c, c-ffi, code-generation, csharp, elixir, ffi, golang, java, language-bindings, napi-rs, php, polyglot, pyo3, python, r, ruby, rust, typescript, wasm
- Language: Rust
- Homepage:
- Size: 10.7 MB
- Stars: 21
- Watchers: 0
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](LICENSE)
[](https://crates.io/crates/alef)
[](https://github.com/kreuzberg-dev/alef/actions)
[](https://github.com/kreuzberg-dev/alef)
# alef
Polyglot binding generator for Rust libraries. alef generates complete language bindings from a single source-of-truth configuration, targeting 18 languages: Python, TypeScript/Node, WebAssembly, C FFI, Ruby, PHP, Elixir, R, Go, Java/JNI, Kotlin, Kotlin Android, C#, Dart, Gleam, Swift, Zig, and Brew CLI.
## Install
```shell
cargo install alef --locked
```
## Quick start
```shell
alef generate # Generate all configured bindings
alef e2e generate # Generate end-to-end test suites
alef readme # Generate README templates for each language
```
See the [full documentation](https://docs.alef.kreuzberg.dev) for configuration, CLI reference, and architecture.
## Ecosystem
- [Kreuzberg](https://github.com/kreuzberg-dev/kreuzberg) — document intelligence: text, tables, metadata from 91+ formats with optional OCR.
- [Kreuzberg Cloud](https://github.com/kreuzberg-dev/kreuzberg-cloud) — managed extraction API with SDKs, dashboards, and observability.
- [kreuzcrawl](https://github.com/kreuzberg-dev/kreuzcrawl) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
- [html-to-markdown](https://github.com/kreuzberg-dev/html-to-markdown) — fast, lossless HTML→Markdown engine.
- [liter-llm](https://github.com/kreuzberg-dev/liter-llm) — universal LLM API client with native bindings for 14 languages and 143 providers.
- [tree-sitter-language-pack](https://github.com/kreuzberg-dev/tree-sitter-language-pack) — tree-sitter grammars and code-intelligence primitives.
## License
MIT