# mmarinovic/tailwindsql

TailwindSQL lets you write SQL queries using Tailwind-style class names.

Repository: https://github.com/mmarinovic/tailwindsql
Canonical: https://ross.abutalabs.com/products/tailwindsql
Homepage: https://tailwindsql.xyz/
Language: TypeScript
License Family: other
Last push: 2025-12-16T20:05:55+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 57, release rhythm 35, longevity 18
- inputs: {"age_days": 261, "days_push": 260, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1305, forks 53 (observed 2026-08-28T04:04:18.600124+00:00)

## What it is
TailwindSQL is a TypeScript library that lets you write SQL queries as Tailwind-style class names on a React Server Component, e.g. `<DB className="db-users-name-where-id-1" />`. It parses class names into query configs, builds safe SQLite queries via better-sqlite3, and renders results as text, lists, tables, or JSON with zero client-side JavaScript.

## Use cases
- query sqlite from react server components with class names
- render database data as lists or tables without client js
- prototype data-driven pages with tailwind-style sql syntax
- build demo dashboards from a local sqlite database
- teach sql through an interactive class-name playground

## When to choose
- you use React Server Components with a local SQLite database and want minimal query boilerplate
- you want zero client-side JavaScript for simple read-only queries
- you're building demos or prototypes with simple SELECT queries

## When to avoid
- you need complex SQL, writes, transactions, or parameterized user input
- you're on a production app where class-name-based queries are a security or maintainability risk
- you use a database other than SQLite

## Facets
- artifact type: library
- maturity: experimental
- function: database, orm, ui-components, parser, web-framework
- domain: web-development, frontend, databases, developer-tools
- platform: -
- tags: tailwind-syntax, react-server-components, sqlite, better-sqlite3, nextjs, class-name-queries, nodejs, web-server, typescript

## Member repositories
- mmarinovic/tailwindsql (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.600124+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-30T04:51:03.371435+00:00, confidence not recorded.
  - readme: https://github.com/mmarinovic/tailwindsql (fetched 2026-08-28T04:04:18.600124+00:00, sha 8784be126bdd)
  - homepage: https://tailwindsql.xyz/ (fetched 2026-08-29T12:09:15.063569+00:00, sha f17613eb133a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
