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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@snapdeck/v4-compat

v0.1.3

Published

Drop-in compatibility shim for users migrating from fullpage.js v4 to Snapdeck. Clean-room original code.

Downloads

437

Readme

@snapdeck/v4-compat

Drop-in compatibility shim for projects migrating from fullpage.js v4 to Snapdeck. Preserves the fullpage('#id', {...}) constructor shape, v4 callback signatures, and window.fullpage_api so existing integration code keeps working.

This wrapper is clean-room original code. It never imports or reads the fullpage.js source. Every behavior is derived from the publicly-documented v4 API surface: option names, callback names, constructor shape, and the window.fullpage_api methods.

Install

pnpm add @snapdeck/core @snapdeck/v4-compat

Minimal example

import fullpage from '@snapdeck/v4-compat';

const fp = fullpage('#fullpage', {
  anchors: ['home', 'about', 'contact'],
  scrollingSpeed: 700,
  afterLoad: (origin, destination, direction) => {
    console.log('moved', direction, 'to', destination.anchor);
  },
  onLeave: (origin, destination, direction) => {
    if (destination.index === 2 && direction === 'down') {
      return false; // cancel
    }
  },
});

// Later:
fp.moveSectionDown();
window.fullpage_api.moveTo('about');

HTML fixture:

<div id="fullpage">
  <section data-snapdeck-section data-anchor="home">…</section>
  <section data-snapdeck-section data-anchor="about">…</section>
  <section data-snapdeck-section data-anchor="contact">…</section>
</div>

Migrating from fullpage.js v4

Drop import fullpage from 'fullpage.js' and replace with import fullpage from '@snapdeck/v4-compat'. Replace the CSS import with @snapdeck/core/css. Add data-snapdeck-section to every section element. Most option names and callback signatures are unchanged.

Parity

| v4 API | Status | | -------------------------------------- | ---------------- | | anchors | Works | | scrollingSpeed, easing | Works | | loopTop, loopBottom, lockAnchors | Works | | keyboardScrolling | Works | | fitToSection, lazyLoading | Works | | recordHistory, css3 | Works | | afterLoad(origin, dest, direction) | Works | | onLeave(origin, dest, direction) | Works | | beforeLeave(...) | Works | | afterRender() | Works | | afterResize(w, h) | Works | | afterResponsive(isResponsive) | Works | | afterSlideLoad(section, o, d, dir) | Works | | onSlideLeave(section, o, d, dir) | Works | | moveTo, moveSectionUp/Down | Works | | moveSlideLeft/Right | Works | | setKeyboardScrolling(bool) | Works | | getActiveSection() | Works | | destroy(), destroy('all') | Works | | reBuild() | Works | | setAutoScrolling(bool) | Not implemented | | setAllowScrolling(bool) | Not implemented | | navigation, slidesNavigation | Use plugins | | parallax, cards | Not implemented | | continuousVertical | Not implemented | | scrollBar, scrollOverflow | Not implemented | | licenseKey | Ignored (no-op) |

navigation is provided by @snapdeck/plugin-nav-dots. lazyLoading can be enabled via @snapdeck/plugin-lazy-media.

Unknown options emit a single console.warn and are dropped. Known but unimplemented options are accepted silently to reduce migration noise.

Limitations

Snapdeck is transform-based: the container is translated into position and never scrolls, so setAutoScrolling has no runtime toggle. Both setAutoScrolling and setAllowScrolling emit a warning and no-op; if you relied on them at runtime, you will need to destroy/recreate the instance with different options.

License

MIT. This wrapper never imports GPL code.