Home
Softono
vasty-shop

vasty-shop

Open source TypeScript
17
Stars
13
Forks
3
Issues
2
Watchers
1 month
Last Commit

About vasty-shop

Vasty Shop is an open-source, self-hostable multi-vendor e-commerce marketplace platform designed to help businesses build sites similar to Amazon, Etsy, or Shopify. It serves as a complete enterprise-grade solution for connecting multiple sellers with buyers in a single centralized hub. The platform features built-in artificial intelligence capabilities that provide personalized product recommendations to enhance the user shopping experience. Financial transactions are streamlined through native Stripe Connect integration, which automatically handles secure vendor payouts and revenue splitting without requiring third-party plugins. Key operational tools include a dedicated vendor dashboard for managing inventory and orders, a customizable storefront builder, and an integrated point-of-sale system supporting barcode scanning for physical retail operations. Vasty Shop also offers advanced delivery management with zone-based shipping configuration and supports dynamic flash sales with real-time inventory tracki

Platforms

Web Self-hosted

Languages

TypeScript

Vasty Shop

Vasty Shop

Open-source multi-vendor e-commerce marketplace

Enterprise-grade marketplace with AI recommendations, Stripe Connect payouts, flash sales, POS, delivery management, and 17-language support.

🌐 Try the Live Demo β†’

Live Demo License CI Stars Issues PRs

Live Demo | Quick Start | Features | Deployment | Discussions | Contributing

English | ζ—₯本θͺž | δΈ­ζ–‡ | ν•œκ΅­μ–΄ | Bahasa Indonesia | Bahasa Melayu | EspaΓ±ol | FranΓ§ais | Deutsch | Italiano | PortuguΓͺs | Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ© | TΓΌrkΓ§e | ΰ€Ήΰ€Ώΰ€¨ΰ₯ΰ€¦ΰ₯€ | বাংলা | اردو | Русский


Table of Contents

What is Vasty Shop?

Vasty Shop is an open-source multi-vendor e-commerce marketplace platform. Build your own marketplace like Amazon, Shopify, or Etsy with AI-powered recommendations, Stripe Connect vendor payouts, flash sales, POS system, and delivery management β€” all self-hostable.

Why Vasty Shop? (Comparison)

Feature Vasty Shop Shopify WooCommerce Medusa Saleor
Multi-Vendor βœ… Built-in marketplace πŸ’° Marketplace add-on ⚠️ Plugin needed ❌ ❌
Stripe Connect Payouts βœ… Auto vendor splits βœ… Shopify Payments ⚠️ Plugin ❌ ⚠️ Plugin
AI Recommendations βœ… Built-in πŸ’° App required ⚠️ Plugin ❌ ❌
Flash Sales βœ… Timer + inventory βœ… ⚠️ Plugin ❌ ❌
POS System βœ… Built-in + barcode βœ… Shopify POS ⚠️ Plugin ❌ ❌
Gift Cards βœ… βœ… ⚠️ Plugin ❌ βœ…
Delivery Zones βœ… Zone-based pricing βœ… ⚠️ Plugin ❌ ⚠️
Loyalty/Cashback βœ… Points + cashback ❌ ⚠️ Plugin ❌ ❌
Referral System βœ… ❌ ⚠️ Plugin ❌ ❌
Surge Pricing βœ… ❌ ❌ ❌ ❌
Rental System βœ… ❌ ⚠️ Plugin ❌ ❌
CMS/Blog βœ… βœ… βœ… ❌ ❌
17 Languages βœ… βœ… βœ… ⚠️ ⚠️
Self-Hosted βœ… Docker ❌ βœ… βœ… βœ…
Open Source βœ… AGPL-3.0 ❌ βœ… GPL βœ… MIT βœ… BSD
Pricing 🟒 Free πŸ’° $39-399/mo 🟒 Free 🟒 Free 🟒 Free

Vendor Dashboard

Every vendor gets a self-service control panel with real-time KPIs (revenue, orders, products, customers), an earnings breakdown β€” gross sales, delivery costs, net profit β€” and full order, product, and approval management.

Vendor Dashboard

Quick Start

Docker (Recommended)

Prerequisites: Docker and Docker Compose

git clone https://github.com/vasty-shop/vasty-shop.git
cd vasty-shop

# 1. Create env files from examples
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env

# 2. (Optional) Run the setup wizard to pick providers interactively
docker compose --profile setup run --rm setup

# 3. Start all services (PostgreSQL, Redis, Backend, Frontend)
docker compose up --build

# 4. Run database migrations (in a new terminal)
docker compose exec backend npm run migrate

# 5. (Optional) Seed the database
docker compose exec backend npm run seed

The app will be available at:

Service URL
Frontend http://localhost:5186
Backend API http://localhost:4005/api/v1
API Docs (Swagger) http://localhost:4005/api/v1/docs
Health (Providers) http://localhost:4005/api/v1/health/providers
WebSocket http://localhost:3002

Default Admin Credentials

Field Value
Email [email protected]
Password admin123

Note: Change the admin password immediately in production.

Docker Services

Service Image Port
PostgreSQL postgres:16-alpine 5433
Redis redis:7-alpine 6379
Backend node:20-alpine (NestJS) 4005, 3002
Frontend node:20-alpine (Vite) 5186

Useful Commands

# Stop all services
docker compose down

# Stop and remove all data (database, redis)
docker compose down -v

# View backend logs
docker compose logs -f backend

# Run migrations
docker compose exec backend npm run migrate

# Seed database
docker compose exec backend npm run seed

# Access PostgreSQL shell
docker compose exec postgres psql -U postgres -d vasty_shop_dev

# Run setup wizard (pick providers interactively)
docker compose --profile setup run --rm setup

# Start with optional services (e.g. Meilisearch, MinIO)
docker compose --profile meilisearch --profile minio up -d

Local Development (without Docker)

Prerequisites: Node.js 20+, PostgreSQL 16+, Redis 7+

git clone https://github.com/vasty-shop/vasty-shop.git
cd vasty-shop

# Backend
cd backend
cp .env.example .env
# Edit .env: set DATABASE_HOST=localhost and REDIS_HOST=localhost
npm install
npm run migrate
npm run start:dev

# Frontend (new terminal)
cd frontend
cp .env.example .env
npm install --legacy-peer-deps
npm run dev

Features

E-Commerce Core

Everything needed to run an online storefront β€” catalog, cart, checkout, and post-purchase.

  • Products -- Variants, attributes, inventory, digital products, bulk import
  • Orders -- Multi-vendor order splitting, status tracking, refunds
  • Cart -- Persistent cart, guest checkout, multi-currency
  • Categories -- Nested categories with filters and search
  • Reviews -- Ratings, photos, verified purchase badges

Payments & Finance

Multi-provider payments with automatic platform fees, vendor payouts, and financial tracking.

  • Stripe Connect -- Auto vendor payouts with platform fee
  • PayPal -- Alternative payment gateway
  • Wallet -- Customer wallet with top-up and spend
  • Escrow -- Secure payment holding until delivery
  • Disbursement -- Bulk vendor payouts, commission tracking
  • Expenses -- Business expense tracking for vendors

Marketing & Growth

Demand-generation tools built-in β€” no third-party plugins required.

  • Flash Sales -- Time-limited deals with countdown
  • Campaigns -- Promotional campaigns with scheduling
  • Coupons -- Percentage, fixed, free shipping
  • Gift Cards -- Digital gift cards with balance
  • Loyalty -- Points system with cashback
  • Referral -- Customer referral program
  • Surge Pricing -- Dynamic pricing based on demand

Operations

In-store and fulfillment workflows for vendors selling beyond the web.

  • POS -- Point-of-sale with barcode scanning
  • Delivery -- Zone-based pricing, tracking, delivery partners
  • Parcel -- Parcel delivery management
  • Tax -- Tax calculation by region
  • Export -- CSV/Excel data export

Platform

Foundational capabilities that power every other module.

  • 17 Languages -- AR, BN, DE, EN, ES, FR, HI, ID, IT, JA, KO, MS, PT, RU, TR, UR, ZH
  • AI -- Product recommendations, smart search
  • Blog/CMS -- Content management
  • Chat -- Real-time customer-vendor messaging
  • Notifications -- Email, WebSocket, push
  • Admin Dashboard -- Full platform analytics

Delivery Management

Platform-wide delivery and shipping ops in one place: configure shipping methods and zones, register and manage delivery partners, track active shipments, and watch KPIs like average delivery time and in-transit count at a glance.

Delivery Management

Storefront Builder

Vendors design their own storefront with a drag-and-drop page builder β€” hero banners, featured products, categories, testimonials, and custom pages β€” with a live preview pane that renders every change instantly side-by-side.

Storefront Builder

Tech Stack

Layer Technology
Backend NestJS, TypeScript, PostgreSQL (raw SQL), Redis, Socket.io
Frontend React, Vite, TypeScript, Tailwind CSS, Radix UI, i18next
Storage Pluggable: local-fs, S3, Cloudflare R2, MinIO, B2, GCS, Azure
Payments Stripe, Stripe Connect, PayPal
AI OpenAI, Anthropic, Gemini, Groq, Ollama
Search PostgreSQL (pg-trgm), Meilisearch, Typesense

Project Structure

vasty-shop/
β”œβ”€β”€ backend/              # NestJS API (69 modules, 80+ tables)
β”‚   β”œβ”€β”€ src/modules/      # products, orders, cart, payments, delivery,
β”‚   β”‚                     # campaigns, coupons, flash-sales, gift-cards,
β”‚   β”‚                     # loyalty, referral, pos, ai, blog, chat, ...
β”‚   └── migrations/       # PostgreSQL migrations
β”œβ”€β”€ frontend/             # React + Vite + Tailwind (17 languages)
β”œβ”€β”€ shared/               # Shared types and utilities
└── .github/workflows/    # CI/CD

Deployment

Vasty Shop is built for self-hosting. Run it on any Docker-capable host β€” a VPS, Render/Railway/Fly, or your own Kubernetes cluster.

Common deployment paths:

  • Single-host Docker β€” the included docker-compose.yml is production-capable with a few env tweaks (switch build targets, use managed volumes, put a reverse proxy in front).
  • Managed Postgres + Redis β€” point DATABASE_URL / REDIS_HOST at a managed instance and run only the backend/frontend containers.
  • Provider setup β€” storage, email, payments, search, SMS, and AI are all pluggable via environment variables. Full provider catalog and setup guides: backend/docs/providers/.

Pre-launch checklist:

  • [ ] Change the default admin password ([email protected] / admin123)
  • [ ] Set JWT_SECRET to a strong random value
  • [ ] Set NODE_ENV=production on the backend
  • [ ] Configure at least one email provider for transactional mail
  • [ ] Configure a storage provider (S3/R2/MinIO) for uploaded media
  • [ ] Rotate backend/.env secrets out of the repo and version control

Changelog

See CHANGELOG.md for version history and notable changes.

Contributors

Thank you to all the amazing people who have contributed to Vasty Shop! πŸŽ‰

Want to see your face here? Check out our Contributing Guide and start contributing today!

Project Activity

Stars Forks Contributors Last Commit

Security

Please report vulnerabilities responsibly. See SECURITY.md.

License

This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.

This means you can freely use, modify, and distribute this software, but any modifications must also be open-sourced under the same license.

Copyright 2025 Vasty Shop Contributors.