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

@isl-lang/lsp-server

v1.0.0

Published

Language Server Protocol implementation for ISL

Readme

@isl-lang/lsp-server

Language Server Protocol (LSP) implementation for ISL.

Installation

npm install @isl-lang/lsp-server

Usage

As a standalone server

# Start in stdio mode (for editor integration)
isl-lsp --stdio

# Start in socket mode
isl-lsp --socket --port 5007

Programmatic usage

import { createServer, startServer } from '@isl-lang/lsp-server';

// Create and start server
const server = createServer();
startServer(server, { stdio: true });

// Or with custom configuration
const server = createServer({
  capabilities: {
    completionProvider: { triggerCharacters: ['.', ':'] },
    hoverProvider: true,
    definitionProvider: true,
  },
});

Features

The ISL language server provides:

  • Diagnostics - Real-time error reporting
  • Completion - Context-aware suggestions
  • Hover - Type information and documentation
  • Go to Definition - Navigate to declarations
  • Find References - Find all usages
  • Document Symbols - File outline
  • Workspace Symbols - Project-wide symbol search
  • Formatting - Code formatting
  • Rename - Safe symbol renaming
  • Code Actions - Quick fixes and refactoring

Editor Integration

VS Code

Install the ISL extension which includes this server.

Neovim (nvim-lspconfig)

local lspconfig = require('lspconfig')

lspconfig.isl.setup({
  cmd = { 'isl-lsp', '--stdio' },
  filetypes = { 'isl' },
  root_dir = lspconfig.util.root_pattern('isl.config.yaml', '.git'),
})

Sublime Text (LSP package)

{
  "clients": {
    "isl": {
      "command": ["isl-lsp", "--stdio"],
      "selector": "source.isl"
    }
  }
}

Emacs (lsp-mode)

(lsp-register-client
 (make-lsp-client
  :new-connection (lsp-stdio-connection '("isl-lsp" "--stdio"))
  :major-modes '(isl-mode)
  :server-id 'isl-lsp))

Configuration

The server reads configuration from isl.config.yaml:

lsp:
  diagnostics:
    enabled: true
    debounce: 200
  completion:
    snippets: true
    autoImport: true
  formatting:
    tabSize: 2
    insertSpaces: true

Documentation

Full documentation: https://isl-lang.dev/docs/lsp-server

Import-Aware Diagnostics

The ISL language server supports multi-file ISL projects with import resolution. When your ISL files use imports, the server provides:

Import Resolution

  • Cross-file symbol lookup: Resolve types, entities, and behaviors from imported files
  • Missing import errors: Detect when imported files cannot be found (ISL2001)
  • Unknown export errors: Detect when importing symbols that don't exist in the source file (ISL2002)
  • Unused import hints: Detect imports that are never used (ISL2003)

Diagnostic Locations

Import errors are shown at both:

  • The import site (where the imports statement is)
  • Related information pointing to available exports in the imported file

Example

// common-types.isl
domain CommonTypes {
  version: "1.0.0"
  type Email = String { format: "email" }
}

// user-domain.isl
domain UserDomain {
  version: "1.0.0"
  imports { Email, UnknownType } from "./common-types"
  //               ^^^^^^^^^^^ ISL2002: 'UnknownType' is not exported from './common-types'
  
  entity User {
    email: Email  // Resolved from import
  }
}

Semantic Lint Rules

The server includes semantic linting with the following rules:

| Code | Name | Severity | Description | |------|------|----------|-------------| | ISL1001 | missing-postcondition | Warning | Behavior has no postconditions | | ISL1002 | precondition-without-error | Hint | Behavior has preconditions but no error cases | | ISL1003 | unused-type | Hint | Type is defined but never used | | ISL1004 | undefined-behavior-reference | Error | Scenarios reference undefined behavior | | ISL1010 | missing-description | Hint | Behavior should have a description | | ISL1011 | entity-without-id | Warning | Entity should have an id field | | ISL1012 | mutable-behavior-no-temporal | Hint | State-modifying behavior without temporal constraints | | ISL1013 | no-scenarios | Hint | Behavior has no test scenarios | | ISL1020 | sensitive-field-unprotected | Warning | Sensitive field without constraints | | ISL1021 | no-authentication | Hint | State-modifying behavior without security | | ISL1030 | unbounded-list | Hint | List type without size constraint | | ISL1031 | missing-pagination | Hint | List-returning behavior without pagination |

Quickfix Support

All lint rules include quickfix data payloads that enable VS Code code actions:

  • Add postconditions block
  • Add error cases for preconditions
  • Add id field to entity
  • Add temporal constraints
  • Add security requirements
  • Add pagination to input
  • Generate test scenarios
  • And more...

Rule Configuration

Disable specific rules via configuration:

import { ISLDiagnosticsProvider } from '@isl-lang/lsp-server';

const provider = new ISLDiagnosticsProvider(documentManager);
provider.configure({
  disabledRules: ['ISL1003', 'ISL1010']  // Disable unused-type and missing-description
});

Related Packages

License

MIT