Skip to main content
The root Nika class describes the intended application-to-service boundary. It is useful for adapters, fixtures and interface work today.

Construct from explicit values

The constructor requires an HTTP or HTTPS origin and bearer token. It removes one trailing slash and uses native fetch by default.

Or read the environment

fromEnv() reads NIKA_URL and NIKA_TOKEN, then applies overrides. Missing required values fail at construction.

Transport policy

HTTP CLIENT · BOUNDED BY DEFAULT
Retries use exponential backoff and honor bounded Retry-After. Ordinary 4xx responses are not retried. Inject fetch for middleware or test fixtures, and use logger for metadata without recording authorization values.

Continue

Jobs

Submit, poll and cancel remote work.

Configuration

Every option and default.

Use LocalNika today

The production path against the released binary.

Server surfaces

Keep three server-shaped commands separate.