{"library":"avro-typescript","type":"library","category":null,"description":"avro-typescript is a dedicated library for generating TypeScript interfaces from Apache Avro schemas. It takes an Avro schema, typically provided as a JavaScript object parsed from JSON, and outputs the corresponding TypeScript code as a string. The library is currently at version 1.3.0 and appears to be actively maintained, with recent updates addressing issues like top-level enum support. It supports most standard Avro features, including enumerated types, maps, named records, unions, and primitives, along with mandatory and optional fields. A key differentiator is its ability to override logical Avro types (e.g., converting an Avro `int` with a `date` logical type to a TypeScript `Date` object) by passing a mapping in the options. This tool operates effectively in both Node.js and browser environments, focusing solely on type generation rather than schema parsing or serialization/deserialization, which often relies on companion libraries like `avsc`.","language":"javascript","status":"active","version":"1.3.0","tags":["javascript","avro","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install avro-typescript","imports":["import { avroToTypeScript } from 'avro-typescript';","import { RecordType } from 'avro-typescript';","import { Options } from 'avro-typescript';"]},{"cmd":"yarn add avro-typescript","imports":[]},{"cmd":"pnpm add avro-typescript","imports":[]}],"homepage":null,"github":"https://github.com/joewood/avro-typescript","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/avro-typescript","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/avro-typescript/compatibility"}}