Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: migrate from vercel analytics to op

dev_wandry9551e1248f7e
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsx
index de3234cc..19f9becf 100644
--- a/app/(home)/components/sections/bento-registry.tsx
+++ b/app/(home)/components/sections/bento-registry.tsx
@@ -7,7 +7,7 @@ import Link from "next/link";
import { type CSSProperties, useCallback, useRef, useState } from "react";
import { Button } from "@/components/ui/button";
import { SECTION, SPRING_SOFT } from "@/config/landing";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
@@ -28,6 +28,7 @@ function BentoCard({
const playerRef = useRef<PlayerRef>(null);
const [playing, setPlaying] = useState(false);
const hoverTracked = useRef(false);
+ const trackEvent = useTrackEvent();
const handleEnter = () => {
playerRef.current?.play();
@@ -61,7 +62,7 @@ function BentoCard({
trigger: "click",
});
}
- }, [name]);
+ }, [name, trackEvent]);
return (
// biome-ignore lint/a11y/noStaticElementInteractions: hover-to-play is decorative video preview
@@ -131,6 +132,7 @@ function BentoCard({
export function BentoRegistry() {
const gridRef = useRef<HTMLDivElement>(null);
const grid2Ref = useRef<HTMLDivElement>(null);
+ const trackEvent = useTrackEvent();
const handleMove = (
e: React.MouseEvent<HTMLDivElement>,
diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsx
index d05d8156..ff163f70 100644
--- a/app/(home)/components/sections/final-cta.tsx
+++ b/app/(home)/components/sections/final-cta.tsx
@@ -12,13 +12,14 @@ import {
SPRING_BOUNCE,
SPRING_SOFT,
} from "@/config/landing";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import { FadeUp } from "../fade-up";
export function FinalCTA() {
const ref = useRef<HTMLHeadingElement>(null);
const inView = useInView(ref, { once: true, amount: 0.4 });
const reduced = useReducedMotion();
+ const trackEvent = useTrackEvent();
return (
<section className="relative overflow-hidden py-24 sm:py-40">
diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsx
index dad98e29..1eec7a76 100644
--- a/app/(home)/components/sections/hero.tsx
+++ b/app/(home)/components/sections/hero.tsx
@@ -8,7 +8,7 @@ import { useCallback, useRef, useState } from "react";
import Dither from "@/components/Dither";
import { Button } from "@/components/ui/button";
import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
@@ -16,6 +16,7 @@ export function Hero() {
const heroEntry = registry["browser-flow"];
const playerRef = useRef<PlayerRef>(null);
const [playing, setPlaying] = useState(true);
+ const trackEvent = useTrackEvent();
const togglePlay = useCallback(() => {
const p = playerRef.current;
@@ -36,7 +37,7 @@ export function Hero() {
trigger: "click",
});
}
- }, []);
+ }, [trackEvent]);
const aspectRatio = heroEntry
? `${heroEntry.config.compositionWidth} / ${heroEntry.config.compositionHeight}`
diff --git a/app/(home)/components/sections/landing-code-showcase.tsx b/app/(home)/components/sections/landing-code-showcase.tsx
index b643ed0d..a505fb73 100644
--- a/app/(home)/components/sections/landing-code-showcase.tsx
+++ b/app/(home)/components/sections/landing-code-showcase.tsx
@@ -5,7 +5,7 @@ import { Pause, Play } from "lucide-react";
import { motion } from "motion/react";
import { useCallback, useRef, useState } from "react";
import { PEACH, SECTION, SPRING_SOFT } from "@/config/landing";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
@@ -16,6 +16,7 @@ export function LandingCodeShowcase() {
`${entry.config.compositionWidth} / ${entry.config.compositionHeight}`;
const playerRef = useRef<PlayerRef>(null);
const [playing, setPlaying] = useState(true);
+ const trackEvent = useTrackEvent();
const togglePlay = useCallback(() => {
const p = playerRef.current;
@@ -36,7 +37,7 @@ export function LandingCodeShowcase() {
trigger: "click",
});
}
- }, []);
+ }, [trackEvent]);
return (
<section id="showcase" className="relative py-20 sm:py-32">
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
index 7f9b7b50..88f20ab4 100644
--- a/app/(home)/components/site-header.tsx
+++ b/app/(home)/components/site-header.tsx
@@ -12,14 +12,9 @@ import {
SheetTrigger,
} from "@/components/ui/sheet";
import { type NavLink, SECTION } from "@/config/landing";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
const GITHUB_URL = "https://github.com/kapishdima/remocn";
-const trackGitHubClick = () =>
- trackEvent("cta_clicked", {
- cta: "github_header",
- destination: GITHUB_URL,
- });
const GitHubIcon = ({ className }: { className?: string }) => (
<svg
@@ -36,6 +31,12 @@ const GitHubIcon = ({ className }: { className?: string }) => (
export function SiteHeader({ navLinks }: { navLinks: NavLink[] }) {
const [open, setOpen] = useState(false);
+ const trackEvent = useTrackEvent();
+ const trackGitHubClick = () =>
+ trackEvent("cta_clicked", {
+ cta: "github_header",
+ destination: GITHUB_URL,
+ });
return (
<header className="fixed inset-x-0 top-0 z-40 border-b border-white/[0.05] bg-[#141318]/60 backdrop-blur-2xl">
diff --git a/app/layout.tsx b/app/layout.tsx
index f0477987..de7d2d13 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -3,8 +3,8 @@ import type { Metadata } from "next";
import { Geist, Geist_Mono, Manrope, Outfit } from "next/font/google";
import { NuqsAdapter } from "nuqs/adapters/next/app";
import "./globals.css";
+import { OpenPanelComponent } from "@openpanel/nextjs";
import { cn } from "@/lib/utils";
-import { Analytics } from "@vercel/analytics/next";
const inter = Manrope({ subsets: ["latin"], variable: "--font-sans" });
@@ -65,7 +65,13 @@ export default function RootLayout({
{children}
</RootProvider>
</NuqsAdapter>
- <Analytics />
+ <OpenPanelComponent
+ clientId={process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID as string}
+ apiUrl={process.env.NEXT_PUBLIC_OPENPANEL_API_URL}
+ trackScreenViews
+ trackAttributes
+ trackOutgoingLinks
+ />
</body>
</html>
);
diff --git a/bun.lock b/bun.lock
index 281e8b14..5435674f 100644
--- a/bun.lock
+++ b/bun.lock
@@ -6,10 +6,10 @@
"name": "remocn",
"dependencies": {
"@base-ui/react": "^1.3.0",
+ "@openpanel/nextjs": "^1.0.13",
"@react-three/fiber": "^9.3.0",
"@react-three/postprocessing": "^3.0.4",
"@remotion/player": "^4.0.392",
- "@vercel/analytics": "^2.0.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
@@ -327,6 +327,12 @@
"@open-draft/until": ["@open-draft/[email protected]", "", {}, "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg=="],
+ "@openpanel/nextjs": ["@openpanel/[email protected]", "", { "dependencies": { "@openpanel/web": "1.4.1" }, "peerDependencies": { "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-60vhKw29weFWmwntx/cSIYU1TcwNzRykeg8P70onr3jzeyMGsEd78d/wgF5Mp/NIxQDN0IT4LneS6hIDIyrTpw=="],
+
+ "@openpanel/sdk": ["@openpanel/[email protected]", "", {}, "sha512-mQ5xaBUGXnyRg3qYxwnbVaUYyW7w8u+munrWk/ClnqxEeR2j+FYPiA6noHbHMCFC2aZutYD5OoRzEvw3FBNFxw=="],
+
+ "@openpanel/web": ["@openpanel/[email protected]", "", { "dependencies": { "@openpanel/sdk": "1.3.1", "@rrweb/types": "2.0.0-alpha.20", "rrweb": "2.0.0-alpha.20" } }, "sha512-DgUWeocZw+b57YiJjefZPg+6sceR7TdOF8x7Ut75lu3CwcwqGi5jZNPXjikNemGL37aNWXCB4buhcoNan2j7RA=="],
+
"@orama/orama": ["@orama/[email protected]", "", {}, "sha512-a61ljmRVVyG5MC/698C8/FfFDw5a8LOIvyOLW5fztgUXqUpc1jOfQzOitSCbge657OgXXThmY3Tk8fpiDb4UcA=="],
"@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="],
@@ -405,6 +411,10 @@
"@remotion/player": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.446" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-l3sYiMmT0yx39qgGsWKkv/auTQ7BJYmEb+FPzwacBe5Oi1R1klBWABsbO+L4OSN6lDOCrI2U8uWfpsPZv1sqxA=="],
+ "@rrweb/types": ["@rrweb/[email protected]", "", {}, "sha512-RbnDgKxA/odwB1R4gF7eUUj+rdSrq6ROQJsnMw7MIsGzlbSYvJeZN8YY4XqU0G6sKJvXI6bSzk7w/G94jNwzhw=="],
+
+ "@rrweb/utils": ["@rrweb/[email protected]", "", {}, "sha512-MTQOmhPRe39C0fYaCnnVYOufQsyGzwNXpUStKiyFSfGLUJrzuwhbRoUAKR5w6W2j5XuA0bIz3ZDIBztkquOhLw=="],
+
"@sec-ant/readable-stream": ["@sec-ant/[email protected]", "", {}, "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg=="],
"@shikijs/core": ["@shikijs/[email protected]", "", { "dependencies": { "@shikijs/primitive": "4.0.2", "@shikijs/types": "4.0.2", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4", "hast-util-to-html": "^9.0.5" } }, "sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw=="],
@@ -471,6 +481,8 @@
"@tweenjs/tween.js": ["@tweenjs/[email protected]", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="],
+ "@types/css-font-loading-module": ["@types/[email protected]", "", {}, "sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q=="],
+
"@types/d3-array": ["@types/[email protected]", "", {}, "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw=="],
"@types/d3-color": ["@types/[email protected]", "", {}, "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A=="],
@@ -527,10 +539,10 @@
"@ungap/structured-clone": ["@ungap/[email protected]", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],
- "@vercel/analytics": ["@vercel/[email protected]", "", { "peerDependencies": { "@remix-run/react": "^2", "@sveltejs/kit": "^1 || ^2", "next": ">= 13", "nuxt": ">= 3", "react": "^18 || ^19 || ^19.0.0-rc", "svelte": ">= 4", "vue": "^3", "vue-router": "^4" }, "optionalPeers": ["@remix-run/react", "@sveltejs/kit", "next", "nuxt", "react", "svelte", "vue", "vue-router"] }, "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g=="],
-
"@webgpu/types": ["@webgpu/[email protected]", "", {}, "sha512-RPmm6kgRbI8e98zSD3RVACvnuktIja5+yLgDAkTmxLr90BEwdTXRQWNLF3ETTTyH/8mKhznZuN5AveXYFEsMGQ=="],
+ "@xstate/fsm": ["@xstate/[email protected]", "", {}, "sha512-b5o1I6aLNeYlU/3CPlj/Z91ybk1gUsKT+5NAJI+2W4UjvS5KLG28K9v5UvNoFVjHV8PajVZ00RH3vnjyQO7ZAw=="],
+
"accepts": ["[email protected]", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
"acorn": ["[email protected]", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
@@ -559,6 +571,8 @@
"balanced-match": ["[email protected]", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],
+ "base64-arraybuffer": ["[email protected]", "", {}, "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ=="],
+
"base64-js": ["[email protected]", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],
"baseline-browser-mapping": ["[email protected]", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-Lyf3aK28zpsD1yQMiiHD4RvVb6UdMoo8xzG2XzFIfR9luPzOpcBlAsT/qfB1XWS1bxWT+UtE4WmQgsp297FYOA=="],
@@ -1153,6 +1167,8 @@
"minimist": ["[email protected]", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
+ "mitt": ["[email protected]", "", {}, "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="],
+
"motion": ["[email protected]", "", { "dependencies": { "framer-motion": "^12.38.0", "tslib": "^2.4.0" }, "peerDependencies": { "@emotion/is-prop-valid": "*", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@emotion/is-prop-valid", "react", "react-dom"] }, "sha512-uYfXzeHlgThchzwz5Te47dlv5JOUC7OB4rjJ/7XTUgtBZD8CchMN8qEJ4ZVsUmTyYA44zjV0fBwsiktRuFnn+w=="],
"motion-dom": ["[email protected]", "", { "dependencies": { "motion-utils": "^12.36.0" } }, "sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA=="],
@@ -1339,6 +1355,12 @@
"router": ["[email protected]", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
+ "rrdom": ["[email protected]", "", { "dependencies": { "rrweb-snapshot": "^2.0.0-alpha.20" } }, "sha512-hoqjS4662LtBp82qEz9GrqU36UpEmCvTA2Hns3qdF7cklLFFy3G+0Th8hLytJENleHHWxsB5nWJ3eXz5mSRxdQ=="],
+
+ "rrweb": ["[email protected]", "", { "dependencies": { "@rrweb/types": "^2.0.0-alpha.20", "@rrweb/utils": "^2.0.0-alpha.20", "@types/css-font-loading-module": "0.0.7", "@xstate/fsm": "^1.4.0", "base64-arraybuffer": "^1.0.1", "mitt": "^3.0.0", "rrdom": "^2.0.0-alpha.20", "rrweb-snapshot": "^2.0.0-alpha.20" } }, "sha512-CZKDlm+j1VA50Ko3gnMbpvguCAleljsTNXPnVk9aeNP8o6T6kolRbISHyDZpqZ4G+bdDLlQOignPP3jEsXs8Gg=="],
+
+ "rrweb-snapshot": ["[email protected]", "", { "dependencies": { "postcss": "^8.4.38" } }, "sha512-YTNf9YVeaGRo/jxY3FKBge2c/Ojd/KTHmuWloUSB+oyPXuY73ZeeG873qMMmhIpqEn7hn7aBF1eWEQmP7wjf8A=="],
+
"run-applescript": ["[email protected]", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="],
"run-parallel": ["[email protected]", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],
diff --git a/components/docs/code-block-command.tsx b/components/docs/code-block-command.tsx
index 15e6817a..a8244fcd 100644
--- a/components/docs/code-block-command.tsx
+++ b/components/docs/code-block-command.tsx
@@ -5,7 +5,7 @@ import { useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils";
import { TerminalIcon, TextAlignStartIcon } from "lucide-react";
import { useMemo } from "react";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import { cn } from "@/lib/utils";
import { CopyButton } from "./copy-button";
@@ -38,6 +38,7 @@ export function CodeBlockCommand({
component,
}: CodeBlockCommandProps) {
const [packageManager, setPackageManager] = usePackageManager();
+ const trackEvent = useTrackEvent();
const tabs = useMemo(
() => ({ prompt, pnpm, yarn, npm, bun }),
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsx
index 1d11ef35..a8daaf19 100644
--- a/components/docs/component-preview.tsx
+++ b/components/docs/component-preview.tsx
@@ -12,7 +12,7 @@ import {
} from "nuqs";
import { Suspense, useEffect, useMemo, useRef, useState } from "react";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import { trackEvent } from "@/lib/analytics";
+import { useTrackEvent } from "@/lib/analytics";
import {
type ComponentConfig,
type ControlConfig,
@@ -77,6 +77,7 @@ function Preview({
config: ComponentConfig;
Component: React.ComponentType<any>;
}) {
+ const trackEvent = useTrackEvent();
const { parsers, urlKeys } = useMemo(
() => buildParsers(name, config.controls),
[name, config.controls],
@@ -115,7 +116,7 @@ function Preview({
useEffect(() => {
trackEvent("docs_component_viewed", { component: name });
- }, [name]);
+ }, [name, trackEvent]);
const customizeTimers = useRef<Map<string, ReturnType<typeof setTimeout>>>(
new Map(),
diff --git a/lib/analytics.ts b/lib/analytics.ts
index e5db08c1..0f0c8588 100644
--- a/lib/analytics.ts
+++ b/lib/analytics.ts
@@ -1,4 +1,7 @@
-import { track } from "@vercel/analytics";
+"use client";
+
+import { useOpenPanel } from "@openpanel/nextjs";
+import { useCallback } from "react";
export type PreviewSurface =
| "hero"
@@ -12,7 +15,7 @@ export type CtaId =
| "final_cta"
| "github_header";
-type EventMap = {
+type AnalyticsEvents = {
install_command_copied: {
component: string;
package_manager: "pnpm" | "npm" | "yarn" | "bun" | "prompt";
@@ -46,9 +49,17 @@ type EventMap = {
};
};
-export function trackEvent<K extends keyof EventMap>(
- name: K,
- properties: EventMap[K],
-) {
- track(name, properties as Record<string, string>);
+export function useTrackEvent() {
+ const op = useOpenPanel();
+ return useCallback(
+ <E extends keyof AnalyticsEvents>(
+ event: E,
+ ...args: AnalyticsEvents[E] extends Record<string, never>
+ ? []
+ : [AnalyticsEvents[E]]
+ ) => {
+ op.track(event, args[0] as Record<string, unknown> | undefined);
+ },
+ [op],
+ );
}
diff --git a/lib/op.ts b/lib/op.ts
new file mode 100644
index 00000000..cbd8b6c9
--- /dev/null
+++ b/lib/op.ts
@@ -0,0 +1,9 @@
+import "server-only";
+
+import { OpenPanel } from "@openpanel/nextjs";
+
+export const op = new OpenPanel({
+ clientId: process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID as string,
+ clientSecret: process.env.OPENPANEL_CLIENT_SECRET as string,
+ apiUrl: process.env.NEXT_PUBLIC_OPENPANEL_API_URL,
+});
diff --git a/package.json b/package.json
index afd0a429..c1e2919c 100644
--- a/package.json
+++ b/package.json
@@ -15,8 +15,8 @@
"@base-ui/react": "^1.3.0",
"@react-three/fiber": "^9.3.0",
"@react-three/postprocessing": "^3.0.4",
+ "@openpanel/nextjs": "^1.0.13",
"@remotion/player": "^4.0.392",
- "@vercel/analytics": "^2.0.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",