Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mycart

> 前端框架
Open source

myCart - shopping cart in 1 file with card and cryptocurrency payment support

357 stars0 likes1 views
WebsiteGitHub

About

myCart - shopping cart in 1 file with card and cryptocurrency payment support

[!Important] This repository is being renamed.
The project was originally published under the name litecart. I recently received a trademark-related claim regarding the use of this name. To avoid confusion and potential legal issues, the project will continue under a new name.
The codebase itself is not changing. Only the project name, repository name, package identifiers, and related references will be updated.
This repository will remain available for some time with redirects and notes pointing to the new location so existing users have time to migrate.
If your setup depends on the current repository name, please update your references once the rename is complete.
Thank you to everyone who has used the project and contributed feedback.

[!NOTE] Disclaimer: Not affiliated with any similarly named projects or brands. This is an independent open source project licensed under the MIT License.

  What is myCart?

myCart is an open source shopping-cart in 1 file with an embedded database (SQLite by default, PostgreSQL if you prefer), a convenient dashboard UI and a simple site. Formerly known as litecart (legacy project name kept here for discoverability in search).

[!WARNING] Current major version is zero (v0.x.x) to accommodate rapid development and fast iteration while getting early feedback from users. Please keep in mind that myCart is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.

Video Example

Admin Panel Screenshots

  Features

Simple and Fast: Enjoy a one-click installation process that gets your store up and running quickly, saving you time and effort.

Support for Popular Payment Systems: Accept payments seamlessly with support for popular payment systems, ensuring a smooth checkout experience for your customers.

Sell Files and License Keys: Whether you're selling digital files or license keys, myCart has you covered, providing flexibility in the types of products you can offer.

Customer Accounts: Buyers can register on the storefront and sign in to a cabinet that keeps everything they bought in one place — the orders, the digital files they can download again at any time and the license keys they were issued. The cabinet is opt-in, so a shop that only takes guest checkouts keeps the storefront it had.

⚙️ Lightweight and Efficient: myCart runs on an embedded SQLite database by default — no separate server to install, configure or keep running — which makes for a lightweight website that performs exceptionally well. If you would rather run a database server, PostgreSQL is supported too and is chosen when you install.

☁️ Easily Customizable: Modify and customize your myCart website effortlessly to match your branding and unique requirements, making it truly your own.

️ Your Own Marks: Upload the shop's logo, favicon and tagline from the admin panel — no rebuild and no theme edit — and the storefront draws them in its header and in the browser tab. Remove a file and the built-in mark comes back.

‍♂️ Convenient Administration Panel: With a user-friendly dashboard UI, myCart offers a hassle-free administration panel, allowing you to manage your store, inventory, orders and customers with ease.

⚡️ Hardware Compatibility: Whether you're running myCart on a powerful server or a modest hardware setup, rest assured that it will work seamlessly, providing a consistent shopping experience for your customers.

Built-in HTTPS Support: Prioritizing security, myCart comes with built-in support for HTTPS, ensuring the safety of your customers' data.

Hardened Sessions: The panel and the cabinet sign their sessions with different keys and carry them in different cookies, and every state-changing request to either surface is checked for the same origin, so a page on another site cannot ride a signed-in session. The panel is also served with X-Robots-Tag: noindex, nofollow and disallowed in robots.txt, which keeps it and its sign-in form out of search results.

Free Products Support: Offer free products to your customers by setting the product price to 0. Free products are automatically processed without requiring payment system integration, making it perfect for free downloads, samples, or promotional content.

Multi-language Support: Built-in internationalization (i18n) support allows you to create multilingual stores. myCart ships with eight languages — English, Chinese, Korean, French, Spanish, German, Italian and Belarusian — and each is listed in its own name, so the switcher reads the same whichever language is active. It is available in both the admin panel and the public site, making it easy to manage content in multiple languages and provide a localized shopping experience for your customers.

Product Variants: Offer products with multiple options (size, color, style, etc.) with separate inventory tracking, pricing, and SKUs for each variant. Automatically generate all combinations or manually manage specific variants with quantity and availability control.

⬇️  Installation

mycart is engineered for easy installation and operation, requiring just a single command from your terminal. Besides the conventional installation method, mycart can also be set up and operated via HomeBrew, Docker, or any other container orchestration tools like Docker Compose, Docker Swarm, Rancher, or Kubernetes.

 Install on macOS

The fastest method to install mycart on macOS involves using Homebrew. This will install the command-line tools and the mycart server as a combined executable. If you don't utilize Homebrew, adhere to the Linux instructions below for mycart installation.

bash
brew install shurco/tap/mycart

Alternately, you can configure the tap and install the package separately:

bash
$ brew tap shurco/tap
$ brew install mycart

 Install on Linux

The most straightforward and recommended method to start using mycart on Unix operating systems involves installing and utilizing the mycart command-line tool. Execute the given command in your terminal and adhere to the instructions displayed on the screen.

bash
curl -L https://raw.githubusercontent.com/shurco/mycart/main/scripts/install | sh

 Install on Windows

The simplest and most recommended method to start using mycart on Windows is by installing and utilizing the mycart command-line tool. Execute the given command in your terminal and adhere to the instructions displayed on the screen.

bash
curl -L https://raw.githubusercontent.com/shurco/mycart/main/scripts/install | sh

or download and unzip the latest version for Windows.

 Run using Docker

Docker enables the management and operation of a mycart instance without requiring the installation of any command-line tools. The mycart Docker container includes all necessary command-line tools or even for server execution.

For Docker Hub:

bash
docker run \
  -v ./lc_base:/lc_base \
  -v ./lc_digitals:/lc_digitals \
  -v ./lc_uploads:/lc_uploads \
  -v ./site:/site \
  --rm shurco/mycart:latest init

docker run \
  --name mycart \
  --restart unless-stopped \
  -p '8080:8080' \
  -v ./lc_base:/lc_base \
  -v ./lc_digitals:/lc_digitals \
  -v ./lc_uploads:/lc_uploads \
  -v ./site:/site \
  shurco/mycart:latest

or if use Github Packages Hub:

bash
docker run \
  -v ./lc_base:/lc_base \
  -v ./lc_digitals:/lc_digitals \
  -v ./lc_uploads:/lc_uploads \
  -v ./site:/site \
  --rm ghcr.io/shurco/mycart:latest init

docker run \
  --name mycart \
  --restart unless-stopped \
  -p '8080:8080' \
  -v ./lc_base:/lc_base \
  -v ./lc_digitals:/lc_digitals \
  -v ./lc_uploads:/lc_uploads \
  -v ./site:/site \
  ghcr.io/shurco/mycart:latest

 Run using Docker Compose

Docker Compose provides a convenient way to manage multiple containers and services. The project includes several Docker Compose configurations for different use cases.

Production Setup (docker/docker-compose.yml): This configuration includes the myCart application and an Nginx reverse proxy:

bash
cd docker
docker-compose up -d

This setup includes:

  • mycart: The main application container with all required volumes
  • nginx: Reverse proxy server that listens on port 80 and forwards requests to myCart

The Nginx configuration is located in docker/nginx/nginx.conf and can be customized as needed.

Development Setup (docker/docker-compose_dev.yml): For local development, you can use the development configuration which includes MailHog for email testing:

bash
cd docker
docker-compose -f docker-compose.yml -f docker-compose_dev.yml up -d

This adds:

  • mailhog: Email testing tool accessible at http://localhost:8025 for viewing sent emails

Combined Usage: To run both production and development services together:

bash
cd docker
docker-compose -f docker-compose.yml -f docker-compose_dev.yml up -d

Initialization: Before starting the services, initialize the application:

bash
docker-compose run --rm mycart init

First-time admin account (choose one):

  1. Open http://localhost/_/install in your browser and complete the setup wizard.
  2. Or create the admin account non-interactively (works in scratch-based images without a shell):
bash
docker-compose run --rm mycart install \
  --email [email protected] \
  --password 'YourSecurePass' \
  --domain localhost

Add --db postgres --db-dsn 'postgres://…' to install into PostgreSQL instead; see Database.

For Kubernetes, run a one-shot Job with the same install command and the same volume mounts as the main Deployment.

Environment Variables: The docker-compose setup supports environment variables for domain and email configuration:

bash
DOMAIN=example.com [email protected] docker-compose -f docker/docker-compose.yml up -d

Alternatively, create a .env file in the docker/ directory:

bash
DOMAIN=example.com
[email protected]

Stopping Services:

bash
docker-compose down

 Run using Kubernetes

An example manifest for running on Kubernetes can be found in the /k8s/ folder (thanks @vuisme)

️  Database

myCart supports two databases and asks which one to use when you install it. SQLite is the default, and staying on it is a no-op: an existing installation keeps its ./lc_base/data.db and nothing about it changes.

SQLite (default) PostgreSQL
Setup none — a file in ./lc_base a server you run yourself
Backups copy ./lc_base ./mycart db backup / db restore
Concurrent writers one at a time many
Best for a single small shop, a VPS, a laptop many writers, managed backups, an existing DBA

Choosing PostgreSQL at install time

In the setup wizard (/_/install) pick PostgreSQL, enter the connection string, press Test connection and then install. The whole wizard can be driven from the command line instead:

bash
./mycart install \
  --email [email protected] \
  --password 'YourSecurePass' \
  --domain example.com \
  --db postgres \
  --db-dsn 'postgres://mycart:[email protected]:5432/mycart?sslmode=disable'

The choice is written to ./lc_base/config.json (mode 0600, it holds the password) and every later command — serve, migrate, update — reads it from there.

Choosing the database outside the wizard

--db / --db-dsn on the command line, or the MYCART_DB_DRIVER / MYCART_DB_DSN environment variables, take precedence over config.json:

bash
MYCART_DB_DRIVER

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gobasketcartcommercecryptocurrency-exchanges

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架