Skip to content
Back to skills

Firebase Platform

ASecurity

Firebase services, platform guides, and tips for integration with Angular projects.

  • 225 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
databasestypescriptrustsqlreactangulargcpapidatabasesecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill firebase-platform --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Firebase Platform?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Firebase Platform
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-firebase-platform/badge)](https://www.skillsdirectory.com/skills/neversight-firebase-platform)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: firebase-platform
description: Firebase services, platform guides, and tips for integration with Angular projects.
version: 1.0.0
tags: [firebase, platform]
---

# SKILL: Firebase Platform Master Guide

Consolidated reference for AngularFire SDK and Firebase Data Connect (GQL + PostgreSQL).

---

## 🔥 1. AngularFire Core (SDK)

### Real-time Database & Firestore

- **Reactive Pattern**: Use `collectionData`, `docData` and convert to signals using `toSignal()`.
- **Dependency Injection**: Use `inject(Firestore)`, `inject(Auth)`, etc.
- **Security**: Security rules are the primary defense. Never trust the client.

### Authentication

- **State management**: Track `user` status in an `AuthStore`.
- **Guards**: Use functional `canActivate` guards with `Auth` service.

---

## ⚡ 2. Firebase Data Connect (GQL + PostgreSQL)

### Schema Workflow

- **Schema First**: Define `@table` in `schema.gql`.
- **Generation**: Run `firebase dataconnect:sdk:generate` after schema changes.
- **Strict Types**: Use the generated SDK; never edit `dataconnect-generated/`.

### Directive Rules

- `@table`: Required for all database entities.
- `@auth`: Required for all types (No public access allowed).
- `@default`: Use for UUIDs (`uuidV4()`) and timestamps (`request.time`).
- `@col(name: "...")`: Map JSON keys to DB columns if different.

---

## 🏗️ 3. Integration with NgRx Signals

- **Query Wrapping**:
  ```typescript
  export const MyStore = signalStore(
    withMethods((store, dc = inject(DataConnectService)) => ({
      loadData: rxMethod<void>(
        pipe(
          switchMap(() => dc.myDataQuery()),
          tapResponse({
            next: (res) => patchState(store, { data: res.data }),
            error: console.error,
          }),
        ),
      ),
    })),
  );
  ```

---

## 🔒 4. Security & Performance

- **Secrets**: Store Firebase API keys and config in `environment.ts`.
- **Query Design**: Fetch only required fields in GraphQL.
- **Auth Pattern**: `@auth(rules: [{ allow: OWNER, ownerField: "userId" }])`.
- **No Hardcoded Secrets**: Secrets must stay in environment variables or GCP Secret Manager.

---

> **Law**: After any schema change, the SDK MUST be regenerated before editing application logic.

Files in this skill

  • SKILL.md2.2 KB
  • description_ar.txt114 B
  • description_cn.txt73 B
  • description_de.txt88 B
  • description_en.txt84 B
  • description_es.txt102 B
  • description_fr.txt94 B
  • description_it.txt97 B
  • description_ja.txt124 B
  • description_ko.txt93 B
  • description_ru.txt145 B
  • description_tw.txt73 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.