Latitude screenshot

What is Latitude?

Latitude is an open-source framework for building embedded analytics into your applications. You write SQL queries against your database or data warehouse, and Latitude converts them into API endpoints that you can call from your frontend code. It handles the backend infrastructure, letting you focus on the analytics logic itself rather than building a separate API layer. The tool is designed for teams that want to embed charts, dashboards, and interactive visualisations directly into their products without managing complex backend services. It works particularly well if you're already comfortable with SQL and want to avoid writing boilerplate API code. You can embed visualisations using React components, iframes, or by calling the APIs directly, giving you flexibility in how you integrate the analytics into your user interface. Latitude includes practical features like query parameterisation for dynamic filtering, built-in caching to improve performance, and zero-configuration deployments so you can get started quickly. Security features include encryption at rest and SSL support. Since it's open-source, you can self-host it and inspect the code yourself.

Key Features

SQL to API conversion

Write SQL queries and Latitude exposes them as API endpoints automatically

Native React components

Pre-built components for embedding visualisations, with Svelte and Vue support coming soon

Parameterised queries

Add filters and dynamic parameters to your SQL without writing separate query logic

Caching layer

Built-in query result caching to reduce database load and improve response times

Zero-configuration deployment

Deploy without extensive configuration or infrastructure setup

Security features

Encryption at rest and SSL support for protecting sensitive analytics data

Pros & Cons

Advantages

  • Open-source, so you can self-host and avoid vendor lock-in
  • Simple workflow if you know SQL; no need to write backend API code
  • Flexible embedding options through React components, iframes, or direct API calls
  • Caching and parameterisation reduce unnecessary database queries

Limitations

  • Requires SQL knowledge; not suitable for teams without database expertise
  • React support is primary; Svelte and Vue support is still coming, limiting options for other frameworks
  • As an open-source project, ongoing maintenance and updates depend on community contribution

Use Cases

Embedding dashboards and analytics directly into SaaS applications

Creating internal tools that visualise database data for non-technical stakeholders

Building multi-tenant analytics where each customer sees their own data via the same interface

Adding real-time reporting features to existing products without building a separate backend

Prototyping analytics quickly using SQL without writing API endpoints from scratch