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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@galaxyproject/jupyterlite

v0.0.17

Published

This project integrates JupyterLite with the Pyodide kernel and custom extensions such as `jl-galaxy`.

Readme

JupyterLite + Galaxy Integration

This project integrates JupyterLite with the Pyodide kernel and custom extensions such as jl-galaxy.

The jl-galaxy extension enables Jupyter users to interact seamlessly with their Galaxy history — including loading and saving notebooks — through a fully integrated browser-based interface.

⚙️ Requirements

  • Python 3.10.17+
  • Node.js 20.19.1+
  • npm 10.8.2+

📦 Setup Instructions

1. Create and activate a virtual environment

python -m venv .venv
source .venv/bin/activate

2. Install Python dependencies

pip install -r requirements.txt

This installs jupyterlite, jupyterlite-pyodide-kernel, and the gxy utility module for Galaxy integration.

3. Install Node.js dependencies

npm install

This installs JavaScript dependencies listed in package.json, including custom JupyterLite extensions.


🔨 Build

Run the full build to generate a standalone JupyterLite distribution:

npm run build

This will:

  • Run jupyter lite build
  • Include the Pyodide kernel
  • Bundle federated extensions like jl-galaxy
  • Output the final static site to: ./static/dist/_output

🚀 Serve

To serve the JupyterLite site locally:

npm run serve

Then open http://localhost:3000 in your browser.


🧰 Galaxy Integration Utilities (gxy)

The gxy module provides Python functions to interact with the Galaxy API directly from JupyterLite.

api(endpoint, method="GET", data=None)

Makes an HTTP request to a Galaxy API endpoint and returns the parsed JSON response.

await api("/api/histories")
await api("/api/histories", method="POST", data={"name": "New History"})

get(datasets_identifiers, identifier_type="hid", retrieve_datatype=False)

Downloads dataset(s) by HID, ID, or regex pattern. Saves them to Pyodide's virtual filesystem.

await get(3)                          # by HID
await get("some_id", "id")
await get("myfile.*", "regex")
await get("mytag", "tag")

put(name, output=None, ext="auto", dbkey="?", history_id=None)

Uploads a file from the virtual filesystem to the current Galaxy history.

await put("mydata.txt", "newname.txt", ext="txt")

get_history(history_id=None)

Returns metadata for all visible datasets in the current history.

await get_history()

get_history_id()

Returns the current history ID based on the dataset context.

await get_history_id()

get_environment()

Returns the Galaxy environment injected into the session via __gxy__.

get_environment()

_find_matching_ids(history_datasets, list_of_regex_patterns, identifier_type='hid')

Used internally to resolve regex patterns to dataset identifiers.


📎 Notes

  • The jl-galaxy extension allows users to browse and manage Galaxy histories directly from the Jupyter UI.
  • All files must be placed within static/dist/_output; writing outside this directory breaks the build.
  • The upload helper uses XMLHttpRequest to work around Pyodide's limitations with fetch.