{"id":41344547,"url":"https://github.com/bornfight/avro-to-typescript","last_synced_at":"2026-01-23T06:55:36.525Z","repository":{"id":30515183,"uuid":"125048750","full_name":"bornfight/avro-to-typescript","owner":"bornfight","description":"Compile Apache Avro schema files to TypeScript classes","archived":false,"fork":false,"pushed_at":"2022-12-08T05:18:49.000Z","size":527,"stargazers_count":36,"open_issues_count":31,"forks_count":25,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-09-05T17:54:26.430Z","etag":null,"topics":["avro","bornfight","compiler","converter","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bornfight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-13T12:33:29.000Z","updated_at":"2025-01-03T07:48:56.000Z","dependencies_parsed_at":"2023-01-14T17:07:12.549Z","dependency_job_id":null,"html_url":"https://github.com/bornfight/avro-to-typescript","commit_stats":null,"previous_names":["degordian/avro-to-typescript"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bornfight/avro-to-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Favro-to-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Favro-to-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Favro-to-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Favro-to-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bornfight","download_url":"https://codeload.github.com/bornfight/avro-to-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornfight%2Favro-to-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avro","bornfight","compiler","converter","typescript"],"created_at":"2026-01-23T06:55:36.437Z","updated_at":"2026-01-23T06:55:36.511Z","avatar_url":"https://github.com/bornfight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"avro-to-typescript \n========\n[![Build Status](https://travis-ci.org/degordian/avro-to-typescript.svg?branch=master)](https://travis-ci.org/degordian/avro-to-typescript)\n[![npm version](https://badge.fury.io/js/%40degordian%2Favro-to-typescript.svg)](https://badge.fury.io/js/%40degordian%2Favro-to-typescript)\n\navro-to-typescript compiles avro schema files (.avsc) to TypeScript classes \nand interfaces. Making using avro schematics with node.js easy and comfortable.\n\n\nFeatures\n--------\n\n- Compiles most if not all avro types (**record**, **enum**, **primitive**, **map**, **array**)\n- Provides methods for effective serialization and deserialization of avro to js and vice versa\n\n\nUsage\n-----\n\n#### Global:\nMost projects will use avro-to-typescript this way\n```sh\nnpm install -g @degordian/avro-to-typescript\n\navro-to-typescript --compile [ schema-directory ] [ output-directory ]\n```\nThis will generate namespaced folders and files for your schemas inside \noutput directory so have that in mind.\n\nYou also need to install avro-to-typescript in your project.\n```\nnpm install @degordian/avro-to-typescript --save\n```\n\n#### Project:\nThis way is if your projects needs to generate avro classes while running.\n```\nnpm install @degordian/avro-to-typescript --save\n```\n\n    import { Compiler } from \"degordian/avro-to-typescript\";\n\n    const compiler = new Compiler(outputDir);\n    await compiler.compile(avro);\n\n#### Logical Types:\nIf you want to take advantage of logical types, you can pass these as an argument to the cli\n```sh\navro-to-typescript --compile [ schema-directory ] [ output-directory ] --logical-types [avro type] [typescript type]\n```\n\nYou can even pass more than one if you alternate them:\n```sh\navro-to-typescript --compile [ schema-directory ] [ output-directory ] --logical-types [avro type] [typescript type] [avro type] [typescript type]\n```\n\nYou can also pass them to the compilre in your code directly:\n\n    import { Compiler } from \"degordian/avro-to-typescript\";\n\n    const compiler = new Compiler(outputDir, { date: 'string', 'timestamp-millis': 'string'} });\n    await compiler.compile(avro);\n\nIf there are logical types in the avro schema but you don't provide a mapping for them, they will default to the underlying primitive type.\n\nContribution and Support\n------------------------\n\nIf you are having issues, please let us know on our issue tracker.\n\n- Issue Tracker: github.com/degordian/avro-to-typescript/issues\n- Source Code: github.com/degordian/avro-to-typescript\n\n\nLicense\n-------\n\nThe project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornfight%2Favro-to-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbornfight%2Favro-to-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornfight%2Favro-to-typescript/lists"}