
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@airtop/json-schema-adapter-zod
Advanced tools
Zod adapter for JSON Schema output for use with the Airtop SDK
This schema adapter allows specifying zod objects as input when an Airtop SDK method requires a JSON schema.
npm install @airtop/sdk @airtop/json-schema-adapter-zod zod
import { AirtopClient } from "@airtop/sdk";
import { ZodJsonSchemaAdapter } from "@airtop/json-schema-adapter-zod";
import { z } from "zod";
const schema = z.object({
results: z
.array(
z
.object({
name: z.string().describe("The name of the product"),
description: z.string().describe("A brief description of the product's purpose"),
benefit: z.string().describe("How the product supports developers"),
})
.strict(),
)
.optional(),
error: z.string().min(1).describe("Error message in case of failure").optional(),
});
const client = new AirtopClient({
outputSchemaAdapter: new ZodJsonSchemaAdapter(),
});
await client
.withSessionId("session-id")
.withWindowId("window-id")
.pageQuery("title of the page", {
configuration: {
outputSchema: schema,
}
})
FAQs
Zod adapter for JSON Schema output for use with the Airtop SDK
The npm package @airtop/json-schema-adapter-zod receives a total of 6,873 weekly downloads. As such, @airtop/json-schema-adapter-zod popularity was classified as popular.
We found that @airtop/json-schema-adapter-zod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.