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

@essence-lang/compiler

v0.2.0

Published

The Essence compiler: source text in, JavaScript out.

Downloads

135

Readme

@essence-lang/compiler

The Essence compiler: source text in, JavaScript out.

The compiler is a pipeline, and the package's exports are its stages rather than one barrel — a front end composes the stages it needs:

| Subpath | Stage | | --- | --- | | @essence-lang/compiler/lexer | source text → tokens | | @essence-lang/compiler/parser | tokens → AST | | @essence-lang/compiler/enricher | AST → typed AST, against the standard library | | @essence-lang/compiler/validator | semantic checks over the typed AST | | @essence-lang/compiler/simplifier | typed AST → typed simple AST | | @essence-lang/compiler/optimiser | simplifications on the typed simple AST | | @essence-lang/compiler/rewriter | typed simple AST → JavaScript module text | | @essence-lang/compiler/bundler | module texts → one self-contained ES module, via esbuild | | @essence-lang/compiler/embed | the whole pipeline in memory, for an embedding host | | @essence-lang/compiler/modules | module graph resolution | | @essence-lang/compiler/diagnostics | the Diagnostic type, codes and rendering | | @essence-lang/compiler/documents | position and text-document helpers | | @essence-lang/compiler/helpers | shared utilities | | @essence-lang/compiler/printType | rendering a Type back to Essence notation |

Passing --sourcemap through the pipeline emits real source maps: positions survive from the parser to the rewriter, each module's map rides inline, and the bundler composes them so the final map names only the .es files the author wrote — the inlined runtime and the standard-library prelude stay unmapped, which is what lets a debugger step over them.

Most consumers want a front end instead of the stages: @essence-lang/cli assembles the whole pipeline behind essence build, @essence-lang/client drives embed to load an Essence Module from JavaScript, and @essence-lang/language-server runs the analysis half of it over an editor's documents.