{"id":16672076,"url":"https://github.com/jop-software/astro-cookieconsent","last_synced_at":"2025-09-06T04:40:01.844Z","repository":{"id":171133639,"uuid":"647007630","full_name":"jop-software/astro-cookieconsent","owner":"jop-software","description":"Simple to use Cookie Consent for Astro","archived":false,"fork":false,"pushed_at":"2024-10-24T20:55:32.000Z","size":51,"stargazers_count":71,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T18:54:24.192Z","etag":null,"topics":["astro","astro-integration","cookie","cookie-consent","gdpr","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jop-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-05-29T21:23:08.000Z","updated_at":"2025-08-13T10:07:47.000Z","dependencies_parsed_at":"2023-11-10T15:04:18.815Z","dependency_job_id":"a61d4834-cf49-416d-a3b8-ddfba1c8f623","html_url":"https://github.com/jop-software/astro-cookieconsent","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":"0.16000000000000003","last_synced_commit":"79f3db6f8e2db8e568a68df59a46f7a164d102cb"},"previous_names":["jop-software/astro-cookieconsent"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/jop-software/astro-cookieconsent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fastro-cookieconsent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fastro-cookieconsent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fastro-cookieconsent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fastro-cookieconsent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jop-software","download_url":"https://codeload.github.com/jop-software/astro-cookieconsent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fastro-cookieconsent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858849,"owners_count":25180766,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["astro","astro-integration","cookie","cookie-consent","gdpr","hacktoberfest"],"created_at":"2024-10-12T12:05:09.883Z","updated_at":"2025-09-06T04:40:01.809Z","avatar_url":"https://github.com/jop-software.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003evanilla-cookieconsent + Astro Integration\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003e Use [vanilla-cookieconsent](https://github.com/orestbida/cookieconsent) natively in Astro 🍪\n\n## Installation\n\n### Installation using the Astro CLI\n\nUsing the Astro CLI is the [recommended way](https://docs.astro.build/en/guides/integrations-guide/#automatic-integration-setup) to setup integrations in Astro.\n\n```console\n# npm\nnpx astro add @jop-software/astro-cookieconsent\n\n# pnpm\npnpm astro add @jop-software/astro-cookieconsent\n```\n\n### Manual Installation\n\nWhen the automatic setup from Astro is not an option for you, feel free to install the package manually.\n\n```console\n# npm\nnpm install @jop-software/astro-cookieconsent\n\n# pnpm\npnpm add @jop-software/astro-cookieconsent\n```\n\nMake sure that either your package manager installs peer dependencies or to manually install the [`vanilla-cookieconsent`](https://www.npmjs.com/package/vanilla-cookieconsent) package.\n\n## Usage\n\n\u003e [!NOTE]  \n\u003e This is an example configuration, passing JavaScript callbacks here is currently not supported.\n\n```javascript\n// astro.config.mjs\n\nimport cookieconsent from \"@jop-software/astro-cookieconsent\";\n\nexport default defineConfig({\n    // ...\n    integrations: [\n        // ...\n        cookieconsent({\n            // ...\n            guiOptions: {\n                consentModal: {\n                    layout: 'cloud',\n                    position: 'bottom center',\n                    equalWeightButtons: true,\n                    flipButtons: false,\n                },\n                preferencesModal: {\n                    layout: \"box\",\n                    position: \"right\",\n                    equalWeightButtons: true,\n                    flipButtons: false,\n                },\n            },\n            // ...\n        }),\n    ],\n});\n```\n\nWhen you call the integration, you can use the same configuration as you can in the [vanilla-cookieconsent](https://github.com/orestbida/cookieconsent) package. \nCheck their [Readme](https://github.com/orestbida/cookieconsent/blob/master/Readme.md) for more information and documentation.\n\n## Versions\n\n| Version | State | `vanilla-cookieconsent` Version |\n| --- | --- | --- |\n| `3.x` | ![Unsupported](https://img.shields.io/badge/active_support-green?style=for-the-badge) | `3.x` |\n| `2.x` | ![Unsupported](https://img.shields.io/badge/security_and_enterprise-orange?style=for-the-badge) | `2.x` |\n| `1.x` | ![Unsupported](https://img.shields.io/badge/unsupported-red?style=for-the-badge) | `2.x` |\n\n\n## Professional support\n\nProfessional support is available. Please contact [support@jop-software.de](mailto:support@jop-software.de) for more information.\n\n\u003cdiv align=center\u003e\u0026copy 2023, \u003ca href=\"https://jop-software.de\"\u003ejop-software Inh. Johannes Przymusinski\u003c/a\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fastro-cookieconsent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjop-software%2Fastro-cookieconsent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fastro-cookieconsent/lists"}