Skip to main content

jl-forge — build steps for JupyterLite sites

Tests Build demo Coverage xeus-badge pyodide-badge voici-badge

Package version: 0.9.0

Build steps for JupyterLite sites — turn a Python project and its notebooks into version-matched, pruned and fully offline xeus-python or Pyodide sites, sized for GitHub or GitLab Pages.

Try it

examples/demo builds one notebook into both sites, deployed to GitHub Pages by CI. They load nothing from other hosts.

Requirements

  • Python >= 3.11 on the build machine (macOS or Linux); jl-forge installs nothing in the browser
  • jupyterlite-core and a kernel package, in the same environment as jl-forge (not pipx or uv tool)
  • micromamba, for xeus-python sites

Install

pip install 'jl-forge[xeus]' jupyterlite-core                                  # xeus-python site
pip install 'jl-forge[pyodide]' jupyterlite-core jupyterlite-pyodide-kernel    # Pyodide site

Usage

jupyter lite build builds the site; jl-forge does what surrounds it, from your build script: dependencies from pyproject.toml, Pyodide pruned from 340 MB to 23 MB, xeus environments packed and cached, no request to other hosts, and a size check for Pages limits. It doesn't replace jupyter lite build; when to use jl-forge says when you can do without it.

The Usage Guide has each command, a complete script for both kernels and a GitLab Pages job; the demo's build.sh is the smallest real one to adapt.

Compatibility

Site Kernel Apps Python
xeus-python jupyterlite-xeus 5.x Lab, Notebook, Voici 3.13
Pyodide jupyterlite-pyodide-kernel==0.7.0 Lab, Notebook, Voici 3.13
Pyodide jupyterlite-pyodide-kernel 0.8.x Lab, Notebook 3.14

Each is built and smoke-tested in CI. Why these versions, and how Voici fits.

Python 3.14: a xeus-python site runs Python 3.13 for now: every xeus-python build on emscripten-forge targets 3.13 (cp313), though the channel has Python 3.14. Pyodide sites can run 3.14, but not with Voici.

How It Works

┌──────────────────────────────────────────────────────┐
│  pyproject.toml                   notebooks/*.ipynb  │
└───────────────────────┬──────────────────────────────┘
                        │ jl-forge notebooks --strip
         ┌──────────────┴───────────────┐
┌────────▼───────────────┐  ┌───────────▼──────────────┐
│ xeus-env, xeus-mount,  │  │ pyodide-install,         │
│ xeus-pack-config       │  │ pyodide-wheels,          │
│ conda prefix (wasm)    │  │ pyodide-dist             │
│                        │  │ wheel + install.py       │
└────────┬───────────────┘  └───────────┬──────────────┘
         │ jupyter lite build           │ jupyter lite build
┌────────▼───────────────┐  ┌───────────▼──────────────┐
│ public/xeus/           │  │ public/pyodide/          │
└────────┬───────────────┘  └───────────┬──────────────┘
         └──────────────┬───────────────┘
                        │ jl-forge self-host, dedup, size
           static site → GitHub Pages or GitLab Pages

Documentation

Contributing

jl-forge is an early-stage project; issues and pull requests are welcome. DEVELOPMENT.md covers the setup, tests and AI-assisted contributions.

License and Citation

Apache License 2.0. See LICENSE and NOTICE.

@software{jlforge2026,
  author = {Decitre, Emmanuel},
  title = {jl-forge: Build tooling for JupyterLite sites},
  year = {2026},
  url = {https://github.com/decitre/jl-forge}
}

Built on JupyterLite, xeus-python, jupyterlite-xeus, emscripten-forge, Pyodide and jupyterlite-pyodide-kernel.

Metadata

Release files for jl-forge 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jl-forge 0.9.0
File Size Uploaded Provenance Actions
jl_forge-0.9.0.tar.gz 34.8 kB With provenance Details for jl_forge-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jl-forge 0.9.0
File Interpreter ABI Platform Actions
jl_forge-0.9.0-py3-none-any.whl Python 3 none any Details for jl_forge-0.9.0-py3-none-any.whl

Total release size: 65.5 kB

Release files / jl_forge-0.9.0.tar.gz

Download URL jl_forge-0.9.0.tar.gz
Size 34.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1f4c06c766768eb3a79c1bdb3264c51d54a655532668b85762a62b45ebdeb117
BLAKE2b-256 checksum
How to use checksums
4a7ec7cb6d711cd13db117b35ee2958eeccbfcb2ee38915fb4e235220b4ab15f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / jl_forge-0.9.0-py3-none-any.whl

Download URL jl_forge-0.9.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22d7b9a2c034c69f6aa7ca35114caf9e84dee908048490ad9cd41c398f2e38a2
BLAKE2b-256 checksum
How to use checksums
e3fd3d41238e1c7ca4148777c86f6901e2e2406651ecfd77975dbc12323f3fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for jl-forge 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jl_forge-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page