The official JavaScript/TypeScript SDK and CLI for SoMark.
This repository is the JavaScript/TypeScript implementation of the shared SoMark SDK + CLI contract. The Python implementation lives in somark-py. Same product, different runtime.
npm install somark-jsRead the official documentation at docs.somark.tech/documentation.
The docs cover authentication, CLI usage, SDK examples, async tasks, local preview, PDF utilities, API parameters, and error handling. This README stays intentionally short so it does not become a second, worse documentation site.
- Node.js 18+
- A SoMark API key for remote parsing and usage queries
- No API key required for local PDF utilities or SoMarkDown preview
- Docker/Ubuntu Python PDF rendering may require system libraries:
apt-get install -y --no-install-recommends libxcb1 libgl1 libglib2.0-0
Apache-2.0