A DOM text-selection highlight renderer
A simple and fast zero-dependencies-library to transform text-selections into serializable markings.
A DOM text-selection highlight renderer launched on June 12, 2015 with 93 votes, #461 of 3,954 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 11 years on.
In plain words
Marklib is a lightweight JavaScript library that converts text selections in web pages into serializable markings without requiring dependencies. It allows users to highlight portions of text and persist those markings even after the DOM has been modified by subsequent selections. The library stores markings in browser local storage, making highlights persistent across page refreshes.
written from the facts on this page · September 2026
From the sources
Start marking this paragraph as an example and use either enter or the button under this section to highlight the result. Marklib supports highlighting/marking textnodes even if the DOM has been modified by another marking of Marklib . If you mark something on this page, it will be stored on your browsers local storage. Try to refresh the page and play a little bit :). var selection = document . getSelection (); new Marklib . Rendering ( document ) . renderWithRange ( selection . getRangeAt ( 0 )); A second paragraph with some latin like text Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam…from bowlingx.github.io
Does a similar job
all alternatives →
A JavaScript library for data visualization in both SVG and Canvas2024 · github.com · ▲161Here's a project I've been working on for a little while now. Ripl is a JS library that provides a unified API for rendering shapes on both canvas and SVG interchangeably. Over the years I've used D3 extensively to create data visualisations so I figured I'd have a go at making my own version with a slightly more modern API and stricter TypeScript support. I am aware there are already libraries that can draw to multiple contexts interchangeably, but I've added a few little niceties to Ripl that (as far as I know) some other libraries don't have such as CSS-like query selectors, DOM-like…


- ZJztext.js – JavaScript library that makes any font 3D2020 · bennettfeely.com · ▲257

An upcoming js-library to realize visual DOM-Selections2018 · github.com · ▲10✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks! - simonwep/viselect
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, June 2015
the whole month →
Startup Launch List▲1,251Articles you need to read before launching a startup.
Growth · 2015 · startuplaunchlist.com

Get any site's company logo with just a URL
Dev tools · 2015 · clearbit.com



