A TypeScript SQL query parser that runs in the browser and executes queries against JSON data.
- TypeScript-only parser and execution engine
- SvelteKit web interface for loading JSON and running SQL
- Query history in session storage
- Export query results as JSON, CSV, or Excel
sql-query-parser/
├── src/ # SvelteKit app + TypeScript parser
└── static/ # Static assets
- Node.js 18+
- npm 8+
git clone https://github.com/nicholaschen09/sql-query-parser.git
cd sql-query-parser
npm installnpm run devOpen http://localhost:5173.
npx vitest runSELECT * FROM table;
SELECT state, pop FROM table WHERE pop > 1000000;
SELECT * FROM table WHERE pop > 1000000000 OR (pop > 1000000 AND region = 'Midwest');
SELECT state FROM table WHERE state != 'California' LIMIT 5;