{"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"],"last_verified":"Mon Apr 27","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":null}