Meira is a web framework written in Nim.
It is a modified version of Mummy, a multi-threaded HTTP 1.1 and WebSocket server by Ryan Oldenburg, and also includes pieces of code from the Jester web framework that have been adapted to work with Mummy.
The word Meira (ミイラ) means "mummy" in Japanese.
This is currently a hobby project under development, and is not production-ready.
See docs and examples.
- Static file serving
- Add initial code
- Add documentation on serving static files from a directory
- Add tests
- Add code to display a single static file behind a route
- Route variables
- Add initial code
- Add tests
- Query (GET) parameter handling
- Add code on query parameter handling
- Add docs on how to handle query params
- POST handling
- POST
application/x-www-form-urlencoded
payload handling - Document POST
application/json
payload handling - POST
multipart/form-data
payload handling - File upload
- POST
- Cookie management
- Add middleware code and example for file-based cookie handling
- Add documentation for file-based cookie handling
- Middleware
- Add initial code and example
- Add documentation
- Add tests
Run all tests with Testament:
testament pattern "tests/*.nim"
Run a single test with Testament:
testament pattern "tests/test_websockets.nim"
If you'd like to discuss anything about the project, feel free to contact me on Twitter or Mastodon.