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

scntix-react

v0.0.1-alpha.1

Published

React adapter for scntix

Readme

scntix-react

React adapter for scntix.

This package provides typed animate.* and motion.* intrinsic components plus React hooks on top of the browser-first Scntix SDK.

Install

npm install scntix scntix-react

Subpath Imports

import { MotionConfig, PresenceGroup } from "scntix-react/components";
import { useAnimate, useDrag, useScroll } from "scntix-react/hooks";
import { useDrawable, useMotionPath } from "scntix-react/svg";
import { useSplitText, useTextReplace } from "scntix-react/text";

Example

"use client";

import { motion } from "scntix-react";

export function HeroCard() {
  return (
    <motion.div
      initial={{ opacity: 0, y: 24 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 480, ease: "easeOutCubic" }}
      whileHover={{ scale: 1.03 }}
      whileTap={{ scale: 0.98 }}
    >
      Scntix
    </motion.div>
  );
}

Current Scope

This first slice includes:

  • animate.* and motion.* intrinsic HTML and SVG components
  • initial, animate, exit, transition
  • Framer-style aliases: whileTap, transition.ease, transition.repeat, transition.repeatType, onAnimationStart, onAnimationComplete
  • interaction props:
    • whileHover
    • whilePress
    • drag
    • dragConstraints
    • whileInView
    • motionValues
  • PresenceGroup / AnimatePresence
  • usePresence / useAnimatePresence
  • useAnimate
  • useMotionValue
  • useTransform
  • useReducedMotion
  • useDrag
  • useInView
  • useScroll
  • useDrawable
  • useMotionPath
  • usePathMorph
  • useSplitText
  • useScrambleText
  • useTextReplace
  • LayoutGroup

Layout groups, presence, viewport hooks, SVG helpers, and text helpers are all part of the current package surface.

Presence components should be used with stable keyed children. Unkeyed children fall back to index-based keys for compatibility, but reorder-heavy trees can produce incorrect enter/exit ordering without explicit React keys.

Client / SSR Notes

  • scntix-react is client-oriented and only touches the browser SDK in effects
  • importing the package is SSR-safe, but animated components and hooks should be used in client-rendered React trees
  • MotionConfig propagates reduced-motion and transition defaults through React context without creating nested-policy conflicts

Migration Notes

useDrag and DragControls.ref Type Update

The ref property in DragControls now uses React.Ref<TElement | null>, which accepts both callback refs and object refs (via .current). This change enables better integration with React's ref patterns while maintaining backward compatibility.

If your code previously relied on ref.current, no changes are needed—the type update supports both patterns:

// Both patterns work
const { ref, controls } = useDrag();

// As a callback ref:
<div ref={ref} />

// Or through a ref object (create your own):
const elementRef = useRef<HTMLDivElement>(null);
const { ref: callbackRef } = useDrag();
// Note: useDrag returns a callback ref, so use it directly as shown above