@react-wrapped/kit
v1.0.1
Published
Year in review videos in React. Everything in @react-wrapped in one install, plus the whole page as one component.
Maintainers
Readme
@react-wrapped/kit
Year in review videos, in React. Everything in one install.
Part of react-wrapped, the library behind Hype Stack's Wrapped.
This is the package to install if you want all of it: the stage, the scenes, the charts, the transitions, the player
with its timeline editor, the year scan and the graphics to keep. It also has WrappedView, the whole page as one
component.
Install
pnpm add @react-wrapped/kit gsapGSAP is a peer dependency: you install it yourself. Every @react-wrapped package is released under one version number,
so install them all at the same version.
Use
import { useState } from "react";
import { bigNumberScene, DEFAULT_WRAPPED_CONFIG, WrappedView } from "@react-wrapped/kit";
import "@react-wrapped/kit/styles.css";
const subject = { handle: "ada", name: "Ada", avatarUrl: null, caption: "Orbit Wrapped", period: "2026" };
const scenes = [
bigNumberScene(
{ eyebrow: "This year", value: 1687, title: ["commits."], lede: "**4.6** a day.", counter: "climb", variant: 0 },
{ key: "total", label: "Total" },
),
];
export function MyWrapped() {
const [config, setConfig] = useState(DEFAULT_WRAPPED_CONFIG);
return <WrappedView subject={subject} seed="ada-2026" scenes={scenes} config={config} onConfigChange={setConfig} />;
}