Official Libraries
Mayari's core is small on purpose. It handles routing, middleware, and the conventions that shape your project. Everything else is a separate library that you add only when you need it.
Official Libraries are the packages maintained alongside Mayari. They are built for Mayari, follow its conventions, and are versioned and released separately from the core. None of them is required to run a Mayari app, so you can install just the ones that fit your project.
Available libraries
| Library | What it does |
|---|---|
common | Response utilities and Exception handling used across Mayari apps and libraries |
adpt | Runtime adapter that keeps your code working across Lune, Zune, and Lute |
static | Serves static files from your application |
d1client | Client for using Cloudflare D1 databases |
types | Global Luau types for Mayari |
eval | Test runner for Mayari apps (coming soon) |
Do I need these?
Not strictly. For example, a handler can return a plain table with a body and a config (status and headers) without common.response. The libraries exist to make things easier and more consistent, so you don't have to set status codes and headers by hand. common is the one most Mayari apps and libraries will want, and the others depend on what you are building: adpt if you need to support more than one runtime, static if you serve files, and so on.
Each library has its own page with installation steps and usage.