Next.js SDK
Use @rakomi/node for the fastest integration with automatic token verification, middleware, and type safety.
Start with SDK →
Welcome to Rakomi! Choose the quickstart that matches your stack:
Next.js SDK
Use @rakomi/node for the fastest integration with automatic token verification, middleware, and type safety.
Start with SDK →
REST API
Use the REST API directly from any language or framework. Verify JWTs via the JWKS endpoint. Start with REST API →
| Next.js SDK | REST API | |
|---|---|---|
| Best for | Node.js / Next.js apps | Any language or framework |
| Setup time | ~3 minutes | ~5 minutes |
| Token verification | Automatic (middleware) | Manual (JWKS) |
| Type safety | Built-in TypeScript types | Bring your own |
| Error handling | Result pattern (never throws) | HTTP status codes |
Both paths give you the same authentication capabilities. The SDK simply wraps the REST API with convenience methods.