Skip to content
PluginStats

sveld weekly downloads statistics

By carbon-design-system · npm · Vite plugins

Generate TypeScript definitions and component documentation for your Svelte components.

View on npm Fresh · Dec 6, 2026

sveld has 7,570 recorded weekly downloads on npm, a decrease of 25.9% over the past 30 days, ranking #1376 of 3,247 tracked listings.

Weekly downloads
7,570
Official API · Dec 5, 2026
7-day growth
-62.3%
-12.5K weekly downloads
30-day growth
-25.9%
-2.6K weekly downloads
90-day growth
+172%
+4.8K weekly downloads
Rank
#1376
▼ 345 in 7 days

About sveld

sveld

Generate TypeScript definitions and component documentation for your Svelte components.

sveld reads your components' props, events, slots, snippets and context, and the JSDoc where inference isn't enough, and writes .d.ts files your users' editors type-check against, plus JSON and Markdown docs from the same pass. It's for JavaScript-first libraries; one built with svelte-package already gets .d.ts files from svelte2tsx. A type it can't pin down falls back to any, and --strict says where. Carbon Components Svelte generates its types and API docs with it.

<!-- src/Button.svelte -->
<script>
  /** @type {"button" | "submit" | "reset"} */
  export let type = "button";

  /** Set to `true` to use the primary variant */
  export let primary = false;
</script>

<button {...$$restProps} {type} class:primary on:click>
  <slot>Click me</slot>
</button>
// types/Button.svelte.d.ts, from `npx sveld` (imports left out)
type $RestProps = SvelteHTMLElements["button"];

type $Props = {
  /**
   * @default "button"
   */
  type?: "button" | "submit" | "reset";

  /**
   * Set to `true` to use the primary variant
   * @default false
   */
  primary?: boolean;

  children?: (this: void) => void;

  [key: `data-${string}`]: unknown;
};

export type ButtonProps = Omit<$RestProps, keyof $Props> & $Props;

export default class Button extends SvelteComponentTyped<
  ButtonProps,
  { click: WindowEventMap["click"] },
  { default: Record<string, never> }
> {}

An API change fails CI before it ships. Commit COMPONENT_API.json, and --check diffs each run against it:

$ npx sveld --check
sveld --check: 2 API changes detected against "COMPONENT_API.json".
Suggested semver bump: major.

  Button
    [BREAKING] prop "label" added (required)
    [BREAKING] prop "primary" removed

It runs on Node 22 or later, or Bun, and parses Svelte 3, 4 and 5, runes included.

Quick start

npm i -D sveld
{
  "svelte": "./src/index.js"
}
npx sveld                    # writes types/*.d.ts for what src/index.js exports

Exit status: 0 when done, 1 when the run found problems, 2 when it was called wrong or couldn't finish.

Common tasks

# Write the JSON and Markdown docs too
npx sveld --json --markdown

# Fail CI on a breaking API change against COMPONENT_API.json
npx sveld --check

# Fail CI where a prop fell back to `any` or a tag was dropped
npx sveld --strict

# Every .svelte file under the entry's directory, not just its exports
npx sveld --glob

# Svelte 5's `Component` type instead of a class
npx sveld --types-format=component

# Check the @example blocks against your TypeScript program
npx sveld --check-examples

With --format=json, the --check report and an exit-2 error print as JSON on stdout, each with a schemaVersion. The same options go in a sveld.config.js, or to the Vite plugin: sveld({ json: true }) in vite.config.ts.

From code

import { sveld } from "sveld";

const { document, diagnostics, exitCode, failures } = await sveld({
  entry: "./src/index.js",
  json: true,
});
document.components; // the same document `json: true` writes

Docs

  • Options: every option and flag, the config file, the Vite plugin, sveld(), sveld/browser, and requirements
  • JSDoc tags: how types are inferred, and every tag sveld reads
  • Output: a worked example, .d.ts formats, JSON and its schema, Markdown, and custom output
  • CI: exit codes, --check, --strict and diagnostic codes, and @example checks
  • Troubleshooting: common problems, and the fix for each
  • Playground: try it in the browser

Description from the npm listing.

  • svelte
  • svelte component
  • documentation
  • docgen
  • typescript
  • definitions
  • JSDocs
  • vite
  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

sveld weekly downloads on npm, last 90 days: 7,570 weekly downloads as of Dec 5, 2026, +172% over 90 days.sveldWeekly downloads on npm · Last 90 days7,570downloads / week+172% over 90 days05K10K15K20K25KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
sveld weekly downloads on npm, last 90 days: 7,570 weekly downloads as of Dec 5, 2026, +172% over 90 days.

7/30/90-day growth

sveld weekly downloads growth on npm: -62.3% over 7 days, -25.9% over 30 days, +172% over 90 days.sveldWeekly downloads growth on npm7,570downloads / week now7-day growth-12,501 weekly downloads-62.3%30-day growth-2,641 weekly downloads-25.9%90-day growth+4,787 weekly downloads+172%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
sveld weekly downloads growth on npm: -62.3% over 7 days, -25.9% over 30 days, +172% over 90 days.

Ranking history

sveld npm ranking history: currently #1376 (by weekly downloads).sveldnpm ranking · by weekly downloads · Last 90 days#1376current rank#900#1000#1100#1200#1300#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
sveld npm ranking history: currently #1376 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 69, #16 (overall #1,376)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 13, #10 (overall #250)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for sveld
Date (UTC)Weekly downloadsChange vs. previous
7,570-2.8K
10,326-5.1K
15,454-1.5K
16,971-1.4K
18,330-1.5K
19,833-286
20,119+48
20,071+2.6K
17,463+2.9K
14,524+1.4K
13,169+67
13,102+1.4K
11,749+421
11,328—

Similar npm Vite plugins plugins

All 20 sveld alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/sveld. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.