Deploy Instance
Self-hosted Instagram automation and sales CRM platform.
Redis
Just deployed
/data
Just deployed
Just deployed
Just deployed
/var/lib/postgresql/data
workers
Just deployed
Deploy and Host Instance - Open Source Sales CRM & Instagram Automation on Railway
Instance is a complete open-source Instagram sales automation engine and social CRM. Built for creators, coaches, e-commerce brands, and sales agencies, Instance automates comment-to-DM funnels, story replies, icebreakers, and lead qualification with zero contact limits, zero software subscription fees, and 100% data ownership in your own infrastructure.
About Hosting Instance - Open Source Sales CRM & Instagram Automation
Deploying Instance on Railway launches an enterprise-ready, multi-tenant microservices architecture orchestrated through Docker. The deployment provisions a Next.js 16 web dashboard (web), a NestJS REST API server (api), and a high-throughput background worker service (workers) powered by BullMQ queues. State is managed via a dedicated PostgreSQL database and a Redis instance for distributed locks and queue scheduling. Railway manages container health, builds, SSL provisioning, and private networking automatically. Database migrations execute seamlessly before startup via Prisma, ensuring a zero-downtime, production-grade deployment ready to handle high-volume Instagram webhooks and conversations.
Common Use Cases
- Comment-to-DM Sales Funnels: Automatically send discount codes, checkout links, and product guides when followers comment specific trigger keywords on feed posts, ads, or viral reels.
- Instagram Story Mention and Reply Monetization: Detect when followers tag your brand in their stories or reply to your daily stories, delivering instant thank-you gifts, promo codes, or qualification quizzes.
- Inbound Lead Qualification and Social CRM Pipeline: Run interactive conversation flows with quick-reply buttons and icebreakers to capture verified email addresses, phone numbers, and move leads through visual CRM stages.
- Automated Giveaways and Follower-Gated Deliverables: Verify whether an inbound lead follows your Instagram account before releasing free lead magnets, webinar access links, or giveaway entries.
- Algorithmic Reach Booster with Anti-Spam Message Rotation: Automatically reply to public comments with rotating message variations and instant comment likes, maximizing post reach while keeping messaging natural and compliant.
Dependencies for Instance - Open Source Sales CRM & Instagram Automation Hosting
- PostgreSQL (v14+): Relational database for multi-tenant workspace data, user profiles, conversation transcripts, and CRM contacts.
- Redis (v6.2+): Distributed in-memory data store for BullMQ background job queues, rate limiting, and webhook deduplication.
- Node.js (v20+ LTS): High-performance runtime powering the Next.js frontend, NestJS API, and background workers.
- Meta for Developers Account: An approved Meta app with Instagram Professional or Business account access for webhook ingestion and Graph API messaging.
Implementation Details
Instance is architected as an isolated TypeScript monorepo with pre-configured cross-service networking:
- Web Dashboard (
apps/web): Next.js 16 with a visual drag-and-drop React Flow automation canvas, CRM pipeline, and analytics. - REST API (
apps/api): NestJS server providing NextAuth authentication, workspace management, and signed HMAC SHA-256 Meta webhook ingestion. - Queue Workers (
apps/workers): Independent BullMQ workers executing rate-limited DM delivery, story processing, and Instagram profile enrichment. - Database Layer (
packages/prisma): Prisma ORM with automated schema migrations running viapnpm --filter @instance/db db:deploy.
Documentation and architecture guides are available at https://docs.instance.sale/oss.
Why Deploy Instance - Open Source Sales CRM & Instagram Automation on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Instance - Open Source Sales CRM & Instagram Automation on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Redis
redis:8.2EMAIL_FROM
Sender email address for transactional emails.
R2_ACCOUNT_ID
Cloudflare R2 storage account ID .
R2_PUBLIC_URL
Public CDN domain for Cloudflare R2 media assets .
R2_BUCKET_NAME
Cloudflare R2 bucket name .
INSTAGRAM_APP_ID
Meta App ID from developers.facebook.com.
R2_ACCESS_KEY_ID
Cloudflare R2 storage access key ID .
EMAIL_SERVER_USER
SMTP authentication email username.
INSTAGRAM_APP_SECRET
Meta App Secret from developers.facebook.com.
R2_SECRET_ACCESS_KEY
Cloudflare R2 storage secret access key .
EMAIL_SERVER_PASSWORD
SMTP authentication email or app password.
GOOGLE_CLIENT_ID
Google OAuth Client ID for Google login (optional).
GOOGLE_CLIENT_SECRET
Google OAuth Client Secret for Google login (optional).
workers
Instance-sale/instance