Skip to content

Raiko.js 1.0.0

Choose a tag to compare

@kwy404 kwy404 released this 13 Nov 09:16
· 11 commits to main since this release

Backend and frontend in one file tree. Every runtime.

npx create-raiko@latest my-app
# or
bun create raiko my-app

First release.

  • Core: radix router with a static fast path, typed context, lifecycle hooks with local and global scope, plugins, groups, mount, t schemas with coercion and Standard Schema support, RFC 9457 errors.
  • Responses: JSON, text, TSX, SSE from generators, streams, files, status() typed per code.
  • App router: page, layout, loading, error, not-found, forbidden, unauthorized, route and socket files; metadata, actions, revalidate, middleware, locales, protected pages, sitemap and robots, dev overlay and DevTools.
  • Components: Link, Image, Script, Head, JsonLd, SkipLink, Form.
  • WebSockets on Bun, Node (own RFC 6455), Deno and Workers; rooms; validation; ECDH and AES-GCM encryption with replay protection; WebRTC P2P.
  • Auth: OAuth with PKCE, credentials with PBKDF2, TOTP 2FA, JWT sessions.
  • Admin panel with permissions per role and action, adapters for Kastor, Prisma and Drizzle.
  • Email with TSX templates, preview, and Resend, Postmark, SendGrid and SMTP transports.
  • i18n with typed keys and plurals.
  • Plugins: cors, secureHeaders, rateLimit, csrf, logger, requestId, compress, etag, responseCache, health, staticFiles, openapi.
  • Typed client, React and Vue hooks, Vite plugin, raiko CLI, create-raiko with 11 tested templates.
  • Performance: compiled fast paths per route, context free constant routes, Bun native routes, cluster mode.

Benchmarks (1 vCPU, median of 3 rounds): the same server rendered page is 24x faster than Next.js 15 on the same Node (57x on Bun). Against Elysia 1.4 on raw API routes it wins on text, ties on JSON body and loses on params. Full table and code in the README and in bench/.

Security: two independent audits found 21 issues before release; all are fixed and covered by tests in test/security/.

Website: https://kwy404.github.io/Raiko.js/ · Docs: https://kwy404.github.io/Raiko.js/docs/ · Video: https://kwy404.github.io/Raiko.js/video/