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

@ctxo/lang-java

v0.8.1

Published

Ctxo Java language plugin (ctxo-jdt-analyzer + tree-sitter, full tier)

Readme

@ctxo/lang-java

Java language plugin for Ctxo. Gives AI coding assistants dependency-aware context for Java codebases via two tiers.

Tiers

| Tier | Engine | Emits | When active | |---|---|---|---| | Syntax (baseline) | tree-sitter-java | symbols, imports/extends/implements edges, cyclomatic complexity | always | | Full | Eclipse JDT Core (ctxo-jdt-analyzer JAR) | resolved calls/uses edges, cross-file symbol IDs, generics, partial bindings | JRE 17+ present and analyzer JAR acquired (opt-in) |

The syntax tier ships in the package and needs zero setup. The full tier requires a Java runtime (JRE 17+) and the analyzer JAR; without them the plugin degrades cleanly to the syntax tier — the index never blocks.

Install

ctxo install java          # adds @ctxo/lang-java to your project

Detection is automatic: a pom.xml, build.gradle, build.gradle.kts, or .java files flag the project as Java.

Full tier

The full tier uses Eclipse JDT Core, packaged as a standalone ctxo-jdt-analyzer.jar (~15 MB). Per ADR-014:

  • Runtime: a single JDT build that runs on JRE 17 and analyzes source levels Java 8 through 21 (source level is independent of the running JRE). JRE 21 is detected and used if present; a dedicated JRE-21 tier is deferred for future re-evaluation.
  • Distribution: the JAR is a prebuilt artifact, not built on your machine. It is acquired opt-in (never a silent download) and verified by SHA-256.
  • Local override: point the plugin at a specific JAR with the CTXO_JDT_ANALYZER_JAR environment variable (absolute path). Useful for development, air-gapped setups, and CI.
  • Java location: the plugin resolves java via CTXO_JAVA_HOME -> JAVA_HOME -> PATH.

Classpath resolution

For accurate binding resolution the analyzer locates dependency JARs in order: explicit override -> IDE metadata (.classpath, .idea/libraries) -> local repository scan (~/.m2, Gradle cache, parsed from pom.xml / build.gradle) -> empty (intra-file bindings only). Build tools (mvn/gradle) are never executed by default.

Symbol & edge mapping

Java constructs map onto Ctxo's symbol/edge kinds without extending the plugin API: enum -> type, record -> class, @interface -> interface, constructors -> method, fields -> variable.

License

MIT