@chonkiejs/chunk
@chonkiejs/chunk is an npm package that provides semantic text chunking, splitting text at boundaries such as periods and newlines. Callers pass in strings and receive strings back, or pass Uint8Array binary data and receive Uint8Array views back for zero-copy handling. The package is dual licensed under the Apache License, Version 2.0 or the MIT license.
npm / PyPI packages
Open source ↗