npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tvist

v0.0.1

Published

Модульный и легковесный слайдер для современного веба

Readme

🚲 Tvist

Модульный и легковесный слайдер для современного веба

npm version Bundle Size License: MIT

✅ Статус разработки

Завершено

  • [x] ЭТАП 1: MVP Core - Engine, Animator, Vector1D, Counter, EventEmitter
  • [x] ЭТАП 2: Essential Modules - Drag, Navigation, Pagination, Autoplay, Breakpoints

Roadmap

  • [ ] ЭТАП 3: Advanced Features - Loop, LazyLoad, Effects, Thumbs
  • [ ] ЭТАП 4: Polish & Production - Документация, тесты, оптимизация

📦 Установка

npm install tvist

✨ Возможности

  • Легковесный - всего 6.3kb gzip (с модулями!)
  • 🎯 Модульный - Engine + Modules архитектура
  • 🖱️ Drag & Drop - touch/mouse с rubberband эффектом
  • 🎨 Navigation - стрелки с disabled состояниями
  • 📊 Pagination - bullets, fraction, progress
  • Autoplay - с паузами и остановками
  • 📱 Responsive - breakpoints для адаптивности
  • 🚀 60 FPS - производительность на первом месте
  • 💎 TypeScript - strict mode, полные типы
  • 0️⃣ Zero deps - нет внешних зависимостей

🚀 Быстрый старт

import Tvist from 'tvist';
import 'tvist/dist/tvist.css';

const slider = new Tvist('#slider', {
  perPage: 3,
  gap: 20,
  drag: true,
  arrows: true,
  pagination: { type: 'bullets' },
  autoplay: 3000,
  breakpoints: {
    768: { perPage: 2 },
    480: { perPage: 1 }
  }
});

📖 Документация

Документация будет доступна после первого релиза.

🛠️ Разработка

Быстрый старт для разработчиков

# Клонировать репозиторий
git clone https://github.com/VladimirIvanin/tvist.git
cd tvist

# Установить зависимости
npm install

# Запустить dev-сервер
npm run dev

Dev-сервер откроется на http://localhost:3000 с примерами.

Доступные команды

npm run dev              # Dev-сервер с HMR
npm run dev:watch        # Dev + проверка типов
npm run build           # Production сборка
npm run test            # Запуск тестов
npm run test:ui         # UI для тестов
npm run test:coverage   # Покрытие кодом
npm run lint            # Проверка кода
npm run format          # Форматирование
npm run typecheck       # Проверка типов

Структура проекта

tvist/
├── src/               # Исходники
│   ├── core/         # Ядро библиотеки
│   ├── modules/      # Модули (в разработке)
│   ├── utils/        # Утилиты
│   └── styles/       # SCSS стили
├── examples/         # Примеры использования
├── tests/           # Тесты
└── dist/            # Сборка

🤝 Участие в разработке

Мы приветствуем ваш вклад! См. CONTRIBUTING.md для деталей.

📄 Лицензия

MIT © Tvist Contributors