netlify/gocommerce sits at 1.6k stars on GitHub, written primarily in Go. A headless e-commerce for JAMstack sites.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
It handles orders and payments. Integrates with Stripe for payments and will support
international pricing and VAT verification.
GoCommerce is released under the MIT License.
Please make sure you understand its implications and guarantees.
What your static site must support
Each product you want to sell from your static site must have unique URL where GoCommerce
can find the meta data needed for calculating pricing and taxes in order to verify that
the order is legitimate before using Stripe to charge the client.
The metadata can be anywhere on the page, and goes in a script tag in this format:
The minimum required is the Sku, title and at least one "price". Default currency is USD if nothing else specified.
VAT, Countries and Regions
GoCommerce will regularly check for a file called https://example.com/gocommerce/settings.json
This file should have settings with rules for VAT or currency regions.
This file is not required for GoCommerce to work, but will enable support for various advanced
features. Currently it enables VAT calculations on a per country/product type basic.
The reason we make you include the file in the static site, is that you'll need to do the same
VAT calculations client side during checkout to be able to show this to the user. The
commerce-js client library can help you with
this.
Based on these rules, if an order includes a product with "type" set to "ebook" in the product metadata
on the site and the users billing Address is set to "Austria", GoCommerce will verify that a 20 percentage
tax has been included in that product.
JavaScript Client Library
The easiest way to use GoCommerce is with commerce-js.
IMPORTANT: Since Release 1.8.0 of GoCommerce at least Version 5.0.0 of the JavaScript Client is required.
Running the GoCommerce backend
GoCommerce can be deployed to any server environment that runs Go. Minimum requirement for Go is version 1.11 since GoCommerce is using Go modules.
The button below provides a quick way to get started by running on Heroku:
Configuration
You may configure GoCommerce using either a configuration file named .env,
environment variables, or a combination of both. Environment variables are prefixed with GOCOMMERCE_, and will always have precedence over values provided via file.
For local dev, the easiest way to get started is to copy the included example.env file to .env
Top-Level
GOCOMMERCE_SITE_URL=https://example.netlify.com/
SITE_URL - stringrequired
The base URL your site is located at.
OPERATOR_TOKEN - stringMulti-instance mode only
The shared secret with an operator (usually Netlify) for this microservice. Used to verify requests have been proxied through the operator and
the payload values can be trusted.
API
GOCOMMERCE_API_HOST=localhost
PORT=9999
API_HOST - string
Hostname to listen on.
PORT (no prefix) / API_PORT - number
Port number to listen on. Defaults to 8080.
API_ENDPOINT - stringMulti-instance mode only
Controls what endpoint Netlify can access this API on.
The From email address for all emails sent. Order receipts are also sent to this address.
SMTP_HOST - stringrequired
The mail server hostname to send emails through.
SMTP_PORT - numberrequired
The port number to connect to the mail server on.
SMTP_USER - string
If the mail server requires authentication, the username to use.
SMTP_PASS - string
If the mail server requires authentication, the password to use.
MAILER_SUBJECTS_ORDER_CONFIRMATION - string
Email subject to use for order confirmations. Defaults to Order Confirmation.
MAILER_SUBJECTS_ORDER_RECEIVED - string
Email subject to use for orders sent to the store admin. Defaults to Order Received From {{ .Order.Email }}.
MAILER_TEMPLATES_ORDER_CONFIRMATION - string
URL path, relative to the SITE_URL, of an email template to use when sending an order confirmation.
Order and Transaction variables are available.
Default Content (if template is unavailable):
<h2>Thank you for your order!</h2>
<ul>
{{ range .Order.LineItems }}
<li>{{ .Title }} <strong>{{ .Quantity }} x {{ .Price }}</strong></li>
{{ end }}
</ul>
<p>Total amount: <strong>{{ .Order.Total }}</strong></p>
MAILER_TEMPLATES_ORDER_RECEIVED - string
URL path, relative to the SITE_URL, of an email template to use when sending order details to the store admin.
Order and Transaction variables are available.
Default Content (if template is unavailable):
<h2>Order Received From {{ .Order.Email }}</h2>
<ul>
{{ range .Order.LineItems }}
<li>{{ .Title }} <strong>{{ .Quantity }} x {{ .Price }}</strong></li>
{{ end }}
</ul>
<p>Total amount: <strong>{{ .Order.Total }}</strong></p>
No homepage URL was recorded for netlify/gocommerce in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on netlify/gocommerce?
The most recent commit recorded on netlify/gocommerce was 1.1 years ago, based on the GitHub push timestamp. The repository has 216 forks — one of the better signals of community interest.
How many stars does netlify/gocommerce have?
netlify/gocommerce has 1.6k GitHub stars — refresh the page for the live number, or check github.com/netlify/gocommerce. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is netlify/gocommerce open source?
Yes — netlify/gocommerce ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/netlify/gocommerce.
What topics is netlify/gocommerce associated with?
GitHub's repository topics for netlify/gocommerce: "ecommerce", "headless", "jamstack", "managed-services", "platform", "production". TopGit's editorial category is open-source.
Where do I read more about netlify/gocommerce?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/netlify/gocommerce is the definitive source.
Read full README in the tab above.
Curious whether gocommerce is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about gocommerce.