# Unifex

> Generates the interface between native C code and Elixir

Source: https://talira.ai/catalog/unifex-n7fdj13n
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / language bindings](https://talira.ai/categories/developer-tools/language-bindings), [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)

Unifex is a tool for generating interfaces between native C code and Elixir. You describe a native interface concisely and it generates the boilerplate, with abstractions over binaries and state, and the same C code works either as a NIF or as a CNode because it doesn't depend on erl_nif or ei directly. It compiles and loads the native code with Bundlex, and the [Membrane Framework](https://talira.ai/catalog/membrane-framework-arjcegk2.md) team maintains it.

## Links

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

## Problems it solves

- call C code from Elixir without writing NIF boilerplate by hand
- write native code for Elixir that can run as a NIF or a CNode
- add a C library to an Elixir media pipeline

## Features

- generates Elixir-to-C interface boilerplate from a concise spec
- the same native code runs as a NIF or a CNode
- abstractions over binaries and state in native code
- compiles and loads native code through Bundlex

## Trust

Overall: 0.34 out of 1.
Signals: maintenance 0.45, adoption 0.39, momentum 0.08, community 0.53, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- latest release v1.2.5 5 months ago
- 87 GitHub stars
- 20 contributors
- backed by Software Mansion

## Related

- Works with [Membrane Framework](https://talira.ai/catalog/membrane-framework-arjcegk2.md)

## Alternatives

- [Rustler](https://talira.ai/catalog/rustler-w0cgm3kr.md): Write Erlang and Elixir NIFs in safe Rust

## Sources

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