frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fresh – A new terminal editor built in Rust

https://sinelaw.github.io/fresh/
11•_sinelaw_•3h ago
I built Fresh to challenge the status quo that terminal editing must require a steep learning curve or endless configuration. My goal was to create a fast, resource-efficient TUI editor with the usability and features of a modern GUI editor (like a command palette, mouse support, and LSP integration).

Core Philosophy:

- Ease-of-Use: Fundamentally non-modal. Prioritizes standard keybindings and a minimal learning curve.

- Efficiency: Uses a lazy-loading piece tree to avoid loading huge files into RAM - reads only what's needed for user interactions. Coded in Rust.

- Extensibility: Uses TypeScript (via Deno) for plugins, making it accessible to a large developer base.

The Performance Challenge:

I focused on resource consumption and speed with large file support as a core feature. I did a quick benchmark loading a 2GB log file with ANSI color codes. Here is the comparison against other popular editors:

  - Fresh:   Load Time: *~600ms*     | Memory: *~36 MB*
  - Neovim:  Load Time: ~6.5 seconds | Memory: ~2 GB
  - Emacs:   Load Time: ~10 seconds  | Memory: ~2 GB
  - VS Code: Load Time: ~20 seconds  | Memory: OOM Killed (~4.3 GB available)
(Only Fresh rendered the ansi colors.)

Development process:

I embraced Claude Code and made an effort to get good mileage out of it. I gave it strong specific directions, especially in architecture / code structure / UX-sensitive areas. It required constant supervision and re-alignment, especially in the performance critical areas. Added very extensive tests (compared to my normal standards) to keep it aligned as the code grows. Especially, focused on end-to-end testing where I could easily enforce a specific behavior or user flow.

Fresh is an open-source project (GPL-2) seeking early adopters. You're welcome to send feedback, feature requests, and bug reports.

Website: https://sinelaw.github.io/fresh/

GitHub Repository: https://github.com/sinelaw/fresh

Comments

gigatexal•34m ago
love me a new text editor, here for this!
giancarlostoro•31m ago
I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.
_sinelaw_•24m ago
I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.
Barathkanna•2m ago
I get the frustration, but I think the npm option actually makes sense here. A lot of users who’d benefit from a fast Rust tool aren’t Rust developers and won’t have Cargo installed. Shipping it through npm lowers the barrier while still giving everyone the performance benefits. It’s not a knock on Cargo, just a way to make the tool more accessible.
ericb•25m ago
I took a look--it seems like you can pass a path on the command-line to open to. Can you pass a line number, also?
_sinelaw_•23m ago
No, but that's a good idea, I'll add that
ericb•15m ago
Also--cool editor!
simlevesque•17m ago
I hate to be that guy, but did you know about Fresh, Deno's official frontend framework ? [1] If your app wasn't using Deno for extensibility it wouldn't be such a problem but since it is, I think it's gonna make searching for both harder.

[1] https://fresh.deno.dev/

Findecanor•2m ago
> Efficiency: Uses a lazy-loading piece tree to avoid loading huge files into RAM

I once started writing a text editor on Linux, and first went down a similar route: a piece table over a mmap()'d file. But I abandoned using mmap, because Linux file systems typically don't have mandatory locking enabled, so you can't be sure that the file data won't be modified by another program.

(Then I got bogged down in Unicode handling... so 95% of the code became just about that, and I tired of it)

Show HN: Fresh – A new terminal editor built in Rust

https://sinelaw.github.io/fresh/
12•_sinelaw_•3h ago•9 comments

Show HN: Avolal – Book routine flights in 60 seconds

https://www.avolal.com
4•midito•35m ago•3 comments

Show HN: SafeKey – Open-source PII redaction for LLM inputs (text, image, audio)

https://www.safekeylab.com
2•safekeylab•48m ago•2 comments

Show HN: Visualize Your Thinking Patterns as a Graph

https://unravelmind.vercel.app/
2•Pr4shant•1h ago•0 comments

Show HN: Synthome – TypeScript SDK for building composable AI media pipelines

https://github.com/synthome-dev/synthome
2•dubovetzky•1h ago•0 comments

Show HN: MCP Gateway – Unifying Access to MCP Servers Without N×M Integrations

https://www.truefoundry.com/mcp-gateway
9•supreetgupta•2h ago•2 comments

Show HN: The Taka Programming Language

https://codeberg.org/marton/taka
5•mgunyho•4h ago•4 comments

Show HN: A $20/year invoicing tool for solo developers (simple, fast, no bloat)

https://sidepay.app/
4•mightbefun•3h ago•2 comments

Show HN: K9sight – fast, keyboard-driven TUI for debugging Kubernetes workloads

https://github.com/doganarif/k9sight
3•Arifcodes•4h ago•1 comments

Show HN: AI Hairstyle Changer – Try Different Hairstyles (1 free try, no login)

https://aihairstylechanger.space
3•QuLi-ops•4h ago•0 comments

Show HN: A prediction market where you can bet against my goals

https://market.ericli.tech
4•ericlmtn•4h ago•5 comments

Show HN: Marmot – Single-binary data catalog (no Kafka, no Elasticsearch)

https://github.com/marmotdata/marmot
95•charlie-haley•1d ago•22 comments

Show HN: Mapping DNS

https://loc.place
4•bo0tzz•5h ago•0 comments

Show HN: I stumbled on a free AI photo enhancer – surprisingly good results

https://aienhancer.ai/
4•passioner•10h ago•1 comments

Show HN: Doubao Seedream 4.5 – next‑gen image creation and editing model

https://www.seedream4-5.net
5•Viaya•7h ago•0 comments

Show HN: The Journal of AI Slop – an AI peer-review journal for AI "research"

https://www.journalofaislop.com/
5•popidge•3h ago•0 comments

Show HN: Hirschberg Algorithm in PyTorch

https://jedrzej.maczan.pl/2025_11_21_dp_knapsack_sliding_hirschberg
2•yu3zhou4•10h ago•0 comments

Show HN: I built a privacy-first UK tax calculator

https://salarysacrificecalculator.org
2•tancky777•11h ago•0 comments

Show HN: RunMat – runtime with auto CPU/GPU routing for dense math

https://github.com/runmat-org/runmat
19•nallana•1d ago•5 comments

Show HN: Boing

https://boing.greg.technology/
770•gregsadetsky•3d ago•146 comments

Show HN: RFC Hub

https://rfchub.app/
30•tlhunter•2d ago•12 comments

Show HN: Webclone.js – A simple tool to clone websites

https://github.com/jademsee/webclone
21•jadesee•1d ago•7 comments

Show HN: An AI zettelkasten that extracts ideas from articles, videos, and PDFs

https://github.com/schoblaska/jargon
36•schoblaska•2d ago•8 comments

Show HN: Nano PDF – A CLI Tool to Edit PDFs with Gemini's Nano Banana

https://github.com/gavrielc/Nano-PDF
172•GavCo•3d ago•39 comments

Show HN: I built alwayswith.us to easily add deceased loved ones into photos

https://alwayswith.us
3•jrpribs•15h ago•6 comments

Show HN: Real-time system that tracks how news spreads across 200k websites

https://yandori.io/news-flow/
253•antiochIst•1w ago•71 comments

Show HN: FFmpeg Engineering Handbook

https://github.com/endcycles/ffmpeg-engineering-handbook
20•endcycles•2d ago•0 comments

Show HN: Cupertino – MCP server giving Claude offline Apple documentation

https://aleahim.com/blog/cupertino-ecosystem/
6•mihaela•17h ago•2 comments

Show HN: KiDoom – Running DOOM on PCB Traces

https://www.mikeayles.com/#kidoom
361•mikeayles•1w ago•49 comments

Show HN: Veru – open-source AI citation auditor using OpenAlex

https://github.com/Yinghao-Guan/Veru
2•guaguaaaa•18h ago•1 comments