Work

Code Autoreviewer

OpenAI
Full-stack

I developed a web application that allows users to submit their code and receive a code review in response.

Screenshot of a web form for submitting code review requests

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))
}

Screenshot of a poorly-written Go function and its code review

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