Skip to content

fx

Command-line tool that turns a single function file into a service on Docker or Kubernetes

Permissive (OSI) · MIT

Listed by , founder & editor

23

Health

Dormant

Overview

Stars

2,225

Last commit

3 years ago

Oct 2023

Repository age

9 years

since Oct 2017

Latest version

0.9.48-alpha.d91a7a0

Jun 2021

Contributors

–

Releases

0

last 12 months

Language

Go

fx is a Go command-line tool that deploys a stateless function as a network service on your own server. You write a function in one of several languages, run fx up, and it starts the service and prints its endpoint. It can deploy to a local Docker host, a remote host or a Kubernetes cluster.

Supported languages include Go, Rust, Node, Python, Ruby, Java, PHP, Julia, D, Perl and Crystal, each with an example in the repository. Commands are up, down, list and image. Use the host option or the FX_HOST variable to target a remote machine.

Binaries exist for Windows, macOS and Linux on x86, and you can install on macOS with Homebrew. It offers a self-hosted route similar to commercial function platforms such as AWS Lambda. It is MIT licensed, but the last commit was in October 2023 and the latest version is an alpha, so treat it as unmaintained.

Who it's for

Developers who want a quick personal function host on a Docker server

One command deploys a function file and returns an endpoint.

Skip if: You need an actively maintained platform with scaling, auth and monitoring.

Hobbyists experimenting with function-as-a-service

It supports many languages and a simple Docker-based workflow.

Skip if: You need current security updates for production use.

The problem it solves

Running a small function as a service usually means setting up containers or paying for a cloud function platform. fx packages a function and deploys it to Docker or Kubernetes with one command.

Strengths

  • One command, fx up, deploys a function and prints its endpoint
  • Works with Docker hosts, remote hosts and Kubernetes
  • Examples for 11 languages, including Go, Python, Rust and Node
  • MIT license

Trade-offs

  • No commits since October 2023
  • Latest version is an alpha build
  • Binaries only for x86; other architectures need a source build
  • R support is listed as unfinished

Self-host fx

Self-hostable
Yes

Quick start

brew tap metrue/homebrew-fx
brew install metrue/fx/fx

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is fx free?

Yes. It is MIT licensed.

Can I self-host it?

Yes. It deploys functions to your own Docker host or Kubernetes cluster.

Which operating systems does it support?

Prebuilt binaries cover Windows, macOS and Linux on x86. Other platforms need a build from source.

Is it still maintained?

Development has been dormant since October 2023.

Similar tools in PaaS and deployment platforms

ZaneOps

PaaS and deployment platforms

Self-hosted PaaS on Docker Swarm for deploying web apps, databases and workers

1.4k 74 9 days ago Thriving MIT

Replaces RenderVercelHeroku

swiftwave

PaaS and deployment platforms

Lightweight self-hosted PaaS for deploying apps on a VPS or Raspberry Pi

913 66 13 days ago Active Apache-2.0

Replaces Heroku

Temps

PaaS and deployment platforms

Single-binary self-hosted PaaS with built-in analytics and error tracking

943 83 today Active Apache-2.0

Replaces Vercel

devopness

PaaS and deployment platforms

581 182 today Thriving Apache-2.0

vorker

PaaS and deployment platforms

205 13 15 months ago Dormant Unknown

bex

PaaS and deployment platforms

Open-source PaaS that deploys from Git to your own Kubernetes or Hetzner machines

962 67 today Thriving Apache-2.0

Replaces RenderHeroku