\nI'd really appreciate it if the team considers a more flexible and intuitive API.\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [x] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [x] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3137,3140],{"name":3138,"color":3139},"enhancement","8DEF37",{"name":3141,"color":3142},"pending triage","E99695",29275,"nuxt","open","Better API for Auto Imports Customization","2024-10-08T08:40:01Z","https://github.com/nuxt/nuxt/issues/29275",0.64939064,{"description":3151,"labels":3152,"number":3157,"owner":3144,"repository":3144,"state":3145,"title":3158,"updated_at":3159,"url":3160,"score":3161},"### Describe the feature\r\n\r\nA common practice is to separate the logic between files and keep the test files together with the code.\r\nI suggest to scan index files within the subdirectories for composables, utils and middlewares by default, how it is currently done for modules and plugins (but is deprecated https://github.com/nuxt/nuxt/issues/25331 😞 ), where the auto-registered files patterns are:\n\n```sh\nmodules/*/index.ts\nmodules/*.ts\n```\r\n\r\n### Motivation:\r\nI recently created another Nuxt project and without suspecting it, created a folder with an index file inside composables, but of course it did not work. So I had to do what I do for all new Nuxt projects::\r\n```ts\r\n dirs: [\r\n 'composables/*/*.ts',\r\n 'utils/*/*.ts'\r\n ],\r\n```\r\n\r\nWhich seems unnatural and, to me, doesn't really fit with Nuxt's title — \"The **Intuitive** Vue framework.\"\r\nThe typical folders structure I usually work with:\r\n```sh\r\ncomposables/\r\n useHost/\r\n tests\r\n index.ts\r\n useMask/\r\n tests\r\n index.ts\r\n...\r\n```\r\n\r\n### Additional information\r\n\r\n- [X] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3153,3154],{"name":3138,"color":3139},{"name":3155,"color":3156},"workaround available","11376d",25831,"Scan index files within subdirectories for composables, utils and middlewares","2024-06-30T11:05:44Z","https://github.com/nuxt/nuxt/issues/25831",0.67412806,{"labels":3163,"number":3171,"owner":3144,"repository":3144,"state":3172,"title":3173,"updated_at":3174,"url":3175,"score":3176},[3164,3165,3168],{"name":3138,"color":3139},{"name":3166,"color":3167},"3.x","29bc7f",{"name":3169,"color":3170},"dx","C39D69",12789,"closed","composable auto import improvements","2023-01-19T16:40:15Z","https://github.com/nuxt/nuxt/issues/12789",0.6153614,{"labels":3178,"number":3179,"owner":3144,"repository":3144,"state":3172,"title":3173,"updated_at":3180,"url":3181,"score":3182},[],12858,"2023-01-19T16:38:31Z","https://github.com/nuxt/nuxt/issues/12858",0.6264642,{"labels":3184,"number":3185,"owner":3144,"repository":3144,"state":3172,"title":3173,"updated_at":3186,"url":3187,"score":3182},[],12942,"2023-01-19T16:39:56Z","https://github.com/nuxt/nuxt/issues/12942",{"labels":3189,"number":3193,"owner":3144,"repository":3144,"state":3172,"title":3194,"updated_at":3195,"url":3196,"score":3197},[3190,3191,3192],{"name":3138,"color":3139},{"name":3166,"color":3167},{"name":3169,"color":3170},13383,"expose app and app types as `nuxt3/app`","2023-01-19T16:54:17Z","https://github.com/nuxt/nuxt/issues/13383",0.62808186,{"description":3199,"labels":3200,"number":3202,"owner":3144,"repository":3144,"state":3172,"title":3203,"updated_at":3204,"url":3205,"score":3206},"Currently it is required to manually import composables on the server level. \n\nSomething like\n`import { defaultx } from '../../app/composables/useDefaultx'`\n\nTried\n| Folder | Auto-imported? | Note |\n|-----------------------|----------|----------|\n| `app/composables/` | ❌ Only on client | Why also not auto import on the server?\n| `shared/composables/` | ⚠️ No | Couldn't get it to work? \n| `shared/utils/` | ✅ Yes | On server and on client in the script section\n| `server/utils/` | ✅ Only on server | Perhaps also share it with the client by rendering the server/api so useFetch is no longer required? Similar to trpc\nAnd also tried adding in **nuxt.config.ts**\n```\n imports: {\n dirs: [\n 'app/composables', // 👈 enable for server too\n ],\n },\n```\n\nWould it not make sense to automatically import `app/composables` on server level? Similar to `server/utils`",[3201],{"name":3141,"color":3142},32770,"[v4] Composables are not shared with server via auto-import","2025-07-28T13:26:30Z","https://github.com/nuxt/nuxt/issues/32770",0.64005303,{"description":3208,"labels":3209,"number":3217,"owner":3144,"repository":3144,"state":3172,"title":3218,"updated_at":3219,"url":3220,"score":3221},"### Describe the feature\n\nI've been enjoying the DX of auto-imported components and composables ever since the release of those packages for Vue and I'm happy it's auto-configured for Nuxt.\r\n\r\nAs for the next step, would it be possible to **selectively** auto-import types? There's no point in auto-importing everything because large apps would just have too many types clogging the IDE and there would be naming collisions all over the place. But perhaps by adding a `.global` or `.auto` to a type file's name, exported types in those files could be safely auto-imported. It would certainly be a handy tool for those ubiquitous types that tend to sneak into many of your components.\r\n\r\nI'm sure there's pros and cons to this, so let's discuss 💬\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3210,3211,3214],{"name":3138,"color":3139},{"name":3212,"color":3213},"discussion","538de2",{"name":3215,"color":3216},"🍰 p2-nice-to-have","0E8A16",27719,"Types auto-import","2024-08-09T09:39:34Z","https://github.com/nuxt/nuxt/issues/27719",0.6473772,{"description":3223,"labels":3224,"number":3229,"owner":3144,"repository":3144,"state":3172,"title":3230,"updated_at":3231,"url":3232,"score":3233},"Nuxt 3 uses Vue 3 with Composition API and [unjs/unctx](https://github.com/unjs/unctx) for supporting composables with the implicit context in nuxtApp (plugins, middleware) and nuxt kit too.\r\n\r\nHowever, there are many cases in this needs a better explanation of how it works internally to understand why an issue like [nuxt instance unavailable](https://github.com/nuxt/framework/issues?q=nuxt+instance+unavailable) happens and how to fix it with proper usage.\r\n\r\nI've made an outline story in https://github.com/nuxt/nuxt.js/issues/14269 which can probably be used as a basis to initiate this concept page.",[3225,3228],{"name":3226,"color":3227},"documentation","5319e7",{"name":3166,"color":3167},14723,"Document composables concept","2023-09-19T20:24:18Z","https://github.com/nuxt/nuxt/issues/14723",0.6512826,{"description":3235,"labels":3236,"number":3242,"owner":3144,"repository":3144,"state":3172,"title":3243,"updated_at":3244,"url":3245,"score":3246},"### Environment\n\n\"nuxt\": \"^3.6.2\",\r\n\n\n### Reproduction\n\nHi!\r\nI try to add a composable under the composables folder and call it into a vue file.\n\n### Describe the bug\n\nIt returns 500 Not Defined\r\n\r\n\u003Cimg width=\"1047\" alt=\"Screenshot 2023-07-14 at 10 11 07\" src=\"https://github.com/nuxt/nuxt/assets/38940340/b6569e6f-10b3-453d-8a7d-3f688656bfb7\">\r\n\r\nThanks and kind regards,\r\n\r\nDavide\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3237,3238,3239],{"name":3166,"color":3167},{"name":3141,"color":3142},{"name":3240,"color":3241},"needs reproduction","FBCA04",22136,"Composables autoimport doesn't works in my \"nuxt\": \"^3.6.2\",","2023-10-20T10:59:25Z","https://github.com/nuxt/nuxt/issues/22136",0.65416396,["Reactive",3248],{},["Set"],["ShallowReactive",3251],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJKcG6VA0h3qcYqv1m6zkDEXL6dw0CjlfOqcNEn6KMd0":-1},"/nuxt/nuxt/11862"]