Favicon of Algernon

Algernon

Launch a feature-rich web server without dependencies. Includes Lua scripting, multiple database connectors, live-reloading, and user management in one binary.

Algernon is a highly versatile web server packaged as a single, self-contained executable. Written in Go, it eliminates the need for complex setups and external dependencies, allowing you to serve dynamic content and build applications with minimal configuration. It's designed to be a comprehensive toolkit for web development, bundling a wide array of modern technologies directly into one binary.

Its power lies in its extensive built-in support for numerous tools and languages. You can create dynamic handlers and server-side logic using Lua and Teal, render content with templating engines like Pongo2 and Amber, and serve pages written directly in Markdown. It also includes on-the-fly transpilation for styling with Sass/SCSS and scripting with JSX. Key features include:

  • Support for modern protocols like HTTP/2 and QUIC.
  • Integrated database connectors for PostgreSQL, SQLite, Redis, MariaDB/MySQL, and a built-in BoltDB.
  • Built-in user and permission management system.
  • Live auto-refresh for instant previews during development.
  • Direct integration with Ollama for running large language models (LLMs).
  • A flexible plugin system to extend its functionality.

Whether you need a quick Markdown previewer, a powerful backend for a web application, or a standalone Lua runtime, Algernon provides a fast and efficient solution. Its small footprint, with a Docker image under 12MB, makes it ideal for a wide range of use cases.

Directory Structure

algernon
public
.env
docker-compose.yml

docker-compose.yml

services:
  algernon:
    image: xyproto/algernon:latest
    container_name: algernon
    ports:
      - "3000:3000"
    volumes:
      - ./public:/srv/algernon
    restart: unless-stopped

.env

# No sensitive environment variables are required for the default static/Lua server setup.
# Add database credentials here if extending with PostgreSQL or Redis.
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Algernon

Favicon

 

  
  
Favicon

 

  
  
Favicon