Hacker News new | ask | show | jobs
Show HN: Refactory – AI Code Refactoring (userefactory.com)
1 points by iamdan 974 days ago
I found myself copying code snippets into ChatGPT all too often so I built a tool to make refactoring code easier.

You will need to bring your own OpenAI API key to use the tool.

I'd love any and all feedback about how I can improve the app. Thanks!

Also, this is open source - the code can be found at: https://github.com/daniel-black/refactory

2 comments

I keep getting 405 errors when passing in some Typescript to refactor.
Hmm I am sorry to hear that. Were you trying to refactor with gpt-4 or gpt-3.5-turbo?
Is it safe to share OpenAI keys to such apps?
The key is passed along in the refactor POST request body to OpenAI's chat endpoint (https://github.com/daniel-black/refactory/blob/5289bf54842d1...) and is not stored anywhere else so yes it should be safe.