Indexed by TopGit from live GitHub metadata: mixn/carbon-now-cli has 6.0k stars, written primarily in TypeScript. π¨ Beautiful images of your code β from right inside your terminal.
Snapshot summary built from the project's own GitHub metadata β there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then β see the READ ME tab for the original README in full.
π¨ Beautiful images of your code β from right inside your terminal.
Table of Contents
Description
Features
Installation
Usage
Presets
License
Examples
Description
carbon-now-cli brings the power of Carbon directly to your terminal. β‘οΈ
Generate beautiful images of your code with a single command.
Want to customize everything before generating the image? Run it in --interactive mode. π
Features
πΌ Downloads the real, high-quality image (no DOM screenshots)
β¨ Detects file type automatically
π Supports all languages & covers extra ground
β‘οΈ Interactive mode via --interactive
π Presets via --preset to save and re-use your favorite settings
π± Selective processing via --start and --end
π Copies image to clipboard via --to-clipboard (cross-OS π±)
π Accepts file, stdin, or clipboard content as input
ποΈ Supports custom theme colors
π₯ Supports concurrency for easier batch processing
π Saves to given location or opens in browser for manual finish
πΆ Displays image directly in supported terminals
π Supports different export types (png, svg)
π Supports different resolutions (1x, 2x, 4x)
β± Reports each step and therefore shortens the wait
β Heavily tested
β Actively maintained
π§Ί β¦and more!
Installation
Bun
bun i -g carbon-now-cli
pnpm
pnpm i -g carbon-now-cli
npx
npx carbon-now-cli <file>
npm
npm i -g carbon-now-cli
yarn
yarn global add carbon-now-cli
Requirements
Usage
Beautiful images of your code β from right inside your terminal.
Usage
$ carbon-now <file>
$ pbpaste | carbon-now
$ carbon-now --from-clipboard
Options
--start, -s Starting line of input
--end, -e Ending line of input
--interactive, -i Interactive mode
--preset, -p Apply an existing preset
--save-to Image save location, default: cwd
--save-as Image name without extension, default: original-hash
--from-clipboard Read input from clipboard instead of file
--to-clipboard Copy image to clipboard instead of saving
--open-in-browser Open in browser instead of saving
--config Use a different, local config (read-only)
--settings Override specific settings for this run
--disable-headless Run Playwright in headful mode
--engine Use different rendering engine, default: `chromium`
Options: `chromium`, `firefox`, `webkit`
--skip-display Donβt display the image in the terminal
Examples
See: https://github.com/mixn/carbon-now-cli#examples
Presets
Creating a Preset
Running the carbon-now command generates a ~/.carbon-now.json config file.
Presets are stored in this file and consist of available settings. You can create presets either manually or automatically via the --interactive flag. When prompted, answer the following:
For example, naming the preset presentation will add it to ~/.carbon-now.json like this:
Please note that custom theme colors arenβt applied with --open-in-browser because they arenβt query string parameters but instead use localStorage, which is solely set inside the Playwright instance.
Local configs
Use the --config flag for local configuration files. This is helpful for sharing presets across users in a project.
carbon-now _unfold.js --config local-config.json --preset dark
Local configs are read-only and differ from ~/.carbon-now.json in that:
local-config.json wonβt be created if it doesnβt exist.
latest-preset is not written to local-config.json.
Examples
Assuming you have a file _unfold.js with this content:
// Example from https://carbon.now.sh/
const unfold = (f, seed) => {
const go = (f, seed, acc) => {
const res = f(seed)
return res ? go(f, res[1], acc.concat([res[0]])) : acc
}
return go(f, seed, [])
};
Basic
carbon-now _unfold.js
Uses default settings and saves the image as .png in your cwd.
Result:
Fully customized
carbon-now _unfold.js --interactive
Launches interactive mode to customize every aspect, like theme, font-family, padding, etc.
Input:
Result:
Selective
carbon-now _unfold.js --start 3 --end 6
Generates an image for lines 3 to 6. Will throw an error if --start > --end.
Result:
Copying to clipboard
Copies the image to clipboard instead of saving it. Requires xclip on Linux.
carbon-now _unfold.js --to-clipboard
Linux
xclip is required. Install with
sudo apt-get install xclip
Windows & macOS
It just works. β’
Input Sources
In addition to files, input from stdin or the clipboard is also supported.
How does mixn/carbon-now-cli compare to other Developer Tools projects?
mixn/carbon-now-cli is tracked by TopGit in the Developer Tools category, with 6.0k GitHub stars and written in TypeScript. Browse the Developer Tools topic page on TopGit to compare it against similar projects by stars and activity.
Is mixn/carbon-now-cli open source?
Yes β mixn/carbon-now-cli ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/mixn/carbon-now-cli.
What else is in the Developer Tools space?
mixn/carbon-now-cli is tracked by TopGit under the Developer Tools category, alongside 10 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is mixn/carbon-now-cli?
mixn/carbon-now-cli (mixn/carbon-now-cli) is a TypeScript project on GitHub. From the project's own README: π¨ Beautiful images of your code β from right inside your terminal.
Where do I read more about mixn/carbon-now-cli?
This TopGit page is a snapshot β the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/mixn/carbon-now-cli is the definitive source.
Why is mixn/carbon-now-cli categorized under Developer Tools?
TopGit places mixn/carbon-now-cli in the Developer Tools category based on its GitHub topics and description (tagged: "cli", "cli-app", "cli-application"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Still deciding about carbon-now-cli?
One click hands the question to an AI along with this page β see what it says about carbon-now-cli.