moai-platform-database-cloud

Guides selection and setup of Neon, Supabase, and Firestore cloud databases.

2|Updated May 27, 2026
One-click install
npx skills add https://github.com/yekinya/moai-novel --skill moai-platform-database-cloud-yekinya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-platform-database-cloud
Source: https://github.com/yekinya/moai-novel/tree/main/moai-novel/.claude/skills/moai-platform-database-cloud
Command: npx skills add https://github.com/yekinya/moai-novel --skill moai-platform-database-cloud-yekinya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing and configuring a cloud database is difficult when each platform (Neon, Supabase, Firestore) has different scaling models, security mechanisms, and pricing structures. This Skill consolidates decision guidance and setup patterns so you pick the right platform and configure it correctly the first time. ## Core Features & Use Cases - Platform Decision Guidance: Compare Neon (serverless PostgreSQL with branching), Supabase (PostgreSQL 16 with pgvector, RLS, real-time), and Firestore (NoSQL with offline sync) using feature matrices and a decision flowchart. - Setup and Integration Patterns: Provides connection management, ORM integration (Drizzle, Prisma), migration strategies, and security configuration (RLS policies, Firestore Security Rules) for each platform. - Use Case: You are building a multi-tenant SaaS and need tenant isolation. The Skill directs you to Supabase Row-Level Security and provides the policy patterns, JWT integration, and testing approach to implement it. ## Quick Start Ask the agent to help you choose between Neon, Supabase, and Firestore for your application and generate the initial connection setup code.

Frequently Asked Questions about moai-platform-database-cloud

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between Neon, Supabase, and Firestore?

Choose Neon for serverless PostgreSQL with auto-scaling and database branching, Supabase for integrated auth, storage, pgvector, and Row-Level Security, and Firestore for offline-first mobile apps with real-time sync. The decision depends on whether you need SQL, vector search, or offline caching.

What is the difference between Neon and Supabase PostgreSQL?

Neon offers true serverless compute with scale-to-zero and instant copy-on-write database branching. Supabase provides an integrated platform with auth, storage, real-time subscriptions, and native pgvector support, but lacks branching and true scale-to-zero.

Does Supabase support vector search for AI applications?

Yes, Supabase natively supports pgvector with HNSW and IVFFlat indexes for similarity search. You create a vector column, add an HNSW index, and query nearest neighbors using the cosine distance operator.

Can I use Firestore offline in a web or mobile app?

Yes, Firestore provides first-class offline persistence using IndexedDB on web and built-in caching in mobile SDKs. Enable persistentLocalCache with persistentMultipleTabManager for multi-tab support, and data syncs automatically when connectivity returns.

How do I set up connection pooling for serverless functions with Neon?

Use the DATABASE_URL_POOLED endpoint, which routes through Neon's built-in PgBouncer pooler in transaction mode. Pair it with the @neondatabase/serverless driver for edge and serverless runtime compatibility.

When should I not use Firestore for my application?

Avoid Firestore when you need complex SQL joins, ACID transactions across many entities, strong consistency for all queries, or advanced aggregations. In those cases, a PostgreSQL platform like Neon or Supabase is a better fit.