Scan your whole stack
Are you using @kubb/plugin-barrel?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.0-canary-20261125233037
@kubb/plugin-barrel was last scanned on 25 Nov 2026 at version 0.0.0-canary-20261125233037. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.0.0-canary-20261125233037 LATEST | 25 Nov 2026 | No rules fired |
| 0.0.0-canary-20261125232642 | 25 Nov 2026 | No rules fired |
| 0.0.0-canary-20261125223937 | 25 Nov 2026 | No rules fired |
| 0.0.0-canary-20261125221712 | 25 Nov 2026 | Not shown |
| 0.0.0-canary-20261125221443 | 25 Nov 2026 | Not shown |
Findings for v0.0.0-canary-20261125233037. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.0.0-canary-20261125233037; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Generates index.ts re-export files for each plugin output directory, and a root index.ts when output.barrel is set on defineConfig.
bun add @kubb/plugin-barrel
# or
pnpm add @kubb/plugin-barrel
# or
npm install @kubb/plugin-barrel
defineConfig adds pluginBarrel() to plugins for you, so you do not add it yourself. Set output.barrel on defineConfig to write a root barrel and to give every plugin without its own output.barrel the same setting:
import { defineConfig } from 'kubb'
import { pluginTs } from '@kubb/plugin-ts'
export default defineConfig({
input: './openapi.yaml',
output: {
path: './src/gen',
barrel: { type: 'named' },
},
plugins: [pluginTs()],
})
pluginBarrel() takes no arguments. You configure it through output.barrel, on defineConfig or on a single plugin.
| Option | Type | Default | Description |
|---|---|---|---|
output.barrel |
{ type: 'all' \| 'named', nested?: boolean, namespace?: boolean } \| false |
false on defineConfig |
Barrel settings. false on a plugin turns its barrel off and leaves its files out of the root one |
output.barrel.type |
'all' \| 'named' |
None | Export style for the generated barrel files |
output.barrel.nested |
boolean |
false |
Plugin only. Each barrel re-exports its own directory and the barrels below it |
output.barrel.namespace |
boolean |
false |
Plugin only. Add named namespaces for immediate subdirectories and enable nested barrels |
Set output.barrel.namespace: true on a grouped fetch plugin to import a named service such as PetService, alongside standalone functions. Leave sdk unset when using query plugins. See the fetch + React Query example.
| Value | Output |
|---|---|
'all' |
export * from './...' — wildcard re-exports |
'named' |
export { ... } from './...' — named re-exports, tree-shaking friendly |
After every plugin finishes generating files, @kubb/plugin-barrel walks the output tree and creates an index.ts in each directory of every plugin output with a barrel enabled. When output.barrel is set on defineConfig, it also creates a root index.ts at the top of the output path that re-exports the files of every plugin that does not set output.barrel: false.
@kubb/plugin-barrel uses enforce: 'post' so it always runs after all regular plugins complete, giving it access to the full set of generated files.
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.