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

@sknoble/slvsx-mcp-server

v0.2.4

Published

MCP server for SLVSX geometric constraint solver

Readme

SLVSX - SolveSpace Constraint Solver CLI

CI Status codecov

A command-line tool that makes the SolveSpace geometric constraint solver accessible to AI agents and developers through a simple JSON interface.

Features

  • 🤖 AI-Ready - Designed for use by AI agents through subprocess calls
  • 📦 Static Binary - Single executable with no dependencies
  • 🔧 JSON Interface - Simple input/output format
  • 🎯 Constraint Solving - Points, lines, circles, distances, angles, and more
  • 📐 Export Formats - SVG, DXF, STL output
  • 🚀 Fast - Native C++ solver wrapped in Rust

Installation

Download Static Binary (Recommended)

# Linux (x86_64)
curl -L https://github.com/snoble/slvsx-cli/releases/latest/download/slvsx-linux.tar.gz | tar xz
sudo mv slvsx /usr/local/bin/

# macOS (Apple Silicon)
curl -L https://github.com/snoble/slvsx-cli/releases/latest/download/slvsx-macos-arm64.tar.gz | tar xz
sudo mv slvsx /usr/local/bin/

# macOS (Intel)
curl -L https://github.com/snoble/slvsx-cli/releases/latest/download/slvsx-macos-x86_64.tar.gz | tar xz
sudo mv slvsx /usr/local/bin/

# Test installation
slvsx --version

Build from Source

See docs/BUILDING.md for detailed build instructions.

Quick Start

Try It Now

# Solve a triangle from distances
slvsx solve examples/02_triangle.json

# Create a parametric hinge mechanism
slvsx solve examples/08_angles.json

# Design a symmetric arrowhead
slvsx solve examples/11_symmetric.json

# Export to SVG for visualization
slvsx export -f svg examples/08_angles.json -o output.svg

# Export 3D objects from multiple angles
slvsx export -f svg -v xy examples/04_3d_tetrahedron.json -o top.svg
slvsx export -f svg -v xz examples/04_3d_tetrahedron.json -o front.svg
slvsx export -f svg -v yz examples/04_3d_tetrahedron.json -o side.svg

🎨 See the Visual Gallery for cool renders and 3D visualizations!

Basic Example: Triangle from Distances

# Create a simple constraint problem
cat > triangle.json << 'EOF'
{
  "schema": "slvs-json/1",
  "units": "mm",
  "entities": [
    {"type": "point", "id": "A", "at": [0, 0, 0]},
    {"type": "point", "id": "B", "at": [100, 0, 0]},
    {"type": "point", "id": "C", "at": [50, 50, 0]}
  ],
  "constraints": [
    {"type": "fixed", "entity": "A"},
    {"type": "fixed", "entity": "B"},
    {"type": "distance", "between": ["A", "C"], "value": 80},
    {"type": "distance", "between": ["B", "C"], "value": 60}
  ]
}
EOF

# Solve it
slvsx solve triangle.json

# Export to SVG
slvsx export -f svg triangle.json > triangle.svg

What this does: Given two fixed points and distances to a third point, SLVSX calculates where the third point must be. This is triangulation - the same math used in GPS!

See SHOWCASE.md for impressive examples, docs/AI_GUIDE.md for AI agent usage, and docs/ITERATIVE_DESIGN.md for best practices on building constraint problems iteratively.

Commands

slvsx solve input.json          # Solve constraints
slvsx validate input.json       # Check validity
slvsx export -f svg input.json  # Export to SVG

Use from Python

import json, subprocess

def solve(problem):
    result = subprocess.run(
        ['slvsx', 'solve', '-'],
        input=json.dumps(problem),
        capture_output=True,
        text=True
    )
    return json.loads(result.stdout) if result.returncode == 0 else None

For AI Agents

SLVSX is designed to be used by AI agents for solving geometric constraint problems. Perfect for:

  • Constraint-based design generation - Describe what you want, not how to draw it
  • Mechanism validation - Check if designs are physically possible
  • Parametric optimization - Explore design spaces systematically
  • Mathematical precision - Get exact solutions, not approximations

Quick Links:

Examples

The examples/ directory contains many constraint problems:

🎯 Quick Wins

🔧 Real-World Applications

📚 Learning Path

See SHOWCASE.md for more impressive examples and use cases!

Documentation

Getting Started

Reference

For AI Agents

License

GPLv3 - See LICENSE file for details.

Built on top of SolveSpace's constraint solver library.