frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Content Pulse: Real-time inline track changes in vanilla JavaScript

2•vikasbatra11•17h ago
I built a lightweight track changes engine for contenteditable editors in vanilla JS. No dependencies, ~400 lines of code.

  It uses the Myers diff algorithm (same as git diff) to compute the minimal edit script between the original and current text, then renders additions as <ins> and deletions as <del> inline - all inside the same editor.

  Features:
  - Word level and letter level (character) diffing
  - Undo/redo with cursor position memory
  - Clean preview toggle (strips deletions, shows final output)
  - Punctuation-aware tokenizer (editing around periods/commas won't false-flag)
  - Text-level operations for Enter/Backspace to keep the DOM predictable

  I'm planning to ship this as a plugin for TinyMCE, Froala, Quill, and CKEditor — most of which  offer track changes in premium tiers.

  Would love feedback on the diff engine and the approach to cursor management in contenteditable (which was the hardest part by far).

Comments

umasood•17h ago
Love seeing complex features built with pure JavaScript.
vikasbatra11•17h ago
Thanks, will be extending it further.

TLS ECH (Encrypted Client Hello) Visually Explained

https://growingswe.com/blog/tls-ech
1•vismit2000•2m ago•0 comments

How the Sriracha guys screwed over their supplier

https://old.reddit.com/r/KitchenConfidential/comments/1ro61g2/how_the_sriracha_guys_screwed_over_...
2•thunderbong•4m ago•0 comments

Jane Austen's death remains a mystery. Her letters and books offer clues

https://www.cnn.com/2025/12/12/science/jane-austen-death-mystery
1•breve•8m ago•0 comments

The First Multi-Behavior Brain Upload

https://twitter.com/alexwg/status/2030217301929132323
1•danielmorozoff•13m ago•0 comments

FlashKeeper: Where SpiSpy meets Stateless Laptop (2024)

https://cfp.3mdeb.com/qubes-os-summit-2024/talk/FCENX9/
1•transpute•13m ago•0 comments

Sandvault – Run AI agents isolated in a sandboxed macOS user account

https://github.com/webcoyote/sandvault
1•TheTaytay•15m ago•0 comments

The Wrapper

https://www.robpanico.com/articles/display/?entry_short=the-wrapper
1•retrocog•17m ago•0 comments

Show HN: Kroot – dependency-graph root cause analysis for Kubernetes

https://github.com/AnonJon/kroot
1•An0n_Jon•20m ago•1 comments

Show HN: A community catalog of CI certified agents

https://github.com/justindobbs/awesome-certified-agents
2•jdiennbn•22m ago•2 comments

Euclid – a hyper minimalist digital clock like no other

https://euclid.tulv.in/
1•atulvi•23m ago•0 comments

An Executive Decision Maker (2022)

https://circuitcellar.com/research-design-hub/projects/executive-decision-maker/
1•TMWNN•28m ago•0 comments

Magnet-Metadata-API: Torrent Metadata API Service

https://github.com/felipemarinho97/magnet-metadata-api
1•toomuchtodo•36m ago•1 comments

Show HN: Salvobase – MongoDB-compatible DB in Go maintained by AI agents

1•inder1•46m ago•0 comments

Show HN: Using Isolation forests to flag anomalies in log patterns

https://rocketgraph.app/ml
1•kvaranasi_•46m ago•1 comments

Data Analysis of the State of the Iranian Conflict on March 8, 2026

https://datarepublican.substack.com/p/data-analysis-of-the-state-of-the
1•delichon•47m ago•0 comments

Falling Out of the Coconut Tree: What the Popular Kamala Harris Meme Means

https://www.psychologytoday.com/us/blog/race-gender-and-popular-culture/202408/falling-out-of-the...
1•marysminefnuf•49m ago•1 comments

Show HN: OpenVerb – A deterministic action layer for AI agents

https://www.openverb.org/
1•cplhancel•51m ago•0 comments

Show HN: LLM-costs – Compare LLM API costs from terminal (npx, zero install)

https://github.com/followtayeeb/llm-costs
1•followtayeeb•57m ago•0 comments

Show HN: Chat AI Agent inside mobile device testing sessions

https://robotactions.com/
1•krishpavuluri•57m ago•0 comments

Show HN: Andon – Toyota Production System for LLM Coding Agents

https://github.com/allnew-llc/andon-for-llm-agents
1•allnew_llc•57m ago•0 comments

I am an AI agent that sells data via x402 micropayments

https://pam-x402.vercel.app
1•PamnLambert•58m ago•0 comments

Thinnings: Sublist Witnesses and de Bruijn Index Shift Clumping

https://www.philipzucker.com/thin1/
1•todsacerdoti•59m ago•0 comments

AI Needs Management Consultants After All

https://www.wsj.com/tech/ai/ai-needs-management-consultants-after-all-bd28ecb9
1•petethomas•1h ago•0 comments

AluminatiAi – per-job GPU cost tracking for ML teams

1•AluminatiAi•1h ago•0 comments

The Cloco Loop – Code /Review Loop Using Claude and Codex

https://github.com/amazedsaint/clocoloop
1•amazedsaint•1h ago•0 comments

Show HN: Tighten skill to read AI-generated code faster

https://github.com/markrogersjr/skills/blob/main/skills/tighten/SKILL.md
1•markrogersjr•1h ago•0 comments

Spatial Programming [video]

https://www.youtube.com/watch?v=eQgxFuw8f1U
2•elcaro•1h ago•0 comments

Show HN: AlphaPerch – Track product execution for companies you follow using AI

https://alphaperch.com
2•sebasnar•1h ago•0 comments

Show HN: Compose Launcher – A macOS app to run multiple Docker Compose files

https://github.com/yingbo/compose-launcher
1•yingbo•1h ago•0 comments

Time Travel: Temporal Mutability in the Absence of Hardware [pdf]

https://wbnns.com/time-travel.pdf
1•wbnns•1h ago•0 comments