{"id":16880063,"url":"https://github.com/mb21/mastro","last_synced_at":"2025-04-11T11:43:29.739Z","repository":{"id":220397394,"uuid":"739028147","full_name":"mb21/mastro","owner":"mb21","description":"Minimal, no-dependencies take on a Deno web framework for MPAs.","archived":false,"fork":false,"pushed_at":"2024-10-21T06:41:41.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-21T22:35:33.186Z","etag":null,"topics":["deno","mpa","ssg","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mb21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T15:54:51.000Z","updated_at":"2024-01-04T18:55:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d8fa307-a166-4230-b347-9d40be2640f7","html_url":"https://github.com/mb21/mastro","commit_stats":null,"previous_names":["mb21/mastro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmastro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmastro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmastro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mb21%2Fmastro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mb21","download_url":"https://codeload.github.com/mb21/mastro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248386382,"owners_count":21095067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","mpa","ssg","typescript"],"created_at":"2024-10-13T15:57:09.604Z","updated_at":"2025-04-11T11:43:29.721Z","avatar_url":"https://github.com/mb21.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastro\n\nA *m*inimal take on an [*Astro*](https://astro.build)-like MPA web framework.\n\n🚧 While the Mastro server framework is still a work in progress, the client-side part is already very usable: see [**Reactive Mastro**](src/reactive/).\n\n## Philosophy\n\n- No magic. Easy to understand codebase using simple JS functions wherever possible. Favour small, [composable functions](https://mb21.github.io/blog/2021/09/11/composable-abstractions.html).\n\n- Zero client-side JavaScript by default.\n\n- No build step or bundler by default.\n\n- Minimal dependencies (see `deno.json`)\n\n- File-based routing: `routes/` contains files with handler functions and that's the only way. No `.md` files with `layout` frontmatter property, no `.astro`-like-frontmatter-magic, no `.html` files, etc.\n\n- JSON and HTML [route handlers](https://blog.val.town/blog/the-api-we-forgot-to-name/) are uniform. A handler takes a `Request` object (and no props, and hopefully no context).\n\n- Server components are simple JS functions that by convention take a props object.\n\n- For client-side components, see [Reactive Mastro](src/reactive/).\n\n## How to run\n\n`cd examples/blog/`\n\nStart dev server:\n\n    deno run start\n\nGenerate static site:\n\n    deno run generate\n\n\n## TODOs\n\n- Fully implement `src/generate.ts` (SSG) and `src/server.ts` (dev and maybe also prod server)\n\n- publish as package or packages\n\n- Asset handling (on server startup / static site generation?)\n  - support something like CSS Modules? Then again, read [this great article by Heydon Pickering](https://www.smashingmagazine.com/2016/11/css-inheritance-cascade-global-scope-new-old-worst-best-friends/) if you want to be convinced otherwise.\n  - image resizing\n\n- docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmb21%2Fmastro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmb21%2Fmastro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmb21%2Fmastro/lists"}