Skip to content

Epic: Node.js and TypeScript — npm install sqlguardllm, no Python, no server #85

Done
4 of 4 issues completed

Description

@jmmana

Goal

One npm package, written in TypeScript, that works in plain JavaScript and TypeScript alike and brings the engine with it.

import { SqlGuard } from "sqlguardllm";

const guard = await SqlGuard.local({ policyPath: "policy.yaml" });
const result = await guard.check("SELECT * FROM invoices", { user: { branches: [1] } });

(Proposed API; the existing remote client new SqlGuard({ url }) stays.)

Done when

  • npm install sqlguardllm works on Linux, macOS and Windows without Python
  • The whole conformance corpus passes in local mode on all three
  • Published on npm with provenance (owner step)

Issues

Architecture

Architecture (decided by the owner): one package per language with the engine inside. The Python engine is compiled into a standalone executable per platform, and each package ships it and talks to it over a local stdio protocol. Users need neither Python nor a server. There is one engine, so every language gets the same rules and the same fixes; the engines are never rewritten per language. The existing HTTP clients stay as remote mode.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    type:epic
    lang:node
    on Nov 26, 2026
  2. jmmana commented on Nov 27, 2026

    @jmmana
    OwnerAuthor

    Completa: npm install sqlguardllm trae el motor, sin Python ni servidor (#72, #73), con integraciones (#74) y publicación con procedencia (#75). Probado instalando desde el registro en una carpeta nueva.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:nodetype:epic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions