Self-host trusted-cgi
v0.4.0Lightweight self-hosted serverless functions engine
- Stars
- 249
- Port
- 3434 (HTTP server for function execution and management UI)
reddec/trusted-cgiWhat is trusted-cgi?
Trusted-CGI is a lightweight self-hosted platform for running serverless functions and applications in a CGI-like mode. It targets hobby projects, experiments, webhooks, and scheduled processing on low-end hardware like Raspberry Pi or cheap VPS. The platform runs as a single daemon that accepts requests and starts scripts or applications on demand, piping request bodies via stdin and reading responses from stdout. Key capabilities include one-click lambda creation with public URLs, a rich API, security features like user switching, IP and origin restrictions, and token authentication, time limits, permanent aliases, independent actions callable via UI or API, cron-style scheduling, and message queues with retries. It can be deployed via Docker, downloaded as a pre-built binary for Linux, macOS, and Windows, or installed from a Debian/Ubuntu apt repository. The project is written in Go with a Vue/Quasar frontend and is licensed under MIT.
Should you self-host trusted-cgi?
trusted-cgi scores 45/100 on selfhost.directory (how scoring works) and ranks #4 of 7 in Serverless. It has 249 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is faas (68/100, 26 253 stars). It scores higher overall, so compare the two before you pick. See trusted-cgi vs faas side by side.
Features
- Actions
- Cron-style scheduler
- Cross-platform binaries
- Execution time limits
- IP and origin restrictions
- Message queues with retries
- One-click function creation
- Permanent aliases
- Rich API
- Token-based authentication
- User switching
- Web-based management UI
trusted-cgi README
More in Serverless
vorkerVorker is a self-hosted serverless platform for running Cloudflare Worker-compatible functions on your own infrastructure using workerd with a web UI.
beamA self-hostable, open-source platform for running serverless AI workloads with GPU inference, code sandboxes, and background task queues.
faasOpenFaaS CE is a self-hosted serverless platform that packages your code as OCI images and runs them as auto-scaling functions on Kubernetes, with a CLI and REST API.
FaastaSelf-hosted FaaS for Rust WASIp3 components in Wasmtime with swappable SQL, KV, and blob storage backends.
open-computeSelf-hosted platform running Cloudflare Workers apps on your hardware via a single Rust binary with 99% API compatibility.
openwhiskSelf-hosted, open-source serverless FaaS platform: Actions run on events via Triggers, with sequences, a package catalog and the wsk CLI. Installs on Kubernetes via Helm.
self-workerdself-workerd is an open-source, self-hosted FaaS platform on Cloudflare's workerd runtime with a publisher API and isolated worker instances, deployable via Docker.
0 comments