Open steven-tey opened 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 Great!! You stole my potential issue already :)
@VishalMCF I realized that I have a simpler solution for this, so i implemented it.
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: @.***>
@VishalMCF
You can try building a Dub React library. Take a look at OpenAI's and Cloudinary's React libraries for inspiration.
@VishalMCF are you working on the library ?
@aakash2330 No bro. A little less interested in working on frontend side.
@sujjeee can you elaborate a little more about the dub react library .
@aakash2330 Its not react library, Its like nodejs library or we can say nodejs sdk
Look at this prototype 👇
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.
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 .
@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.
makes sense .
Building on @sujjeee's incredible work: https://github.com/sujjeee/dubco
Proposal
npm i dub
(published via NPM)Commands
dub help
: Shows a list of commands that are availabledub login
: Login to Dub.co via API token.dub config
: Show current configdub config set
: Set current configExample:
dub shorten [url] [key]
: Shorten a URLIf
url
andkey
are not provided, go through the current flow:url
is provided, create short link with random keyurl
andkey
are provided, create short link with provided keyMVP notice
This is the early MVP of the
dub
CLI and will be improved in the future!