{"id":51634281,"url":"https://github.com/apolocine/fastify-mostajs-orm-starter","last_synced_at":"2026-07-13T12:02:14.061Z","repository":{"id":361692898,"uuid":"1253977229","full_name":"apolocine/fastify-mostajs-orm-starter","owner":"apolocine","description":"Fastify + @mostajs/orm blog starter (SQLite WASM). Boots in the browser / Bolt.new with no native binary.","archived":false,"fork":false,"pushed_at":"2026-05-31T20:15:52.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T22:11:28.242Z","etag":null,"topics":["bolt-new","fastify","mostajs","orm","prisma-alternative","sqlite","starter-template","typescript","wasm"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apolocine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T02:15:34.000Z","updated_at":"2026-05-31T20:15:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/apolocine/fastify-mostajs-orm-starter","commit_stats":null,"previous_names":["apolocine/fastify-mostajs-orm-starter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/apolocine/fastify-mostajs-orm-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apolocine%2Ffastify-mostajs-orm-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apolocine%2Ffastify-mostajs-orm-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apolocine%2Ffastify-mostajs-orm-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apolocine%2Ffastify-mostajs-orm-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apolocine","download_url":"https://codeload.github.com/apolocine/fastify-mostajs-orm-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apolocine%2Ffastify-mostajs-orm-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35421719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bolt-new","fastify","mostajs","orm","prisma-alternative","sqlite","starter-template","typescript","wasm"],"created_at":"2026-07-13T12:02:13.578Z","updated_at":"2026-07-13T12:02:14.057Z","avatar_url":"https://github.com/apolocine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastify + @mostajs/orm Starter — Blog\n\n\u003e Fastify blog API (Users · Posts · Comments) on **[@mostajs/orm](https://www.npmjs.com/package/@mostajs/orm)** — one API, 13 databases, zero codegen. **Boots in the browser / Bolt.new / Cloudflare Workers with no native binary** (sqljs SQLite WASM).\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n[![Open in Bolt.new](https://img.shields.io/badge/Open_in-Bolt.new-000?style=for-the-badge\u0026logo=stackblitz)](https://bolt.new/github.com/apolocine/fastify-mostajs-orm-starter)\n[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/apolocine/fastify-mostajs-orm-starter)\n\n## Quick start\n\n```bash\ngit clone https://github.com/apolocine/fastify-mostajs-orm-starter.git\ncd fastify-mostajs-orm-starter\nnpm install\nnpm run dev      # http://localhost:3000\n```\n\nNo database to install — the default `sqljs` dialect runs SQLite in WebAssembly, **in-memory**, and seeds demo data on boot (3 users / 5 posts / 12 comments).\n\n## Routes\n\n| Method | Path | Description |\n|---|---|---|\n| `GET` | `/` | HTML page — list of published posts (author + comment count) |\n| `GET` | `/posts/:id` | HTML page — a post with its comments |\n| `GET` | `/api/posts` | JSON — published posts |\n| `GET` | `/api/posts/:id` | JSON — a post with `author` + `comments` populated |\n| `POST` | `/api/posts` | JSON — create a post (`{ title, slug, content, authorId, published? }`) |\n\n## Stack\n\n- **Fastify 5** · **TypeScript** run with **tsx** (no build step)\n- **@mostajs/orm 2.5.x** — `sqljs` (SQLite WASM) by default\n- **Plain CSS** server-rendered pages (no framework, no native dep)\n\n## Switch database (one env, no code change)\n\n```bash\nDB_DIALECT=sqlite DATABASE_URL=./blog.db npm run dev    # local Node (npm i better-sqlite3)\nDB_DIALECT=pglite DATABASE_URL=idb://blog npm run dev   # Postgres WASM (npm i @electric-sql/pglite)\n```\n\n## License\n\nMIT — © Dr Hamid MADANI. The underlying [@mostajs/orm](https://github.com/apolocine/mosta-orm) is AGPL-3.0 (commercial license: drmdh@msn.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapolocine%2Ffastify-mostajs-orm-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapolocine%2Ffastify-mostajs-orm-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapolocine%2Ffastify-mostajs-orm-starter/lists"}