frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Chafa: Terminal Graphics for the 21st Century

https://hpjansson.org/chafa/
116•birdculture•9h ago

Comments

joouha•8h ago
I use chafa extensively, and it really is the best tool for terminal graphics in my opinion.

I use it as a fallback option for terminals without proper terminal graphics support in my TUI Jupyter client, euporie.

There are Python bindings available: https://github.com/GuardKenzie/chafa.py

wonger_•7h ago
And JS bindings: https://github.com/hectorm/chafa-wasm

And I'm half-working on Rust bindings...

hectorm•4h ago
Author of the JS bindings here. I also have a browser demo: https://ansi-o-matic.molinero.dev
tasuki•5h ago
> and it really is the best tool for terminal graphics in my opinion

Not sixel or kitty graphics?

hecanjog•5h ago
What interests me about it is the unicode mosaic output format that looks higher quality than the usual upper half block or braille character approaches without needing to support a special protocol.
robot-wrangler•4h ago
Setting aside the usual compatibility issues with those things.. neither are available from your buildbot. Also while Jupyter does supports images other notebooking ecosystems may not, and anyway you need a file whereas chafa can work with streams.
mmulet•3h ago
One of the really cool things about chafa is that it has both sixel and kitty graphic renderers! (and iterm2 images as well) So you can output kitty if the terminal supports it, but fall back to ascii if it doesn’t.
lawlessone•5h ago
i'm curious do you work entirely with a terminal and no desktop?

Chafa looks cool, i'd feel cool using it when i use a terminal but if really wanted to see an image id just open it in a image viewer.

Abishek_Muthian•7m ago
Have you tried Charmbracelet's bubble tea - https://github.com/charmbracelet/bubbletea
n0um3n4•6h ago
qué chafa!! all jokes aside, this provides infinite posibilities for my obsession with text-based apps/CLI.
XorNot•6h ago
Discovered this recently when I wanted to set my perfect retro feeling company logo onto the MOTD of some hardware so we'd have it on the serial port.
atulvi•5h ago
Why can't we have proper graphics on terminal? years ago I remember being able to use graphics.h to draw on MS-DOS terminal and print letters on it (text mode).
d-lisp•4h ago
Did you try notcurses ? [0]

[0] https://notcurses.com/

duffyjp•4h ago
I threw together a utility for this with just the half character in 2018, I don't even remember why.

https://rubygems.org/gems/barf

The name does imply the image quality, fyi.

My solution is also multithreaded, in Ruby. :D

jazzyjackson•4h ago
I learned about Chafa when I found a video editor that runs in the command line with keyboard control - vic - it just lets you insert split markers and when you exit the video is sliced up into the portions. I really like the low-fi nature of scrobbling through the video, it has low brain overhead.

https://github.com/wong-justin/vic

jbaber•1h ago
Wow. Thanks for this recommendation! I have multiple times half-baked something like this using ffmpeg to dump out thumbnails and make cuts.
carterschonwald•4h ago
If you want some hilarious insanity: t try explaining ascii/terminal rendering to a text llm and see how it struggles
gnabgib•3h ago
Previously in 2022 (97 points, 31 comments) https://news.ycombinator.com/item?id=32797681
mmulet•2h ago
I use chafa in term.everything[0], and I have nothing but good things to say about it! hpjansson is a great maintainer too, if anything even seems like it's wrong with chafa he will chime in with a fix or a suggestion[1] (I'm not the only one he does this with too [2][3]). I would definitely recommend this lib for anyone doing terminal graphics.

[0]https://github.com/mmulet/term.everything

[1]https://github.com/mmulet/term.everything/issues/5

[2]https://lobste.rs/s/qh6lil/chafa_terminal_graphics_for_21st_...

[3]https://github.com/wong-justin/vic/issues/1#issue-2586904982

cherrycreek00•1h ago
I've been trying for like three hours to get this to show in-line images with w3m. Anyone got a config with that working?

8M Users' AI Conversations Sold for Profit by "Privacy" Extensions

https://www.koi.ai/blog/urban-vpn-browser-extension-ai-conversations-data-collection
74•takira•50m ago•18 comments

Quill OS is an open-source, fully-functional standalone OS for Kobo's eReaders

https://quill-os.org/
133•Curiositry•3h ago•40 comments

Native vs. emulation: World of Warcraft game performance on Snapdragon X Elite

https://rkblog.dev/posts/pc-hardware/pc-on-arm/x86_versus_arm_native_game/
21•geekman7473•4h ago•5 comments

Ideas aren't getting harder to find

https://asteriskmag.com/issues/12-books/ideas-arent-getting-harder-to-find
85•mitchbob•3h ago•36 comments

Nature's many attempts to evolve a Nostr

https://newsletter.squishy.computer/p/natures-many-attempts-to-evolve-a
133•fiatjaf•5d ago•74 comments

“Are you the one?” is free money

https://blog.owenlacey.dev/posts/are-you-the-one-is-free-money/
201•samwho•3d ago•44 comments

Economics of Orbital vs. Terrestrial Data Centers

https://andrewmccalip.com/space-datacenters
55•flinner•5h ago•98 comments

Essential Semiconductor Physics [pdf]

https://nanohub.org/resources/43623/download/Essential_Semiconductor_Physics.pdf
126•akshatjiwan•2d ago•6 comments

SoundCloud confirms breach after member data stolen, VPN access disrupted

https://www.bleepingcomputer.com/news/security/soundcloud-confirms-breach-after-member-data-stole...
50•technonerd•2h ago•3 comments

Rollstack (YC W23) is hiring multiple software engineers (TypeScript) US/Canada

https://www.ycombinator.com/companies/rollstack-2/jobs/QPqpb1n-software-engineer-typescript-us-ca...
1•yjallouli•2h ago

Umbrel – Personal Cloud

https://umbrel.com
141•oldfuture•8h ago•85 comments

Ford kills the All-Electric F-150

https://www.wired.com/story/ford-kills-electric-f-150-lightning-for-hybrid/
235•sacred-rat•6h ago•363 comments

Understanding carriage

https://seths.blog/2025/12/understanding-carriage/
26•herbertl•5d ago•6 comments

In Defense of Matlab Code

https://runmat.org/blog/in-defense-of-matlab-whiteboard-style-code
88•finbarr1987•3d ago•86 comments

The Bob Dylan concert for just one person

https://www.flaggingdown.com/p/the-bob-dylan-concert-for-just-one
44•NaOH•3h ago•7 comments

A kernel bug froze my machine: Debugging an async-profiler deadlock

https://questdb.com/blog/async-profiler-kernel-bug/
62•bluestreak•7h ago•14 comments

Chafa: Terminal Graphics for the 21st Century

https://hpjansson.org/chafa/
116•birdculture•9h ago•20 comments

Secret Documents Show Pepsi and Walmart Colluded to Raise Food Prices

https://www.thebignewsletter.com/p/secret-documents-show-pepsi-and-walmart
250•connor11528•6h ago•81 comments

Cosmic-ray bath in a past supernova gives birth to Earth-like planets

https://www.science.org/doi/10.1126/sciadv.adx7892
85•toomuchtodo•10h ago•30 comments

Light intensity steers molecular assemblies into 1D, 2D or 3D structures

https://phys.org/news/2025-11-intensity-molecular-1d-2d-3d.html
3•PaulHoule•5d ago•0 comments

Fix HDMI-CEC weirdness with a Raspberry Pi and a $7 cable

https://johnlian.net/posts/hdmi-cec/
205•jlian•6h ago•104 comments

The appropriate amount of effort is zero

https://expandingawareness.org/blog/the-appropriate-amount-of-effort-is-zero/
69•gmays•7h ago•44 comments

John Updike Wrote It All Down

https://newrepublic.com/article/201598/john-updike-wrote
7•samclemens•6d ago•0 comments

Upcoming Changes to Let's Encrypt Certificates

https://community.letsencrypt.org/t/upcoming-changes-to-let-s-encrypt-certificates/243873
253•schmuckonwheels•8h ago•209 comments

JetBlue flight averts mid-air collision with US Air Force jet

https://www.reuters.com/world/americas/jetblue-flight-averts-mid-air-collision-with-us-air-force-...
151•divbzero•5h ago•66 comments

We are discontinuing the dark web report

https://support.google.com/websearch/answer/16767242?hl=en
106•satertek•12h ago•35 comments

I'm Kenyan. I don't write like ChatGPT, ChatGPT writes like me

https://marcusolang.substack.com/p/im-kenyan-i-dont-write-like-chatgpt
585•florian_s•15h ago•383 comments

“Super secure” messaging app leaks everyone's phone number

https://ericdaigle.ca/posts/super-secure-maga-messaging-app-leaks-everyones-phone-number/
534•e_daigle•8h ago•252 comments

Carrier Landing in Top Gun for the NES

https://relaxing.run/blag/posts/top-gun-landing/
358•todsacerdoti•13h ago•150 comments

Problems with D-Bus on the Linux desktop

https://blog.vaxry.net/articles/2025-dbusSucks
283•LorenDB•8h ago•204 comments