{"library":"drafter","type":"library","category":null,"description":"Drafter is a Node.js wrapper around the API Blueprint parser. It provides both synchronous and asynchronous parsing capabilities for API Blueprint documents, converting them into a machine-readable Abstract Syntax Tree (AST). The package prioritizes the faster C++ binding, Protagonist, but includes a pure JavaScript fallback, drafter.js, if the C++ binding fails to install or load. The current stable version is 2.0.0. The project maintains an active development status with updates typically driven by upstream changes in the core Drafter C++ parser and its JavaScript counterparts, which influences its release cadence. Its key differentiator is its robust handling of API Blueprint parsing, providing a consistent API across potentially different underlying parser implementations.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install drafter","imports":["import * as drafter from 'drafter';","const drafter = require('drafter');","import { parse, parseSync } from 'drafter'; // (Not officially supported but might work with bundlers)\n// or for robust ESM:\nimport * as drafter from 'drafter';\nconst parse = drafter.parse;\nconst parseSync = drafter.parseSync;"]},{"cmd":"yarn add drafter","imports":[]},{"cmd":"pnpm add drafter","imports":[]}],"homepage":"https://apiblueprint.org","github":"https://github.com/apiaryio/drafter-npm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/drafter","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/drafter/compatibility"}}