# pisces

Safe, fast, and simple HTTP server in &lt;450 lines of C.

- Page: https://oh4.co/site/pisces.html
- Under: [web](web.md)
- Last change: 7EAB0D (2026-11-13)

![](../media/picts/11.jpeg)7E4B1E - fishes

pisces is a safe, fast, and simple HTTP server for static sites written in C. It is completely contained in a single file that is less than 450 lines of code.

pisces is based on SQLite's [althttpd](https://www.sqlite.org/docsrc/artifact/d53e8146bf7977) and [nweb](https://github.com/ankushagarwal/nweb). It operates as a single daemon process that forks a child process per request. It supports only GET requests and only for resources from a predefined list of allowed file types.

It was designed to provide a simple, minimal, no frills way for anyone to serve their own static content.

This site is lovingly served using pisces with HTTPS traffic handled by [stunnel](https://www.stunnel.org/).

## Links

- [source code](https://pyrite.oh4.co/mono/dir?ci=tip&name=pisces)
- [sqlite althttpd](https://www.sqlite.org/docsrc/artifact/d53e8146bf7977)
- [nweb](https://github.com/ankushagarwal/nweb)

## Linked from

- [web](web.md)
- [poldy](poldy.md)
