nitro5 1.0.0

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.
@@ -0,0 +1,8 @@
1
+ export default {
2
+ server: { port: 3000 },
3
+ dev: { useVite: false },
4
+ cache: { enabled: true, ttl: 60 },
5
+ cors: { enabled: true, origin: "*" },
6
+ cacheTs: true,
7
+ dashboard: true
8
+ };
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "nitro5",
3
+ "version": "1.0.0",
4
+ "description": "Nitro5 is a next-generation hybrid web server framework built with Node.js and C++ that delivers ultra-fast performance, low latency, TypeScript/TSX support, ESBuild-powered builds, caching, Hot Module Replacement (HMR), and a scalable architecture designed for modern production web applications.",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "bin": {
8
+ "nitro5": "./index.js"
9
+ },
10
+ "scripts": {
11
+ "start": "node index.js",
12
+ "dev": "node index.js --dev",
13
+ "build": "node index.js --build",
14
+ "postinstall": "node .install.js",
15
+ "test": "node index.js --test",
16
+ "lint": "node index.js --lint"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/KhairyK/nitro5.git"
21
+ },
22
+ "homepage": "https://nitro5.opendnf.cloud/",
23
+ "bugs": {
24
+ "url": "https://github.com/KhairyK/nitro5/issues"
25
+ },
26
+ "funding": {
27
+ "type": "patreon",
28
+ "url": "https://patreon.com/Khairy47"
29
+ },
30
+ "keywords": [
31
+ "nitro5",
32
+ "web-server",
33
+ "framework",
34
+ "nodejs",
35
+ "typescript",
36
+ "tsx",
37
+ "react",
38
+ "bundler",
39
+ "hmr",
40
+ "cache",
41
+ "router",
42
+ "dashboard",
43
+ "cplusplus"
44
+ ],
45
+ "author": "KhairyK",
46
+ "license": "BSD-3-Clause",
47
+ "engines": {
48
+ "node": ">=18.0.0",
49
+ "npm": ">=9.0.0"
50
+ },
51
+ "dependencies": {
52
+ "chalk": "^5.4.1",
53
+ "chokidar": "^5.0.0",
54
+ "ms": "^2.1.3",
55
+ "node-addon-api": "^8.3.0",
56
+ "ora": "^8.0.1",
57
+ "ws": "^8.20.0"
58
+ },
59
+ "optionalDependencies": {
60
+ "vite": "^6.0.0"
61
+ }
62
+ }
package/public/app.tsx ADDED
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+
3
+ export function App() {
4
+ return (
5
+ <div>
6
+ <h1>Nitro5 + React 19 🚀</h1>
7
+ <p>Web server ready!</p>
8
+ </div>
9
+ );
10
+ }
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Nitro5 + React 19</title>
5
+ </head>
6
+ <body>
7
+ <div id="app"></div>
8
+ <script type="module" src="./main.tsx"></script>
9
+ </body>
10
+ </html>
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { createRoot } from "react-dom/client";
3
+ import { App } from "./app";
4
+
5
+ createRoot(document.getElementById("app")!).render(<App />);