• Stars
    star
    1,311
  • Rank 35,065 (Top 0.8 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The JavaScript SDK for Parse Platform

parse-repository-header-sdk-js


Build Status CI alpha Build Status CI beta Build Status CI release Snyk Badge Coverage

Node Version auto-release

npm latest version npm beta version npm alpha version

Backers on Open Collective Sponsors on Open Collective Forum Twitter


A library that gives you access to the powerful Parse Server backend from your JavaScript app. For more information on Parse and its features, see the website, the JavaScript guide, the Cloud Code guide or API Reference.


Getting Started

The easiest way to integrate the Parse SDK into your JavaScript project is through the npm module. However, if you want to use a pre-compiled file, you can fetch it from unpkg. The development version is available at https://unpkg.com/parse/dist/parse.js, and the minified production version is at https://unpkg.com/parse/dist/parse.min.js.

Using Parse on Different Platforms

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 and React 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 the SERVER_RENDERING variable to prevent warnings at runtime.

To use the npm modules for a browser based application, include it as you normally would:

const Parse = require('parse');
// ES6 Minimized
import Parse from '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 environment
const Parse = require('parse/node');

For React Native applications, include 'parse/react-native.js':

// In a React Native application
const Parse = require('parse/react-native.js');

// On React Native >= 0.50 and Parse >= 1.11.0, set the Async
const AsyncStorage = require('@react-native-async-storage/async-storage');
Parse.setAsyncStorage(AsyncStorage);

For WeChat miniprogram, include 'parse/weapp':

// In a WeChat miniprogram
const Parse = require('parse/weapp');

If you want to use a pre-compiled file, you can fetch it from unpkg. The development version is available at https://unpkg.com/parse/dist/parse.weapp.js, and the minified production version is at https://unpkg.com/parse/dist/parse.weapp.min.js.

For TypeScript applications, install '@types/parse':

$ npm install @types/parse

Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to @types/parse

Compatibility

Node.js

Parse JS SDK is continuously tested with the most recent releases of Node.js to ensure compatibility. We follow the Node.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 14 14.19.1 April 2023 βœ… Yes
Node.js 16 16.19.0 September 2023 βœ… Yes
Node.js 18 18.12.1 April 2025 βœ… Yes
Node.js 19 19.3.0 June 2023 βœ… Yes

Upgrading to Parse SDK 2.0.0

With Parse SDK 2.0.0, gone are the backbone style callbacks and Parse.Promises.

We have curated a migration guide that should help you migrate your code.

3rd Party Authentications

Parse Server supports many 3rd Party Authenications. It is possible to linkWith any 3rd Party Authentication by creating a custom authentication module.

Experimenting

You can also use your own forks, and work in progress branches by specifying them:

npm install github:myUsername/Parse-SDK-JS#my-awesome-feature

And don't forget, if you plan to deploy it remotely, you should run npm install with the --save option.

Contributing

We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the Contributing to Parse Javascript SDK guide.

More Repositories

1

parse-server

Parse Server for Node.js / Express
JavaScript
20,674
star
2

parse-dashboard

A dashboard for managing Parse Server
JavaScript
3,728
star
3

Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
Objective-C
2,803
star
4

parse-server-example

Example of Parse Server using the express framework.
JavaScript
1,879
star
5

Parse-SDK-Android

The Android SDK for Parse Platform
Java
1,878
star
6

ParseReact

Seamlessly bring Parse data into your React applications.
JavaScript
1,295
star
7

ParseUI-iOS

A collection of a handy user interface components to be used with the Parse iOS SDK.
Objective-C
935
star
8

parse-php-sdk

The PHP SDK for Parse Platform
PHP
812
star
9

ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Java
592
star
10

Parse-SDK-Flutter

The Dart/Flutter SDK for Parse Platform
Dart
568
star
11

Parse-SDK-dotNET

Parse SDK for .NET, Xamarin, Unity.
C#
321
star
12

docs

Parse Platform docs
SCSS
314
star
13

Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
Swift
299
star
14

parse-embedded-sdks

The Embedded SDKs for the Parse Platform
C
246
star
15

ParseLiveQuery-iOS-OSX

Parse LiveQuery Client for iOS/OS X.
Swift
192
star
16

parse-cli

Go
118
star
17

ParseFacebookUtils-iOS

A set of utilities to integrate Facebook with the Parse iOS/tvOS SDK.
Objective-C
92
star
18

parse-server-push-adapter

A push notification adapter for Parse Server
JavaScript
84
star
19

parse-server-simple-mailgun-adapter

Used to send Parse Server password reset and email verification emails though Mailgun
JavaScript
84
star
20

ParseLiveQuery-Android

Parse LiveQuery client for Android.
Java
84
star
21

parse-server-s3-adapter

AWS S3 file storage adapter for Parse Server
JavaScript
76
star
22

parse-react

[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
TypeScript
70
star
23

Parse-SDK-Arduino

The Arduino SDK for the Parse Platform
C++
67
star
24

ParseFacebookUtils-Android

A utility library to authenticate ParseUsers with the Facebook SDK
Java
53
star
25

ParseTwitterUtils-iOS

A set of utilities to integrate Twitter with the Parse iOS SDK.
Objective-C
46
star
26

parse-server-fs-adapter

parse-server file system storage adapter
JavaScript
42
star
27

ParseInterceptors-Android

Parse Network Interceptor Debugging
Java
37
star
28

ParseTwitterUtils-Android

A utility library to authenticate ParseUsers with Twitter
Java
36
star
29

parse-blockchain

Blockchain (Ethereum) dApps development made easy with Parse Server (alpha)
TypeScript
36
star
30

parse-facebook-user-session

A Cloud Code module to facilitate logging into an express website with Facebook.
JavaScript
36
star
31

parse-server-gcs-adapter

parse-server adapter for Google Cloud Storage
JavaScript
29
star
32

parse-server-api-mail-adapter

API Mail Adapter for Parse Server
JavaScript
25
star
33

benchmark

Parse Server Continuous Benchmark
JavaScript
24
star
34

xctoolchain-archive

Common configuration files and scripts that are used to build our SDKs with Xcode.
Ruby
22
star
35

blog

Parse Community Blog
SCSS
18
star
36

parse-server-sqs-mq-adapter

Spread work queue accross cluster of parse servers using SQS
JavaScript
17
star
37

parse-community.github.io

Parse Platform GitHub Pages
SCSS
10
star
38

relay-examples

Parse-Server GraphQL Relay Todo
JavaScript
10
star
39

Governance

Details about the leadership & decision making process for the Parse Community
10
star
40

parse-server-conformance-tests

Conformance tests for parse-server adapters
JavaScript
7
star
41

parse-community-peril

Peril for the parse-community
TypeScript
6
star
42

.github

Default community health files for the Parse Community
4
star
43

release-automation-playground

A playground repo to experiment with release automation.
2
star
44

docs-tutorial-todoapp

A tutorial for developing a ToDo app with Parse Platform
1
star