Show HN: Ferrite – Markdown editor in Rust with native Mermaid diagram rendering
Ferrite: Fast Markdown/Text/Code editor in Rust with native Mermaid diagrams
Built a Markdown editor using Rust + egui. v0.2.1 just dropped with major Mermaid improvements:
→ Native Mermaid diagrams - Flowcharts, sequence, state, ER, git graphs - pure Rust, no JS
→ Split view - Raw + rendered side-by-side with sync scrolling
→ Syntax highlighting - 40+ languages with large file optimization
→ JSON/YAML/TOML tree viewer - Structured editing with expand/collapse
→ Git integration - File tree shows modified/staged/untracked status
Also: minimap, zen mode, auto-save, session restore, code folding indicators.
~15MB binary, instant startup. Windows/Linux/macOS.
GitHub: https://github.com/OlaProeis/Ferrite
v0.2.2 coming soon with performance improvements for large files. Looking for feedback!
Finding and fixing Ghostty's largest memory leak
The article discusses a memory leak issue in the Ghostty terminal emulator and provides a solution to fix it. It explains the root cause of the problem and the steps to resolve the memory leak, allowing users to maintain a stable Ghostty application.
Show HN: I used Claude Code to discover connections between 100 books
I think LLMs are overused to summarise and underused to help us read deeper.
I built a system for Claude Code to browse 100 non-fiction books and find interesting connections between them.
I started out with a pipeline in stages, chaining together LLM calls to build up a context of the library. I was mainly getting back the insight that I was baking into the prompts, and the results weren't particularly surprising.
On a whim, I gave CC access to my debug CLI tools and found that it wiped the floor with that approach. It gave actually interesting results and required very little orchestration in comparison.
One of my favourite trail of excerpts goes from Jobs’ reality distortion field to Theranos’ fake demos, to Thiel on startup cults, to Hoffer on mass movement charlatans (https://trails.pieterma.es/trail/useful-lies/). A fun tendency is that Claude kept getting distracted by topics of secrecy, conspiracy, and hidden systems - as if the task itself summoned a Foucault’s Pendulum mindset.
Details:
* The books are picked from HN’s favourites (which I collected before: https://hnbooks.pieterma.es/).
* Chunks are indexed by topic using Gemini Flash Lite. The whole library cost about £10.
* Topics are organised into a tree structure using recursive Leiden partitioning and LLM labels. This gives a high-level sense of the themes.
* There are several ways to browse. The most useful are embedding similarity, topic tree siblings, and topics cooccurring within a chunk window.
* Everything is stored in SQLite and manipulated using a set of CLI tools.
I wrote more about the process here: https://pieterma.es/syntopic-reading-claude/
I’m curious if this way of reading resonates for anyone else - LLM-mediated or not.
Show HN: Librario, a book metadata API that aggregates G Books, ISBNDB, and more
TLDR: Librario is a book metadata API that aggregates data from Google Books, ISBNDB, and Hardcover into a single response, solving the problem of no single source having complete book information. It's currently pre-alpha, AGPL-licensed, and available to try now[0].
My wife and I have a personal library with around 1,800 books. I started working on a library management tool for us, but I quickly realized I needed a source of data for book information, and none of the solutions available provided all the data I needed. One might provide the series, the other might provide genres, and another might provide a good cover, but none provided everything.
So I started working on Librario, a book metadata aggregation API written in Go. It fetches information about books from multiple sources (Google Books, ISBNDB, Hardcover. Working on Goodreads and Anna's Archive next.), merges everything, and saves it all to a PostgreSQL database for future lookups. The idea is that the database gets stronger over time as more books are queried.
You can see an example response here[1], or try it yourself:
curl -s -H 'Authorization: Bearer librario_ARbmrp1fjBpDywzhvrQcByA4sZ9pn7D5HEk0kmS34eqRcaujyt0enCZ' \
'https://api.librario.dev/v1/book/9781328879943' | jq .
This is pre-alpha and runs on a small VPS, so keep that in mind. I never hit the limits in the third-party services, so depending on how this post goes, I’ll or will not find out if the code handles that well.The merger is the heart of the service, and figuring out how to combine conflicting data from different sources was the hardest part. In the end I decided to use field-specific strategies which are quite naive, but work for now.
Each extractor has a priority, and results are sorted by that priority before merging. But priority alone isn't enough, so different fields need different treatment.
For example:
- Titles use a scoring system. I penalize titles containing parentheses or brackets because sources sometimes shove subtitles into the main title field. Overly long titles (80+ chars) also get penalized since they often contain edition information or other metadata that belongs elsewhere.
- Covers collect all candidate URLs, then a separate fetcher downloads and scores them by dimensions and quality. The best one gets stored locally and served from the server.
For most other fields (publisher, language, page count), I just take the first non-empty value by priority. Simple, but it works.
Recently added a caching layer[2] which sped things up nicely. I considered migrating from net/http to fiber at some point[3], but decided against it. Going outside the standard library felt wrong, and the migration didn't provide much in the end.
The database layer is being rewritten before v1.0[4]. I'll be honest: the original schema was written by AI, and while I tried to guide it in the right direction with SQLC[5] and good documentation, database design isn't my strong suit and I couldn't confidently vouch for the code. Rather than ship something I don't fully understand, I hired the developers from SourceHut[6] to rewrite it properly.
I've got a 5-month-old and we're still adjusting to their schedule, so development is slow. I've mentioned this project in a few HN threads before[7], so I’m pretty happy to finally have something people can try.
Code is AGPL and on SourceHut[8].
Feedback and patches[9] are very welcome :)
[0]: https://sr.ht/~pagina394/librario/
[1]: https://paste.sr.ht/~jamesponddotco/a6c3b1130133f384cffd25b3...
[2]: https://todo.sr.ht/~pagina394/librario/16
[3]: https://todo.sr.ht/~pagina394/librario/13
[4]: https://todo.sr.ht/~pagina394/librario/14
[5]: https://sqlc.dev
[6]: https://sourcehut.org/consultancy/
[7]: https://news.ycombinator.com/item?id=45419234
[8]: https://sr.ht/~pagina394/librario/
[9]: https://git.sr.ht/~pagina394/librario/tree/trunk/item/CONTRI...
Show HN: VAM Seek – 2D video navigation grid, 15KB, zero server load
Hi HN! I built VAM Seek because I was frustrated with 1D seek bars – you never know where you're going until you get there.
VAM Seek renders a 2D thumbnail grid next to your video. Click any cell to jump. All frame extraction happens client-side via canvas – no server processing, no pre-generated thumbnails.
- 15KB, zero dependencies - One-line integration - Works with any <video> element
Live demo: https://haasiy.main.jp/vam_web/deploy/lolipop/index.html
Would love feedback!
Open Chaos: A self-evolving open-source project
OpenChaos is a new open-source project that aims to provide a decentralized, community-driven platform for building and managing complex systems. The project focuses on enabling collaboration, transparency, and self-governance through the use of blockchain technology.
Show HN: Play poker with LLMs, or watch them play against each other
I was curious to see how some of the latest models behaved and played no limit texas holdem.
I built this website which allows you to:
Spectate: Watch different models play against each other.
Play: Create your own table and play hands against the agents directly.
Eulogy for Dark Sky, a data visualization masterpiece (2023)
The article explores the Dark Sky weather data visualization tool, which provides detailed and hyperlocal weather information through interactive maps and charts. It highlights the tool's capabilities in analyzing weather patterns, temperature fluctuations, and precipitation levels to help users make informed decisions about their daily activities.
A Year of Work on the Arch Linux Package Management (ALPM) Project
The article discusses the author's work on the ALPM (Arch Linux Package Manager) project over the past year, highlighting the significant improvements and new features implemented to enhance the package management experience for Arch Linux users.
AI is a business model stress test
The article discusses how AI can act as a stress test for business models, highlighting both the opportunities and challenges that AI presents for companies. It emphasizes the need for businesses to carefully evaluate the impact of AI on their operations, customer experience, and overall strategy.
CPU Counters on Apple Silicon: article + tool
This article provides an in-depth analysis of Apple's Precompiled Modules (PMU) technology, exploring its benefits, implementation, and performance impact on software development and compilation processes for Apple's platforms.
Code and Let Live
https://sprites.dev/
Sisyphus Now Lives in Oh My Claude
This article introduces Oh My Claude, an AI-powered chatbot that can engage in open-ended conversations. The chatbot is designed to be helpful, harmless, and honest, and has been trained to avoid harmful or biased outputs.
Brands upset Buy For Me is featuring their products on Amazon without permission
The article discusses how some brands are upset that the Buy for Me feature on Amazon is featuring their products without their permission. It explores the tensions between brands, third-party sellers, and Amazon's policies around unauthorized product listings.
Overdose deaths are falling in America because of a 'supply shock': study
After years of steady increases, overdose deaths in the United States have started to decline, driven by a drop in opioid-related fatalities. This trend is attributed to improved access to addiction treatment, harm reduction measures, and shifts in the illicit drug supply.
Datadog, thank you for blocking us
The article discusses Datadog's decision to block the deductive.ai website, which led to a backlash from the community. It explores the potential reasons behind Datadog's actions and the implications for the broader ecosystem.
Workers at Redmond SpaceX lab exposed to toxic chemicals
Code Is Clay
The article explores the concept of 'code as clay', where software development is likened to the creative process of sculpting. It emphasizes the iterative and malleable nature of code, and how it can be shaped and refined over time to achieve the desired outcome.
An Experimental Approach to Printf in HLSL
The article discusses the history and usage of the `printf()` function in programming languages, highlighting its importance in formatting and outputting data, and its continued relevance in modern software development.
Show HN: mcpc – Universal command-line client for Model Context Protocol (MCP)
The article describes the Mcp-CLI, a command-line interface tool for managing and deploying Apify cloud platform resources. It provides information on installing, configuring, and using the tool to perform various operations, such as deploying and managing actors, schedules, and datasets.
ChatGPT Health is a marketplace, guess who is the product?
The article discusses the ethical implications of ChatGPT and other AI chatbots, arguing that users are the real product being sold in the health technology marketplace, rather than the technology itself. It raises concerns about the potential misuse of personal data and the lack of transparency in the industry.
Bob Weir has died
Bob Weir, co-founder of the iconic band Grateful Dead, has passed away at the age of 75. The article highlights Weir's significant contributions to the band's unique sound and influential role in the evolution of American music.
ASCII-Driven Development
The article discusses the concept of 'ASCII-driven development', where developers use ASCII art as a means of expressing their ideas and communicating them effectively within a team. It highlights the benefits of this approach, such as enhancing collaboration, promoting creativity, and improving the overall development process.
Rats caught on camera hunting flying bats
Researchers have captured the first-ever footage of rats hunting and catching flying bats, a behavior not previously documented. This discovery sheds new light on the diverse hunting capabilities and adaptability of rats, a ubiquitous urban mammal.
Org Mode Syntax Is One of the Most Reasonable Markup Languages for Text (2017)
The article discusses the use of Org mode, a markup language, as a standalone markup format without the need for a full-fledged Emacs environment. It highlights the flexibility and simplicity of Org mode as a general-purpose markup language that can be used for a variety of purposes beyond its traditional use in Emacs.
Private equity firms acquired more than 500 autism centers in past decade: study
The article examines the growing trend of private equity firms investing in autism treatment centers, raising concerns about the potential impact on accessibility and quality of care for individuals with autism.
UpCodes (YC S17) is hiring PMs, SWEs to automate construction compliance
The article discusses the career opportunities available at UP, a tech company that provides software solutions and services. It highlights the company's growth, diverse team, and variety of roles in areas such as engineering, product management, and customer success.
New information extracted from Snowden PDFs through metadata version analysis
The article examines newly released Snowden documents that shed light on the NSA's mass surveillance programs, including details on how the agency monitored global internet traffic and targeted specific individuals for surveillance.
I replaced Windows with Linux and everything's going great
The article explores the author's journey of building a Linux-based gaming desktop, highlighting the challenges and benefits encountered along the way, as well as the overall performance and customization capabilities of the system.
Kodbox: Open-source cloud desktop with multi-storage fusion and web IDE
Kodbox is an open-source, web-based file management system that allows users to manage and share files across multiple devices. It provides features such as online file editing, collaboration, and multimedia playback within a web browser.