nforce is a Node.js REST API wrapper for Force.com, Database.com, and Salesforce.com, providing a simple interface for OAuth authentication, CRUD operations on sObjects, querying, and streaming. Version 1.13.0 is the latest stable release; the project has been in maintenance mode since 2018 with no recent updates. It supports both single-user and multi-user OAuth modes and offers intelligent sObjects that track field changes for efficient updates. Compared to alternatives like jsforce, nforce is lighter but lacks support for newer Salesforce APIs (e.g., REST API v50+). Requires Node.js >=8.0.0, CommonJS, and does not include TypeScript definitions natively.
npm install nforceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This snippet shows how to require nforce, create a connection, authenticate using username/password flow, create an Account sObject, and insert it into Salesforce.
Always provide a callback to authenticate() or use .then() on the returned promise.
Upgrade Node.js to version 8 or higher.
Always pass { oauth: userOauth } as part of the options object to insert/update/query/etc.Ensure your createConnection call includes clientId, clientSecret, and redirectUri.
Use const nforce = require('nforce') instead of import nforce from 'nforce'.Verify the clientId and clientSecret in your Salesforce connected app settings.
No dependency data recorded yet.