# Introducing Bliss: A 3KB library for happier Vanilla JS

DevFeed: [Introducing Bliss: A 3KB library for happier Vanilla JS](<https://devfeed.tech/articles/introducing-bliss-a-3kb-library-for-happier-vanilla-js-52092.md>)

Original publisher: [Read original article](<https://lea.verou.me/2015/12/introducing-bliss-a-3kb-library-for-happier-vanilla-js/>)

Author: Lea Verou

Published: 2015-12-04T00:00:00Z

Content type: release

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Library](<https://devfeed.tech/topics/library.md>), [jQuery](<https://devfeed.tech/topics/jquery.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [abstractions](<https://devfeed.tech/tags/abstractions.md>), [angular](<https://devfeed.tech/tags/angular.md>), [apis](<https://devfeed.tech/tags/apis.md>), [bliss](<https://devfeed.tech/tags/bliss.md>), [blog](<https://devfeed.tech/tags/blog.md>), [browser-bugs](<https://devfeed.tech/tags/browser-bugs.md>), [browser-support](<https://devfeed.tech/tags/browser-support.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jquery](<https://devfeed.tech/tags/jquery.md>), [library](<https://devfeed.tech/tags/library.md>), [original](<https://devfeed.tech/tags/original.md>), [personal](<https://devfeed.tech/tags/personal.md>), [react](<https://devfeed.tech/tags/react.md>), [releases](<https://devfeed.tech/tags/releases.md>), [selector](<https://devfeed.tech/tags/selector.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>)

## AI overview

Bliss grew from the author's small Vanilla JS helpers into a library intended to make common DOM work less verbose without relying on a large abstraction layer. The excerpt highlights creating nested DOM structures from a JSON-like object and optional chainability through DOM prototype extensions, which can be disabled or configured with a different property name. Its documentation recommends native JavaScript where that is sufficient and offers a "Show Implementation" button so readers can inspect the code and decide whether a helper is useful. The author frames Bliss as a way to save time while still learning the Web Platform; some functions' documentation still needs work.

## Source excerpt

Anyone who follows this blog, my twitter, or my work probably is aware that I'm not a huge fan of big libraries. I think wrapper objects are messy, and big libraries are overkill for smaller projects. On large projects, one uses frameworks like React or Angular anyway, not libraries. Anyone who writes Vanilla JS on a daily basis probably is aware that it can sometimes be, ahem, somewhat unpleasant to work with. Sure, the situation is orders of magnitude better than it was when I started. Back then, IE6 was the dominant browser and you needed a helper function to even add event listeners to an element (remember element.attachEvent?) or to get elements by a class! Fun fact: I learned JavaScript back then by writing my own library, called jAsset. I had not heard of jQuery when I started it in 2007, so I had even coded my own selector engine! (Anyone remember slickspeed?) jAssset had plenty of nice helper functions, its own UI library and a cool logo. I had even started to make a website for its UI components, seen on the right. Sadly, jAsset died the sad inevitable death of all unreleased projects: Without external feedback, I had nobody to hold me back from adding to its API every time I personally needed a helper function. And adding, and adding, and adding... Until it became 5000+ loc long and its benefit of being lightweight or comprehensible had completely vanished. It collapsed under its own weight before it even saw the light of day. I abandoned it and went through a few years of using jQuery as my preferred helper library. Eventually, my distaste for wrapper objects, the constantly improving browser support for new APIs that made Vanilla JS more palatable, and the decline of overly conspicuous browser bugs led me to give it up. It was refreshing, and educational, but soon I came to realize that while Vanilla JS is orders of magnitude better than it was when I started, certain APIs are still quite unwieldy, which can be annoying if you use them often. For example,