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

arturo-lsp

v1.0.1

Published

Language Server Protocol implementation for the Arturo programming language

Readme

Arturo Language Server

This directory contains the Language Server Protocol (LSP) implementation for Arturo.

Features

  • Type Checking: Validates type annotations and checks for type compatibility
  • Go-to-Definition: Navigate to variable and function definitions
  • Hover Information: Display type information and documentation for symbols
  • Code Completion: Autocomplete for built-in functions, types, and user-defined symbols
  • Signature Help: Real-time parameter hints with active parameter tracking
    • Dynamic Signature Generation (v2.0+): Automatically indexes all 521+ built-in functions
    • Stale-While-Revalidate Caching: Instant startup with background updates
    • Offline-First: Works without internet using seed cache with 80 popular functions
  • Find All References: Scope-aware reference finding
  • Rename Symbol: Safe symbol renaming with validation
  • Document Formatting: Auto-format with bracket-aware indentation
  • Folding Ranges: Code folding support
  • Document Symbols: Document outline
  • Inlay Hints: Inline parameter names and type information
  • Semantic Tokens: Enhanced syntax highlighting
  • Workspace Symbols: Global symbol search
  • Document Highlights: Automatic symbol highlighting
  • Code Actions: Quick fixes and refactorings
  • Diagnostics: Real-time error and warning messages with 500ms debounce to avoid false positives while typing

Installation

The language server is automatically bundled with the Zed extension. To install dependencies manually:

cd language-server
npm install

Usage

The language server is automatically started by Zed when you open an Arturo file (.art).

Configuration (v2.0+)

You can toggle specific LSP features on/off through Zed settings:

{
  "lsp": {
    "arturo": {
      "completions": "off",  // Disable code completion
      "signatures": "on",    // Enable signature help (default)
      "formatting": "off",   // Disable document formatting
      "highlights": "on"     // Enable document highlights (default)
    }
  }
}

Available Features:

  • completions - Code completion and autocomplete suggestions
  • signatures - Signature help (parameter hints)
  • formatting - Document formatting
  • highlights - Document highlights (symbol occurrences)

All features are enabled by default. Set a feature to "off" to disable it.

Development

To test the language server standalone:

node server.js --stdio

Architecture (v2.0+)

Dynamic Signature Generation

The LSP now features a sophisticated signature indexing system:

Components:

  • lib/signature-indexer.js: Core indexing module with stale-while-revalidate pattern
  • seed-cache.json: Pre-packaged cache with 80 most popular functions
  • .cache/signatures.json: User cache updated every 24 hours

Workflow:

  1. Boot Phase: LSP loads seed cache immediately (< 10ms)
  2. Background Check: After startup, checks for updated documentation
  3. Delta Update: If newer signatures found, updates cache for next session
  4. Seamless UX: Users never notice when signatures refresh

Benefits:

  • Coverage: 521+ functions vs 80 manually-defined
  • Performance: Instant startup, non-blocking updates
  • Reliability: Works offline, graceful degradation
  • Maintainability: Auto-updates from Arturo documentation

Signature Cache Structure

{
  "signatures": {
    "functionName": {
      "signature": "functionName param :type -> :returnType",
      "description": "Function description",
      "params": [{ "name": "param", "type": ":type" }],
      "returns": ":returnType"
    }
  },
  "lastUpdate": "2025-02-14T00:00:00.000Z",
  "version": "1.0"
}

Type System

The language server understands Arturo's type system including:

  • Primitives: :null, :logical, :integer, :floating, :char, :string
  • Collections: :block, :dictionary, :range
  • Functions: :function, :method
  • Advanced: :complex, :rational, :quantity, :color, :date
  • And many more...