sparql-formatter
JSON →A SPARQL 1.1 query formatter for Node.js and the browser. Current version 1.0.2 formats SPARQL queries with customizable indentation and formatting modes (default, compact, turtle, JSON-LD). It supports both ESM imports and CommonJS require, and includes a CLI tool. Unlike ad-hoc formatters, it parses queries according to the SPARQL 1.1 spec, ensuring correctness. The package is stable with low release cadence, suitable for integration into query editors or pipelines.