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

vscode-extension-manifest

v0.6.0

Published

VSCode extension manifest type definitions, validators, and utilities

Readme

vscode-extension-manifest

CI NPM VERSION NPM DOWNLOADS LICENSE

Type definitions, validation, and IO utilities for VS Code extension manifests (package.json).

[!NOTE] This package only covers fields listed in the VS Code Extension Manifest docs. For a generic Node.js package.json type, use type-fest's package-json.d.ts.

Features

  • Strongly typed ExtensionManifest plus contributes types
  • Async and sync APIs for reading and writing manifests
  • Optional cache and custom stringify support
  • Minimal validation: only checks publisher to stay flexible

Install

npm install vscode-extension-manifest -D
yarn add vscode-extension-manifest -D
pnpm add vscode-extension-manifest -D
bun add vscode-extension-manifest -D

Quick Start

import {
  defineExtensionManifest,
  readExtensionManifest,
  readExtensionManifestSync,
  validateExtensionManifest,
  writeExtensionManifest,
  writeExtensionManifestSync,
} from 'vscode-extension-manifest'

console.log(await readExtensionManifest())
// => VS Code extension manifest with types

console.log(validateExtensionManifest(readExtensionManifestSync()))
// => true / false

const extensionManifest = defineExtensionManifest({
  name: 'vscode-extension-manifest',
  version: '1.0.0',
  publisher: 'ntnyq',
  engines: {
    vscode: '^1.96.0',
  },
})

await writeExtensionManifest(extensionManifest, {
  cwd: 'packages/extension',
})

writeExtensionManifestSync(extensionManifest, {
  cwd: 'vscode',
})

API Overview

readExtensionManifest

  • Type: (options?: ReadOptions) => Promise<ExtensionManifest>
  • Description: read and parse the extension manifest.

ReadOptions

Used by readExtensionManifest and readExtensionManifestSync.

  • filename?: string default package.json
  • cwd?: string | URL default process.cwd()
  • cache?: boolean | Map<string, Record<string, any>>

readExtensionManifestSync

  • Type: (options?: ReadOptions) => ExtensionManifest

writeExtensionManifest

  • Type: (manifest: ExtensionManifest, options?: WriteOptions) => Promise<void>

WriteOptions

Used by writeExtensionManifest and writeExtensionManifestSync.

  • filename?: string default package.json
  • cwd?: string | URL default process.cwd()
  • replacer?: (number | string)[] | null default null
  • space?: number | string default 2
  • stringify?: (value: any) => string default JSON.stringify

writeExtensionManifestSync

  • Type: (manifest: ExtensionManifest, options?: WriteOptions) => void

defineExtensionManifest

  • Type: (manifest: ExtensionManifest) => ExtensionManifest
  • Description: for type inference only; no runtime behavior.

validateExtensionManifest

  • Type: (manifest: ExtensionManifest) => boolean
  • Description: currently only checks that publisher is a non-empty string.

Usage Notes

  • Customize JSON output with stringify or space.
  • Use cache: true or provide a custom Map for frequent reads.
  • cwd supports URL, useful in ESM/URL-based environments.

Contributing

  • Add new manifest fields under src/types and update tests.
  • Missing or mismatched types are welcome as issues or PRs.

Links

  • Extension Manifest: https://code.visualstudio.com/api/references/extension-manifest
  • Contribution Points: https://code.visualstudio.com/api/references/contribution-points
  • VS Code source types: https://github.com/microsoft/vscode/blob/main/src/vs/platform/extensions/common/extensions.ts

License

MIT License © 2024-PRESENT ntnyq