Refraction

Refraction uses AI to refactor code, generate documentation, and create unit tests from code samples.

refraction.dev
Refraction homepage screenshot

About Refraction

Refraction is a web tool for developers that refactors code and generates documentation and unit tests from pasted code samples. Users paste a block of code, choose a language or framework, and run generation. It supports 56 listed languages and generation is subject to an 8000-token limit.

Key features

  • Refactor pasted code by selected language or framework
  • Generate documentation from code samples
  • Create unit tests from code samples
  • Generate output in 56 listed programming languages
  • Select language or framework before generating
Best for: Developers who need to refactor code and create documentation or unit tests from existing samples.
Good for
  • Supports 56 programming languages
  • Handles refactoring, documentation, and unit test generation in one workflow
  • Uses paste-code and language selection for input
Watch out for
  • Generation limited to 8000 tokens

Refraction at a glance

Type
Online tool
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Language
English
Good for
Developers
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Refraction alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 8 alternatives

Popular in AI Code Review & Testing

Well-known listings from the same topic.

All 27

Refraction FAQ

How does Refraction work?
Paste a block of code, choose a language or framework, then select Generate.
What can Refraction produce?
Refactored code, documentation, unit tests and other code output.
How many languages are supported?
56 languages, including Python, SQL, Java, JavaScript, C#, Go and others listed on the homepage.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing