Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Add curve option to SparklinesChart and update documentation with new icons

Bill Yang51d56f3e5a73
diff --git a/client/src/app/[site]/main/components/MainSection/SparklinesChart.tsx b/client/src/app/[site]/main/components/MainSection/SparklinesChart.tsx
index 189fe8838..d21e6ddd7 100644
--- a/client/src/app/[site]/main/components/MainSection/SparklinesChart.tsx
+++ b/client/src/app/[site]/main/components/MainSection/SparklinesChart.tsx
@@ -74,6 +74,7 @@ export function SparklinesChart({
],
},
]}
+ curve="step"
fill={[{ match: (d) => d.id === "1", id: "gradient" }]}
sliceTooltip={() => null}
enableCrosshair={false}
diff --git a/docs/package-lock.json b/docs/package-lock.json
index 364363fc3..e8809342c 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -7,6 +7,7 @@
"name": "rybbit-docs",
"license": "MIT",
"dependencies": {
+ "@icons-pack/react-simple-icons": "^13.1.0",
"@radix-ui/react-accordion": "1.2.10",
"@radix-ui/react-slider": "1.3.4",
"@tailwindcss/postcss": "4.1.6",
@@ -259,6 +260,14 @@
"mlly": "^1.7.4"
}
},
+ "node_modules/@icons-pack/react-simple-icons": {
+ "version": "13.1.0",
+ "resolved": "https://registry.npmjs.org/@icons-pack/react-simple-icons/-/react-simple-icons-13.1.0.tgz",
+ "integrity": "sha512-BrBHWxWM1X2pCdFmQfYnwkfwwm9Ta5NMdvSNe/ns2e9rhVK863rRAF6AhDjsvUIDKXSkRG1HfXZiSX/Uij0kxg==",
+ "peerDependencies": {
+ "react": "^16.13 || ^17 || ^18 || ^19"
+ }
+ },
"node_modules/@img/sharp-darwin-arm64": {
"version": "0.34.1",
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.1.tgz",
diff --git a/docs/package.json b/docs/package.json
index 4f613ef44..9c67e1e18 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -9,6 +9,7 @@
"start": "next start --port 3003"
},
"dependencies": {
+ "@icons-pack/react-simple-icons": "^13.1.0",
"@radix-ui/react-accordion": "1.2.10",
"@radix-ui/react-slider": "1.3.4",
"@tailwindcss/postcss": "4.1.6",
diff --git a/docs/src/content/_meta.js b/docs/src/content/_meta.js
index e243cb25a..b037ee09e 100644
--- a/docs/src/content/_meta.js
+++ b/docs/src/content/_meta.js
@@ -17,6 +17,7 @@ export default {
title: "Self-hosting",
},
"self-hosting": "",
+ troubleshooting: "",
"self-hosting-advanced": "",
"self-hosting-nginx": "",
"v1-migration": "",
diff --git a/docs/src/content/index.mdx b/docs/src/content/index.mdx
index d7b7d5154..421e3c376 100644
--- a/docs/src/content/index.mdx
+++ b/docs/src/content/index.mdx
@@ -1,4 +1,28 @@
-import { Bleed } from "nextra/components";
+import { Bleed, Cards } from "nextra/components";
+import {
+ SiAngular,
+ SiAstro,
+ SiDocusaurus,
+ SiDrupal,
+ SiFramer,
+ SiGoogletagmanager,
+ SiHugo,
+ SiJekyll,
+ SiLaravel,
+ SiReact,
+ SiNextdotjs,
+ SiGatsby,
+ SiRemix,
+ SiShopify,
+ SiSquarespace,
+ SiSvelte,
+ SiVuedotjs,
+ SiNuxt,
+ SiWebflow,
+ SiWix,
+ SiWoocommerce,
+ SiWordpress
+} from '@icons-pack/react-simple-icons';
# Introduction
@@ -23,6 +47,128 @@ Choose the option that's right for you:
And then learn how to add the [Tracking Script](./docs/script) to your website to start collecting data.
+<Cards>
+ <Cards.Card
+ icon={<SiAngular />}
+ title="Angular"
+ href="/docs/guides/angular"
+ />
+ <Cards.Card
+ icon={<SiAstro />}
+ title="Astro"
+ href="/docs/guides/astro"
+ />
+ <Cards.Card
+ title="Bubble"
+ href="/docs/guides/bubble"
+ />
+ <Cards.Card
+ icon={<SiDocusaurus />}
+ title="Docusaurus"
+ href="/docs/guides/docusaurus"
+ />
+ <Cards.Card
+ icon={<SiDrupal />}
+ title="Drupal"
+ href="/docs/guides/drupal"
+ />
+ <Cards.Card
+ icon={<SiFramer />}
+ title="Framer"
+ href="/docs/guides/framer"
+ />
+ <Cards.Card
+ icon={<SiGoogletagmanager />}
+ title="Google Tag Manager"
+ href="/docs/guides/google-tag-manager"
+ />
+ <Cards.Card
+ icon={<SiHugo />}
+ title="Hugo"
+ href="/docs/guides/hugo"
+ />
+ <Cards.Card
+ icon={<SiJekyll />}
+ title="Jekyll"
+ href="/docs/guides/jekyll"
+ />
+ <Cards.Card
+ icon={<SiLaravel />}
+ title="Laravel"
+ href="/docs/guides/laravel"
+ />
+ <Cards.Card
+ icon={<SiReact />}
+ title="React"
+ href="/docs/guides/react/vite-cra"
+ />
+ <Cards.Card
+ icon={<SiNextdotjs />}
+ title="Next.js"
+ href="/docs/guides/react/next-js"
+ />
+ <Cards.Card
+ icon={<SiGatsby />}
+ title="Gatsby"
+ href="/docs/guides/react/gatsby"
+ />
+ <Cards.Card
+ icon={<SiRemix />}
+ title="Remix"
+ href="/docs/guides/react/remix"
+ />
+ <Cards.Card
+ icon={<SiShopify />}
+ title="Shopify"
+ href="/docs/guides/shopify"
+ />
+ <Cards.Card
+ icon={<SiSquarespace />}
+ title="Squarespace"
+ href="/docs/guides/squarespace"
+ />
+ <Cards.Card
+ icon={<SiSvelte />}
+ title="Svelte"
+ href="/docs/guides/svelte/vite"
+ />
+ <Cards.Card
+ icon={<SiSvelte />}
+ title="SvelteKit"
+ href="/docs/guides/svelte/sveltekit"
+ />
+ <Cards.Card
+ icon={<SiVuedotjs />}
+ title="Vue"
+ href="/docs/guides/vue"
+ />
+ <Cards.Card
+ icon={<SiNuxt />}
+ title="Nuxt"
+ href="/docs/guides/vue/nuxt"
+ />
+ <Cards.Card
+ icon={<SiWebflow />}
+ title="Webflow"
+ href="/docs/guides/webflow"
+ />
+ <Cards.Card
+ icon={<SiWix />}
+ title="Wix"
+ href="/docs/guides/wix"
+ />
+ <Cards.Card
+ icon={<SiWoocommerce />}
+ title="WooCommerce"
+ href="/docs/guides/woocommerce"
+ />
+ <Cards.Card
+ icon={<SiWordpress />}
+ title="WordPress"
+ href="/docs/guides/wordpress"
+ />
+</Cards>
+
## Code
Rybbit is open sourced under the AGPL-3.0 license. You can find the code on [GitHub](https://github.com/rybbit-io/rybbit).
diff --git a/docs/src/content/troubleshooting.mdx b/docs/src/content/troubleshooting.mdx
new file mode 100644
index 000000000..612f7a484
--- /dev/null
+++ b/docs/src/content/troubleshooting.mdx
@@ -0,0 +1,79 @@
+import { Steps } from 'nextra/components'
+import { Callout } from "nextra/components"
+
+# Troubleshooting
+
+## Full Docker Cleanup
+
+If you encounter issues with Docker containers, images, or volumes and need to start fresh, you can perform a complete Docker cleanup. This will remove all containers, images, volumes, and custom networks.
+
+<Callout type="warning">
+**Warning**: This will remove ALL Docker containers, images, and volumes on your system, not just Rybbit-related ones. Make sure you don't have other important Docker containers running.
+</Callout>
+
+### Steps for Complete Docker Cleanup
+
+<Steps>
+
+## Remove your environment file
+ ```bash
+ rm .env
+ ```
+
+## Stop all running containers:
+ ```bash
+ docker stop $(docker ps -q)
+ ```
+
+## Remove all containers (both running and stopped):
+ ```bash
+ docker rm -f $(docker ps -aq)
+ ```
+
+## Remove all images:
+ ```bash
+ docker rmi -f $(docker images -q)
+ ```
+
+## Remove all volumes:
+ ```bash
+ docker volume rm -f $(docker volume ls -q)
+ ```
+
+## Remove all custom networks (preserves default networks):
+ ```bash
+ docker network rm $(docker network ls | grep -v "bridge\|host\|none" | awk '{print $1}')
+ ```
+
+</Steps>
+
+### Alternative: Rybbit-Specific Cleanup
+
+If you only want to clean up Rybbit-related Docker resources without affecting other containers, use these commands instead:
+
+```bash
+# Stop and remove Rybbit containers
+docker-compose down
+
+# Remove Rybbit images
+docker-compose down --rmi all
+
+# Remove Rybbit volumes (this will delete your data!)
+docker-compose down --volumes
+
+# Complete Rybbit cleanup
+docker-compose down --rmi all --volumes --remove-orphans
+```
+
+### After Cleanup
+
+Once you've completed the cleanup, you can restart Rybbit by following the setup instructions:
+
+```bash
+# Copy environment file
+cp .env.example .env
+
+# Edit .env with your configuration
+# Then start the services
+docker-compose up -d
+```
\ No newline at end of file
diff --git a/memory-bank/progress.md b/memory-bank/progress.md
index 49635e63b..7714ec011 100644
--- a/memory-bank/progress.md
+++ b/memory-bank/progress.md
@@ -255,3 +255,20 @@ This file tracks the project's progress using a task list format.
- **Files Modified**:
- [`docs/src/content/api.mdx`](docs/src/content/api.mdx:78) - API parameter documentation and all mobile platform examples
- **Impact**: Improved consistency across platform examples, modernized deprecated APIs, and clarified pixel type expectations for mobile developers
+
+[2025-06-20 16:16:23] - **COMPLETED: Docker Cleanup Documentation**
+
+- **Task**: Add Docker cleanup section to troubleshooting documentation
+- **Status**: ✅ COMPLETED
+- **Work Done**:
+ - Added comprehensive "Full Docker Cleanup" section to [`docs/src/content/troubleshooting.mdx`](docs/src/content/troubleshooting.mdx:1)
+ - Included all requested Docker cleanup commands (containers, images, volumes, networks)
+ - Added warning callout about destructive nature of cleanup commands
+ - Provided alternative Rybbit-specific cleanup options using docker-compose
+ - Added recovery instructions for restarting after cleanup
+- **Features Added**:
+ - Step-by-step cleanup process with explanations
+ - System-wide vs project-specific cleanup options
+ - Clear warnings about data loss
+ - Post-cleanup recovery steps
+- **Impact**: Users experiencing Docker issues now have clear, comprehensive cleanup procedures with appropriate warnings and recovery guidance