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

@codincod/codemirror-lang-julia

v0.1.1

Published

Julia language support for the CodeMirror code editor

Readme

@codincod/codemirror-lang-julia

This package implements Julia language support for the CodeMirror code editor, using the Lezer grammar Andrey Popp and the Pluto.jl contributors wrote for @plutojl/lezer-julia, with the parse fixes below on top of it. The editor half comes from @plutojl/lang-julia; the two are merged here so that one package holds the grammar and the language support that has to move with it.

Written in part for CodinCod, a competitive coding platform, where it colours the editor people solve puzzles in.

This code is released under an MIT license.

Usage

import {EditorView, basicSetup} from "codemirror"
import {julia} from "@codincod/codemirror-lang-julia"

const view = new EditorView({
  parent: document.body,
  doc: `function collatz(n::Int)
    steps = 0
    while n != 1
        n = iseven(n) ? n ÷ 2 : 3n + 1
        steps += 1
    end
    return steps
end
`,
  extensions: [basicSetup, julia()],
})

API Reference

What changed

On 19549 files of published Julia from 2947 repositories, sieved by Julia's own parser, the share parsing with no error node goes from 94.71% under @plutojl/lezer-julia 1.2.0 to 99.20%. On the 1197 files Julia 1.12 ships in base, stdlib, Compiler and test, it goes from 84.13% to 98.08%. None of the corpus ships here; it is other people's code.

The parse fixes, each found by measuring against that corpus and against Julia's own base and stdlib, are listed in the changelog. Besides them:

  • A block folds, from the end of the line it opens on to the line of its end. Upstream had no folding.
  • A call's name is coloured as a function. The rule upstream named a node the grammar never produces.

Measuring it

The grammar is measured against real Julia with lezer-survey, which has to sit beside this directory, and against a corpus at ../julia-corpus:

npm run harvest   # build the corpus: code search, clone, sieve with JuliaSyntax
npm run clean     # sieve an existing corpus again
npm run measure   # the share of files with no error node
npm run stdlib    # the same over the Julia installed here: base, stdlib, Compiler, test
npm run gaps      # what is left, grouped by shape

The sieve is tools/read.jl, which hands each file to JuliaSyntax.parseall and evaluates nothing. A file Julia will not parse is not a file the grammar should be measured on.