replit-data-handling

Featured

Implement secure data handling on Replit: PostgreSQL, KV Database, Object Storage, and data security patterns. Use when handling sensitive data, connecting databases, implementing data access patterns, or ensuring secure data flow in Replit-hosted applications. Trigger with phrases like "replit data", "replit database", "replit PostgreSQL", "replit storage", "replit data security", "replit GDPR".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 | ## Instructions ### Step 1: PostgreSQL — Secure Connection ```typescript // src/services/database.ts import { Pool, PoolConfig } from 'pg'; function createPool(): Pool { if (!process.env.DATABASE_URL) { throw new Error('DATABASE_URL not set. Create a database in the Database pane.'); } const config: PoolConfig = { connectionString: process.env.DATABASE_URL, ssl: { rejectUnauthorized: false }, // Required for Replit PostgreSQL max: 10, idleTimeoutMillis: 30000, connectionTimeoutMillis: 5000, }; const pool = new Pool(config); // Log errors without exposing connection string pool.on('error', (err) => ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

replit-sdk-patterns

Apply production-ready patterns for Replit Database, Object Storage, and Auth APIs. Use when implementing Replit integrations, structuring data access layers, or establishing team coding standards for Replit services. Trigger with phrases like "replit patterns", "replit best practices", "replit code patterns", "idiomatic replit", "replit SDK".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-rate-limits

Handle Replit resource limits: KV database caps, deployment quotas, and request throttling. Use when hitting storage limits, managing deployment resources, or implementing rate limiting in your Replit-hosted app. Trigger with phrases like "replit rate limit", "replit throttling", "replit 429", "replit storage limit", "replit quota".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-security-basics

Apply Replit security best practices: Secrets management, REPL_IDENTITY tokens, Auth headers, and public Repl safety. Use when securing API keys, validating request identity, or auditing Replit security configuration. Trigger with phrases like "replit security", "replit secrets", "secure replit", "replit public safety", "replit identity token".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-reliability-patterns

Implement reliability patterns for Replit: cold start handling, graceful shutdown, persistent state, and keep-alive. Use when building fault-tolerant Replit apps, handling container restarts, or adding resilience to production Replit deployments. Trigger with phrases like "replit reliability", "replit container restart", "replit data persistence", "replit always on", "replit graceful shutdown".

2,266 Updated today
jeremylongshore
AI & Automation Featured

replit-hello-world

Create a minimal working Replit app with database, object storage, and auth. Use when starting a new Replit project, testing your setup, or learning Replit's built-in services (DB, Auth, Object Storage). Trigger with phrases like "replit hello world", "replit starter", "replit quick start", "first replit app", "replit example".

2,266 Updated today
jeremylongshore