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

marmotte

v0.4.4

Published

An extensible development toolkit for TypeScript based projects

Downloads

302

Readme

marmotte

An extensible development toolkit for TypeScript projects — composable Vite plugins for library bundling, Vue/Vuetify UI, VitePress docs, TypeDoc API generation, and Vitest utilities.

Documentation →

Installation

npm install -D marmotte

Peer dependencies — install what you use:

npm install -D vite typescript       # always required
npm install -D vitepress             # for Docs, SidebarPlugin
npm install -D vitest                # for withTmpDir / createTmpDir

Plugins

Lib — TypeScript library build

// vite.config.ts
import { defineConfig } from "vite";
import { Lib } from "marmotte/vite/lib";

export default defineConfig({ plugins: Lib() });

Wires up vite-plugin-dts, rollup-plugin-node-externals, and Docs in one call. Output is ESM-only with sourcemaps and preserveModules so every source file stays a separate output file. Entry points default to src/index.ts; pass an entries filter to expose multiple files:

Lib({ entries: /(?<!\.test)\.ts$/ });

Pass docs: false to skip the VitePress integration.


UILib / UIApp — Vue + Vuetify

import { UILib, UIApp } from "marmotte/vite/ui";

// component library
export default defineConfig({ plugins: UILib() });

// application
export default defineConfig({ plugins: UIApp() });

Both include @vitejs/plugin-vue, unplugin-vue-components, and vite-plugin-vuetify. UIApp adds vue-router/vite for file-based routing. Pass vuetify: false or vueRouter: false to opt out of individual plugins.


Docs — VitePress integration

Included automatically by Lib. On build it runs vitepress build docs/; in dev mode it mounts the VitePress dev server at /docs/ alongside your Vite server.

On first run it scaffolds docs/index.md and docs/.vitepress/config.ts as editable defaults.


TypeDocPlugin — API reference

// vite.config.ts
import TypeDoc from "marmotte/vite/typedoc";

export default defineConfig({
  plugins: [TypeDoc()],
});

Generates a TypeDoc API reference into docs/reference/api/ on every build, watches + rebuilds in dev mode and build watch mode. Automatically writes a .gitignore inside the output directory so generated files are excluded from git (pass gitignore: false to opt out).


SidebarPlugin — auto-generated VitePress sidebar

// docs/.vitepress/config.ts
import Sidebar from "marmotte/vitepress/sidebar";

export default defineConfig({
  vite: {
    plugins: [Sidebar({ documentRootPath: "docs", collapsed: true })],
  },
});

Builds the sidebar automatically from the docs directory tree. Also re-exports everything from vitepress-sidebar.


PackageMeta — package name and version at runtime

Included automatically by Lib. Injects VITE_PACKAGE_NAME and VITE_PACKAGE_VERSION at build time.

import { resolvePackageMeta } from "marmotte/vite/package-meta/client";

const { name, version } = resolvePackageMeta();

Vitest helpers

import { withTmpDir, createTmpDir } from "marmotte/vitest";

// auto-created before the suite, deleted after
const tmp = withTmpDir();

it("writes a file", () => {
  writeFileSync(tmp.path + "/out.txt", "hello");
});

License

ISC