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

@nativr/nativr

v0.1.1

Published

Experimental browser-native R-compatible runtime

Readme

NativR

Write R. Run JavaScript.

Experimental: NativR implements a small, explicitly documented R-compatible subset. It is not GNU R and does not run arbitrary R packages.

NativR is an independent, browser-native analytics runtime written in TypeScript. It parses supported R source with Tree-sitter, normalizes that syntax into a NativR-owned AST, and interprets it locally with explicit vector semantics. The default public API runs in a Web Worker and performs no network access during evaluation.

pnpm add @nativr/nativr
import { createR } from "@nativr/nativr";

const r = await createR();
const result = await r.eval(`
  x <- c(1, 2, 3, 4, 5)
  mean(x)
`);
console.log(result); // 3
await r.dispose();

The current milestone supports atomic literals, assignments, arithmetic vectorization and recycling, lexical closures with lazy arguments, and the builtins c, length, sum, mean, sqrt, abs, is.na, and is.nan. See the compatibility contract for exact boundaries.

Source releases are managed with Changesets. npm publication uses GitHub Actions trusted publishing without a long-lived registry token; see the release guide.

Development

Use Node 24 and pnpm 11.

If the checkout is inside Dropbox, OneDrive, or another synchronized folder, first follow the machine-local dependency setup so Git synchronizes source while dependencies and test artifacts remain outside the project tree.

pnpm install
pnpm grammar:build
pnpm check
pnpm dev

The repository is a pnpm workspace:

R source -> @nativr/parser -> normalized @nativr/ast
                                  |
                                  v
                  @nativr/runtime <- @nativr/base
                                  |
                                  v
                  @nativr/nativr Worker API -> playground

NativR intentionally does not implement package installation, data frames, graphics, S3/S4, dynamic evaluation, filesystem access, or network access. Planned directions are documented in the roadmap.

This Apache-2.0 project follows an independent clean-room policy. It is not affiliated with or endorsed by the R Foundation, Posit, OpenAI, or R package authors. No official R branding is used.

License

Apache License 2.0. Third-party notices are in NOTICE.