Firefighter

screenshot of Firefighter
svelte

Firestore REST API wrapper library worked on sveltekit + Cloudflare Workers

Overview

The "firefightertestfirefighter" is a Firestore REST API wrapper library that is designed to work on @sveltejs/kit + Cloudflare Workers. It allows for reading and writing to Firestore using a JWT authenticated by Firebase Authentication or Google OAuth. This library was created to address the limitation of the official Firestore library, which currently cannot be used on page.js and server.js of @sveltejs/kit + Cloudflare Workers.

Features

  • getlist: Retrieve a list of data from Firestore.
  • runQuery: Execute a query on Firestore.
  • patch: Update a document in Firestore using the set, update, or delete operation.
  • createDocument: Create a new document in Firestore.
  • commit: Perform batch operations or transactions in Firestore.
  • gRPC Listen: Listen for real-time updates from Firestore (similar to onSnapshot function in the official Firestore library).

Summary

The "firefightertestfirefighter" library is a Firestore REST API wrapper designed to be used with @sveltejs/kit + Cloudflare Workers. It provides functionality for reading and writing data to Firestore using a JWT authenticated by Firebase Authentication or Google OAuth. It offers features such as retrieving data, executing queries, updating documents, creating new documents, and performing batch operations or transactions. This library is a workaround for the limitations of the official Firestore library in the specified environment.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.