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

@jupyter-kit/executor-webr

v3.0.0

Published

In-browser R executor for @jupyter-kit. Wraps WebR (https://webr.r-wasm.org), which runs R compiled to WebAssembly inside a worker.

Downloads

820

Readme

@jupyter-kit/executor-webr

In-browser R executor for @jupyter-kit/core. Wraps WebR (webr on npm) which runs the R interpreter compiled to WebAssembly inside its own dedicated worker.

⚠️ License caveat — this package is GPL

R itself is licensed under GPL-2.0-or-later. The webr npm package bundles R, so it inherits GPL. Because this wrapper imports webr at runtime, it is also distributed under GPL-2.0-or-later.

If you ship an app that uses @jupyter-kit/executor-webr, your distribution as a whole must comply with GPL — typically that means publishing your application's source under a GPL-compatible licence when you distribute the binary/bundle.

The other packages in this monorepo (core, react, theme, syntax, mathjax, mathjax-cdn, katex, katex-cdn, editor-codemirror, executor-pyodide) remain Apache-2.0 — they don't link against R, so they're unaffected.

If you're not OK with GPL, swap this package out for a server-side R executor (HTTP/WebSocket bridge to a hosted Rserve) and keep your client Apache-2.0.

Install

pnpm add @jupyter-kit/executor-webr @jupyter-kit/core

Usage

import { createWebRExecutor } from '@jupyter-kit/executor-webr';
import { r as rHighlight } from '@jupyter-kit/core/langs/r';
import { StreamLanguage } from '@codemirror/language';
import { r as rEditor } from '@codemirror/legacy-modes/mode/r';

const executor = createWebRExecutor({
  packages: ['ggplot2'],   // optional: install on boot
  onStatus: (s) => console.log('webr:', s),
});

createRenderer({
  language: 'r',
  languages: [rHighlight],
  executor,
  plugins: [createEditorPlugin({ languages: { r: StreamLanguage.define(rEditor) } })],
});

What you get

  • stdout / stderr captured per cell.
  • Last-evaluated value as text/plain (R's print() output).
  • Errors with R's conditionMessage as the traceback.
  • Persistent R session across cells (variables retained).

Options

| Option | Default | Notes | |---|---|---| | baseURL | https://webr.r-wasm.org/latest/ | WASM / worker assets prefix | | packages | [] | R packages to install on boot | | onStatus | — | 'idle' / 'loading' / 'installing' / 'running' / 'ready' / 'error' |

Bundle size

~1.5KB gz for the wrapper. WebR itself (~30MB including R + base packages) is fetched lazily from baseURL on first execution.

License

GPL-2.0-or-later — see warning above.