{"id":13818733,"url":"https://github.com/nuxt-community/composition-api","last_synced_at":"2025-04-03T08:04:16.748Z","repository":{"id":36970618,"uuid":"259433997","full_name":"nuxt-community/composition-api","owner":"nuxt-community","description":"Composition API hooks for Nuxt 2.","archived":false,"fork":false,"pushed_at":"2024-10-29T11:52:06.000Z","size":7916,"stargazers_count":709,"open_issues_count":44,"forks_count":101,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-10-29T13:32:06.953Z","etag":null,"topics":["composition-api","javascript","nuxt","nuxt-module","nuxtjs","typescript","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://composition-api.nuxtjs.org","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/nuxt-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2020-04-27T19:40:36.000Z","updated_at":"2024-10-28T17:51:01.000Z","dependencies_parsed_at":"2023-12-10T12:25:47.313Z","dependency_job_id":"b251d17e-221e-4e11-a88e-7e01adaeeb7a","html_url":"https://github.com/nuxt-community/composition-api","commit_stats":{"total_commits":778,"total_committers":36,"mean_commits":21.61111111111111,"dds":0.6709511568123394,"last_synced_commit":"6c8f46f14a29948eccba93ba179995da4032ec51"},"previous_names":[],"tags_count":105,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fcomposition-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fcomposition-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fcomposition-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-community%2Fcomposition-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-community","download_url":"https://codeload.github.com/nuxt-community/composition-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246961944,"owners_count":20861181,"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":["composition-api","javascript","nuxt","nuxt-module","nuxtjs","typescript","vue","vuejs"],"created_at":"2024-08-04T08:00:26.829Z","updated_at":"2025-04-03T08:04:16.725Z","avatar_url":"https://github.com/nuxt-community.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003e🏗️ Nuxt Composition API\u003c/h1\u003e\n\u003cp align=\"center\"\u003eComposition API hooks for Nuxt 2\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://npmjs.com/package/@nuxtjs/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/@nuxtjs/composition-api/latest.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://bundlephobia.com/result?p=@nuxtjs/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/bundlephobia/minzip/@nuxtjs/composition-api?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/@nuxtjs/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/dt/@nuxtjs/composition-api.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://lgtm.com/projects/g/nuxt-community/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/lgtm/alerts/github/nuxt-community/composition-api?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://lgtm.com/projects/g/nuxt-community/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/lgtm/grade/javascript/github/nuxt-community/composition-api?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://david-dm.org/nuxt-community/composition-api\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/david/nuxt-community/composition-api.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e `@nuxtjs/composition-api` provides a way to use the Vue Composition API with Nuxt-specific features.\n\n---\n\n**Nuxt Bridge has now been released in beta.** It has full composition API support and it's strongly recommended to migrate from `@nuxtjs/composition-api`, if possible, by following the steps in [the Bridge migration guide](https://nuxt.com/docs/bridge/overview). Feedback welcome at `https://github.com/nuxt-community/composition-api/discussions/585`.\n\n---\n\n## Features\n\n- 🏃 **Fetch**: Support for the new Nuxt `fetch()` in v2.12+\n- ℹ️ **Context**: Easy access to `router`, `app`, `store` within `setup()`\n- 🗺️ **Head**: Interact directly with your `vue-meta` properties within `setup()`\n- ✨ **Automatic hydration**: Drop-in replacement for `ref` with automatic SSR stringification and hydration (`ssrRef`)\n- 📝 **SSR support**: Allows using the Composition API with SSR\n- 💪 **TypeScript**: Written in TypeScript\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://composition-api.nuxtjs.org/\"\u003eRead Documentation\u003c/a\u003e\n\u003c/p\u003e\n\n## Contributors\n\nContributions are very welcome.\n\n1. Clone this repo\n\n   ```bash\n   git clone git@github.com:nuxt-community/composition-api.git\n   ```\n\n2. Install dependencies and build project\n\n   ```bash\n   yarn\n   # Compile library and watch for changes\n   yarn watch\n   # Start a test Nuxt fixture with hot reloading\n   yarn fixture\n   # Test\n   yarn test\n   ```\n\n**Tip:** You can also use `yarn link` to test the module locally with your Nuxt project.\n\n## License\n\n[MIT License](./LICENCE) - Copyright \u0026copy; Daniel Roe\n","funding_links":[],"categories":["Packages","TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-community%2Fcomposition-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-community%2Fcomposition-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-community%2Fcomposition-api/lists"}