Skip to content
View samline's full-sized avatar

Block or report samline

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
samline/README.md

Hey, I'm Samuel

I'm a frontend dev from Pachuca, México. I lead the frontend team at dinkbit and I've been building websites since 2013.

I'm picky with the details: how it looks, how it feels to use it, and how clean the code is inside.

On the side I make open source packages for the stuff I kept rewriting on every project, like forms, drawers, toasts, scroll and formatting. They work with any framework or with plain HTML, and each one has its own docs.

They're all on npm under @samline. More at samline.github.io.

UI components

Package What it does
drawer Bottom sheets and side panels with dragging and snap points
notify Accessible toast notifications
autocomplete Accessible combobox for any framework or plain HTML
ticker Accessible ticker (marquee) that pauses on hover

Forms and data

Package What it does
forms Form handling, validation and reactive state for native forms
formatter Input formatting (numeral, date, time, card, phone) plus Intl display helpers
string Case conversion, slugify, accents, truncate and initials, Unicode-aware

Scroll and motion

Package What it does
reveal Reveal elements as they scroll into view, with stagger and a CSS-only scrub mode
scroll-lock Lock page scroll while a modal, drawer or menu is open, including the iOS Safari fix
scroll-to Smooth scrolling with fixed-header offsets, focus and hash handling
scroll-spy Highlight the nav link of the section in view, with aria-current
horizontal-scroll Pin a section and move it sideways on scroll, with a no-JS fallback
counter Count numbers up as they enter the viewport, with Intl formatting
is-visible Visibility callbacks on shared intersection observers

Utilities and tooling

Package What it does
theme Light, dark and system themes without a flash
debounce Tiny debounce, throttle and rafThrottle with cancel and flush
astro Astro 7 starter and interactive installer

A few things I care about

  • Keyboard support, proper ARIA and respect for prefers-reduced-motion.
  • No framework lock-in. You can even use them from a <script> tag.
  • Keep them small.

Older work: shido, a utility-first CSS framework (2013–2020).

Find me at samline.github.io, on LinkedIn and on X.

Pinned Loading

  1. astro astro Public

    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.

    JavaScript

  2. drawer drawer Public

    Framework-agnostic drawer runtime with a vanilla/browser API and an IIFE bundle for direct CDN use.

    TypeScript

  3. formatter formatter Public

    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 dat…

    TypeScript

  4. forms forms Public

    TypeScript-first, framework-free form controller with validation, reactive state, serialization, auto-submit, and input formatting.

    TypeScript

  5. ticker ticker Public

    An accessible, dependency-free ticker (marquee) for vanilla JavaScript, TypeScript, and plain HTML.

    TypeScript

  6. autocomplete autocomplete Public

    An accessible, framework-agnostic autocomplete (combobox) for vanilla JavaScript, TypeScript and plain HTML.

    TypeScript