Defuddle

2025#

de·​fud·dle /diˈfʌdl/ transitive verb

to remove unnecessary elements from a web page, and make it easily readable.

Inspired by my work on Obsidian Web Clipper I created Defuddle, an open source library to replace Mozilla’s Readability in my projects. Defuddle extracts the main content from web pages. It’s a bit more forgiving and tunable to my preferences.

Notably, Defuddle uses a website’s mobile styles to find unnecessary elements that can be removed from the page.

npm install defuddle

Usage#

import { Defuddle } from 'defuddle';

const article = new Defuddle(document).parse();

// Use the extracted content and metadata
console.log(article.content);
console.log(article.title);

Documentation#