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

devtype

v0.1.0-rc.1

Published

The DevType compiler — a statically-typed language that compiles to JavaScript. CLI: check / build / explain-rebuild.

Readme

devtype

The DevType compiler — a statically-typed language that compiles to clean, readable JavaScript (ESM). This package ships the DevType command-line compiler as a prebuilt native binary, distributed the same way as esbuild and swc: installing devtype pulls in a single small @devshram/devtype-<platform> package containing the binary for your OS/CPU, and a thin launcher execs it.

Install

$ npm install -D devtype

No Rust toolchain required — the compiler is a native binary selected automatically for your platform. Supported platforms:

| OS | Arch | Package | | --- | --- | --- | | macOS | arm64 / x64 | @devshram/devtype-darwin-arm64, @devshram/devtype-darwin-x64 | | Linux (glibc) | x64 / arm64 | @devshram/devtype-linux-x64-gnu, @devshram/devtype-linux-arm64-gnu | | Linux (musl) | x64 | @devshram/devtype-linux-x64-musl | | Windows | x64 | @devshram/devtype-win32-x64 |

The standard library ships inside this package; the launcher points the compiler at it automatically, so your project's devtype.json needs no Std alias.

Quickstart

Create a project:

hello/
├─ devtype.json
└─ src/
   └─ Main.dt

devtype.json (note: no Std alias needed):

{
  "version": 1,
  "target": "esm",
  "outDir": "dist",
  "entries": { "main": { "module": "App.Main" } },
  "aliases": { "App": "./src" }
}

src/Main.dt:

module App.Main

import Std.Console (println)

export function main() -> Effect<Unit> {
  println("Hello from DevType!")
}

Check and build with the packaged CLI:

$ npx devtype check hello
devtype: ok

$ npx devtype build hello
Build: 1 chunk(s), 1 std module(s) + loader. Sizes: estimate.
Wrote 6 to hello/dist
devtype: ok

Run the emitted program under Node:

$ cd hello/dist
$ node --input-type=module -e '
  import fs from "node:fs";
  const m = JSON.parse(fs.readFileSync("./manifest.json", "utf8"));
  const mod = await import("./" + m.chunks[m.entries.main].file);
  mod.main()();
'
Hello from DevType!

CLI

| Command | What it does | | --- | --- | | devtype check [PATH] | Parse, resolve, type-check, verify FFI companions. | | devtype build [PATH] | check, then emit + bundle to outDir. | | devtype explain-rebuild [PATH] | check, then print the per-module rebuild/cache table. | | devtype --version | Print the compiler version. |

PATH defaults to the current directory.

Pointing at a different std library

The launcher sets DEVTYPE_STD_DIR to the std library bundled in this package. To override it (for example, to use a std checked out from source), set the env var yourself, or add an explicit Std alias to your devtype.json — an explicit alias always wins.

Documentation

Full docs, guide, and language reference: https://github.com/avi892nash/devtype/tree/main/docs — start with getting-started.