{"id":15691079,"url":"https://github.com/ysarock/nuxt-wp","last_synced_at":"2025-05-07T23:49:08.290Z","repository":{"id":226357276,"uuid":"768133023","full_name":"YsarocK/nuxt-wp","owner":"YsarocK","description":"Nuxt module to easily consume a Wordpress Headless.","archived":false,"fork":false,"pushed_at":"2024-03-16T09:14:44.000Z","size":4470,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T23:49:03.010Z","etag":null,"topics":["headless-wordpress","nuxt","nuxt-module","nuxt3","wordpress"],"latest_commit_sha":null,"homepage":"https://nuxt-wp.pages.dev","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/YsarocK.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-03-06T14:29:02.000Z","updated_at":"2024-09-06T21:26:53.000Z","dependencies_parsed_at":"2024-10-23T23:06:59.147Z","dependency_job_id":"37e310db-78b6-40e0-a0cd-a004ea42d2c5","html_url":"https://github.com/YsarocK/nuxt-wp","commit_stats":null,"previous_names":["ysarock/nuxt-wp"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YsarocK%2Fnuxt-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YsarocK%2Fnuxt-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YsarocK%2Fnuxt-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YsarocK%2Fnuxt-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YsarocK","download_url":"https://codeload.github.com/YsarocK/nuxt-wp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973625,"owners_count":21834105,"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":["headless-wordpress","nuxt","nuxt-module","nuxt3","wordpress"],"created_at":"2024-10-03T18:20:00.878Z","updated_at":"2025-05-07T23:49:08.263Z","avatar_url":"https://github.com/YsarocK.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![nuxt-wp banner](./readme-banner.jpg)\n\n# Wordpress x Nuxt 3\n\n![npm](https://img.shields.io/npm/dt/nuxt-wp)\n![npm](https://img.shields.io/npm/v/nuxt-wp)\n\n**Easy queries** 💡\n  Get pages, posts data based on current or provided slug. Get posts by categories.\n  \n**Handles menu** 🧭 \n  Retrieves your menus.\n\n**Contact Form 7 support** ✉️\n  Displays a form based on your CF7 config and submit it automatically through API.\n\n[Documentation](https://nuxt-wp.pages.dev).\n\n# Getting Started\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) version 18 or higher.\n- An accessible Wordpress instance, with API enabled.\n- [Wordpress Application credentials](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/) to use advanced features (Optional):\n  - Menus\n  - Contact form\n\n## Installation\n\n### Setup\n\nYou can install `nuxt-wp` using npm, pnpm, yarn or bun:\n\n```sh\n# Using npm\n$ npm add -D nuxt-wp\n\n# Using pnpm\n$ pnpm add -D nuxt-wp\n\n# Using yarn\n$ yarn add -D nuxt-wp\n\n# Using bun\n$ bun add -D nuxt-wp\n```\n\nThen, add `nuxt-wp` to your Nuxt configuration:\n\n```ts\n// nuxt-config.ts\nexport default defineNuxtConfig({\n  modules: ['nuxt-wp'],\n})\n```\n\n### Config\n\nIn order to work, you need to provide the API endpoint:\n\n```sh\n# .env\nWP_API_ENDPOINT=https://your-wordpress-site.com/wp-json\n```\n\n```ts\n// nuxt-config.ts\nexport default defineNuxtConfig({\n  wordpress:{\n    apiEndpoint: 'https://your-wordpress-site.com/wp-json',\n  },\n})\n```\n\nIf you want to use advanced features, you need to provide Application Credentials too:\n\n```sh\n# .env\nWP_API_ENDPOINT=https://your-wordpress-site.com/wp-json\nWP_APPLICATION_USER=your-username\nWP_APPLICATION_PASSWORD=your-password\n```\n\n```ts\n// nuxt-config.ts\nexport default defineNuxtConfig({\n  wordpress:{\n    apiEndpoint: 'https://your-wordpress-site.com/wp-json\n\n',\n\n\n    applicationUser: 'your-username',\n    applicationPassword: 'your-password'\n  },\n})\n```\n\nSee more in [Documentation](https://nuxt-wp.pages.dev).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysarock%2Fnuxt-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fysarock%2Fnuxt-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysarock%2Fnuxt-wp/lists"}