{"id":24941,"library":"avdl2json","title":"avdl2json","description":"A Node.js compiler that converts AVDL (Avro IDL) files to JSON schema. Version 2.2.5 is the latest stable release. This package is specifically designed for Keybase's AVDL format and is unlikely to receive further updates. It has no notable alternative packages for this specific conversion, making it unique for Keybase-related projects.","status":"maintenance","version":"2.2.5","language":"javascript","source_language":"en","source_url":"https://github.com/keybase/node-avdl2json","tags":["javascript","AVDL","JSON"],"install":[{"cmd":"npm install avdl2json","lang":"bash","label":"npm"},{"cmd":"yarn add avdl2json","lang":"bash","label":"yarn"},{"cmd":"pnpm add avdl2json","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM only; commonjs require will fail.","wrong":"const avdl2json = require('avdl2json')","symbol":"avdl2json","correct":"import { compile } from 'avdl2json'"},{"note":"Named export only; default import does not exist.","wrong":"const { compile } = require('avdl2json')","symbol":"compile","correct":"import { compile } from 'avdl2json'"},{"note":"Named export 'compileFile' must be destructured.","wrong":"import compileFile from 'avdl2json'","symbol":"compileFile","correct":"import { compileFile } from 'avdl2json'"}],"quickstart":{"code":"import { compileFile } from 'avdl2json';\n\nasync function convert() {\n  const jsonSchema = await compileFile('path/to/example.avdl');\n  console.log(JSON.stringify(jsonSchema, null, 2));\n}\n\nconvert().catch(console.error);","lang":"typescript","description":"Converts an AVDL file to JSON schema using the compileFile function."},"warnings":[],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add \"type\": \"module\" to package.json or use .mjs extension.","cause":"Package uses ESM imports but project is not configured as module.","error":"SyntaxError: Cannot use import statement outside a module"},{"fix":"Run 'npm install avdl2json' and ensure node_modules is in scope.","cause":"Package not installed correctly or path issue.","error":"Error: Cannot find module 'avdl2json'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}