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

@gravity-ui/gulp-utils

v1.1.1

Published

Utils for gulp

Readme

gulp-utils · npm package CI

Gulp utils for handling typescript compilation workflow.

Usage

import {src, dest} from 'gulp';
import {createTypescriptProject, addVirtualFile} from '@gravity-ui/gulp-utils';

async function compile() {
  const tsProject = await createTypescriptProject({
    projectPath: 'path/to/project', // default, process.cwd
    configName: 'tsconfig.build.json', // default, tsconfig.json
    compilerOptions: {
      // allows rewrite compiler options from tsconfig.json, default {}
      declaration: true,
    },
    ts: await import('my-typescript-package'), // default, 'typescript'
  });

  return new Promise((resolve) => {
    src('src/**/*.ts')
      .pipe(
        tsProject({
          customTransformers: {
            before: [...Object.values(tsProject.customTransformers)],
            afterDeclarations: [...Object.values(tsProject.customTransformers)],
          },
        }),
      )
      .pipe(
        addVirtualFile({
          fileName: 'package.json',
          text: JSON.stringify({type: 'commonjs'}),
        }),
      )
      .pipe(dest('build'))
      .on('end', resolve);
  });
}

buildDocs

Generates a documentation tree for AI agents from a package's markdown sources (component/hook READMEs plus any markdown under docs/), cleaned of Storybook / GitHub service markers, badges and images. The output ships inside the npm tarball so an agent working in a consumer project reads documentation matching the installed version, discoverable via a generated INDEX.md.

buildDocs is a plain function (not a gulp plugin), so it works from any build pipeline — call it from a gulp task, an npm script, or a rollup hook.

import {buildDocs, createDefaultDocsConfig} from '@gravity-ui/gulp-utils';

// buildDocs() with no config uses createDefaultDocsConfig(), the shared
// gravity-ui layout:
//   docs/**/*.md            → build/docs/guides/
//   src/components/*/README  → build/docs/components/   (legacy/ excluded)
//   src/hooks/*/README       → build/docs/hooks/        (private/ excluded)
buildDocs();

rootDir defaults to process.cwd(), and the package name shown in the generated INDEX.md is read from that package.json — pass them explicitly (createDefaultDocsConfig(rootDir, packageName)) to override. Pass a custom DocsConfig to change the sources, output directory or INDEX section order. Intra-repo README.md links are rewritten to resolve inside the output; links to docs that aren't shipped are unwrapped to plain text.

The package README's For AI agents section, when present, is cleaned and placed at the top of the generated INDEX.md.