Overview

libfx is the fx agent runtime, exposed through a JavaScript API. It runs natively in Node.js and through WebAssembly in the browser.

What libfx can do

Get started

Follow the Quick start to install libfx, connect a model, and send your first prompt. The examples include Node.js, browser, Next.js, and Nuxt projects.

Runtimes

  • Node.js: native addon, WebAssembly fallback, and server frameworks.
  • WebAssembly: run the agent or the fx terminal in the browser.

Version compatibility

These guides use libfx 0.0.12. The complete example apps specify their own dependency versions. For older integrations, see Migrating from 0.0.7.