Skip to content

trusted-cgi

Single-binary self-hosted engine that runs scripts as serverless functions

Permissive (OSI) · MIT

Listed by , founder & editor

22

Health

Dormant

Overview

Stars

249

Last commit

2 years ago

Sep 2024

Repository age

6 years

since May 2020

Latest version

v0.4.0

Dec 2023

Contributors

–

Releases

0

last 12 months

Docker pulls

44k

reddec/trusted-cgi

Language

Go

Trusted-CGI is a lightweight engine for running scripts and applications as lambda-style functions. A small background daemon listens for HTTP requests and launches an executable on demand. The program reads the request body from stdin and writes its response to stdout, so any language that can do that will work.

Unlike classic CGI, only the request body is piped in. Headers, form fields and query parameters are parsed by the platform and passed as environment variables, and response headers are set in a manifest. It ships as one Go binary with a Vue and Quasar web interface.

Features include permanent aliases, time limits, a cron-style scheduler, queues with retries, and actions you can run from the UI or API. Security options cover user switching, IP and Origin restrictions, and tokens. It runs on Linux, macOS and Windows, via pre-built binaries, a Debian apt repository or a Docker image. It is MIT licensed and suits low-traffic uses such as webhooks and scheduled jobs.

Who it's for

Hobbyists hosting webhooks and small scripts

You can publish a script as an HTTP endpoint with one binary and no extra services.

Skip if: You expect high request volumes or need autoscaling.

Owners of a Raspberry Pi or cheap VPS

It runs on low-end machines without a container platform.

Skip if: You need an actively maintained project with frequent releases.

Admins who want scheduled server tasks with a UI

Actions, a cron-style scheduler and retries are built in.

Skip if: You prefer infrastructure-as-code configuration, where the author's smaller nano-run project fits better.

The problem it solves

Running a small script behind a URL usually means building a web service or paying for a hosted functions product. Trusted-CGI lets you drop in a script that reads stdin and writes stdout, and it handles the HTTP side, scheduling and access control.

Strengths

  • One binary with no specific runtime requirements
  • Works with any script or program that uses stdin and stdout
  • Includes scheduler, queues, retries and time limits
  • Access controls: user switch, IP and Origin limits, tokens
  • MIT license; Docker image and Debian apt repository available

Trade-offs

  • No commits since September 2024 and no releases in the last year
  • Aimed at small workloads, not high request volumes
  • Scaling needs multiple instances with a shared file system
  • Best for small structured payloads such as JSON or XML

Self-host trusted-cgi

Self-hostable
Yes
Docker image
reddec/trusted-cgi

Frequently asked questions

Is it free to self-host?

Yes. It is MIT licensed and self-hosted.

How do I run it with Docker?

Run docker run --rm -p 3434:3434 reddec/trusted-cgi. The image is intended for quick tests or limited production use.

Which operating systems work?

Linux, macOS and Windows, using the pre-built binaries from the releases page.

Which languages can I write functions in?

Any script or program that reads stdin and writes stdout.

Similar tools in PaaS and deployment platforms

inertia

PaaS and deployment platforms

153 17 6 years ago Dormant MIT

fx

PaaS and deployment platforms

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

2.2k 156 3 years ago Dormant MIT

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