{"id":18644094,"url":"https://github.com/indix/kafkajs-lz4","last_synced_at":"2025-09-10T07:36:58.328Z","repository":{"id":33062156,"uuid":"150750789","full_name":"indix/kafkajs-lz4","owner":"indix","description":"🗜 LZ4 compression codec for KafkaJS","archived":false,"fork":false,"pushed_at":"2023-01-07T22:30:58.000Z","size":376,"stargazers_count":15,"open_issues_count":11,"forks_count":9,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-25T13:39:24.006Z","etag":null,"topics":["indix","kafka","lz4","node","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-28T14:14:37.000Z","updated_at":"2024-06-21T08:56:15.000Z","dependencies_parsed_at":"2023-01-14T23:14:06.238Z","dependency_job_id":null,"html_url":"https://github.com/indix/kafkajs-lz4","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indix%2Fkafkajs-lz4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indix%2Fkafkajs-lz4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indix%2Fkafkajs-lz4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indix%2Fkafkajs-lz4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indix","download_url":"https://codeload.github.com/indix/kafkajs-lz4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154982,"owners_count":21056543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["indix","kafka","lz4","node","typescript"],"created_at":"2024-11-07T06:09:57.135Z","updated_at":"2025-04-11T12:30:53.791Z","avatar_url":"https://github.com/indix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafkajs-lz4\n\n[![Build Status](https://img.shields.io/github/workflow/status/indix/kafkajs-lz4/Test?logo=github-actions\u0026longCache=true\u0026style=flat-square)](https://travis-ci.org/indix/kafkajs-lz4) [![NPM Version](https://img.shields.io/npm/v/kafkajs-lz4.svg?longCache=true\u0026style=flat-square)](https://www.npmjs.com/package/kafkajs-lz4) ![](https://img.shields.io/badge/typescript-4.1-blue.svg?longCache=true\u0026style=flat-square)\n\nTypeScript-ready [lz4](https://www.npmjs.com/package/lz4) compression codec for [KafkaJS](https://www.npmjs.com/package/kafkajs).\n\nℹ️ Requires Node v10 or above to work.\n\n## Install\n\n```bash\n$ yarn add kafkajs-lz4\n```\n\n## Usage\n\n```typescript\nimport { CompressionTypes, CompressionCodecs } from 'kafkajs';\nimport LZ4Codec from 'kafkajs-lz4';\n\nCompressionCodecs[CompressionTypes.LZ4] = new LZ4Codec().codec;\n```\n\n## Options\n\nAll options are transparently passed on to the [lz4-asm library's compress options](https://www.npmjs.com/package/lz4-asm#lz4compresssource-options).\n\n### Example\n\nTo set the highest level of compression for your Kafka messages —\n\n```typescript\nconst lz4Codec = new LZ4Codec({\n    preferences: {\n        compressionLevel: 16\n    }\n}).codec;\n\nCompressionCodecs[CompressionTypes.LZ4] = lz4Codec;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findix%2Fkafkajs-lz4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findix%2Fkafkajs-lz4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findix%2Fkafkajs-lz4/lists"}