Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork601
The JavaScript SDK for Parse Platform
License
parse-community/Parse-SDK-JS
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A library that gives you access to the powerful Parse Server backend from your JavaScript app. For more information on Parse and its features, seethe website,the JavaScript guide,the Cloud Code guide orAPI Reference.
Parse JS SDK is compatible with the following versions of Parse Server.
| Parse JS SDK | Parse Server |
|---|---|
| >= 4.0.0 < 5.0.0 | >= 6.0.0 < 7.0.0 |
| >= 5.0.0 | >= 7.0.0 |
Parse JS SDK is continuously tested with the most recent releases of Node.js to ensure compatibility. We follow theNode.js Long Term Support plan and only test against versions that are officially supported and have not reached their end-of-life date.
| Version | Latest Version | End-of-Life | Compatible |
|---|---|---|---|
| Node.js 18 | 18.20.3 | April 2025 | ✅ Yes |
| Node.js 20 | 20.15.0 | April 2026 | ✅ Yes |
| Node.js 22 | 22.4.0 | April 2027 | ✅ Yes |
| Node.js 24 | 24.0.0 | April 2028 | ✅ Yes |
The easiest way to integrate the Parse SDK into your JavaScript project is through thenpm module.However, if you want to use a pre-compiled file, you can fetch it fromunpkg. The development version is available athttps://unpkg.com/parse/dist/parse.js, and the minified production version is athttps://unpkg.com/parse/dist/parse.min.js.
The JavaScript ecosystem is wide and incorporates a large number of platforms and execution environments. To handle this, the Parse npm module contains special versions of the SDK tailored to use in Node.js andReact Native environments. Not all features make sense in all environments, so using the appropriate package will ensure that items like local storage, user sessions, and HTTP requests use appropriate dependencies. For server side rendered applications, you may set theSERVER_RENDERING variable to prevent warnings at runtime.
To use the npm modules for a browser based application, include it as you normally would:
constParse=require('parse');// ES6 MinimizedimportParsefrom'parse/dist/parse.min.js';
For web worker or browser applications, indexedDB storage is available:
Parse.CoreManager.setStorageController(Parse.IndexedDB);
For server-side applications or Node.js command line tools, include'parse/node':
// In a node.js environmentconstParse=require('parse/node');
For React Native applications, include'parse/react-native.js':
// In a React Native applicationconstParse=require('parse/react-native.js');// On React Native >= 0.50 and Parse >= 1.11.0, set the AsyncconstAsyncStorage=require('@react-native-async-storage/async-storage');Parse.setAsyncStorage(AsyncStorage);
For WeChat miniprogram, include'parse/weapp':
// In a WeChat miniprogramconstParse=require('parse/weapp');
If you want to use a pre-compiled file, you can fetch it fromunpkg. The development version is available athttps://unpkg.com/parse/dist/parse.weapp.js, and the minified production version is athttps://unpkg.com/parse/dist/parse.weapp.min.js.
The SDK has aCore Manager that handles all configurations and controllers. These modules can be swapped out for customization before you initialize the SDK. For full list of all available modules take a look at theCore Manager Documentation.
// Configuration exampleParse.CoreManager.set('REQUEST_ATTEMPT_LIMIT',1)// Controller exampleParse.CoreManager.setRESTController(MyRESTController);
Parse Server supports many3rd Party Authenications. It is possible tolinkWith any 3rd Party Authentication by creating acustom authentication module.
You can also use your own forks, and work in progress branches by specifying them:
npm install github:myUsername/Parse-SDK-JS#my-awesome-featureAnd don't forget, if you plan to deploy it remotely, you should runnpm install with the--save option.
We really want Parse to be yours, to see it grow and thrive in the open source community. Please see theContributing to Parse Javascript SDK guide.
About
The JavaScript SDK for Parse Platform
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
