Registry / devops / nayota-cfg-sdk

nayota-cfg-sdk

JSON →
library0.9.79jsnpmunverified

Nayota Config SDK provides a REST API client for interacting with the Nayota platform's configuration server. Version 0.9.79 is currently in early development; release cadence is not documented. It simplifies authentication token management and server load balancing for configuration services. Key differentiator: direct integration with nayota-config-server for managing admin tokens and server endpoints via a simple config method.

npm install nayota-cfg-sdk
INSTALL
IMPORT
SIG · NAYOTA-CFG-SDK
N
nayota-cfg-sdk
devopsjavascriptv0.9.79
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import NayotaSdk from 'nayota-cfg-sdk'
const NayotaSdk = require('nayota-cfg-sdk')
Package is ESM-only; CommonJS require will fail.
config
import NayotaSdk from 'nayota-cfg-sdk' NayotaSdk.config({...})
import { config } from 'nayota-cfg-sdk'
config is a method on the default export, not a named export.
NayotaSdk.config
import NayotaSdk from 'nayota-cfg-sdk'
import * as NayotaSdk from 'nayota-cfg-sdk'
Use default import, not namespace import.

Initializes the Nayota SDK with authentication token storage key and configuration server URLs.

import NayotaSdk from 'nayota-cfg-sdk' NayotaSdk.config({ authTokenName: 'Admin-Token', configServer: 'http://localhost:8080/api-v1', configServerWeb: 'http://localhost:8080/api-v1' })
Debug
Known issues
breakingPackage does not export anything other than a default export with a config method. Methods like getConfig(), setConfig() are absent in 0.9.79.
fix
Check package documentation for additional API methods; current version may be incomplete.
affects: 0.9.79
gotchaconfigServerWeb must be set even if identical to configServer; omitting it may cause load balancing issues.
fix
Always provide both configServer and configServerWeb parameters.
affects: *
gotchaauthTokenName is stored as a cookie key; ensure the cookie path and security constraints are compatible with your application.
fix
Verify cookie settings (HttpOnly, Secure, SameSite) after calling config.
affects: *
Errors
Common errors & fixes
TypeError: NayotaSdk.config is not a function
Using named import instead of default import for NayotaSdk
fix
Change to 'import NayotaSdk from 'nayota-cfg-sdk''
Module not found: Can't resolve 'nayota-cfg-sdk'
Package not installed or npm install failed
fix
Run 'npm install nayota-cfg-sdk'.
Cannot read properties of undefined (reading 'config')
Attempting to call config on a namespace import (import * as NayotaSdk)
fix
Use default import pattern: import NayotaSdk from 'nayota-cfg-sdk'
Upgrade
Version history
0.9.79latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
nayota-cfg-sdk — npm install nayota-cfg-sdk · libregistry