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

@xano/xanoscript-language-server

v12.32.0

Published

Language Server Protocol implementation for XanoScript, the language of Xano backends

Readme

XanoScript Language Server

The Language Server Protocol implementation for XanoScript, the language that describes a Xano backend: its APIs, functions, tables, tasks, agents, MCP servers and policies.

Xano is one platform to build, run and govern AI-built software. This server brings the platform's rules into the editor, so you and your coding agent see the problems a push would refuse while you write the code.

Built on Chevrotain and maintained by the Xano team.

Features

  • Diagnostics - Errors and warnings as you type, including cross-file references, variable usage and workspace policy checks
  • Completion - Context-aware suggestions, triggered by ., :, $ and |
  • Hover - Documentation for statements, filters, input variables and policy checks
  • Go to definition - Jump to a referenced function, task, query or table, or to where a variable is set
  • Semantic highlighting - Token-based highlighting for every XanoScript construct

Installation

npm install @xano/xanoscript-language-server

Requires Node.js 20 or later.

Usage

The package ships two entry points:

| Entry point | Runtime | Transport | |---|---|---| | server.js | Node.js | stdio / IPC, via vscode-languageserver/node | | language-server-worker.js | Browser (Web Worker) | postMessage, via vscode-languageserver/browser |

Point any LSP client at server.js for .xs files. For example, with VS Code's vscode-languageclient:

const serverModule = require.resolve("@xano/xanoscript-language-server/server.js");

const client = new LanguageClient(
  "xanoscript",
  "XanoScript",
  {
    run: { module: serverModule, transport: TransportKind.ipc },
    debug: { module: serverModule, transport: TransportKind.ipc },
  },
  { documentSelector: [{ scheme: "file", language: "xanoscript" }] }
);

Policy checks

XanoScript policy files are checked against Xano's policy check catalogue. The server ships a snapshot of it (parser/policy/catalogueSnapshot.js), so what it reports is a warning: your instance may be newer than the snapshot. A host that can fetch the live catalogue can load it with setPolicyCatalogue() from parser/policy/catalogue.js.

Supported object types

| Type | Description | |------|-------------| | query | API endpoints with HTTP verbs, input validation and responses | | api_group | Collections of related API endpoints | | function | Reusable logic blocks with tests | | task | Scheduled operations with cron-like triggers | | table | Database schema definitions with column types | | table_trigger | Database table triggers | | workflow_test | Workflow test definitions | | middleware | Middleware definitions | | addon | Add-on definitions | | branch | Branch definitions | | workspace / workspace_trigger | Workspace definitions and triggers | | error_trigger | Error trigger handlers | | agent / agent_trigger | AI agent definitions and triggers | | tool | Tool definitions, including MCP tool metadata | | mcp_server / mcp_server_trigger | MCP server definitions and connection triggers | | prompt / resource | MCP prompts and resources | | policy | Workspace policies and their rules | | microservice | Container and Helm microservice deployments | | realtime_channel / realtime_trigger | Realtime v1 channels and triggers | | realtime_server / realtime_server_trigger | Realtime v2 servers and connection triggers | | channel / channel_trigger | Realtime v2 channels and join/leave triggers | | message | Realtime v2 channel message handlers | | run | Run job and service definitions |

Built-in function domains

ai, api, array, cloud, controls, datadog, db, debug, expect, math, mcp, object, realtime, redis, schema, security, storage, stream, text, util, var, zip

Project structure

├── server.js                  # Node LSP entry point
├── language-server-worker.js  # Browser (Web Worker) entry point
├── lexer/                     # Token definitions
├── parser/                    # Grammar rules
│   ├── base_parser.js         # Core XanoBaseParser
│   ├── [type]_parser.js       # One parser per object type
│   ├── attributes/            # Field attributes (description, disabled, sensitive)
│   ├── clauses/               # Blocks (stack, input, response, ...)
│   ├── definitions/           # Type and column definitions
│   ├── functions/             # Built-in statements by domain
│   ├── generic/               # Shared parsing components
│   └── policy/                # Policy check catalogue
├── onCompletion/              # Completion
├── onDefinition/              # Go to definition
├── onDidChangeContent/        # Diagnostics
├── onHover/                   # Hover documentation
├── onSemanticCheck/           # Semantic tokens
└── workspace/                 # Cross-file index and validation

Contributing

This repository receives one commit per release. Development happens elsewhere, so pull requests are turned off here. Found a bug? Open an issue. CONTRIBUTING.md says what makes a report quick to fix.

Security

To report a vulnerability, see SECURITY.md. Please don't open a public issue.

License

MIT