xberg.cr
xberg.cr
Crystal bindings for xberg (multimodal extraction / OCR / document intelligence), generated by alef. The native libxberg_ffi is downloaded from the upstream GitHub release (Go-style download_ffi).
Install
dependencies:
xberg:
github: dsisnero/xberg.cr
shards install
./scripts/download_ffi.sh # fetches libxberg_ffi + bundled libonnxruntime
Usage
crystal build --link-flags="-L.lib -Wl,-rpath,$(pwd)/.lib" src/app.cr
require "xberg"
formats = Xberg.list_supported_formats
The released FFI links ONNX Runtime (for embedding backends);
download_ffi.shextracts it from the same release archive andscripts/spec.shwires it up.
Test
make spec
Set XBERG_FFI_VERSION / XBERG_FFI_REPO to override the source.
Repository
xberg.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 2 hours ago
- August 9, 2026
License
Links
Synced at
Sun, 09 Aug 2026 02:22:01 GMT
Languages