Skip to content

Algernon

Single-binary web server with Lua, Markdown and built-in database support

Permissive (OSI) · BSD-3-Clause
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

74

Health

Active

Overview

Stars

3,028

Last commit

yesterday

Nov 2026

Repository age

11 years

since Mar 2015

Latest version

v1.18.0

Nov 2026

Contributors

–

1 active in 90 days

Releases

9

last 12 months

Language

JavaScript

Algernon is a web server written in Go that ships as one small executable. It serves static files and also renders dynamic pages from Markdown, Pongo2, Amber, JSX, TSX and Lua, with Teal for type-safe Lua. Sass and GCSS are compiled to CSS.

It speaks HTTP/2 over TLS when you give it a certificate and key, falls back to plain HTTP otherwise, and can serve HTTP/3 (QUIC) with a flag. Databases supported include a built-in Bolt file store, SQLite, PostgreSQL, MariaDB, MySQL, MSSQL, and Redis or Valkey. It also includes rate limiting, graceful shutdown, plugins, and a users and permissions system.

File names drive behavior. An index.lua file acts as a handler, index.md is rendered as HTML, and an index.prompt file can generate content with an Ollama model. The Docker image is under 17MB.

It is BSD-3-Clause licensed and runs on Linux and macOS, with a Homebrew formula. It can stand in for a small Nginx or Apache setup plus an application server.

Who it's for

Developers building small sites or prototypes

One binary serves Markdown, templates and Lua handlers with a database, with no extra stack.

Skip if: You need a large module ecosystem or heavy reverse-proxy features.

Hobbyists who write sites in Markdown

Drop an index.md in a folder and it is rendered as HTML.

Skip if: You want a full CMS with an admin editor.

The problem it solves

A small dynamic site often needs a web server, a template engine, a database driver and a user system wired together. Algernon bundles these in one executable so you can start serving pages quickly.

Strengths

  • One self-contained executable written in Go
  • HTTP/2 with TLS by default and optional HTTP/3 (QUIC)
  • Built-in support for Bolt, SQLite, PostgreSQL, MySQL, MariaDB, MSSQL and Redis
  • Docker image under 17MB
  • Active, with 8 releases in the last year

Trade-offs

  • Single main contributor activity in the last 90 days
  • Lua and Teal scripting is niche compared with mainstream frameworks
  • Not a drop-in replacement for the full Nginx or Apache feature set
  • Building from source requires Go 1.26 or later

Self-host Algernon

Self-hostable
Yes

Quick start

go install github.com/xyproto/algernon@latest

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

Frequently asked questions

Is Algernon free?

Yes. It is open source under the BSD-3-Clause license.

Which platforms does it run on?

Linux and macOS, with a Homebrew formula. Releases are provided for several platforms and architectures, and a Docker image exists.

Does it support HTTPS?

Yes. If you give it a certificate and key, it serves HTTP/2 over TLS. HTTP/3 (QUIC) can be enabled with a flag.

How do I install it?

Run go install with Go 1.26 or later, download a release, or use the Docker image.

Similar tools in Reverse proxies and web servers

Static Web Server

Reverse proxies and web servers

Small Rust web server for serving static files, with TLS, HTTP/2 and compression

2.4k 144 today Thriving Apache-2.0

Ferron

Reverse proxies and web servers

2.2k 101 today Active MIT

Zoraxy

Reverse proxies and web servers

5.6k 341 4 days ago Thriving AGPL-3.0

sablier

Reverse proxies and web servers

3.1k 109 5 days ago Thriving AGPL-3.0