Function
Verified
We've verified that the organizationfxnai controls the domain:
- fxn.ai
Compile Python functions:
fromfxnimportcompile@compile(tag="@fxn/greeting",description="Say a friendly greeting.")defgreeting (name:str)->str:returnf"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 clientconstfxn=newFunction({accessKey:"..."});// 🔥 Run the function locallyconstprediction=awaitfxn.predictions.create({tag:"@fxn/greeting",inputs:{name:"Peter"}});// 🚀 Use the resultsconsole.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:
- Function for Python. Make predictions in your Python, FastAPI, Flask, and Django apps.
- Function for JavaScript. Make predictions in your web, Node.js, Next.js, and React apps.
- Function for iOS. Make predictions in your iOS, iPadOS, and macOS Catalyst apps.
- Function for Android. Make predictions in your Kotlin and Java Android apps.
- Function for React Native. Make predictions in your React Native apps for iOS and Android.Coming soon.
- Function for Unity Engine. Make predictions in your Unity Engine apps and games.
- Function CLI. Make predictions in the command line.
A few useful links:
- Join our Discord community.
- Check out our docs.
- Learn more about uson our blog.
- Reach out to us atstdin@fxn.ai.
Function is a product ofNatML Inc.
PinnedLoading
- playground
playground PublicCompile a Python function and run it on Android, iOS, Linux, macOS, visionOS, Web, and Windows.
Kotlin
- fxn-llm-js
fxn-llm-js PublicUse local LLMs in your browser and Node.js apps. Register at https://fxn.ai
TypeScript 8
Repositories
- 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