arochedy / react-native-check-new-archi

16 stars 0 forks source link

Functionnality idea : ask chatgpt for not found (and not supporterd?) library #6

Open arochedy opened 2 weeks ago

arochedy commented 2 weeks ago

I have a idea of a new functionnality :

users can ask openai api to ask chatgpt to help find alternatives or to say if it's full js library or not.

It's optionnal for user and they have to put their openai key in the argument (no server side for us)

example

npx rn-chk-new-arch --openai-key=XXXX-XXXXX

results Library: my-custom-lib, not found, IA Anwer : "This library is not maintained anymore, you should use 'new-library' and it supports new architecture' ``

jerinjohnk commented 2 weeks ago

I just checked ChatGPT.

My react native project has react-native-sms-retriever as its dependency. Can you suggest a newer alternative library to replace it that is new architecture supported

It suggested react-native-otp-verify, but it has a few open issues. So, I asked it to give more alternatives. Twilio Verify API: paid react-native-otp-verify: the same one rn-sms-retriever: this one we used.

I'm unsure if anyone would be interested in pasting their openai_key while running an npx command. Most people compare 3-5 alternatives, weigh their pros and cons based on their requirements, and then select.

But there's no harm in adding this; maybe there's a use case that is eluding me right now. The package size and execution time should also be considered before adding this.