Skip to content
@fxnai

Function

Run Python functions on-device, fully cross-platform.

Function

function logo

Dynamic JSON Badge X (formerly Twitter) Follow

Compile Python functions:

from fxn import compile

@compile(tag="@fxn/greeting", description="Say a friendly greeting.")
def greeting (name: str) -> str:
    return f"Hey there {name}! We're glad you're using Function and we hope you like it."

Run natively on Android, iOS, macOS, Linux, in the browser, and Windows--with full hardware acceleration and zero dependencies:

import { Function } from "fxnjs"

// 💥 Create your Function client
const fxn = new Function({ accessKey: "..." });

// 🔥 Run the function locally
const prediction = await fxn.predictions.create({
  tag: "@fxn/greeting",
  inputs: { name: "Peter" }
});

// 🚀 Use the results
console.log(prediction.results[0])

Tip

Join our waitlist to bring your custom Python functions and run them on-device across Android, iOS, macOS, Linux, web, and Windows.

You can run your compiled Python functions cross-platform using our client libraries:

A few useful links:

Function is a product of NatML Inc.

Pinned Loading

  1. playground playground Public

    Compile a Python function and run it on Android, iOS, Linux, macOS, visionOS, Web, and Windows.

    Kotlin

  2. fxn fxn Public

    Run Python functions on desktop, mobile, web, and in the cloud. https://fxn.ai/explore

    Python 40 5

  3. fxnjs fxnjs Public

    Run Python functions in the browser and Node.js. https://fxn.ai/explore

    TypeScript 5 1

  4. fxnios fxnios Public

    Run Python functions in iOS and visionOS apps. Register at https://fxn.ai

    Swift

  5. fxn3d fxn3d Public

    Run Python functions in Unity Engine. Register at https://fxn.ai

    C# 6 4

  6. fxn-llm-js fxn-llm-js Public

    Use local LLMs in your browser and Node.js apps. Register at https://fxn.ai

    TypeScript 8

Repositories

Showing 9 of 9 repositories
  • .github Public

    A bit about us.

    fxnai/.github’s past year of commit activity
    0 0 0 0 Updated Mar 12, 2025
  • playground Public

    Compile a Python function and run it on Android, iOS, Linux, macOS, visionOS, Web, and Windows.

    fxnai/playground’s past year of commit activity
    Kotlin 0 Apache-2.0 0 0 0 Updated Mar 12, 2025
  • fxn Public

    Run Python functions on desktop, mobile, web, and in the cloud. https://fxn.ai/explore

    fxnai/fxn’s past year of commit activity
    Python 40 Apache-2.0 5 0 0 Updated Mar 10, 2025
  • fxn3d Public

    Run Python functions in Unity Engine. Register at https://fxn.ai

    fxnai/fxn3d’s past year of commit activity
    C# 6 Apache-2.0 4 0 0 Updated Mar 2, 2025
  • fxnjs Public

    Run Python functions in the browser and Node.js. https://fxn.ai/explore

    fxnai/fxnjs’s past year of commit activity
    TypeScript 5 Apache-2.0 1 0 0 Updated Feb 25, 2025
  • fxn-llm-js Public

    Use local LLMs in your browser and Node.js apps. Register at https://fxn.ai

    fxnai/fxn-llm-js’s past year of commit activity
    TypeScript 8 Apache-2.0 0 0 0 Updated Feb 25, 2025
  • fxnios Public

    Run Python functions in iOS and visionOS apps. Register at https://fxn.ai

    fxnai/fxnios’s past year of commit activity
    Swift 0 Apache-2.0 0 0 0 Updated Jan 26, 2025
  • XcodeProj Public Forked from tuist/XcodeProj

    📝 Read, update and write your Xcode projects

    fxnai/XcodeProj’s past year of commit activity
    Swift 0 MIT 329 0 0 Updated Oct 29, 2024
  • fxn-llm Public

    Use local LLMs in your Python apps. Register at https://fxn.ai

    fxnai/fxn-llm’s past year of commit activity
    Python 2 Apache-2.0 0 0 0 Updated Oct 12, 2024

Top languages

Loading…

Most used topics

Loading…