Registry / devops / rintenki-lsp-server

rintenki-lsp-server

JSON →
library0.14.5jsnpmunverified

rintenki-lsp-server is a Language Server Protocol (LSP) implementation specifically designed for the rintenki HTML linter. It provides real-time diagnostics, code actions (including quick fixes for auto-fixable rules), and rich hover information for HTML documents. Currently at version 0.14.5, it is under active development, likely with a release cadence tied to the core rintenki linter. Key differentiators include its focus on precise HTML linting, integration with the robust rintenki ruleset, and configurability via a `.rintenkirc.json` file or editor-specific settings. While primarily consumed by editor extensions like the rintenki VS Code extension, it can be integrated with any LSP-compatible client by launching it as a standard I/O process.

npm install rintenki-lsp-server
INSTALL
IMPORT
SIG · RINTENKI-LSP-SERVE
R
rintenki-lsp-server
devopsjavascriptv0.14.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RintenkiSettings
import type { RintenkiSettings } from 'rintenki-lsp-server';
This is a TypeScript type definition for the server's configuration object, derived from `.rintenkirc.json`. It is for type-checking when developing custom tooling that interacts with server settings, not for runtime import.
RintenkiDiagnostic
import type { RintenkiDiagnostic } from 'rintenki-lsp-server';
This is a TypeScript type definition for diagnostics specific to rintenki, typically extending standard LSP Diagnostic types. It's used for type-checking in custom integrations, not for runtime import.
startServer
import { startServer } from 'rintenki-lsp-server/lib/server';
While the server is primarily designed to be launched as a standalone executable (e.g., `node lib/server.js --stdio`), this represents a plausible programmatic entry point if one were to embed or deeply integrate the server logic within another Node.js application. This is not a common use case for end-users.

Demonstrates installation, how to launch the rintenki-lsp-server via standard I/O for a generic LSP client, and provides an example configuration file.

npm install rintenki-lsp-server rintenki # To launch the rintenki LSP server for generic LSP clients (e.g., Neovim, Emacs): # Configure your LSP client to execute this command: # (ensure 'node' is in your PATH or specify the full path to your Node.js executable) node ./node_modules/rintenki-lsp-server/lib/server.js --stdio // Example .rintenkirc.json in your project root for configuration: // { // "rules": { // "no-bare-script": "warn", // "self-closing-void-elements": "error", // "prefer-button-type": "off" // } // }
rintenki-lsp-server --version
Debug
Known issues
breakingAs a package in the 0.x.x version range, breaking changes can occur between minor versions. Always consult the GitHub release notes or changelog when upgrading, especially for changes in rintenki's core rules, options, or the server's configuration schema which may require `.rintenkirc.json` updates.
fix
Before upgrading, review the release notes. After upgrading, update your `.rintenkirc.json` configuration and any editor-specific LSP client settings to match the new schema or rule names.
affects: >=0.1.0
gotchaThe effectiveness of the LSP server is highly dependent on the correct configuration of the underlying `rintenki` linter. Misconfigured, invalid, or missing `.rintenkirc.json` files can lead to the server not providing expected diagnostics or quick fixes.
fix
Ensure a valid `.rintenkirc.json` file is present in your project's root directory. Validate its JSON syntax and ensure the rule names and options adhere to the `rintenki` linter's documentation.
affects: >=0.1.0
gotcharintenki-lsp-server is designed to be launched as a separate process via standard I/O (stdio) and is not intended for direct programmatic `import` and execution within browser environments or other JavaScript applications by end-users. Its primary interface is the LSP protocol.
fix
Integrate by configuring your editor's LSP client to spawn `rintenki-lsp-server` as a child process, rather than attempting to import its modules directly into your application code. Refer to your LSP client's documentation for server setup instructions.
affects: >=0.1.0
Errors
Common errors & fixes
Language server exited unexpectedly. Check output for more details.
This common error indicates a runtime issue within the `rintenki-lsp-server` process. Possible causes include an invalid `.rintenkirc.json` configuration, missing `rintenki` dependency, or an unhandled exception during server initialization or document processing.
fix
First, check your editor's LSP output/log panel for specific error messages. Verify the syntax and content of your `.rintenkirc.json`. Ensure `rintenki` is installed as a peer dependency (`npm install rintenki`). If logs are unavailable, try running the server manually with `node ./node_modules/rintenki-lsp-server/lib/server.js --stdio` to see direct console output.
No diagnostics/linting errors are showing for HTML files.
The LSP client might not be correctly configured to associate HTML file types with `rintenki-lsp-server`, the server process might not be running or connected, or the `rintenki` configuration might be too permissive or exclude relevant files.
fix
Confirm your editor's LSP client settings properly link HTML file types (e.g., `.html`, `.vue`, `.svelte`) to the `rintenki-lsp-server`. Ensure the server is successfully launched and connected. Review your `.rintenkirc.json` file for 'ignore' patterns or overly lenient rule severities (e.g., 'off').
Upgrade
Version history
0.14.5latest on npm
Audit
Dependencies
rintenkirequiredProvides the core HTML linting logic and rules that the LSP server exposes.
vscode-languageserverrequiredProvides the foundational framework and types for building Language Server Protocol servers in Node.js/TypeScript.
Agent activity
4 hits · last 30 days
node
4
Resources
rintenki-lsp-server — npm install rintenki-lsp-server · libregistry