# Redbean

- Page: https://shared.btbytes.com/p/redbean
- Date: 2022-10-24
- Tags: lua, sqlite, c, embedded, webserver

[Redbean single-file distributable web server](https://redbean.dev) is built using [cosmopolitan](https://shared.btbytes.com/p/cosmopolitan-libc).

Redbean's home page does a  great job of explaining what the software does:

> rebean is an open source webserver in a zip executable that runs on six operating systems. The basic idea is if you want to build a web app that runs anywhere, then you download the redbean.com file, put your .html and .lua files inside it using the zip command, and then you've got a hermetic app you can deploy and share.

> redbean embeds Lua, SQLite, and MbedTLS into a fork() driven application server that benchmarks at 1.1 million qps on a personal computer. It's got a live bestline REPL with code completion and a UNIX module too, that lets you directly use the Cosmopolitan Libc system call interface. redbean furthermore provides sandboxing and system call tracing for security. This makes redbean a great fit for when you want to build an app that's vertically integrated into a single tiny file that runs on nearly all PCs and servers.

--

[Deploying a redbean app to Fly](https://til.simonwillison.net/fly/redbean-on-fly)  from Simon Willison’s [TILs](https://til.simonwillison.net/)


[Redbean Tiddlywiki Saver: rpdillon.net](https://rpdillon.net/redbean-tiddlywiki-saver.html); Nov 2022.

[shmup/awesome-cosmopolitan: List of Cosmopolitan Libc related resources and projects](https://github.com/shmup/awesome-cosmopolitan)

[Fullmoon](https://github.com/pkulchenko/fullmoon) is a Fast and minimalistic Redbean-based Lua web framework in one file by Paul Kulchenko, the creator of [ZeroBraneStudio](https://studio.zerobrane.com), a Lua IDE.
