
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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,349 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.