{"library":"vite-plugin-pagefiles","type":"library","category":null,"description":"Vite plugin that statically extracts metadata from React component files and generates client-side route declarations, currently at version 0.4.2 (pre-release, API unstable). Instead of file-system-based routing, this plugin allows developers to define routes inline within component files using a Meta export, providing flexibility in code organization. It generates a virtual module 'virtual:pagefiles' containing route configurations. Currently supports React only, but extensible to other frameworks. Releases are on GitHub but no fixed cadence. Key differentiator: route metadata lives inside the component file, not the file path, decoupling URL structure from file organization.","language":"javascript","status":"active","version":"0.4.2","tags":["javascript","vite","react","pagefiles","typescript"],"install":[{"cmd":"npm install vite-plugin-pagefiles","imports":["import pagefiles from 'vite-plugin-pagefiles'","import type { PagefileMetaFn } from 'vite-plugin-pagefiles'","import routes from 'virtual:pagefiles'"]},{"cmd":"yarn add vite-plugin-pagefiles","imports":[]},{"cmd":"pnpm add vite-plugin-pagefiles","imports":[]}],"homepage":null,"github":"https://github.com/awhitty/vite-plugin-pagefiles","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-pagefiles","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-plugin-pagefiles/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Thu Jun 18","next_check":"Sun Jul 26","install_tag":null}}