{"_id":"@andersseen/astro","_rev":"2-26e959c3cd0cf6bcdc2630e72b23dad4","name":"@andersseen/astro","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@andersseen/astro","version":"0.0.1","keywords":["astro","integration","web-components"],"author":{"name":"Andersseen"},"license":"MIT","_id":"@andersseen/astro@0.0.1","maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"homepage":"https://github.com/Andersseen/and-web-components#readme","bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"dist":{"shasum":"c750922e78b0a91b30d439a7c6a99d924910e966","tarball":"https://registry.npmjs.org/@andersseen/astro/-/astro-0.0.1.tgz","fileCount":7,"integrity":"sha512-XOmX60eNvZMLHj6CleUmV/S/E6bjXNGajbzmEywReQ30e/TbkMEuKPjwB7dTq07X0rVBSMtWc353A1PIZlE7lA==","signatures":[{"sig":"MEQCID27er8Woi3bak1QqIKIBllWlMmM74H28ACdzXCFDgZfAiA3NnbWx/tCRmKxBf/29QHR94q80U84Ufc+UFr1GqfkeQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6054},"main":"./dist/index.js","type":"module","_from":"file:andersseen-astro-0.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run","build":"rm -rf dist && tsc && node ../../scripts/fix-esm-extensions.cjs dist","format":"prettier --write \"src/**/*.{ts,tsx}\"","lint:fix":"eslint src --ext .ts,.tsx --fix","format:check":"prettier --check \"src/**/*.{ts,tsx}\""},"_npmUser":{"name":"andriipap","email":"andriipap01@gmail.com"},"_resolved":"/private/var/folders/wq/4bgf9dy51d5776cl3qgg362h0000gn/T/3d52fc33b87d474d8bfd3e6dd8795552/andersseen-astro-0.0.1.tgz","_integrity":"sha512-XOmX60eNvZMLHj6CleUmV/S/E6bjXNGajbzmEywReQ30e/TbkMEuKPjwB7dTq07X0rVBSMtWc353A1PIZlE7lA==","repository":{"url":"git+https://github.com/Andersseen/and-web-components.git","type":"git","directory":"packages/astro"},"_npmVersion":"10.9.8","description":"Astro integration for @andersseen/web-components","directories":{},"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"astro":"^5.7.10","vitest":"^4.1.0","typescript":"^5.7.2"},"peerDependencies":{"astro":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/astro_0.0.1_1783266403530_0.8133410217275963","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@andersseen/astro","version":"0.0.2","sideEffects":false,"description":"Astro integration for @andersseen/web-components","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"peerDependencies":{"astro":">=4.0.0"},"devDependencies":{"astro":"^5.7.10","typescript":"^5.7.2","vitest":"^4.1.0"},"keywords":["astro","integration","web-components"],"author":{"name":"Andersseen"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Andersseen/and-web-components.git","directory":"packages/astro"},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fix-esm-extensions.cjs dist","test":"vitest run","lint":"eslint src --ext .ts,.tsx","lint:fix":"eslint src --ext .ts,.tsx --fix","format":"prettier --write \"src/**/*.{ts,tsx}\"","format:check":"prettier --check \"src/**/*.{ts,tsx}\""},"_id":"@andersseen/astro@0.0.2","bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"homepage":"https://github.com/Andersseen/and-web-components#readme","_integrity":"sha512-2hdBFkmVmlLjTXxCl3D0bSfOGIyEqP7cluqSsVjvTICnZkV3noN4GGD0Rb+NVr6QDQNmi2sYfGsKfGYHJ7xwHg==","_resolved":"/tmp/789c3e5401a6d6df01ee3790ebc97612/andersseen-astro-0.0.2.tgz","_from":"file:andersseen-astro-0.0.2.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-2hdBFkmVmlLjTXxCl3D0bSfOGIyEqP7cluqSsVjvTICnZkV3noN4GGD0Rb+NVr6QDQNmi2sYfGsKfGYHJ7xwHg==","shasum":"de5d428f19c1dba49b6e2898bd722209d6bb64c8","tarball":"https://registry.npmjs.org/@andersseen/astro/-/astro-0.0.2.tgz","fileCount":3,"unpackedSize":4035,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFPht7fYtJsfj8L7Wl14MEu6MP3XGOL9ckgXkpmdkUo/AiB6CWxgc3QtBC/KF0+KmMkxQhthEhQRNrwAldVRsjD8ig=="}]},"_npmUser":{"name":"andriipap","email":"andriipap01@gmail.com"},"directories":{},"maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/astro_0.0.2_1784814154902_0.5172150772996318"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-05T15:46:43.346Z","modified":"2026-07-23T13:42:35.185Z","0.0.1":"2026-07-05T15:46:43.657Z","0.0.2":"2026-07-23T13:42:35.029Z"},"bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"author":{"name":"Andersseen"},"license":"MIT","homepage":"https://github.com/Andersseen/and-web-components#readme","keywords":["astro","integration","web-components"],"repository":{"type":"git","url":"git+https://github.com/Andersseen/and-web-components.git","directory":"packages/astro"},"description":"Astro integration for @andersseen/web-components","maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"readme":"# @andersseen/astro\n\nAstro integration for\n[@andersseen/web-components](https://github.com/Andersseen/and-web-components).\n\nIt removes the boilerplate of manually importing and defining every custom\nelement, and automatically registers the icons they use.\n\n## Install\n\n```bash\npnpm add @andersseen/astro @andersseen/web-components @andersseen/icon\n```\n\n## Usage\n\nAdd the integration to your `astro.config.mjs`:\n\n```js\nimport { defineConfig } from 'astro/config';\nimport andersseen from '@andersseen/astro';\n\nexport default defineConfig({\n  integrations: [andersseen()],\n});\n```\n\nThis is equivalent to adding the following client script to every page:\n\n```ts\nimport { defineAllCustomElements } from '@andersseen/web-components';\ndefineAllCustomElements();\n\nimport { registerAllIcons } from '@andersseen/icon';\nregisterAllIcons();\n```\n\n## Options\n\n### Tree-shake components\n\nRegister only the components you actually use:\n\n```js\nandersseen({\n  components: ['and-button', 'and-navbar', 'and-badge'],\n});\n```\n\n### Skip automatic icon registration\n\n```js\nandersseen({\n  icons: false,\n});\n```\n\n## Using components in `.astro` files\n\nOnce the integration is installed, use the custom elements directly:\n\n```astro\n---\nimport type { NavbarProps } from '@andersseen/web-components';\n\nconst navItems: NavbarProps['items'] = [\n  { label: 'Home', href: '/' },\n  { label: 'Docs', href: '/docs' },\n];\n---\n\n<and-navbar items={navItems}>\n  <and-button variant=\"outline\" slot=\"actions\">Login</and-button>\n</and-navbar>\n```\n\n> **Note:** complex props such as `items` are still serialized to the DOM as\n> attributes. The integration does not remove that requirement, but it does\n> expose TypeScript types so you get autocompletion and avoid manual\n> `JSON.stringify`.\n","readmeFilename":"README.md"}