# AlaSQL/alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.

Repository: https://github.com/AlaSQL/alasql
Canonical: https://ross.abutalabs.com/products/alasql
Homepage: http://alasql.org
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-25T17:28:51+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4329, "days_push": 8, "days_rel": 8, "gap_med": 8, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7281, forks 692 (observed 2026-08-28T04:09:58.009193+00:00)

## What it is
AlaSQL is a lightweight in-memory SQL database written in pure JavaScript that runs in the browser, Node.js, and mobile apps. It queries both relational tables and nested JSON data, and supports importing/exporting data from formats like localStorage, IndexedDB, and Excel.

## Use cases
- run SQL queries on JSON data in the browser
- in-memory data processing for BI dashboards on fat clients
- import and export Excel/CSV data with SQL
- ETL and data manipulation in Node.js
- persist query results to localStorage or IndexedDB
- query nested NoSQL-style JSON with SQL joins and grouping

## When to choose
- you need fast client-side SQL over in-memory relational or JSON data
- you want easy import/export across Excel, CSV, localStorage, and IndexedDB
- you're building browser or Node.js apps needing a lightweight embedded SQL engine

## When to avoid
- you need durable multi-user server-side storage or full ACID transactions
- you need very limited transaction support or concurrent writes
- you need a production-grade database backend like PostgreSQL or SQLite

## Facets
- artifact type: library
- maturity: active
- function: database, etl, serialization, data-science
- domain: databases, web-development, developer-tools
- platform: browser, cross-platform
- tags: in-memory-database, sql, nosql, excel-export, localstorage, indexeddb, client-side-database, data-engineering, nodejs, javascript

## Member repositories
- AlaSQL/alasql (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.009193+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:53.120684+00:00, confidence not recorded.
  - readme: https://github.com/AlaSQL/alasql (fetched 2026-08-28T04:09:58.009193+00:00, sha 15d40eb1d28c)
  - homepage: http://alasql.org (fetched 2026-08-29T08:34:25.758244+00:00, sha 1e8fd9821d84)
- Data as of 2026-08-30T08:39:29.467469+00:00.
