Skip to content
← All work

Case 08 / CLI + VS Code extension

Prismify

Make code easier to read, without breaking it.

Role
Design & engineering, solo
Platforms
Terminal · VS Code
Built with
TypeScript · Babel · Prettier · Ollama
Prismify adding doc comments in the terminal

Overview

Prismify renames cryptic local variables, formats, adds doc comments and flags magic numbers and deep nesting for JavaScript, TypeScript, Python and Java. Names come from offline rules or a local model, and your code never leaves your machine.

What it does

  1. 01Renames need evidence: `const n = user.name` becomes `name`; a lone letter with no evidence is left alone
  2. 02Syntax check before and after every change
  3. 03Guard-clause and named-constant suggestions, dead and debug code reports
  4. 04CI mode, git hooks, watch mode and a VS Code extension

Under the hood

  • ✺Distributed as release tarballs
  • ✺Usable as a library as well as a CLI
A preview diff of renamed variables
Previews by default; nothing is written until --write.
Refactor suggestions for magic numbers and nesting
Next caseWheelhouse→Turn an old Android phone into a click-wheel music player