Skip to content

Conversation

@donghaoren
Copy link
Collaborator

@donghaoren donghaoren commented Aug 27, 2025

Move the density clustering JS code from inside the "component" package to its own package for better separation.

/** Cluster identifier */
identifier: number;
/** The total density */
sum_density: number;
Copy link
Member

Choose a reason for hiding this comment

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

I suppose these are mapping to native names so we use snake case instead of camel case which would be common in js?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, they map to Rust code. I think camel case would be better for JS, but this PR is just to move the code to a new home, so no changes to the naming.

{
"name": "@embedding-atlas/density-clustering",
"version": "0.0.0",
"private": true,
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to publish this as a package or leave it internal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The API is already published as part of the embedding-atlas npm package.

@donghaoren donghaoren changed the title chore: move the density clustering code to its own internal package refactor: move the density clustering code to its own internal package Aug 28, 2025
@donghaoren donghaoren merged commit 8b129e3 into main Aug 28, 2025
4 checks passed
@donghaoren donghaoren deleted the dr/split-clustering branch August 28, 2025 00:11
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.

3 participants