npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@robotixai/lexius-agent

v0.2.0

Published

Conversational AI compliance consultant — provenance-aware, deterministic, Claude-powered

Readme

@robotixai/lexius-agent

Interactive AI compliance consultant for the Lexius platform. Provider-agnostic — works with Anthropic, OpenAI, OpenRouter, or Ollama. Every factual claim comes from the database, not the model's training data.

Quick Start

# 1. Start a ready-made database (schema auto-applied)
docker run -d -p 5432:5432 \
  -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
  -e POSTGRES_DB=$POSTGRES_DB \
  -e POSTGRES_USER=$POSTGRES_USER \
  robotixai/lexius-db

# 2. Run the agent (default: Anthropic)
export DATABASE_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB
export ANTHROPIC_API_KEY=sk-ant-...
npx @robotixai/lexius-agent

# Or use a different provider
npx @robotixai/lexius-agent --provider openai       # requires OPENAI_API_KEY
npx @robotixai/lexius-agent --provider openrouter   # requires OPENROUTER_API_KEY (any model, one key)
npx @robotixai/lexius-agent --provider ollama       # local models, no key needed

What It Does

Ask compliance questions in natural language. The agent routes to deterministic tools, retrieves provenance-tagged answers, and presents them with article citations:

  • Classifies your AI system under the EU AI Act risk framework
  • Lists your obligations by role (provider/deployer) and risk level
  • Calculates penalty exposure with SME rules
  • Retrieves verbatim article text from the regulation
  • Checks compliance deadlines
  • Runs structured assessments (Art. 6(3) exception, GPAI systemic risk)
  • Generates full audit reports

Determinism

The agent is configured for maximum reproducibility:

  • temperature: 0 on all API calls
  • DB-loaded enums — tool schemas use exact valid values from the database, not hardcoded lists
  • Provenance on every claim — responses distinguish AUTHORITATIVE (verbatim law) from CURATED (expert interpretation) from AI_GENERATED
  • No fallback to training data — if a tool call fails, the agent reports the failure; it does not guess

Tools Available

| Tool | Description | Source | |------|-------------|--------| | classify_system | Risk classification | DB (deterministic) | | get_obligations | Obligations by role/risk | DB | | calculate_penalty | Penalty calculation | DB + extracted values | | get_article | Verbatim article text | CELLAR/PDF (AUTHORITATIVE) | | get_deadlines | Compliance deadlines | DB | | search_knowledge | Semantic search | DB + embeddings | | answer_question | FAQ lookup | DB | | run_assessment | Structured assessments | DB (plugin rules) | | list_legislations | Available legislations | DB |

Hivemind Swarm

The agent package also includes the hivemind swarm — parallel compliance analysis across all articles:

import { runSwarm, synthesise, cleanupSession } from '@robotixai/lexius-agent';

const result = await runSwarm(db, 'eu-ai-act', { concurrency: 4 });
const report = await synthesise(db, result.sessionId, metadata);
await cleanupSession(db, result.sessionId);

1,882 findings in ~2.6s. Fully deterministic — no LLM in the agent loop.

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | DATABASE_URL | Yes | PostgreSQL connection string | | ANTHROPIC_API_KEY | --provider anthropic | Anthropic API key (default provider) | | OPENAI_API_KEY | --provider openai | OpenAI API key (also used for embeddings) | | OPENROUTER_API_KEY | --provider openrouter | Single key for any model (Claude, GPT-4, Llama, Gemini) | | OLLAMA_URL | --provider ollama | Ollama API URL (default: localhost:11434) | | LEXIUS_MODEL | No | Override the default model for any provider |

Links

License

MIT