Registry / http-networking / kinvey-js-sdk

kinvey-js-sdk

JSON →
library8.0.0jsnpmunverified

The Kinvey JavaScript SDK (kinvey-js-sdk) provided a client-side interface for interacting with the Kinvey Mobile Backend as a Service (MBaaS) platform. Designed to simplify backend development, it offered functionalities like data storage, user management, authentication, and file storage, allowing developers to focus on front-end logic for web and mobile applications. The SDK aimed to provide a low-code approach, integrating with various JavaScript frameworks such as Angular, React, NativeScript, Vue, and HTML5. The current stable version, 8.0.0, was last published in mid-2020. However, the Kinvey platform, and by extension its SDKs, has been explicitly sunsetted and is no longer actively maintained or supported by Progress Software, with many related GitHub repositories archived since 2019 or early 2025. There is no ongoing release cadence.

npm install kinvey-js-sdk
INSTALL
IMPORT
SIG · KINVEY-JS-SDK
K
kinvey-js-sdk
http-networkingjavascriptv8.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

Kinvey
import * as Kinvey from 'kinvey-js-sdk';
const Kinvey = require('kinvey-js-sdk');
While CommonJS `require` might work in some older environments, the SDK ships with TypeScript declarations, implying a modern ESM setup is preferred. `Kinvey` is typically imported as a namespace.
DataStore
import { DataStore } from 'kinvey-js-sdk';
import DataStore from 'kinvey-js-sdk/DataStore';
Named imports are used for accessing core services like `DataStore`. Direct path imports for sub-modules are generally incorrect.
User
import { User } from 'kinvey-js-sdk';
The `User` service for authentication and user management is a commonly imported named export.

This quickstart demonstrates how to initialize the Kinvey SDK, log in (or sign up) a user, save data to a collection, and retrieve data using a query. It highlights core functionalities of the backend-as-a-service platform.

import * as Kinvey from 'kinvey-js-sdk'; const APP_KEY = process.env.KINVEY_APP_KEY ?? ''; const APP_SECRET = process.env.KINVEY_APP_SECRET ?? ''; async function initializeAndLogin() { try { if (!APP_KEY || !APP_SECRET) { throw new Error('Kinvey App Key and App Secret must be provided via environment variables.'); } // 1. Initialize Kinvey SDK await Kinvey.init({ appKey: APP_KEY, appSecret: APP_SECRET, // Optional: Set masterSecret if using a Node.js environment // masterSecret: process.env.KINVEY_MASTER_SECRET }); console.log('Kinvey SDK initialized successfully.'); // 2. Login a user (or signup) let user; try { user = await Kinvey.User.login('testuser', 'password123'); console.log(`User 'testuser' logged in:`, user.data); } catch (error) { if (error.statusCode === 401) { // User not found, attempt signup user = await Kinvey.User.signup('testuser', 'password123'); console.log(`User 'testuser' signed up and logged in:`, user.data); } else { throw error; } } // 3. Access a data collection const collection = Kinvey.DataStore.collection('myCollection'); // 4. Create and save a new entity const entity = await collection.save({ message: 'Hello Kinvey!', timestamp: new Date() }); console.log('Saved entity:', entity); // 5. Fetch entities const query = new Kinvey.Query(); query.greaterThan('timestamp', new Date(Date.now() - 24 * 60 * 60 * 1000)); // Last 24 hours const entities = await collection.find(query).toPromise(); console.log('Fetched entities:', entities); } catch (error) { console.error('Kinvey operation failed:', error.message || error); } } initializeAndLogin();
Debug
Known issues
breakingThe Kinvey platform has been officially sunsetted and is no longer actively supported or maintained by Progress Software. All users are advised to migrate to an alternative backend solution. This SDK will not receive further updates or security patches.
fix
Migrate your application's backend services to an alternative platform (e.g., AWS Amplify, Firebase, Back4App).
affects: >=1.0.0
deprecatedMany Kinvey-related GitHub repositories, including those for specific SDK shims (e.g., HTML5, NativeScript, Node.js), have been archived and are now read-only, indicating that these components are no longer in active development.
fix
Avoid starting new projects with Kinvey SDKs. For existing projects, plan for migration away from the Kinvey ecosystem.
affects: >=1.0.0
gotchaOlder versions of various Kinvey SDKs frequently used CommonJS `require()` syntax. While `kinvey-js-sdk` v8.0.0 provides TypeScript declarations, modern bundlers and Node.js environments may prefer or enforce ESM `import` statements.
fix
For new development or migration, always use ESM `import` syntax. If targeting older Node.js or non-transpiled environments, ensure your build process correctly handles CommonJS or dual packages.
affects: <8.0.0
Errors
Common errors & fixes
error: "The Authorization header in your request is malformed. An Authorization header should contain two parts separated by a space: a type (Basic or Kinvey) and a base64-encoded auth string.
Incorrectly formatted Authorization header in HTTP requests, often due to a missing space after 'Basic' or 'Kinvey' in the header string.
fix
Ensure the Authorization header string adheres strictly to the `Type Base64String` format, including the space, for example, `Authorization: Basic <base64-encoded-credentials>`.
Kinvey.init is not a function or is undefined
The Kinvey SDK was not properly initialized or imported. This often happens if `Kinvey` is imported incorrectly (e.g., default import instead of namespace import) or if `Kinvey.init()` is called before the SDK is fully loaded.
fix
Ensure `import * as Kinvey from 'kinvey-js-sdk';` is used for the main entry point and that `Kinvey.init()` is called only after the SDK module has been fully evaluated. Check for typos in method names.
Upgrade
Version history
8.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
homepagenull
kinvey-js-sdk — npm install kinvey-js-sdk · libregistry