Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @firebase/firestore with all npm packages installed. Try it out:

require("@firebase/app/package.json"); // @firebase/app is a peer dependency. require("@firebase/app-types/package.json"); // @firebase/app-types is a peer dependency. var firestore = require("@firebase/firestore")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@firebase/firestore v1.16.3

The Cloud Firestore component of the Firebase JS SDK.


This is the Cloud Firestore component of the Firebase JS SDK.

This package is not intended for direct usage, and should only be used via the officially supported firebase package.

If you are developing a Node.js application that requires administrative access to Cloud Firestore, use the @google-cloud/firestore Server SDK with your developer credentials.


You can then use the firebase namespace exposed by this package as illustrated below:

ES Modules

import firebase from '@firebase/app';
import '@firebase/firestore'

// Do stuff w/ `firebase` and `firebase.firestore`

CommonJS Modules

const firebase = require('@firebase/app').default;

// Do stuff with `firebase` and `firebase.firestore`


For comprehensive documentation please see the Firebase Reference Docs.


See Contributing to the Firebase SDK for general information about contributing to the firebase-js-sdk repo and Contributing to the Cloud Firestore Component for details specific to the Cloud Firestore code and tests.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free