feat: add official Node.js and Python SDKs
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled

- Node.js SDK (sdk/nodejs/): TypeScript, zero deps, native fetch, Node 18+
- Python SDK (sdk/python/): sync + async clients via httpx, Python 3.8+
- Both wrap all conversion endpoints (html, markdown, url, templates)
- Proper error handling with DocFastError
- Full README documentation for each
This commit is contained in:
DocFast Bot 2026-02-20 20:25:43 +00:00
parent 45b5be248c
commit 2e29d564ab
9 changed files with 547 additions and 0 deletions

24
sdk/nodejs/package.json Normal file
View file

@ -0,0 +1,24 @@
{
"name": "docfast",
"version": "0.1.0",
"description": "Official Node.js client for the DocFast HTML-to-PDF API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["dist"],
"engines": { "node": ">=18.0.0" },
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build"
},
"keywords": ["pdf", "html-to-pdf", "markdown-to-pdf", "docfast", "api", "document"],
"author": "DocFast <support@docfast.dev>",
"license": "MIT",
"homepage": "https://docfast.dev",
"repository": {
"type": "git",
"url": "https://git.cloonar.com/openclawd/docfast"
},
"devDependencies": {
"typescript": "^5.0.0"
}
}