nowfound

Life & fun · June 12, 2015

AD

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.

Visit bowlingx.github.io ↗Alternativestop 12% of June 2015

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 · ▲161

    Here'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…

  • Marked QLJul 2026 · markedapp.com · ▲159

    Instant markdown previews in Finder

  • MarkX2023 · chromewebstore.google.com · ▲90

    Effortless bookmarking and precision highlighting

  • ZJ
  • Blotter.js2018 · blotter.js.org · ▲243

    A JavaScript API for unconventional text effects on the web.

  • 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 →

Source: Show HN post ↗

Launched alongside, June 2015

the whole month →
  • A​rticles 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

  • The best new games, every day

    Life & fun · 2015

  • Coverr▲584

    Beautiful, free videos for your homepage background.

    Work · 2015 · coverr.co

  • SLIDE▲563

    A hoverboard by Lexus (no joke)

    Life & fun · 2015

  • The Best Landing Page Inspiration

    Work · 2015 · lapa.ninja