Skip to content

feat(preferred): add kafkajs to replacements - #1241

Closed
maksimgm wants to merge 1 commit into
e18e:mainfrom
maksimgm:feat/kafkajs
Closed

maksimgm wants to merge 1 commit into
e18e:mainfrom
maksimgm:feat/kafkajs

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

Closes #825

Adds kafkajs (~4.9M weekly downloads) to the preferred manifest with a migration doc covering both replacements suggested in the issue:

  • @confluentinc/kafka-javascript (~1.3M/week): official Confluent client with a KafkaJS-compatible API, so it's mostly an import + kafkaJS config block change
  • @platformatic/kafka (~680k/week): pure JS, no native addon, different API (stream-based consumer)

I went with the ordering from the issue discussion (confluent first since it's more battle-tested), happy to swap them if you'd rather lead with platformatic.

The examples typecheck against @confluentinc/kafka-javascript@1.11.0 and @platformatic/kafka@2.15.0. For platformatic, mode: 'committed' + fallbackMode: 'earliest' matches kafkajs' fromBeginning: true (resume from committed offsets, start from the beginning otherwise), since its default mode is latest.

@maksimgm

Copy link
Copy Markdown
Contributor Author

closing, dupe of #827

@maksimgm maksimgm closed this Nov 12, 2026
@maksimgm
maksimgm deleted the feat/kafkajs branch November 12, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Replacement]: kafkajs abandoned

1 participant