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-ai-contrib/live-content

v0.1.1

Published

A minimal JupyterLab extension that provides live content updates from the filesystem.

Readme

jupyter_live_content

Github Actions Status

A JupyterLab extension that keeps open documents in sync with their file on disk. When a file changes on disk while you have it open — for example, an AI agent or another process rewrites it — this extension reloads the document in the browser so what you see stays current, without requiring real-time collaboration (RTC).

This extension is composed of a Python package named jupyter_live_content for the server extension and a NPM package named @jupyter-ai-contrib/live-content for the frontend extension.

How it works

The server extension watches the content directory for filesystem changes and notifies the browser over a WebSocket when a file you have open changes. The frontend then reloads that document from disk (context.revert()), but only for documents where a whole-file reload is safe.

Reloading is deliberately conservative. It is applied only to documents whose view is a pure function of the file's bytes, so a reload cannot destroy in-memory state. This is an allowlist: any document type not listed below is left untouched rather than reloaded.

What gets updated

| Document | Updated live? | Notes | | -------------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Text / code / Markdown in a file editor (FileEditor) | Yes | Reloads the text buffer. Includes a notebook opened via Open With → Editor. | | Markdown preview (MarkdownViewer) | Yes | Re-renders from the reloaded text. | | Images (ImageViewer) | Yes | Re-renders the image. | | A document with unsaved changes (dirty) | No | Your edits are never clobbered; JupyterLab's save-conflict dialog resolves the divergence when you next save. | | Notebooks (the notebook view) | No | Reverting would discard outputs, execution counts, cell IDs, and the running-kernel association. This holds even for a read-only notebook, since read-only blocks saving but not running cells. | | Collaborative / RTC-backed documents (JupyterGIS, JupyterCAD, chat files, …) | No | The document's own provider owns synchronization. | | Any other / third-party document type | No | Excluded by default (allowlist). |

Real-time collaboration (RTC)

If an RTC provider (jupyter_server_ydoc / Jupyter Collaboration, or jupyter_server_documents) is installed and enabled, RTC already keeps open documents in sync, so this extension disables itself entirely: the server does not watch the filesystem or open a WebSocket, and the frontend does not connect. If a provider is installed but disabled (via jupyter server extension disable or the disable_rtc trait), this extension stays active.

Future work

  • Notebooks. Reliably reconciling an out-of-band notebook edit with live in-memory state (so a benign change to one cell doesn't blow away work in another) is unsolved. See the discussion in #2 and #5.
  • More viewer types. Other read-only viewers (CSV/TSV, etc.) could be added to the allowlist as their reload behavior is validated.
  • PDFs. JupyterLab 4 ships no built-in PDF document-widget viewer, so there is currently no PDF surface to update; a custom viewer would need to opt in.

Requirements

  • JupyterLab >= 4.0.0

Install

To install the extension, execute:

pip install jupyter_live_content

Uninstall

To remove the extension, execute:

pip uninstall jupyter_live_content

Troubleshoot

If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:

jupyter server extension list

If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed:

jupyter labextension list

Contributing

If you would like to contribute to this extension, please refer to the Contributing Guide.