Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/kokokor/llms.txt
Use this file to discover all available pages before exploring further.
Package Manager Installation
Kokokor is available on npm and can be installed using your preferred package manager:Requirements
Kokokor requires one of the following runtime environments:Node.js
Version: 24.0.0 or higherKokokor uses modern JavaScript features and ESM modules
Bun
Version: 1.3.9 or higherNative Bun runtime support for optimal performance
Kokokor is built as an ESM (ECMAScript Module) package. Ensure your project is configured to use ESM or has proper module resolution for ESM packages.
Verify Installation
After installing, verify that Kokokor is properly set up by importing it in your project:TypeScript Setup
Kokokor is written in TypeScript and includes full type definitions out of the box. No additional@types packages are needed.
TypeScript Configuration
Ensure yourtsconfig.json is configured for ESM modules:
tsconfig.json
Import with Full Type Safety
All exports include comprehensive TypeScript types:Package Information
License
MIT License - Free for commercial and personal use
Bundle Size
Lightweight with minimal dependencies
Module Format
ESM (ECMAScript Modules)
TypeScript
Full type definitions included
Next Steps
Now that you have Kokokor installed, you’re ready to start reconstructing paragraphs from OCR output:Quick Start Guide
Learn how to use Kokokor with a simple example
Troubleshooting
Module Resolution Errors
If you encounter module resolution errors, ensure your project is configured for ESM: For Node.js projects, add to yourpackage.json:
package.json
tsconfig.json as shown in the TypeScript Setup section above.