replit-data-handling
Installation
SKILL.md
Replit Data Handling
Overview
Manage application data securely across Replit's three storage systems: PostgreSQL (relational), Key-Value Database (simple cache/state), and Object Storage (files/blobs). Covers connection patterns, security, data validation, and choosing the right storage for each use case.
Prerequisites
- Replit account with Workspace access
- PostgreSQL provisioned in Database pane (for SQL use cases)
- Understanding of Replit Secrets for credentials
Storage Decision Matrix
| Need | Storage | API | Limits |
|---|---|---|---|
| Structured data, queries | PostgreSQL | pg npm / psycopg2 |
Plan-dependent |
| Simple key-value, cache | Replit KV Database | @replit/database / replit.db |
50 MiB, 5K keys |
| Files, images, backups | Object Storage | @replit/object-storage |
Plan-dependent |