@ir-kit/fn-schema-unplugin weekly downloads statistics
By ir-kit · npm · Webpack plugins
Bundler plugin for fn-schema. Exposes a virtual module that resolves to the extracted bundle, with HMR on source change in dev. Built on unplugin so the same package powers Vite, webpack, Rollup, esbuild, Rspack, Rolldown, and Farm.
@ir-kit/fn-schema-unplugin has 45 recorded weekly downloads on npm, an increase of 400% over the past 30 days, ranking #2799 of 3,247 tracked listings.
About @ir-kit/fn-schema-unplugin
@ir-kit/fn-schema-unplugin
Bundler plugin for fn-schema. Resolves a virtual module to the extracted bundle, with HMR on source change in Vite. Built on unplugin — same package powers Vite, webpack, Rollup, esbuild, Rspack, Rolldown, and Farm.
When to use it
You have a Vite/Next/webpack app and want fn-schema results available via a regular import — without running the cli as a separate process. The plugin keeps a warm Project instance during dev and triggers a reload when source files change.
Install
pnpm add -D @ir-kit/fn-schema-unplugin
Vite
// vite.config.ts
import { defineConfig } from "vite"
import fnSchema from "@ir-kit/fn-schema-unplugin/vite"
export default defineConfig({
plugins: [
fnSchema({
files: "src/api/**/*.ts",
schema: { identity: "x-fn-schema-ts", transport: "x-fn-schema-transport" },
}),
],
})
// app code
import schemas from "virtual:fn-schema/bundle"
import { createReader } from "@ir-kit/fn-schema-loader"
const reader = createReader(schemas)
Other bundlers
// webpack
const fnSchema = require("@ir-kit/fn-schema-unplugin/webpack").default
// rollup
import fnSchema from "@ir-kit/fn-schema-unplugin/rollup"
// esbuild
import fnSchema from "@ir-kit/fn-schema-unplugin/esbuild"
Subpath exports also exist for /rspack, /rolldown, /farm.
Options
interface FnSchemaPluginOptions {
files: string | string[] // required
cwd?: string // default: process.cwd()
tsConfigPath?: string
virtualModuleId?: string // default: "virtual:fn-schema/bundle"
// …all extract options (include, exclude, signature, schema, naming, hooks)
}
CLI vs unplugin
| CLI | unplugin | |
|---|---|---|
| extra dev process | yes | no |
| HMR on schema change | manual (your watcher) | built-in (Vite) |
| works outside a bundler | yes | no |
produces disk artifact (schemas.json) | yes | no (in-memory) |
Use the CLI when you want a checked-in schemas.json — for backend Node servers, deployment validation, or sharing across services. Use unplugin when fn-schema is a per-app dev concern.
Description from the npm listing.
- json-schema
- function-signature
- vite-plugin
- webpack-plugin
- rollup-plugin
- esbuild-plugin
- unplugin
- hmr
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (135)Similar npm Webpack plugins plugins
All 20 @ir-kit/fn-schema-unplugin alternativesData 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/@ir-kit/fn-schema-unplugin. First seen Nov 21, 2026; last successful collection Dec 6, 2026. See the methodology.