{"id":19520295,"url":"https://github.com/henryhale/vite-plugin-unit","last_synced_at":"2026-04-05T15:00:54.237Z","repository":{"id":215704303,"uuid":"739605145","full_name":"henryhale/vite-plugin-unit","owner":"henryhale","description":"🟨 A vite plugin for building websites in units.","archived":false,"fork":false,"pushed_at":"2026-04-05T13:06:39.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-05T13:22:50.450Z","etag":null,"topics":["component-based","henryhale","js","ts","unit-js","vite","vite-plugin"],"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/henryhale.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2024-01-06T01:36:53.000Z","updated_at":"2026-04-05T13:06:43.000Z","dependencies_parsed_at":"2024-01-06T01:53:37.800Z","dependency_job_id":"ecec5ac8-5455-4fb1-86f9-7e3b6c5fa1db","html_url":"https://github.com/henryhale/vite-plugin-unit","commit_stats":null,"previous_names":["henryhale/vite-plugin-unit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/henryhale/vite-plugin-unit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fvite-plugin-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fvite-plugin-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fvite-plugin-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fvite-plugin-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryhale","download_url":"https://codeload.github.com/henryhale/vite-plugin-unit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fvite-plugin-unit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31439442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T13:13:19.330Z","status":"ssl_error","status_checked_at":"2026-04-05T13:13:17.778Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component-based","henryhale","js","ts","unit-js","vite","vite-plugin"],"created_at":"2024-11-11T00:24:51.232Z","updated_at":"2026-04-05T15:00:54.221Z","avatar_url":"https://github.com/henryhale.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-unit\n\n[![npm](https://img.shields.io/npm/v/vite-plugin-unit.svg?style=for-the-badge)](https://www.npmjs.com/package/vite-plugin-unit)\n\nA vite plugin to enable you build websites in units using alpine.js\n\nCheck out the [create-unit](https://github.com/henryhale/create-unit) library for details.\n\n## installation\n\n```sh\nnpm i -D vite-plugin-unit\n```\n\n## usage\n\n```js\nimport unit from \"vite-plugin-unit\";\nimport { defineConfig } from \"vite\";\n\nexport default defineConfig({\n    plugins: [\n        unit({/* options */})\n    ]\n});\n```\n\n## configuration\n\n```ts\ntype PluginOptions = {\n    pages: string;\n    template: string;\n    slot: string;\n};\n```\n\n- `options.template`: _string_ - The HTML file in which compiles .unit files will be mounted\n- `options.pages`: _string_ - The folder under `src` folder containing the pages or routes\n- `options.slot`: _string_ - The slot identifier in the template to be replaced by compiled .unit files\n\n## default options\n\n```js\nconst defaultOptions = {\n    pages: \"pages/\",\n    template: \"template.html\",\n    slot: \"#slot#\"\n};\n```\n\n## License\n\nReleased under the [MIT License](./LICENSE.md)\n\nCopyright \u0026copy; 2024-present, [Henry Hale](https://github.com/henryhale)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhale%2Fvite-plugin-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryhale%2Fvite-plugin-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhale%2Fvite-plugin-unit/lists"}