{"id":16229808,"url":"https://github.com/indaco/vitepress-templ-preview","last_synced_at":"2025-09-15T14:46:20.485Z","repository":{"id":245796057,"uuid":"819255415","full_name":"indaco/vitepress-templ-preview","owner":"indaco","description":"A VitePress plugin to preview your templ components while documenting them.","archived":false,"fork":false,"pushed_at":"2025-03-01T04:41:54.000Z","size":9668,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T20:41:44.789Z","etag":null,"topics":["components","go","golang","previewer","templ","vitepress-plugin"],"latest_commit_sha":null,"homepage":"https://vitepress-templ-preview.indaco.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indaco.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":"2024-06-24T06:37:52.000Z","updated_at":"2025-02-04T21:47:36.000Z","dependencies_parsed_at":"2024-07-30T20:57:30.556Z","dependency_job_id":"22c3a5d1-245d-4ad7-9245-68f64248a843","html_url":"https://github.com/indaco/vitepress-templ-preview","commit_stats":null,"previous_names":["indaco/vitepress-templ-preview"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fvitepress-templ-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fvitepress-templ-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fvitepress-templ-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fvitepress-templ-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indaco","download_url":"https://codeload.github.com/indaco/vitepress-templ-preview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243996831,"owners_count":20380978,"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":["components","go","golang","previewer","templ","vitepress-plugin"],"created_at":"2024-10-10T12:59:17.448Z","updated_at":"2025-03-19T14:30:22.694Z","avatar_url":"https://github.com/indaco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"font-size: 2.5rem;\"\u003evitepress-templ-preview\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eA VitePress plugin to preview your templ components while documenting them.\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/vitepress-templ-preview\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vitepress-templ-preview.svg?style=flat\" alt=\"NPM Package\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/indaco/vitepress-templ-preview/blob/main/LICENSE\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-mit-blue?style=flat-square\u0026logo=none\" alt=\"license\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Documentation\n\nCheck out the docs [here](https://vitepress-templ-preview.indaco.dev).\n\n## Contributing\n\nWe welcome contributions! Whether it's reporting a bug, suggesting a feature, or submitting a pull request, your input helps improve this project.\n\n### Known Issues\n\nWhen running `pnpm web:dev` to start the sample website, you might encounter the following error:\n\n```bash\n\u003e vitepress dev docs\n\nfailed to load config from \u003cpath\u003e/vitepress-templ-preview/website/docs/.vitepress/config.mts\nfailed to start server. error:\nCannot find module '../data/patch.json'\n```\n\n**Cause**\n\nThis issue is related to the `css-tree` package. The root cause seems to stem from how module exports are defined in its package.json.\n\n**Workaround**\n\nYou can resolve this issue by modifying the exports field in node_modules/css-tree/package.json. Specifically, update the first exports entry like so:\n\n```json\n  \"exports\": {\n    \".\": {\n-     \"import\": \"./lib/index.js\",\n+     \"import\": \"./cjs/index.cjs\",\n      \"require\": \"./cjs/index.cjs\"\n    },\n   ...\n```\n\nThis workaround was discussed in [bun/issues/13076](https://github.com/oven-sh/bun/issues/13076#issuecomment-2550735879).\n\n**Note**\n\nWhile this is a temporary fix, keep an eye on updates to css-tree or related dependencies for a permanent resolution. If you encounter additional issues or have insights into fixing this differently, feel free to open an issue!\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n### Acknowledgements\n\nThis project makes use of [static-templ](https://github.com/nokacper24/static-templ), which is licensed under the GNU General Public License (GPL). Users of this project must comply with the terms of the GPL license when using static-templ. Refer to the [static-templ repository](https://github.com/nokacper24/static-templ) for more information on its licensing terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fvitepress-templ-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findaco%2Fvitepress-templ-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fvitepress-templ-preview/lists"}