Skip to main content

jl-forge — build steps for JupyterLite sites

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

Package version: 0.10.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.10.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.10.0
File Size Uploaded Provenance Actions
jl_forge-0.10.0.tar.gz 35.0 kB With provenance Details for jl_forge-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 65.9 kB

Release files / jl_forge-0.10.0.tar.gz

Download URL jl_forge-0.10.0.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dbd5ca7c4101c22887bf29ba6fa8f955a4a00cd36422c9f4444e475bce630516
BLAKE2b-256 checksum
How to use checksums
9228688c3feaf3c203f5507a67b873f05a11d8b1996565c03793f18bfae44822
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.10.0-py3-none-any.whl

Download URL jl_forge-0.10.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
356638cee8fb764cd64db3afbb38a029cde34b5385201bf7208fceb962b7a612
BLAKE2b-256 checksum
How to use checksums
84da83e1069dfe0174e27df167829bafefe4c2aa2faf9aa19fa8617cb2da57b9
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.10.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.10.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