{"repo":"kravetsone/elysia-autoload","free":true,"listed":false,"github":"https://github.com/kravetsone/elysia-autoload","clone":"git clone https://github.com/kravetsone/elysia-autoload.git","description":"Plugin for Elysia which autoload all routes in directory and code-generate types for Eden","language":"TypeScript","stars":143,"topics":["autoload","bun","directory","elysiajs","nextjs","plugin","router","elysia-plugin"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"elysia-autoload Plugin for Elysia which autoload all routes in directory and code-generate types for Eden with Bun.build and Node adapter support! Installation Start new project with create-elysiajs and select Autoload in plugins Manual Usage Register the plugin With custom options [!IMPORTANT] We strictly recommend use await when registering plugin Read more about Lazy-load plugins Create route Directory structure Guide how elysia-autoload match routes - /routes/index.ts → / - /routes/posts/index.ts → /posts - /routes/posts/[id].ts → /posts/:id - /routes/users.ts → /users - /routes/likes/[...].ts → /likes/\\ - /routes/domains/@[...]/index.ts → /domains/@\\ - /routes/frontend/index.tsx → /frontend - /routes/events/(post).ts → /events - /routes/events/(get).ts → /events Options Key Type Default Description -------- ------------------------------------------ ---------------------------------- ----------------------------------------------------------------------------------- pattern? string \"\\ \\ \\/\\ .{ts,tsx,js,jsx,mjs,cjs}\" Glob patterns dir? string \"./routes\" The folder where routes are located prefix? string Prefix for routes types? boolean \\ Types Options false Options to configure type code-generation. if boolean - enables/disables generation schema? Function Handler for providing routes guard schema ignore? string \\ string[] Glob pattern(s) to ignore when discovering files Types Options Key Type Default Description ---------- ------------------ ------------------- ---------","default_branch":null,"files":null,"tree":[],"storefront":"/r/kravetsone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kravetsone/elysia-autoload/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}