Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@kubb/plugin-barrel

Latest version: v0.0.0-canary-20261125233037

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: stijnvanhulle
1,857 Stars
152 Forks
550 Versions
470.5K Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 550 versions; the latest 5 were published on 25 Nov 2026.
  • Findings: No rules fired in version 0.0.0-canary-20261125233037.
  • Downloads: 470,532 downloads.

Versions

550 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.0.0-canary-20261125233037

Findings

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.

README

The publisher’s own README, as collected from the registry.

@kubb/plugin-barrel

Barrel-file plugin for Kubb

Generates index.ts re-export files for each plugin output directory, and a root index.ts when output.barrel is set on defineConfig.

Installation

bun add @kubb/plugin-barrel
# or
pnpm add @kubb/plugin-barrel
# or
npm install @kubb/plugin-barrel

Usage

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()],
})

Options

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.

Export types
Value Output
'all' export * from './...' — wildcard re-exports
'named' export { ... } from './...' — named re-exports, tree-shaking friendly

How it works

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.

Supporting Kubb

Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @kubb/plugin-barrel

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229