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

tweakpane-latex

v0.1.4

Published

Tweakpane plugin for displaying Latex and Markdown

Readme

tweakpane-latex

This is an latex plugin for Tweakpane. Basically allows you to write natural text, markdown, and latex for descriptions etc.

This implementation is heavily based on the doersino's infodump plugin. It's just that his doesn't have latex.

Installation

Browser

Download the most recent release from here. Or use the CDN files https://unpkg.com/tweakpane-latex/dist/tweakpane-latex.js, or https://unpkg.com/tweakpane-latex/dist/tweakpane-latex.min.js for a minified version.

<!-- tweakpane 3x use [email protected] -->
<script src="tweakpane.min.js"></script>
<script src="tweakpane-latex.min.js"></script>
<script>
  const pane = new Tweakpane.Pane();
  pane.registerPlugin(TweakpaneLatexPlugin);
</script>

<!-- tweakpane 4x use [email protected] -->
<script type="module">
  import { Pane } from "tweakpane.min.js";
  import * as TweakpaneLatexPlugin from "tweakpane-latex.min.js";

  const pane = new Pane();
  pane.registerPlugin(TweakpaneLatexPlugin);
</script>

Package

npm i tweakpane-latex

For esm

import { Pane } from 'tweakpane';
import * as TweakpaneLatexPlugin from 'tweakpane-latex';

const pane = new Pane();
pane.registerPlugin(TweakpaneLatexPlugin);

For node

const { Pane } = require("tweakpane");
const TweakpaneLatexPlugin = require('tweakpane-latex');

const pane = new Pane();
pane.registerPlugin(TweakpaneLatexPlugin);

Usage

No parsing

pane.addBlade({
  view: "latex",
  content: "No parsing",
});

No parsing + border

pane.addBlade({
  view: "latex",
  content: "No parsing + border",
  border: true,
});

Latex only. This uses Katex and the settings from latexSettings will be passed into katex's options

pane.addBlade({
  view: "latex",
  content: "\\begin{equation} \\int e^{-x^2} dx \\end{equation}",
  latex: true,
  latexSettings: {} // optional
});

Markdown. This uses markedjs and a katex extension so you have both Markdown + Latex. The settings you pass into latexSettings will be passed into katex's options like above. The settings you pass into markedSettings will be passed into marked.js's options

pane.addBlade({
      view: "latex",
      markdown: true,
      markdownSettings: {} // optional
      content:
`
# Header

$$\\int x^2 dx$$

[a link](http://www.google.com).
`
})

Development

Quick start

Clone this repository, then:

  • Install dependencies:

    $ npm install
  • Build source codes and watch changes:

    $ npm start
  • Open test/browser.html to see the result or run npm run budo for a commonjs environment version

  • Cutting a release:

    $ npm run assets

    Then upload the resulting ZIP file to GitHub.

File structure

|- src
|  |- sass ............ Plugin CSS
|  |- index.ts ........ Entrypoint
|  |- plugin.ts ....... Plugin
|  |- controller.ts ... Controller for the custom view
|  `- view.ts ......... Custom view
|- dist ............... Compiled files
`- test
   `- browser.html .... Plugin lab