Demo link: autoreviewer.vercel.app
In this project, I built an automatic code reviewer using Next.js, tRPC, TailwindCSS, and the OpenAI API. The application allows users to submit their code and receive a code review in response.
In addition, the user can modify the temperature (randomness) and the number of reviews to generate. If the user would like the reviewer to hone in on a specific type of review, they can additionally feed it a custom prompt, e.g. “I would like to see more comments”.
To see it in action, I submitted the following Go function to the application:
package main
func main() {
s := "hello world"
fmt.Printf("%s\n", sprintf("%s", s))
}
What I would change:
- Move the programming language selector to the top left of the page, so it’s the first thing people see
- The input field doesn’t have any highlighting for the input, which could be improved
- Add a button to copy the response