
Research
/Security News
TensorLake npm SDK Compromised in ChainDrop Shai-Hulud Credential-Stealing Attack
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.
@kubb/adapter-oas
Advanced tools
OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.
Parses and validates Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 specifications and transforms them into a @kubb/ast RootNode for downstream code generation plugins.
bun add @kubb/adapter-oas
# or
pnpm add @kubb/adapter-oas
# or
npm install @kubb/adapter-oas
Use adapterOas inside your kubb.config.ts:
import { defineConfig } from 'kubb'
import { adapterOas } from '@kubb/adapter-oas'
export default defineConfig({
input: './openapi.yaml',
output: {
path: './src/gen',
},
adapter: adapterOas(),
})
input accepts a file path, a URL, an inline JSON or YAML string, or a parsed spec object.
adapterOas(options?)Creates the OAS adapter instance. Pass it as adapter in defineConfig.
adapterOasNameThe adapter's name, 'oas'. Use it to identify this adapter in a Kubb config.
The package re-exports the OpenAPI types it works with: ContentType, DiscriminatorObject, Document,
MediaTypeObject, Operation, ReferenceObject, ResponseObject, and SchemaObject. Its own option types are
AdapterOas, AdapterOasOptions, and AdapterOasResolvedOptions.
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
FAQs
OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.
The npm package @kubb/adapter-oas receives a total of 56,703 weekly downloads. As such, @kubb/adapter-oas popularity was classified as popular.
We found that @kubb/adapter-oas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.

Research
/Security News
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.