Skip to content

🦀 A browser extension to explore rust cargo dependencies on GitHub repos

License

Notifications You must be signed in to change notification settings

hehehai/cratehub

Repository files navigation

cratehub

On every GitHub repository or folder with a Cargo.toml file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.

cratehub also adds convenient links to:

GitHub Enterprise is also supported by right-clicking on cratehub's icon in the toolbar and selecting Enable cratehub on this domain.

Design

Here's what cratehub looks like:

cratehub on Chrome

Installation

Chrome also compatible with Edge Opera

Firefox

Safari ! todo dev

Development

pnpm dev

Then load extension in browser with the extension/ folder.

For Firefox developers, you can run the following command instead:

pnpm start:firefox

web-ext auto reload the extension when extension/ files changed.

While Vite handles HMR automatically in the most of the case, Extensions Reloader is still recommanded for cleaner hard reloading.

Build

To build the extension, run

pnpm build

And then pack files under extension, you can upload extension.crx or extension.xpi to appropriate extension store.

See Also

  • npmhub - On every GitHub repository or folder with a package.json file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.

thx