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

katex-ui-vue

v1.0.2

Published

Vue 3 live formula form renderer for katex-ui calculator schemas.

Downloads

13

Readme

katex-ui-vue

npm demo Vue TypeScript coverage license

Vue renderer for formula-powered calculators built with katex-ui.

It turns a framework-neutral FormulaSchema into a live Vue form, emits value/result updates, and stays thin: parsing, schema generation, formatting, and calculation remain in katex-ui.

It does not render TeX math. Pair it with katex-ui/parser when pragmatic LaTeX needs to become a calculator form.

Install

pnpm add katex-ui katex-ui-vue vue

Repository

github.com/LaoChen1994/katex-ui

Homepage

laochen1994.github.io/katex-ui/

Highlights

  • Vue 3 adapter - native defineComponent renderer with typed props and emits.
  • Live calculation - recalculates through katex-ui/core whenever values change.
  • Schema-first API - accepts the same FormulaSchema used by React and future renderers.
  • LaTeX-ready workflow - pair with createLatexFormulaCalculator for formula-generated calculators.
  • Serializable config - render configs produced by createLatexFormulaCalculatorConfig.
  • No pdyform dependency - Vue adapter renders native controls directly.

Quick Start

<script setup lang="ts">
import { createLatexFormulaCalculator } from 'katex-ui/parser';
import { FormulaForm } from 'katex-ui-vue';

const calculator = createLatexFormulaCalculator({
  source: '\\frac{price \\times count}{discount}',
  fields: [
    { name: 'price', label: '单价', defaultValue: 100 },
    { name: 'count', label: '数量', defaultValue: 2 },
    { name: 'discount', label: '折扣因子', defaultValue: 4 },
  ],
  result: {
    label: '结果',
    precision: 12,
  },
});
</script>

<template>
  <FormulaForm
    :schema="calculator.schema"
    show-result
    @result="(result) => console.log(result)"
    @values-change="(values) => console.log(values)"
  />
</template>

Quality

  • Unit tests: 1 Vue DOM behavior test.
  • Coverage: 75.37% statements, 44.44% branches, 78.57% functions.
  • Build: tsup ESM + .d.ts.
  • Runtime peers: vue.