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 Public

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

    Kotlin

  2. fxn Public

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

    Python 47 5

  3. fxnjs Public

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

    TypeScript 5 1

  4. fxnios Public

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

    Swift

  5. fxn3d Public

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

    C# 7 4

  6. 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
  • playground Public

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

    Kotlin 0 Apache-2.0 0 0 0 Updated Mar 22, 2025
  • .github Public

    A bit about us.

    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

    Python 47 Apache-2.0 5 0 0 Updated Mar 10, 2025
  • fxn3d Public

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

    C# 7 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

    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

    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

    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

    Swift 0 MIT 331 0 0 Updated Oct 29, 2024
  • fxn-llm Public

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

    Python 2 Apache-2.0 0 0 0 Updated Oct 12, 2024

Most used topics

Loading…