Skip to content

Add raft-core TypeScript implementation#221

Merged
ongardie merged 2 commits intoraft:mainfrom
maboke123:main
Apr 13, 2026
Merged

Add raft-core TypeScript implementation#221
ongardie merged 2 commits intoraft:mainfrom
maboke123:main

Conversation

@maboke123
Copy link
Copy Markdown
Contributor

@maboke123 maboke123 commented Mar 15, 2026

Adding @maboke123/raft-core, a TypeScript implementation of Raft with:

  • Leader election with pre-vote
  • Log replication
  • Snapshots
  • Single-server cluster membership changes (addServer, removeServer, promoteServer)
  • Pluggable storage (InMemoryNodeStorage, DiskNodeStorage) and transport (GrpcTransport)
  • Full event stream for observability
  • Published on npm as @maboke123/raft-core and @maboke123/raft-grpc

Also includes a React devtools visualizer for observing live cluster state, elections, and message flow.

},
{
"repoURL": "https://github.com/maboke123/raft-consensus-algorithm",
"name": "raft-core",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please disambiguate the project name here, like "maboke123/raft-core" or "@maboke123/raft-core".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed it.

@ongardie
Copy link
Copy Markdown
Member

Hi @maboke123, sorry for my delay. That sounds pretty thorough! Do you have some screenshots? I'm lazy, and maybe others are too :)

@ongardie ongardie merged commit 7fcfb19 into raft:main Apr 13, 2026
1 check passed
@maboke123
Copy link
Copy Markdown
Contributor Author

Hi @maboke123, sorry for my delay. That sounds pretty thorough! Do you have some screenshots? I'm lazy, and maybe others are too :)

Good suggestion, I added some screenshots for the visualizer in the main readme.

@maboke123
Copy link
Copy Markdown
Contributor Author

Thanks for merging btw!

@ongardie
Copy link
Copy Markdown
Member

Hi @maboke123, sorry for my delay. That sounds pretty thorough! Do you have some screenshots? I'm lazy, and maybe others are too :)

Good suggestion, I added some screenshots for the visualizer in the main readme.

Looks really nice! I'm jealous 😄

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.

2 participants