nuxt-roost 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nuxt-roost might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +33 -0
- package/assets/icon.png +0 -0
- package/assets/logo.png +0 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nuxt-roost
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/nuxt-roost/roost/main/assets/logo.png" alt="Nuxt Roost" width="320" />
|
|
4
|
+
|
|
5
|
+
# nuxt-roost
|
|
6
|
+
|
|
7
|
+
**NestJS-style APIs for Nuxt** — decorated controllers, guards and DI with **no `reflect-metadata`**.
|
|
8
|
+
|
|
9
|
+
[](https://github.com/nuxt-roost/roost)
|
|
10
|
+
[](https://github.com/nuxt-roost/roost/blob/main/LICENSE)
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
> 🚧 **Coming soon.** This name is reserved while the project is in active development. The API is not stable yet — `npm i nuxt-roost` will give you this placeholder until the first real release.
|
|
15
|
+
|
|
16
|
+
## What it is
|
|
17
|
+
|
|
18
|
+
Write NestJS-looking decorated classes — `@Controller`, `@Get`, `@UseGuards`, `@Injectable` — on top of Nitro. At **build time**, a [ts-morph](https://ts-morph.com) codegen reads the class AST (it never executes the decorators) and emits two things:
|
|
19
|
+
|
|
20
|
+
- the Nitro **file-based route delegates**, one per route, and
|
|
21
|
+
- the [awilix](https://github.com/jeffijoe/awilix) **dependency-injection manifest**, derived from your constructor parameter types.
|
|
22
|
+
|
|
23
|
+
There is **no runtime reflection**. NestJS and tsyringe read constructor types at runtime via `reflect-metadata`; Roost reads them at build time and emits explicit factories, so at runtime there is nothing to reflect on. Decorators exist only as build-time annotations and run as no-ops.
|
|
24
|
+
|
|
25
|
+
The result: NestJS authoring ergonomics — co-located scope, guards, and validation, with a generated composition root that scales for free — on Nitro's file-based router, build, and edge story unchanged.
|
|
26
|
+
|
|
27
|
+
## Status
|
|
28
|
+
|
|
29
|
+
Follow development at **[github.com/nuxt-roost/roost](https://github.com/nuxt-roost/roost)**. Watch the repo for the first release.
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
[MIT](https://github.com/nuxt-roost/roost/blob/main/LICENSE) © nuxt-roost
|
package/assets/icon.png
ADDED
|
Binary file
|
package/assets/logo.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nuxt-roost",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "NestJS-style APIs for Nuxt — decorated controllers, guards and DI with no reflect-metadata, wired at build time. Work in progress.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nuxt",
|
|
7
|
+
"nuxt-module",
|
|
8
|
+
"nitro",
|
|
9
|
+
"nestjs",
|
|
10
|
+
"decorators",
|
|
11
|
+
"controllers",
|
|
12
|
+
"dependency-injection",
|
|
13
|
+
"di",
|
|
14
|
+
"awilix",
|
|
15
|
+
"codegen",
|
|
16
|
+
"ts-morph",
|
|
17
|
+
"typescript",
|
|
18
|
+
"api"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://github.com/nuxt-roost/roost#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/nuxt-roost/roost/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/nuxt-roost/roost.git"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "John Campion <john@brightshore.com>",
|
|
30
|
+
"type": "module",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"README.md",
|
|
36
|
+
"assets"
|
|
37
|
+
]
|
|
38
|
+
}
|