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

@calumba/ris-cli

v1.1.3

Published

CLI wrapper for the Austrian RIS API with Judikatur and Bundesrecht support

Readme

ris-cli

ris-cli is a Node.js CLI that aims to become a practical wrapper around the Austrian RIS (Rechtsinformationssystem) API.

Today, the implemented CLI surface covers Judikatur plus an initial Bundesrecht command. The broader RIS API surface is already documented in docs/, but not all of it is exposed as CLI commands yet.

Current scope

Right now, ris-cli can:

  • search RIS judgments / Judikatur via the official API
  • search Bundesrecht (BrKons) and optionally fetch matched provision full text
  • sync matching Judikatur results into an Obsidian vault as Markdown/MDX files
  • track already processed documents in SQLite to avoid duplicates
  • run an interactive onboarding command that writes runtime config
  • generate summaries via extractive, ollama, vllm, mlx-lm, or any OpenAI-compatible endpoint
  • send optional Telegram notifications
  • send native macOS notifications as a fallback when Telegram is not configured

Project status

  • Vision: a CLI wrapper for the broader RIS API, not only one narrow search workflow
  • Current implementation: search, sync, and notify cover Judikatur; bundesrecht adds the first non-Judikatur RIS command for Bundesrecht / BrKons
  • Documentation status: docs/ already contains researched material for additional RIS areas and endpoints

If you are evaluating the project, treat the current CLI as "RIS wrapper with Judikatur-first support plus initial Bundesrecht coverage", not yet as a full wrapper for every RIS endpoint.

Requirements

  • Node.js 20+
  • For sync/local search: an Obsidian vault path you can write to
  • For generated summaries:
    • ollama running locally, or
    • a vllm/mlx-lm/OpenAI-compatible server, or
    • no model at all if you use the default extractive provider
  • For Telegram notifications: a bot token and chat ID

Installation

Global install

pnpm add -g @calumba/ris-cli
# or
npm i -g @calumba/ris-cli

One-off use with pnpm dlx

pnpm dlx @calumba/ris-cli --help

Local development

pnpm install
pnpm build
node bin/ris-cli.js --help

Maintainer release flow

# 1) update package.json version + CHANGELOG
# 2) merge to main
git switch main && git pull --ff-only
make release-doctor
make release

make release-doctor validates that you are on a clean main, that package.json matches the release version, that local main matches origin/main, and that npm provenance is only used from a public GitHub repository.

make release runs make release-doctor, then executes the local release checks, creates v<version>, and pushes the tag to trigger the release workflow.

Configuration

ris-cli reads configuration in this order:

  1. Environment variables
  2. RIS_CLI_CONFIG file path
  3. ~/.config/ris-cli/config.json
  4. Legacy fallback: ~/.config/urteil-watch/config.json and ~/.config/urteil-watchdog/config.json

Example config

Create ~/.config/ris-cli/config.json:

{
  "obsidianVaultPath": "/path/to/your/obsidian-vault",
  "dataFolder": "ris-cli",
  "summaryProvider": "ollama",
  "summaryModel": "llama3.1:8b",
  "summaryBaseUrl": "http://127.0.0.1:11434",
  "summaryApiKey": "optional-if-needed",
  "telegram": {
    "botToken": "123456:ABCDEF...",
    "chatId": "-1001234567890",
    "topicId": 5
  }
}

Environment variables

# Optional: generated summaries
RIS_CLI_SUMMARY_PROVIDER=ollama
RIS_CLI_SUMMARY_MODEL=llama3.1:8b
RIS_CLI_SUMMARY_BASE_URL=http://127.0.0.1:11434
RIS_CLI_SUMMARY_API_KEY=

# Backward-compatible OpenAI aliases
OPENAI_API_KEY=
RIS_CLI_OPENAI_API_KEY=

# Optional: explicit config path
RIS_CLI_CONFIG=/path/to/config.json

# Required for sync/local search if not set in config
RIS_CLI_OBSIDIAN_VAULT_PATH=/path/to/your/obsidian-vault
RIS_CLI_DATA_FOLDER=ris-cli

# Optional: Telegram notifications
RIS_CLI_TELEGRAM_BOT_TOKEN=...
RIS_CLI_TELEGRAM_CHAT_ID=...
RIS_CLI_TELEGRAM_TOPIC_ID=5

Summary provider notes

  • extractive — default fallback, no model required
  • ollama — defaults to http://127.0.0.1:11434
  • vllm — defaults to http://127.0.0.1:8000/v1
  • mlx-lm — defaults to http://127.0.0.1:8080/v1
  • openai-compatible — works with any OpenAI-style chat completions endpoint

Examples:

# Ollama
RIS_CLI_SUMMARY_PROVIDER=ollama \
RIS_CLI_SUMMARY_MODEL=llama3.1:8b \
ris-cli search "Beleidigung" --with-summary --limit 3

# vLLM
RIS_CLI_SUMMARY_PROVIDER=vllm \
RIS_CLI_SUMMARY_MODEL=meta-llama/Llama-3.1-8B-Instruct \
RIS_CLI_SUMMARY_BASE_URL=http://127.0.0.1:8000/v1 \
ris-cli search "Beleidigung" --with-summary --limit 3

# mlx-lm server
RIS_CLI_SUMMARY_PROVIDER=mlx-lm \
RIS_CLI_SUMMARY_MODEL=mlx-community/Llama-3.2-3B-Instruct-4bit \
RIS_CLI_SUMMARY_BASE_URL=http://127.0.0.1:8080/v1 \
ris-cli search "Beleidigung" --with-summary --limit 3

RIS coverage

The underlying RIS API exposes multiple top-level areas beyond Judikatur. This repository already tracks and documents that larger surface in:

  • docs/ris-api-overview.md
  • docs/ris-api-endpoints-catalog.md
  • docs/judikatur/
  • docs/sonstige/

However, the executable CLI currently wraps only part of the documented RIS surface.

That means:

  • search currently searches Judikatur
  • bundesrecht searches Bundesrecht via Applikation=BrKons
  • bundesrecht --with-full-text fetches the matched provision text via RIS content URLs with page fallbacks
  • sync currently syncs Judikatur documents into Obsidian
  • notify currently reports on newly synced Judikatur items
  • other documented RIS endpoint families are not yet exposed as first-class CLI commands

Usage

Show help

ris-cli --help

Onboard interactively

Creates the runtime config file for ris-cli.

ris-cli onboard
ris-cli onboard --vault-path "/path/to/vault"
ris-cli onboard --summary-provider ollama --summary-model llama3.1:8b
ris-cli onboard --json

Search RIS

At the moment this means: search the RIS Judikatur endpoint used by the project.

ris-cli search "Cybermobbing"
ris-cli search "Beleidigung" --from-date 2023-01-01 --to-date 2023-12-31
ris-cli search "Verhetzung" --limit 10
ris-cli search "Verhetzung" --court OGH --limit 10
ris-cli search "Verhetzung" --with-summary --limit 3
ris-cli search --json

Search results are requested from RIS as decision texts and sorted server-side by date descending (newest first). Add --with-summary to fetch the full text of each result and generate a summary.

Search Bundesrecht

This command queries RIS Bundesrecht with Applikation=BrKons.

ris-cli bundesrecht "BDG § 3"
ris-cli bundesrecht "Beamten-Dienstrechtsgesetz § 3" --with-full-text
ris-cli bundesrecht "Datenschutz" --limit 5 --json

By default, --with-full-text fetches the matched provision text via RIS content URLs and only falls back to page scraping when needed.

Search locally in synced files

Requires an Obsidian vault path via config or environment.

ris-cli search --local "StGB"

Sync judgments into Obsidian

This currently syncs Judikatur results, not the full RIS API surface.

ris-cli sync
ris-cli sync --dry-run
ris-cli sync --queries "Cybermobbing,Hassposting"
ris-cli sync --court OGH --max-results-per-query 50
ris-cli sync --force
ris-cli sync --json

By default, incremental sync uses the last successful sync date as its lower bound when available; otherwise it falls back to the last 30 days.

Default sync queries:

  • üble Nachrede §111 StGB
  • Beleidigung §115 StGB
  • Verhetzung §283 StGB
  • Cybermobbing
  • Hassposting

Notify about recent judgments

Notifications currently operate on newly synced Judikatur items.

ris-cli notify
ris-cli notify --hours 48
ris-cli notify --silent
ris-cli notify --json

Output

Synced Judikatur items are stored in your configured Obsidian vault under:

<dataFolder>/
├── urteile/
└── state.sqlite

Each judgment is written as Markdown/MDX with YAML frontmatter containing metadata such as court, date, case number, source URL, query, tags, and retrieval time.

Development

pnpm install
make help
make check

Common targets:

make build
make test
make smoke
make format

Release

Versioned releases are published through GitHub Actions via .github/workflows/release.yml.

Maintainer workflow

  1. Ensure the working tree is clean and main is up to date.
  2. Bump the package version locally.
  3. Push the commit and version tag.
  4. Let GitHub Actions run the release workflow.

Example:

git checkout main
git pull --ff-only
pnpm install
pnpm check
pnpm version patch
# or: pnpm version minor
# or: pnpm version major

git push origin main --follow-tags

That creates a tag like v1.0.1, which triggers the release workflow. The workflow then:

  • verifies the tag matches package.json
  • runs checks and smoke tests
  • builds the package
  • tests the packed tarball
  • publishes to npm with provenance
  • creates a GitHub Release

Manual workflow dispatch

You can also start the release workflow manually from GitHub Actions with an explicit version input like v1.0.1. In that case, make sure:

  • the tag already exists or the selected ref matches that version
  • package.json already contains the same version without the v prefix

Install a released version

pnpm add -g @calumba/ris-cli
# or
npm i -g @calumba/ris-cli
# or
pnpm dlx @calumba/ris-cli --help

License

MIT