coinbase / coinbase/onchainkit

Feature Request: Move getOnrampBuyUrl to separate package for those not using react

Open
#2,153 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
520
Avg merge
32m
Merged PRs (30d)
2

Description

### Describe the solution you'd like

The package npm i @coinbase/onchainkit pulls in quite a lot of dependencies, especially for people not using react, graphql & cie (in my case i use angular). It would be great to be able to use utility functions such as getOnrampBuyUrl without needing to pull in that many dependencies, leading to potential conflicts etc...

### Describe alternatives you've considered.

I have resorted to copy and pasting the function getOnrampBuyUrl instead of installing the package.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate getOnrampBuyUrl in the @coinbase/onchainkit package and inspect how its current exports pull in React, GraphQL, and other dependencies. Determine the package boundary needed for non-React users, then verify that the utility can be installed and used without those dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, graphql, react, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.