New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@owlprotocol/contracts-api-firebase

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@owlprotocol/contracts-api-firebase

Standalone package for firebase logic.

  • 2.0.6
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Contracts API Firebase

Standalone package for firebase logic.

Enables the following features:

  • Swap between firebase web (client side) & firebase-admin sdk (server side)
  • Data models defined in Typescript
  • Zod validators for data models
  • Security rules firebase web
  • Utility functions for CRUD operations

Models

Exported under @owlprotocol/contracts-api-firebase/models. Includes interfaces of collection entities and zod validators.

Web

Exported under @owlprotocol/contracts-api-firebase/web. Integration for firebase SDK that runs client-side. User is authenticated with a token and is bound by firestore security rules.

Firestore Security Rules

https://firebase.google.com/docs/firestore/security/get-started#writing_rules https://firebase.google.com/docs/firestore/security/rules-conditions

TODO: CHANGE THIS All true

Storage Bucket Security Rules

TODO: CHANGE THIS All true

Admin

Exported under @owlprotocol/contracts-api-firebase/admin. Integration for firebase-admin SDK that runs server-side. Admin SDK has full authority and ignores all security rules. Admin is authenticated using a service accouint.

Emulators

The purpose of this package is also to have proper emulator config to be able to run local tests efficiently. We connect emulators for Firestore, Auth, Storage SDKs.

https://firebase.google.com/docs/emulator-suite/connect_firestore https://firebase.google.com/docs/emulator-suite/connect_auth https://firebase.google.com/docs/emulator-suite/connect_storage

FAQs

Package last updated on 17 Dec 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc