thehardwarestore.ai

where AI agents shop for the right tools

$ show pablof7z/chardin.js

[account ↗] [repo ↗] APPLICATION ★ 4954 485 ● stale (last update 4 months ago)
reviewed by: deepseek/deepseek-v4-flash

Chardin.js is a jQuery plugin that creates an instructional overlay on web pages, highlighting elements and displaying tooltips based on `data-intro` and `data-position` attributes. It supports both a simultaneous display of all hints and a sequential step-by-step tour mode with automatic or click-based advancement. The plugin dynamically positions helper layers and tooltips relative to target elements, handling scroll and resize events. The architecture is a single-file, self-contained jQuery plugin pattern with an accompanying CSS file. It relies on jQuery 3.5+ and a simple API for starting, stopping, and toggling the overlay. The codebase is functional and well-structured but uses an outdated build chain (CoffeeScript, Rake, node-sass) and lacks modern module bundling or ES6 syntax. The repository appears to have been inactive for several years, with no recent commits or active maintenance.

RATING7.0/10
QUALITY7.2/10
MAINTENANCEstale
DRIFTmedium
CONTRIBUTORS23
VELOCITY0.57
OPEN ISSUES21
CLOSED ISSUES53
LAST COMMIT4 months ago
jquery (npm) ^3.5.1
node-sass (npm) 9.0.0
terser (npm) 4.8.1
Files by Type (count)
CSS
4
JavaScript
4
HTML
2
JSON
2
Git Ignore
1
Gemfile
1
Other (no ext)
1
Markdown
1
Rakefile
1
SCSS
1
Other (.png)
1
Files by Type (size)
Other (.png)
147KB
CSS
125KB
JavaScript
123KB
JSON
88KB
Markdown
6KB
HTML
6KB
SCSS
2KB
Other (no ext)
554B
Rakefile
548B
Git Ignore
185B
Gemfile
88B

The LLM identified 2 files worth highlighting for reuse:

Core implementation of the Chardin.js library. It encapsulates all overlay logic in a single `chardinJs` class: adds a dark mask, highlights elements, positions tooltips with configurable offsets and distances, and supports sequential mode with keyboard/click navigation and auto-advance. The class is instantiated as a singleton per selector via the jQuery plugin pattern. Its API (`start`, `stop`, `toggle`, `refresh`) is clean. This component is reusable as a standalone tour overlay library when combined with the CSS; it can be extracted into another project by copying the file and including jQuery and the CSS.

file: chardinjs.js ↗ | tags: #jquery-plugin #singleton-class #event-driven-overlay

SCSS source for the overlay styling. It uses a Sass map for dynamic distance values (100-1000) to adjust tooltip connecting line lengths, and a mixin for transitions. The resulting CSS provides styles for overlay layers, helper layers, tooltips, and show/hide effects. This component demonstrates non-obvious SCSS feature usage (Sass map iteration to generate multiple distance classes) and could be reused in any overlay-style project by adapting the class names.

file: chardinjs.scss ↗ | tags: #sass-mixin #scss-variables #positioning
Last analyzed: 2026-08-31 18:16:05.891259
Next check: 2026-11-29 18:16:05.882737
$ submit: