# Bundlex

> Compiles C and C++ code alongside Elixir projects for NIFs, CNodes and Ports

Source: https://talira.ai/catalog/bundlex-5y5ymzbc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / build / native compilation](https://talira.ai/categories/developer-tools/build/native-compilation), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Software Mansion](https://talira.ai/orgs/software-mansion.md)

Bundlex is a multi-platform tool that compiles C and C++ code along with an Elixir project, for use in NIFs, CNodes and Ports, and gives Elixir modules a convenient way to load and call the compiled code. Natives and their library dependencies are declared in a bundlex.exs project module, and it adds Mix tasks such as generating Doxygen docs for the native code. It supports cross-compilation, which works out of the box with Nerves. The [Membrane Framework](https://talira.ai/catalog/membrane-framework-arjcegk2.md) team maintains it, and [Unifex](https://talira.ai/catalog/unifex-n7fdj13n.md) uses it to compile and load native code.

## Links

- GitHub: https://github.com/membraneframework/bundlex
- Docs: https://hexdocs.pm/bundlex/

## Problems it solves

- compile C code as part of my Elixir project's build
- ship a NIF or CNode with my Elixir library on Linux and macOS
- cross-compile native code for an Elixir Nerves device

## Features

- compiles C and C++ natives as part of the Mix build
- NIF, CNode and Port interfaces
- loader macros for calling NIFs from Elixir modules
- statically linked native library dependencies
- cross-compilation, including for Nerves
- Doxygen documentation for native code

## Limitations

- Windows support is experimental and unstable; it's tested on Linux, macOS and FreeBSD[^1]

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.46, adoption 0.38, momentum 0.07, community 0.60, backing 0.30, extensibility 0.00.

- last commit 32 days ago
- 1 commits in the last 90 days
- latest release v1.5.9 32 days ago
- 80 GitHub stars
- 30 contributors
- backed by Software Mansion

## Sources

[^1]: https://github.com/membraneframework/bundlex#readme (checked 28 Nov 2026)
[^2]: https://github.com/membraneframework/bundlex/blob/master/LICENSE (checked 28 Nov 2026)
