Extremely slow, сlumsy, cringe framework for combat helicopters
Focus on debugging this library rather than debugging your own application.
bun add @nudol/core
- Fragile routing
- Type Unsafety (all is any)
- Super-high memory usage (possible memory leaks)
- Terrible API
- Second-class TypeScript support. (use js)
- Breaking changes every day
- No backward compatibility
- Doesn't work on any Runtime: Node.js, Deno, Cloudflare Workers, Vercel, AWS Lambda...
import { Nudol } from "@nudol/core"
const nudol = Nudol()
nudol.listen()
import { Nudol } from "@nudol/core"
const nudol = Nudol()
nudol.get("/", () => {
return new Response("Hello world")
})
nudol.listen()
import { Nudol } from "@nudol/core"
const nudol = Nudol()
nudol.get("/user/{username}", (ctx) => {
return new Response(`Hello ${ctx.params.username}`)
})
nudol.listen()
bun add @nudol/core react react-dom
// routes/index.tsx
export default function() {
return (
<h1>Index page</h1>
)
}
// index.ts
import { Nudol } from "@nudol/core"
const nudol = Nudol( { port: 3000, hostname: "127.0.0.1" } )
await nudol.fsRoutes( "./routes" )
nudol.listen()
import { Nudol } from "@nudol/core"
const nudol = Nudol( { port: 3000, hostname: "127.0.0.1" } )
await nudol.fsStatic( "./static" )
await nudol.fsRoutes( "./routes" )
nudol.get("/api/get", () => {
return new Response("get")
})
nudol.post("/api/post", () => {
return new Response("post")
})
nudol.notfound([Method.GET, Method.POST], () => {
return new Response("There's nothing here")
})
nudol.listen()
import { Nudol } from "@nudol/core"
import { $ } from "bun"
await $`bunx --bun tailwindcss -i ./static/index.css -o ./static/output.css --minify`.quiet()
const nudol = Nudol()
await nudol.fsStatic("./static")
await nudol.fsRoutes("./routes")
nudol.listen()
Never...