Header-only C library for building basic static websites.
Info •
Install •
Usage
References •
License
Plint is (at its core) a wrapper around the Unix networking API; it's adequate for projects such as static websites with low traffic. For deployment, just slap an nginx reverse proxy on top of it.
- HTML template engine
- Serving of static files
- Easy-to-understand error messages
- Bulk asset routing
- POST request handling
- Customizable 404 page (fallback route)
- C99 or newer
- Unix OS
Simply clone or copy-paste plint.h into your codebase and include it like so:
#define PLINT_IMPLEMENTATION
#include "plint.h"See USAGE.md for an in-depth walkthrough of Plint.
See /examples to view practical examples of typical usage.
My own website is an example of Plint being used in the real world.
- https://aosabook.org/en/500L/a-simple-web-server.html
- https://ruslanspivak.com/lsbaws-part1/
- https://joaoventura.net/blog/2017/python-webserver/
- https://github.com/farhaanaliii/cerver
- https://github.com/KDesp73/webc
- https://www.tutorialspoint.com/http/http_api_design_considerations.htm
- https://en.wikibooks.org/wiki/C_programming/Networking_in_UNIX
- https://en.cppreference.com/c/language/compound_literal
- https://github.com/rexim/tore/
- https://github.com/pallets/jinja/
- https://github.com/sqlalchemy/mako
- https://sourceware.org/glibc/manual/latest/html_mono/libc.html
This project is licensed under the MIT License.
