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])

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. compiler compiler Public

    Function's Python-to-native compiler infrastructure.

    Python

  2. fxn fxn Public

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

    Python 47 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# 7 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 Apr 1, 2025
  • compiler Public

    Function's Python-to-native compiler infrastructure.

    fxnai/compiler’s past year of commit activity
    Python 0 Apache-2.0 0 0 0 Updated Apr 1, 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 47 Apache-2.0 5 0 0 Updated Apr 1, 2025
  • fxn3d Public

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

    fxnai/fxn3d’s past year of commit activity
    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

    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 334 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…