Shared DOM helpers (auto-init, data-* readers, element targets, reduced motion) bundled into @samline packages at build time. Not a standalone public API.
-
Updated
Nov 20, 2026 - TypeScript
Shared DOM helpers (auto-init, data-* readers, element targets, reduced motion) bundled into @samline packages at build time. Not a standalone public API.
Highlight the navigation link of the section in view, for tables of contents and one-page menus, with aria-current, click locking and scroll containers, for vanilla JavaScript, any framework and plain HTML.
TypeScript-first, framework-free form controller with validation, reactive state, serialization, auto-submit, and input formatting.
Pin a section and move its content sideways as the page scrolls down, with keyboard focus, a no-JavaScript fallback, media queries and reduced motion, for vanilla JavaScript, any framework and plain HTML.
Count numbers up (or down) as they scroll into view, with easing, decimals and Intl formatting, for vanilla JavaScript, any framework and plain HTML. The final value stays in the HTML.
Visibility callbacks for one or many elements on shared intersection observers, for vanilla JavaScript, React, Vue, Svelte and plain HTML.
Accessible, dependency-free toast notifications for JavaScript and TypeScript, with ESM, CommonJS, and browser builds.
Lightweight, framework-agnostic input formatter (numeral, date, time, credit card, general, opt-in phone) that returns split formatted/raw outputs, plus Intl display helpers and dependency-free date tools.
An accessible, framework-agnostic autocomplete (combobox) for vanilla JavaScript, TypeScript and plain HTML.
Framework-agnostic drawer runtime with a vanilla/browser API and an IIFE bundle for direct CDN use.
An Astro project starter and interactive installer by samline. Start with a configured Astro 7 project, choose the integrations you need, and keep the generated source in your own repository.
An accessible, dependency-free ticker (marquee) for vanilla JavaScript, TypeScript, and plain HTML.
Reveal elements once as they scroll into view, with CSS effects, stagger, repeat and a CSS-only scrub mode, for vanilla JavaScript, any framework and plain HTML.
Tiny debounce, throttle and rafThrottle with cancel, flush and pending, for vanilla JavaScript, React, Vue, Svelte and plain HTML.
Case conversion, slugify, accents, truncate and initials built on one Unicode-aware word splitter, for vanilla JavaScript, TypeScript and plain HTML.
Page scroll locking for modals, drawers and menus: nested locks, scrollbar gap compensation, scroll position restoration and the iOS Safari workaround, for vanilla JavaScript, any framework and plain HTML.
Smooth scrolling to elements, anchors and positions with offsets for fixed headers, alignment, durations, easing, focus and URL hash handling, for vanilla JavaScript, any framework and plain HTML.
Light, dark and system themes without a flash: stored choice, system preference, other tabs, color-scheme and accessible toggle, button, radio and select controls, for vanilla JavaScript, any framework and plain HTML.
To associate your repository with the samline topic, visit your repo's landing page and select "manage topics."