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

tree-sitter-idl

v3.14.0

Published

OMG IDL grammar for tree-sitter

Readme

tree-sitter-idl

Crates.io Version PyPI - Version NPM - Version

OMG IDL 4.2(with XTypes extension) grammar for tree-sitter.

  • https://www.omg.org/spec/IDL/4.2/PDF
  • https://www.omg.org/spec/DDS-XTypes/1.3/PDF

current state

IDL v4.2:

  • [x] 7.3 Preprocessing(partial)
  • [x] 7.4.1 Building Block Core Data Types
  • [x] 7.4.2 Building Block Any
  • [x] 7.4.3 Building Block Interfaces – Basic
  • [x] 7.4.4 Building Block Interfaces – Full
  • [x] 7.4.5 Building Block Value Types
  • [x] 7.4.6 Building Block CORBA-Specific – Interfaces
  • [x] 7.4.7 Building Block CORBA-Specific – Value Types
  • [x] 7.4.8 Building Block Components – Basic
  • [x] 7.4.9 Building Block Components – Homes
  • [x] 7.4.10 Building Block CCM-Specific
  • [x] 7.4.11 Building Block Components – Ports and Connectors
  • [x] 7.4.12 Building Block Template Modules
  • [x] 7.4.13 Building Block Extended Data-Types
  • [x] 7.4.14 Building Block Anonymous Types
  • [x] 7.4.15 Building Block Annotations
  • [x] 7.4.16 Relationships between the Building Blocks
  • [x] 8 Standardized Annotations

DDS-XTypes v1.3:

  • [x] 7.3.1.2.3 Alternative Annotation Syntax
  • [x] 7.3.1.2.1 Built-in Annotations

DDS-RPC v1.0:

  • [x] 7.3.1 Service Definition in IDL
  • [x] 7.5.1.2.1 Annotations for the Enhanced Service Mapping
  • [x] 7.4.2.2 Specifying Topic Names using Annotations

extends

allow merge case

union A switch(long) {
    case 1:
    case 2: //< allow
    case 3:
        u8 a;
};

allow using simple_type_spec in template parameter

module MyTemplate <typename T, struct S, long m> {
                                      //  ^ allow
};

allow custom prop appears in value_box_def

custom valuetype A a; // value_box_def
// ^ extend grammar

allow omit param_attribute

interface A {
    void f(uint8 b);
};

allow rust style oct number

const u8 A = 0o3;

allow binary number

const u8 A = 0b010101;

allow octet in typedef_spec

union A switch(octet) {};
//              ^ allow

allow comma at last of enumator

enum A {
    A,
//   ^ allow
};

bitmask A {
    @position(0) a,
//                ^ allow
};

allow ignore 'name='

@DDSRequestTopic("RobotRequestTopic")
//               ^ allow ignore `name=`
interface RobotControl {
    void command(Command com);
};

allow ignore '=xx' in annotation

@derive(Debug, Clone)
//           ^allow ignore "="
struct Hello {};