{"id":24621502,"url":"https://github.com/cmmvio/cmmv-fastify","last_synced_at":"2025-03-19T00:26:02.377Z","repository":{"id":266492610,"uuid":"898497698","full_name":"cmmvio/cmmv-fastify","owner":"cmmvio","description":"HTTP adapter module for using Fastify as an HTTP server","archived":false,"fork":false,"pushed_at":"2025-01-24T01:42:03.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T23:47:42.482Z","etag":null,"topics":["adapter","cmmv","fastify","http","server"],"latest_commit_sha":null,"homepage":"","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/cmmvio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-12-04T13:58:51.000Z","updated_at":"2025-01-24T01:42:08.000Z","dependencies_parsed_at":"2025-01-24T02:24:52.125Z","dependency_job_id":"b75cc8be-57ce-4429-952f-2831e39cc0f8","html_url":"https://github.com/cmmvio/cmmv-fastify","commit_stats":null,"previous_names":["andrehrferreira/cmmv-fastify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmmvio%2Fcmmv-fastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmmvio%2Fcmmv-fastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmmvio%2Fcmmv-fastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmmvio%2Fcmmv-fastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmmvio","download_url":"https://codeload.github.com/cmmvio/cmmv-fastify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244327954,"owners_count":20435518,"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":["adapter","cmmv","fastify","http","server"],"created_at":"2025-01-25T02:22:21.290Z","updated_at":"2025-03-19T00:26:02.357Z","avatar_url":"https://github.com/cmmvio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cmmv.io/\" target=\"blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/cmmvio/docs.cmmv.io/main/public/assets/logo_CMMV2_icon.png\" width=\"300\" alt=\"CMMV Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eContract-Model-Model-View (CMMV) \u003cbr/\u003e Building scalable and modular applications using contracts.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@cmmv/fastify\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@cmmv/fastify.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/cmmvio/cmmv-fastify/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@cmmv/fastify.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cmmv.io\"\u003eDocumentation\u003c/a\u003e \u0026bull;\n  \u003ca href=\"https://github.com/cmmvio/cmmv-fastify/issues\"\u003eReport Issue\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\nCMMV (Contract-Model-Model-View) is a minimalistic and modular framework for building scalable applications in TypeScript. Inspired by modern design patterns, CMMV uses contracts to define the entire application, from ORM entities to REST controllers and WebSocket endpoints, allowing for a highly structured and maintainable codebase.\n\n## Legacy Setup (Manual)\n\nIf you prefer to set up the project manually, you can still install the necessary modules individually:\n\n```bash\n$ pnpm add @cmmv/fastify @fastify/compress @fastify/cors @fastify/helmet @fastify/secure-session @fastify/static @fastify/view\n```\n\n## Quick Start\n\nThe `@cmmv/fastify` module provides an alternative HTTP adapter based on [Fastify](https://fastify.dev/), allowing you to use Fastify middleware and features seamlessly with your CMMV application.\n\n```typescript\nimport { Application } from \"@cmmv/core\";\nimport { ViewModule } from \"@cmmv/view\";\n\nimport { \n  FastifyAdapter, \n  FastifyModule \n} from \"@cmmv/fastify\";\n\nApplication.create({\n    httpAdapter: FastifyAdapter, // Add the FastifyAdapter here\n    wsAdapter: WSAdapter,\n    modules: [\n        FastifyModule, // Add the FastifyModule here\n    ],\n    services: [...],\n    contracts: [...]\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmmvio%2Fcmmv-fastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmmvio%2Fcmmv-fastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmmvio%2Fcmmv-fastify/lists"}