Skip to content

consider splitting NPM package into a separate repo #60

Description

@benma

This repo contains both the Rust package and the NPM package. To accomplish this, we are swimming against the tide quite heavily:

Now that we have all of this we could roll with it, but by now I got the feeling that we should have just done it in separate repos, where the NPM repo just includes the Rust package as a dependency. Then all the above workarounds become unnecessary.

The workarounds above incurs a mental overhead to anyone looking at this repo - separate repos would be straight forward to understand and work with.

Potential downside: development of new features could be a bit more difficult as one would have to use a dev-version of the Rust package in the NPM repo to develop a feature in both repos at once.

Activity

  1. benma commented on Jul 8, 2024

    @benma
    ContributorAuthor

    Some months later, I still think it would be beneficial to split it into two repos for clarity.

  2. benma commented on Sep 5, 2026

    @benma
    ContributorAuthor

    https://github.com/BitBoxSwiss/bitbox-api-ts/ is a native TS package which serves as a drop-in replacement to this repo's WASM/TS package.

    #132 is a draft PR to remove all WASM/TS parts from this repo, resolving this issue.

  3. added a commit that references this issue on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions