Analysis updated 2026-07-08 · repo last pushed 2026-07-03
Add interactive type hover boxes and compiler error messages to TypeScript code samples in your blog.
Build polished library documentation with inline Twoslash annotations like the official TypeScript docs.
Show type extraction, code completions, and emitted files alongside code blocks in tutorials.
| joshuakgoldberg/expressive-code-twoslash | 0xhassaan/nn-from-scratch | 0xzgbot/hermes-comfyui-skills | |
|---|---|---|---|
| Stars | — | 0 | 0 |
| Language | — | Python | — |
| Last pushed | 2026-07-03 | — | — |
| Maintenance | Active | — | — |
| Setup difficulty | moderate | moderate | easy |
| Complexity | 2/5 | 4/5 | 1/5 |
| Audience | developer | developer | designer |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Expressive Code setup in a web project and familiarity with Twoslash annotation syntax.
If you write documentation or a blog that includes TypeScript code samples, you probably want readers to understand not just the code itself but the types and errors behind it. This plugin brings Twoslash support to Expressive Code, which is a tool for rendering attractive code blocks on websites. Twoslash is a format for annotating TypeScript code with inline information like type hovers, error messages, and callouts. With this plugin, your code blocks can display that rich type information the same way the official TypeScript documentation does. The plugin works by hooking into Expressive Code, extending it so that TypeScript code blocks can include Twoslash-style annotations. When a code block is rendered on your site, the plugin processes those annotations and displays them visually. It supports TypeScript, React TSX, and Vue code blocks. The features cover a range of useful documentation capabilities. You can show JSDoc comments and type information in hover boxes, display compiler error messages, highlight specific lines, and add callout notes alongside your code. It also supports type extraction, code completions, and the ability to show what files the TypeScript compiler emits. These are the kinds of details that make technical tutorials significantly clearer, especially when you are explaining why a particular piece of code behaves a certain way. This tool is designed for people building documentation sites, developer blogs, or any web project that already uses Expressive Code and wants richer TypeScript examples. If you maintain a library and want your docs to feel as polished as the TypeScript language's own documentation, this plugin helps bridge that gap without requiring readers to open an editor themselves.
A plugin that adds Twoslash-style TypeScript type annotations, error messages, and callouts to code blocks rendered with Expressive Code on documentation websites and blogs.
Active — commit in last 30 days (last push 2026-07-03).
No license information was provided in the explanation.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.