🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Add Radix UI Accordion component and update dependencies; remove unused icons
Bill Yangc83072598d43
diff --git a/docs/package-lock.json b/docs/package-lock.jsonindex 80e730fbc..fba2318c2 100644--- a/docs/package-lock.json+++ b/docs/package-lock.json@@ -7,6 +7,7 @@"name": "example-docs","license": "MIT","dependencies": {+ "@radix-ui/react-accordion": "^1.2.7","@tailwindcss/postcss": "^4.1.4","@theguild/remark-mermaid": "^0.3.0","class-variance-authority": "^0.7.1",@@ -1059,6 +1060,265 @@"win32"]},+ "node_modules/@radix-ui/primitive": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA=="+ },+ "node_modules/@radix-ui/react-accordion": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.7.tgz",+ "integrity": "sha512-stDPylBV/3kFHBAFQK/GeyIFaN7q60zWaXthA5/p6egu8AclIN79zG+bv+Ps+exB4JE5rtW/u3Z7SDvmFuTzgA==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-collapsible": "1.1.7",+ "@radix-ui/react-collection": "1.1.4",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.0",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.7.tgz",+ "integrity": "sha512-zGFsPcFJNdQa/UNd6MOgF40BS054FIGj32oOWBllixz42f+AkQg3QJ1YT9pw7vs+Ai+EgWkh839h69GEK8oH2A==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.3",+ "@radix-ui/react-primitive": "2.1.0",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collection": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.4.tgz",+ "integrity": "sha512-cv4vSf7HttqXilDnAnvINd53OTl1/bjUYVZrkFnA7nwmY9Ob2POUy0WY0sfqBAe1s5FyKsyceQlqiEGPYNTadg==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.0",+ "@radix-ui/react-slot": "1.2.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-presence": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.3.tgz",+ "integrity": "sha512-IrVLIhskYhH3nLvtcBLQFZr61tBG7wx7O3kEmdzcYwRGAEBmBicGGL7ATzNgruYJ3xBTbuzEEq9OXJM3PAX3tA==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-primitive": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.0.tgz",+ "integrity": "sha512-/J/FhLdK0zVcILOwt5g+dH4KnkonCtkVJsa2G6JmvbbtZfBEI1gMsO3QMjseL4F/SwfAMt1Vc/0XKYKq+xJ1sw==",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slot": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.0.tgz",+ "integrity": "sha512-ujc+V6r0HNDviYqIK3rW4ffgYiZ8g5DEHrGJVk4x7kTlLXRDILnKX9vAUYeIsLOoDpDJ0ujpqMkjH4w2ofuo6w==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@react-aria/focus": {"version": "3.20.2","resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.20.2.tgz",diff --git a/docs/package.json b/docs/package.jsonindex 827aad419..112882c84 100644--- a/docs/package.json+++ b/docs/package.json@@ -9,6 +9,7 @@"start": "next start --port 3003"},"dependencies": {+ "@radix-ui/react-accordion": "^1.2.7","@tailwindcss/postcss": "^4.1.4","@theguild/remark-mermaid": "^0.3.0","class-variance-authority": "^0.7.1",diff --git a/docs/public/android-icon-192x192.png b/docs/public/android-icon-192x192.pngdeleted file mode 100644index 538ee26b8..000000000Binary files a/docs/public/android-icon-192x192.png and /dev/null differdiff --git a/docs/src/app/favicon.ico b/docs/public/favicon.icosimilarity index 100%rename from docs/src/app/favicon.icorename to docs/public/favicon.icodiff --git a/docs/public/ms-icon-144x144.png b/docs/public/ms-icon-144x144.pngdeleted file mode 100644index 0c7268e1e..000000000Binary files a/docs/public/ms-icon-144x144.png and /dev/null differdiff --git a/docs/src/app/icon.ico b/docs/src/app/icon.iconew file mode 100644index 000000000..10deca9a8Binary files /dev/null and b/docs/src/app/icon.ico differdiff --git a/docs/src/app/icon.png b/docs/src/app/icon.pngdeleted file mode 100644index d18801609..000000000Binary files a/docs/src/app/icon.png and /dev/null differdiff --git a/docs/src/app/layout.jsx b/docs/src/app/layout.jsxindex e3d315832..43f11f5eb 100644--- a/docs/src/app/layout.jsx+++ b/docs/src/app/layout.jsx@@ -46,6 +46,11 @@ export default async function RootLayout({ children }) {chatLink="https://discord.gg/DEhGb4hYBj"projectLink="https://github.com/goldflag/rybbit"+ children={<a href="https://tracking.tomato.gg">+ <button className="bg-neutral-800 hover:bg-neutral-700 text-white font-medium px-3 py-1.5 rounded-lg border border-neutral-600 transform hover:-translate-y-0.5 transition-all duration-200 hover:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-opacity-50">+ Login+ </button>+ </a>}/>)const pageMap = await getPageMap()diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex 97940da7a..13eb60510 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -13,7 +13,7 @@ import { Safari } from "@/components/magicui/safari";import { Integrations } from "./components/integrations";import { AnimatedShinyText } from "@/components/magicui/animated-shiny-text";import { Logo } from "./components/Logo";-+import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion";import { ShineBorder } from "@/components/magicui/shine-border";@@ -94,7 +94,101 @@ export default function IndexPage() {</div></section>++ {/* Testimonial Section */}+ <section className="py-10 md:py-16 w-full">+ <div className="max-w-4xl mx-auto px-4">+ <div className="relative bg-neutral-800/20 backdrop-blur-sm border border-neutral-700 rounded-xl shadow-lg overflow-hidden">+ {/* Background glow effects - toned down */}+ <div className="absolute -right-40 -top-40 w-60 h-60 bg-emerald-500/10 rounded-full blur-3xl"></div>+ <div className="absolute -left-20 -bottom-20 w-40 h-40 bg-indigo-500/10 rounded-full blur-3xl"></div>++ {/* Quote mark - smaller */}+ <div className="absolute top-4 left-4 md:top-6 md:left-6 text-6xl md:text-7xl leading-none font-serif text-emerald-600/25">"</div>++ {/* Testimonial content */}+ <div className="relative z-10 p-6 md:p-10 text-center">+ <p className="text-lg md:text-2xl font-medium mb-6 text-white mx-auto max-w-2xl leading-relaxed">+ Rybbit has completely transformed how we understand our users. The real-time data is incredible, and I've finally ditched Google Analytics for something that respects privacy.+ </p>++ <div className="inline-block relative">+ <div className="absolute inset-0 bg-emerald-500/10 blur-sm rounded-full"></div>+ <div className="relative bg-neutral-900/60 backdrop-blur-sm border border-neutral-700 rounded-full px-5 py-2">+ <p className="font-semibold text-white">Chris Weaver</p>+ <p className="text-sm text-neutral-400">CEO at Oynx AI</p>+ </div>+ </div>+ </div>+ </div>+ </div>+ </section>+<Integrations />++ {/* FAQ Section */}+ <section className="py-16 md:py-24 w-full">+ <div className="max-w-4xl mx-auto px-4">+ <div className="text-center mb-12">+ <div className="inline-block bg-emerald-900/30 text-emerald-400 px-3 py-1 rounded-full text-sm font-medium mb-4">+ Common Questions+ </div>+ <h2 className="text-3xl md:text-4xl font-bold">Frequently Asked Questions</h2>+ <p className="mt-4 text-neutral-300 max-w-2xl mx-auto">+ Everything you need to know about Rybbit Analytics+ </p>+ </div>++ <div className="bg-neutral-800/20 backdrop-blur-sm border border-neutral-700 rounded-xl overflow-hidden">+ <Accordion type="single" collapsible className="w-full">+ <AccordionItem value="item-1" className="border-b border-neutral-700/50">+ <AccordionTrigger className="px-6 py-4 text-base md:text-lg font-medium hover:text-emerald-400 transition-colors">+ Is Rybbit GDPR and CCPA compliant?+ </AccordionTrigger>+ <AccordionContent className="px-6 pb-4 text-neutral-300">+ Yes, Rybbit is fully compliant with GDPR, CCPA, and other privacy regulations. We don't use cookies or collect any personal data that could identify your users. We prioritize privacy by design while still giving you all the analytics you need.+ </AccordionContent>+ </AccordionItem>++ <AccordionItem value="item-2" className="border-b border-neutral-700/50">+ <AccordionTrigger className="px-6 py-4 text-base md:text-lg font-medium hover:text-emerald-400 transition-colors">+ How does Rybbit compare to Google Analytics?+ </AccordionTrigger>+ <AccordionContent className="px-6 pb-4 text-neutral-300">+ Unlike Google Analytics, Rybbit provides a clean, intuitive interface that's easy to use. We focus on the metrics that matter most, without overwhelming you with too many options. Plus, we respect user privacy, don't slow down your site, and offer first-party data collection.+ </AccordionContent>+ </AccordionItem>++ <AccordionItem value="item-3" className="border-b border-neutral-700/50">+ <AccordionTrigger className="px-6 py-4 text-base md:text-lg font-medium hover:text-emerald-400 transition-colors">+ Can I self-host Rybbit?+ </AccordionTrigger>+ <AccordionContent className="px-6 pb-4 text-neutral-300">+ Absolutely! Rybbit is available as a self-hosted option. You can install it on your own server and have complete control over your data. We also offer a cloud version if you prefer a managed solution.+ </AccordionContent>+ </AccordionItem>++ <AccordionItem value="item-4" className="border-b border-neutral-700/50">+ <AccordionTrigger className="px-6 py-4 text-base md:text-lg font-medium hover:text-emerald-400 transition-colors">+ How easy is it to set up Rybbit?+ </AccordionTrigger>+ <AccordionContent className="px-6 pb-4 text-neutral-300">+ Setting up Rybbit is incredibly simple. Just add a small script to your website, and you're good to go. Most users are up and running in less than 5 minutes. We also provide comprehensive documentation and support if you need any help.+ </AccordionContent>+ </AccordionItem>++ <AccordionItem value="item-5">+ <AccordionTrigger className="px-6 py-4 text-base md:text-lg font-medium hover:text-emerald-400 transition-colors">+ What platforms does Rybbit support?+ </AccordionTrigger>+ <AccordionContent className="px-6 pb-4 text-neutral-300">+ Rybbit works with virtually any website platform. Whether you're using WordPress, Shopify, Next.js, React, Vue, or any other framework, our simple tracking snippet integrates seamlessly. We also offer specialized plugins for popular platforms to make integration even easier.+ </AccordionContent>+ </AccordionItem>+ </Accordion>+ </div>+ </div>+ </section>{/* add CTA section here */}<section className="py-16 md:py-24 w-full bg-gradient-to-b from-neutral-900 to-neutral-950">diff --git a/docs/src/components/ui/accordion.tsx b/docs/src/components/ui/accordion.tsxnew file mode 100644index 000000000..4a8cca46b--- /dev/null+++ b/docs/src/components/ui/accordion.tsx@@ -0,0 +1,66 @@+"use client"++import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDownIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Accordion({+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Root>) {+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />+}++function AccordionItem({+ className,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Item>) {+ return (+ <AccordionPrimitive.Item+ data-slot="accordion-item"+ className={cn("border-b last:border-b-0", className)}+ {...props}+ />+ )+}++function AccordionTrigger({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {+ return (+ <AccordionPrimitive.Header className="flex">+ <AccordionPrimitive.Trigger+ data-slot="accordion-trigger"+ className={cn(+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",+ className+ )}+ {...props}+ >+ {children}+ <ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />+ </AccordionPrimitive.Trigger>+ </AccordionPrimitive.Header>+ )+}++function AccordionContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Content>) {+ return (+ <AccordionPrimitive.Content+ data-slot="accordion-content"+ className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"+ {...props}+ >+ <div className={cn("pt-0 pb-4", className)}>{children}</div>+ </AccordionPrimitive.Content>+ )+}++export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }