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

@solarisdk/e2b-compat

v0.2.14

Published

E2B-compatible API (sandboxes and code interpreter) on top of Solari Sandbox: change the import, keep your E2B code. Not affiliated with E2B.

Readme

@solarisdk/e2b-compat

An E2B-compatible API on top of Solari Sandbox. Change the import, keep your sandbox code.

Not affiliated with, endorsed by, or sponsored by E2B. "E2B" is E2B's product name; it appears here only to describe API compatibility. The API shapes follow the MIT-licensed e2b and @e2b/code-interpreter SDKs, see NOTICE. Do not look for this package under @e2b/*.

// before: import { Sandbox } from '@e2b/code-interpreter';
import { Sandbox } from '@solarisdk/e2b-compat/code-interpreter';

const sbx = await Sandbox.create();                       // SOLARI_API_KEY in the environment
const execution = await sbx.runCode('x = 1\nx + 1');
console.log(execution.text);                              // "2"
const r = await sbx.commands.run('echo hello');
console.log(r.stdout);
await sbx.files.write('/tmp/a.txt', 'hi');
await sbx.kill();

The plain e2b package maps to the package root:

// before: import { Sandbox, Template } from 'e2b';
import { Sandbox, Template } from '@solarisdk/e2b-compat';

Exports: Sandbox (default and named; create, connect, list, kill, pause, snapshots, fork, commands, files, pty, git), Template and the template builder, Volume (Solari persistent volumes), the E2B error classes (SandboxError, TimeoutError, NotFoundError, FileNotFoundError, CommandExitError, AuthenticationError, ...), SolariCompatUnsupported, and from /code-interpreter: Sandbox with runCode and code contexts, Execution, Result, Context. Every name e2b and @e2b/code-interpreter export is exported here (the code-interpreter entry re-exports all of e2b, as the original does); for a feature Solari does not have (Secret, the MCP gateway, ...) the name exists and throws SolariCompatUnsupported when used.

Requirements

Node 18+. The type declarations need TypeScript 5.0 or newer.

Configuration

| | Order | |---|---| | API key | apiKey option, SOLARI_API_KEY, E2B_API_KEY: only an slr_… Solari key is ever used. A non-slr_ value (for example a real E2B key) is skipped with a warning (the key is never printed or sent); with no Solari key the call throws | | Base URL | apiUrl / domain option (Solari or loopback only, anything else throws), SOLARI_BASE_URL, E2B_API_URL / E2B_DOMAIN (only if they point at a Solari API host or loopback; otherwise ignored with a warning), default https://api.getsolari.com |

An E2B key does not work here: use a Solari API key.

The code-interpreter template

@e2b/code-interpreter runs in a template with a data-analysis stack (pandas, numpy, scipy, scikit-learn, seaborn, plotly, ...). Solari builds the equivalent, code-interpreter-v2, into your org the first time Sandbox.create() is called without a template (about 90 seconds, once). To do it ahead of time:

import { buildCodeInterpreterTemplate } from '@solarisdk/e2b-compat/code-interpreter';
await buildCodeInterpreterTemplate();

SOLARI_CODE_INTERPRETER_TEMPLATE overrides the template (a name or tpl_… id). The package list is CODE_INTERPRETER_PACKAGES; the very large audio, NLP and computer-vision wheels E2B ships (spacy, librosa, opencv, numba, gensim) are not included.

What works, what does not

COMPAT.md is the support matrix. Anything Solari cannot do throws SolariCompatUnsupported (a SandboxError) naming the feature; nothing is silently ignored. The sibling Python package is sdk/python-e2b-compat (solari-e2b-compat) and follows the same rules.

Tests

  • npm test: offline unit tests, a fake gateway.
  • Live tests against a staging gateway run in the maintainers' CI (not shipped in this package). They create their own sandboxes, snapshots and templates and delete only those.