Socket
Book a DemoInstallSign in
Socket

lang-firestore

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lang-firestore

Firestore query language basic support for the CodeMirror code editor

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
6
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

lang-firestore

Firestore query language support for the CodeMirror editor.

npm version npm downloads license GitHub Sponsors

Install

npm install lang-firestore

Usage

import { EditorState } from "@codemirror/state";
import { EditorView, basicSetup } from "codemirror";
import { firestore } from "lang-firestore";

new EditorView({
  state: EditorState.create({
    doc: 'db.collection("users").where("age", ">=", 21).get()',
    extensions: [basicSetup, firestore()],
  }),
  parent: document.querySelector("#app")!,
});

Features

  • Syntax highlighting for common Firestore query chains (db, collection, doc, where, orderBy, limit, pagination, mutations)
  • Operator words: in, not-in, array-contains, array-contains-any
  • Basic completions for Firestore API and operators

Contributing

PRs welcome. Run tests and build locally:

npm i
npm run test
npm run build

Sponsor

If you find this useful, consider sponsoring: github.com/sponsors/omar-dulaimi

License

MIT

Keywords

codemirror

FAQs

Package last updated on 22 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.