Skip to content
SazM Senior dev · Fixed price
Find a service
Where can I help?

Use arrow keys to browse, Enter to open, and Escape to close.

11 destinations

Client Login Get a fix →

Systems Architecture · 8 min read

Squarespace Architecture: Backend & Frontend Technologies Explained

A sourced breakdown of Squarespace backend and frontend technologies: Java services, MongoDB, CockroachDB, PostgreSQL, Kafka, Fastly, JSON-T templates, React editors and Fluid Engine.

Summary

This guide covers the Squarespace backend and frontend technologies used across the platform, and how they differ between Squarespace version 7.0 and version 7.1. If you searched for "squarespace4" or a similar version name, the current versions are 7.0 and 7.1, explained below.

Squarespace does not publish a complete architecture diagram, so every technology named here is tied to a public Squarespace source: its engineering blog, its developer documentation, its open-source repositories, its own job listings, or case studies in which Squarespace engineers are quoted. Where a source is a job listing, read it as "a team uses this", not as a map of the whole platform.

Backend Architecture: Services, Runtimes, and Systems

  • Java is the main backend language. A 2016 Squarespace engineering post calls Java the team's "language of choice". Current Squarespace job listings ask for Java and Spring on GCP in a microservices architecture (Media Platform) and for Java or Kotlin on the Domains team.
  • A monolith plus microservices. According to the CNCF case study, Squarespace began with a monolithic Java application, decided in 2014 to move towards microservices, and started running Kubernetes in its own data centers in 2016. A 2021 engineering post says product work still happens largely "within a main, monolithic repo".
  • Templates are compiled in Java. Squarespace's open-source template-compiler is "a Java template compiler based on JSON-Template". Its README reports an average 20x speed-up over the previous Node.js + JSON-Template system it replaced, so Node.js is part of the history of template rendering rather than the current compiler.
  • Kafka for events and messaging. The Databases team runs "MongoDB, CockroachDB, and Kafka" as some of the platform's most commonly used infrastructure components (job listing). A 2025 engineering post describes streaming database changes into Kafka topics with Debezium and processing them with Apache Beam on Google Cloud Dataflow.

Data Persistence & Storage Architecture

  • MongoDB. Named in Squarespace's own listings as part of its "backend tech stack" (job listing). Squarespace has not said publicly which product data lives in MongoDB, so treat any claim that page layouts or blocks are stored there as a guess.
  • PostgreSQL and CockroachDB. A 2018 engineering post describes "a large, vertically scaled Postgres instance" in production. The 2025 change-data-capture post covers a migration from PostgreSQL to CockroachDB, and the Domains listing asks for PostgreSQL and CockroachDB experience.
  • Google Cloud Spanner and Google Cloud Storage. The asset library stores its files in Google Cloud Storage and uses Spanner as a write-back cache in front of it, with an in-memory cache for reads (2024 engineering post).
  • Responsive image variants. The developer docs list the image sizes Squarespace serves as 2500w, 1500w, 1000w, 750w, 500w, 300w and 100w, and describe the JavaScript ImageLoader that "automatically loads the appropriate version of any image depending on its context" (Image Loader docs).

Edge Routing, CDN & Global Delivery

  • CDN (Fastly). Fastly's Squarespace customer story, which quotes a Squarespace engineering manager, says Fastly keeps more content cached at the edge. A 2017 Squarespace engineering post says sites are delivered through "multiple globally distributed content delivery networks (CDNs)" and served from multiple geographically distributed data centers.
  • Automatic SSL/TLS with Let's Encrypt. Since 2016 Squarespace has issued Let's Encrypt certificates for custom domains automatically, using its own ACME client. TLS is terminated by an in-house reverse proxy called Echo that "is written in Java and is powered by Netty" (2016 engineering post; see also the Let's Encrypt guest post by a Squarespace engineer).
  • Operations tooling. The 2017 reliability post also names Ansible for data center provisioning, Cassandra for Zipkin tracing data, Graphite and Grafana for metrics, ELK for logs, and Sensu with PagerDuty for alerting.

Frontend Technologies: Templating, Editors & Layout

1. The JSON-T Templating Engine

On version 7.0 sites with Developer Mode, templates are written in JSON-T (JSON Template), which the developer docs describe as "a minimal but powerful template language, designed to be paired with a JSON dataset". Templates also use LESS for styles and files such as .region, .block, .list and template.conf (Template Overview). The <squarespace:query> tag pulls items from any collection, with a hard limit of eight queries per page and 100 results per query (query tag docs):

<!-- Squarespace JSON-T query tag, following the developer docs -->
<squarespace:query collection="blog" limit="5">
  <ul>
    {.repeated section items}
      <li>
        <a href="{fullUrl}">{title}</a>
        <time>{addedOn|date %A, %B %d}</time>
      </li>
    {.end}
  </ul>
</squarespace:query>

The date formatter uses the YUI date format (JSON-T formatters). Squarespace also maintains a TypeScript port of the template engine, written because "the need for compilation of Squarespace templates in the browser has grown over time".

2. Editor Frontend: From YUI to React

Squarespace's block editors "were built with the legacy YUI framework nearly 10 years ago". In 2021 the Core Layout team rebuilt them with React, modern JavaScript (ES2020+) and Squarespace's Rosetta design system, published as a separate npm package that the main monolith consumes (engineering post). This describes the editor; Squarespace has not said which framework, if any, renders the published visitor-facing site.

3. Fluid Engine and CSS Grid

Fluid Engine, the version 7.1 drag-and-drop editor, lays blocks out with CSS Grid. According to the Developing Fluid Engine post, each block stores start and end coordinates in grid cells rather than in pixels, on a 24-column grid on desktop and an 8-column grid on mobile. Rows use minmax() with auto so they can grow to fit their content, and one design goal was to avoid running JavaScript on the visitor site to reposition blocks when the width changes.

Squarespace 7.0 vs 7.1 (and "squarespace4")

Squarespace sites today run on one of two versions. "Squarespace 4", "squarespace4" and similar labels are not current Squarespace version names; the versions you will see in the editor are 7.0 and 7.1.

  • How to check your version: log in and click Help in the left panel. On version 7.0 the dropdown lists the platform and your template name; on version 7.1 it lists only the platform (Squarespace versions explained).
  • Templates: version 7.0 sites use template families that decide features and style options. All version 7.1 templates support the same features and functionality, so you change fonts, colors and layouts rather than features.
  • Fluid Engine: Squarespace lists the flexible editing style of Fluid Engine among the features only available on version 7.1.
  • Developer Mode: the Developer Platform (JSON-T template files edited through Git) is listed as not supported on version 7.1. Developer Mode must be turned off before updating a 7.0 site, and "any changes you've made on the Developer Platform will disappear", so save your template code locally first.
  • Updating from 7.0 to 7.1: after updating, you can't revert to 7.0. A store page with more than 200 products produces an error and must be split before the update tool will run.

Source for the last three points: Squarespace Help Center, "Move from version 7.0 to version 7.1 using the update tool".

Extending Squarespace: APIs, Webhooks, and Headless Architectures

When standard site builder features reach their limits, developers extend Squarespace through its programmatic interfaces:

  • Commerce APIs: the Commerce APIs cover Orders, Inventory, Products, Transactions, Contacts, Discounts, Analytics and Webhook Subscriptions (the Profiles API is in maintenance mode). They allow two-way synchronization between a Squarespace store and external ERPs, warehouses or accounting systems.
  • Webhooks: Squarespace sends notifications for events such as order create and order update, plus contact events (webhooks overview). Each one is signed with HMAC-SHA256 in the Squarespace-Signature header (verifying notifications). Delivery is retried for up to 48 hours, and an endpoint may occasionally receive the same notification more than once (notification delivery), so handlers should verify the signature and deduplicate on the notification id. See idempotent webhook processing for the pattern.
  • Code Injection: header, footer, per-page and order confirmation code injection for analytics, tag managers and custom scripts, available on Core, Plus, Advanced and some legacy plans; checkout pages do not support custom code (Squarespace Help Center).
  • Headless & Hybrid Patterns: using the Commerce APIs to read catalog and order data from Squarespace while rendering a custom storefront or internal tool elsewhere, for example on Cloudflare Workers or Astro.

Frequently Asked Questions

What backend programming languages power Squarespace?

Java is Squarespace's main backend language. Its engineering blog calls Java the team's language of choice, its template compiler and TLS reverse proxy are written in Java, and current backend job listings ask for Java with Spring, with Kotlin also mentioned. Python appears in internal tooling such as the open-source pgbedrock.

What database does Squarespace use?

Squarespace's own job listings name MongoDB, CockroachDB and Kafka as core infrastructure. Its engineering blog describes a large PostgreSQL instance and a migration from PostgreSQL to CockroachDB, and Google Cloud Spanner as a write-back cache for the asset library, whose files live in Google Cloud Storage.

What frontend framework does Squarespace use?

Squarespace's primary template language is JSON-T, based on JSON-Template, with LESS for styles, and Squarespace's open-source compiler for it is written in Java. Squarespace's block editors were rebuilt in React in 2021, replacing legacy YUI code, and Fluid Engine lays blocks out with CSS Grid.

How can businesses integrate Squarespace with custom backend applications?

Businesses can integrate Squarespace through the official Commerce APIs (Orders, Inventory, Products, Transactions, Contacts and others) and signed webhook subscriptions, with custom middleware, for example on Cloudflare Workers, that verifies signatures, deduplicates notifications and syncs data with external CRMs, ERPs and fulfillment systems.

What is the difference between Squarespace 7.0 and 7.1?

Version 7.0 sites are built on template families with their own features and style options, and support Developer Mode for custom JSON-T templates. All version 7.1 templates share the same features, include Fluid Engine, and do not support the Developer Platform. Updating from 7.0 to 7.1 cannot be reverted.

What is squarespace4?

"Squarespace4" is not a current Squarespace version name. Live Squarespace sites run on version 7.0 or version 7.1. To check which one, click Help in the left panel of the editor: version 7.0 sites also show their template name.

When to Seek Engineering Assistance

If your organization has outgrown standard Squarespace features, needs two-way inventory synchronization, has webhook handlers that miss or duplicate orders, or is weighing a move to a custom stack, an outside engineer can scope the work in writing first.

Explore SazM's fixed-price E-Commerce Development Services, review custom API and system integrations, or send a written brief through the contact page.

// SazM ENGINEERING DISPATCH · PRODUCTION REMEDIATION

Senior Engineering Without Agency Overhead

// TRACK A · FIXED-PRICE FIXES (48H SLA)

Single Urgent or Speed Fix

Immediate code-level fixes with zero discovery calls. Emergency root-cause patch within 48 hours for $99, or full Core Web Vitals & speed remediation with before/after audit for $199. 100% money back if the agreed root cause cannot be fixed.

// TRACK B · SENIOR RETAINER & BUILDS

Monthly Plan or Custom Scope

Direct senior-level capacity embedded in your stack. Dedicated monthly engineering ($999/mo, 1 active task at a time, 24–48h PR delivery, pause or cancel anytime), or fixed-scope architectural milestones delivered within a 24h written quote.

✓ 20+ years engineering ✓ 100+ projects in the portfolio ✓ Fixes within 48 hours ✓ 100% money back if not fixed
1 Active Task at a Time
Requests are completed one by one in your priority order. As soon as an active task is shipped, tested, and approved, work starts immediately on your next task within our 24–48h SLA.
48h Emergency SLA
Clock starts as soon as site access details are provided. Delivered with full backup taken first, isolated staging testing, and 100% money back if not fixed.
WordPress Care Plan Scope
Weekly core and plugin updates pre-tested in staging, daily offsite encrypted backups, 24/7 uptime monitoring, and proactive security patching.
Pay Nothing Upfront
Zero upfront payment or credit card required. A 20-Year Senior Engineer diagnoses your issue, reproduces it on isolated staging, and deploys the fix. You only pay once you verify the staging reproduction or production fix.