Skip to content
Nile Js
Features

Features

Validate actions, apply access policies and add the services your application needs

Read Markdown ↗

Choose the feature your next operation needs. For a complete workflow, start with the examples.

FeatureUse it to
Validation and errorsReject bad input with Zod and return expected failures as Results
Authentication and hooksProtect actions with JWT, enforce roles and run checks before or after an action
Context and loggingRead shared resources, the current session and execution details, and write structured logs
Queues, debounce and throttleLimit concurrency, collapse repeated calls and cap how often work runs
TelemetrySend traces and metrics for actions to an OpenTelemetry collector
WebSocketsPublish typed topic messages to subscribers that pass your access policy
Cron jobsRun recurring business work on calendar, interval or one-time schedules
Database modelsCreate, read, update and delete rows through typed model helpers
API discovery and schemasLet trusted tools list services and read action input schemas
HTTP, WebSocket and direct callsCall the same action from HTTP, a socket client or your own backend code
Retries and utilitiesRetry external calls with jitter, store values briefly and wrap database failures
Rate limitingBound how often a client can call an action or an HTTP route
File uploadsAccept multipart files with size, count and type limits
Readiness and shutdownReport readiness to a platform and stop new work before the process exits