dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
17.51k stars 1.83k forks source link

[FEAT]: `dub` CLI #506

Open steven-tey opened 8 months ago

steven-tey commented 8 months ago

Building on @sujjeee's incredible work: https://github.com/sujjeee/dubco

Proposal

npm i dub (published via NPM)

Commands

MVP notice

This is the early MVP of the dub CLI and will be improved in the future!

linear[bot] commented 8 months ago

ENG-102 [FEAT]: `dub` CLI

sujjeee commented 8 months ago

🙋‍♂️

VishalMCF commented 8 months ago

@steven-tey @sujjeee I have one idea related to this. A few days back there was an issue created by you @steven-tey to programmatically create the QR Code which I wanted to work on. Do you think it will be a good idea to let the user create the QR code using CLI by adding some extra parameters and letting it download in the user file path? From there he can also then do many things like storing it in his S3 or Redis cache. What do you guys think?

sujjeee commented 8 months ago

@VishalMCF 👀

https://github.com/dubinc/dub/assets/101963203/594a26c2-a53d-4968-a543-e90a144e106c

VishalMCF commented 8 months ago

@sujjeee Great!! You stole my potential issue already :)

sujjeee commented 8 months ago

@VishalMCF I realized that I have a simpler solution for this, so i implemented it.

VishalMCF commented 8 months ago

Is there anything that I can implement? If you have any idea?

On Tue, 19 Dec 2023 at 16:58, Suraj ! @.***> wrote:

@VishalMCF https://github.com/VishalMCF I realized that I have a simpler solution for this, so i implemented it.

— Reply to this email directly, view it on GitHub https://github.com/dubinc/dub/issues/506#issuecomment-1862588042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQYCBCTLNL7MKTOL63L7PYDYKF26DAVCNFSM6AAAAABAYUJ5NGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSGU4DQMBUGI . You are receiving this because you were mentioned.Message ID: @.***>

sujjeee commented 8 months ago

@VishalMCF

You can try building a Dub React library. Take a look at OpenAI's and Cloudinary's React libraries for inspiration.

aakash2330 commented 8 months ago

@VishalMCF are you working on the library ?

VishalMCF commented 8 months ago

@aakash2330 No bro. A little less interested in working on frontend side.

aakash2330 commented 8 months ago

@sujjeee can you elaborate a little more about the dub react library .

sujjeee commented 8 months ago

@aakash2330 Its not react library, Its like nodejs library or we can say nodejs sdk

Look at this prototype 👇 Screenshot 2023-12-23 224034

something similar, like import dub from a lib and create new instance, pass api key and then pass the other args and create a short url.

aakash2330 commented 8 months ago

Yes , that's what I was confused about , whether the context was sdk or a react components library . Thanks for clarifying . I'm really interested on working on it , any suggestions would be greatly helpful .

sujjeee commented 8 months ago

@aakash2330 Its great to see you excited about this, but ask @steven-tey if its really needed or not, because most people prefer to do direct API calls instead of installing an additional library for this. If you really want to contribute, then contribute to improving the APIs as they are still in beta phase.

aakash2330 commented 8 months ago

makes sense .

ccreusat commented 8 months ago

Hi guys, Hi @sujjeee

Just discovering dub :)

About the library, are you looking for a typescript lib like a BFF or data layer to connect dub's APIs?

If so, I'm interested to contribute. This is what I did at work Example