Nando Muñoz

Projects2019

kong.sole

Styles for the console

beast

kong.sole makes the browser console look good. It is a set of one-line helpers, like kong.success() or kong.error(), each with its own badge and icon, for statuses, headings, cards, tables, charts, banners and images.

Besides drawing, it helps you debug: tagged loggers with a colour of their own, objects and the differences between two states, timers, counters and stack traces without the noise of libraries. The colours come from a dark and a light palette, so they read the same in both consoles.

It is an ES module with no dependencies, 14.4 KB gzipped and MIT-licensed, installed from npm or loaded from a CDN. With kong.enabled = false every call does nothing, and it collects no data, makes no requests and uses no cookies. Images and banners show in full in Chrome and Edge.

The home page is a playground: you pick a recipe, press Run and the result shows in a panel on the page and in your DevTools.

Screenshot of kong.sole