mastrojs/mastro
À propos
No dependencies, no build step. Just a simple web server framework and site generator for people who care about their users and web standards.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- +3
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalMastro
No dependencies. No build step. Just a simple web framework.
Mastro is a web framework and site generator for people who care about their users and web standards. It’s is implemented in just ~900 lines of TypeScript.
Use JavaScript/TypeScript’s mature tooling to build fast MPA websites. Instead of going through layers of abstraction, work directly with the browser and Node.js, Bun, or Workers.
Install
pnpm create @mastrojs/mastro@latest
Simple to start, powerful when you need it
- Static site generation – ideal for blogs, marketing sites or webshops that are fast.
- Server-side rendering – use Mastro as a full-stack web framework.
- Everything is a route: serve JSON REST APIs, CSS, or images, with the same API as HTML.
- Composable: a router and plain helper functions – it's that simple.
No bloat
- No overhead: implemented in just ~900 lines of TypeScript with no dependencies.
- No client-side JavaScript (until you add some): create MPA websites that load fast.
- No build step (until you add one): your code ships exactly how you wrote it.
- No magic: use plain
<img>and<a>tags referencing asset routes. - No VC-money: no eventual enshitification – selling is none of our business.
- No dependencies: use web standards instead of keeping up with the frontend treadmill.
- No lock-in: swap out Mastro later or fork it – it's only ~900 lines after all.
Documentation
Extensions
The core of Mastro is tiny. But to get you started quickly for common use-cases, there is a growing list of extensions that are tailored to be used with Mastro. Often, it's just a single file wrapping a carefully chosen external dependency.
- Tiny libs in the
@mastrojsnamespace:- Reactive Mastro – a tiny client-side reactive GUI library for MPAs
- markdown to HTML
- images – resize/compress/etc.
- og-image – generate images from text
- feed – generate RSS/Atom feeds
- atproto – add support for Standard.site
- api – type-safe REST APIs and clients
- result – a minimal
Resulttype
- Install 3rd-party packages like:
- Kysely – type-safe SQL query builder
- Sveltia CMS – git-based CMS
Contribute
We consider the source code fairly readable, start here!
Please open an issue or similar (see below) to discuss an idea or proposal.
Join the community
We’re building an inclusive community, where people of all kinds of backgrounds and experience levels feel welcome and safe, and help each other. A place to ask questions and learn new things.
Please start a GitHub Discussion or join us on our Discord or our Stoat.
Something not working as expected or confusing? We consider that a bug. Please open a GitHub issue.
Explorer des projets similaires
Chargement…