From replit-pack
Choose and implement Replit validated architecture blueprints for different scales. Use when designing new Replit integrations, choosing between monolith/service/microservice architectures, or planning migration paths for Replit applications. Trigger with phrases like "replit architecture", "replit blueprint", "how to structure replit", "replit project layout", "replit microservice".
How this skill is triggered — by the user, by Claude, or both
Slash command
/replit-pack:replit-architecture-variantsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Application architectures on Replit at different scales. Replit's container model, built-in database, and Deployments feature support architectures from simple scripts to production web services.
Application architectures on Replit at different scales. Replit's container model, built-in database, and Deployments feature support architectures from simple scripts to production web services.
Best for: Scripts, bots, automation, learning.
# main.py - everything in one file
from flask import Flask
from replit import db
app = Flask(__name__)
@app.route('/')
def home():
count = db.get("visits") or 0
db["visits"] = count + 1
return f"Visit #{count + 1}"
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 3000))) # 3000: 3 seconds in ms
Limits: Sleeps after inactivity (free plan). 512MB RAM. Replit DB (50MB).
Best for: Web apps, APIs, 100-10K daily users.
Replit Deployment -> External PostgreSQL (Neon/Supabase)
-> External Redis (Upstash)
-> External Storage (S3/Replit Object Storage)
# Structured project layout
# main.py -> routes/ -> services/ -> models/
import os
from flask import Flask
from sqlalchemy import create_engine
app = Flask(__name__)
engine = create_engine(os.environ["DATABASE_URL"]) # External Postgres
# Use Replit Deployments for always-on
# Use external DB for persistence beyond container lifecycle
Best for: Production services, microservices, 10K+ daily users.
CDN (Cloudflare) -> Replit Deployment (API)
|
External DB (Neon Postgres)
External Cache (Upstash Redis)
External Queue (Upstash Kafka)
|
Replit Deployment (Worker)
# API service (Replit Deployment 1)
# Worker service (Replit Deployment 2)
# Each in its own Repl with own Deployment
# Communicate via shared database/queue
| Factor | Single-File | Modular + External DB | Multi-Service |
|---|---|---|---|
| Users | Prototype | 100-10K/day | 10K+/day |
| Database | Replit DB | External Postgres | External + cache |
| Persistence | Ephemeral | Durable | Durable |
| Cost | Free | $7-20/mo | $20+/mo |
| Always-on | No (free) | Yes (Deployment) | Yes |
| Issue | Cause | Solution |
|---|---|---|
| Data loss | Using filesystem/Replit DB | Migrate to external database |
| Container sleeping | Free plan limitations | Use Deployments or keep-alive |
| Memory limit | Large in-memory datasets | Stream data, use external storage |
Basic usage: Apply replit architecture variants to a standard project setup with default configuration options.
Advanced scenario: Customize replit architecture variants for production environments with multiple constraints and team-specific requirements.
npx claudepluginhub p/ktiseos-nyx-replit-pack-plugins-saas-packs-replit-packGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Provides Slack GIF creation utilities with dimension/FPS/color constraints and Python PIL-based frame generation. Use for animated Slack emoji or message GIFs.