A web dashboard that tracks your One Piece viewing progress on Crunchyroll.
- Connects to the Crunchyroll API to fetch your One Piece watch history
- Displays episodes watched, progress percentage, and current position
- Calculates watch rate (episodes/day) and estimates when you'll catch up
- Tracks viewing streaks (current and longest consecutive days)
- Auto-refreshes data every hour in the background
- A Crunchyroll account with One Piece in your watch history
export ONEPIECE_CR_EMAIL="[email protected]"
export ONEPIECE_CR_PASSWORD="your-password"
go run . webOpen http://localhost:8080 in your browser.
docker build -t onepiece .
docker run -p 8080:8080 \
-e ONEPIECE_CR_EMAIL="[email protected]" \
-e ONEPIECE_CR_PASSWORD="your-password" \
onepiece| Environment Variable | Flag | Default | Description |
|---|---|---|---|
ONEPIECE_CR_EMAIL |
--email |
(required) | Crunchyroll account email |
ONEPIECE_CR_PASSWORD |
--password |
(required) | Crunchyroll account password |
ONEPIECE_ADDR |
--addr |
:8080 |
HTTP listen address |
ONEPIECE_POLL_INTERVAL |
--poll-interval |
1h |
Data refresh interval |
ONEPIECE_HEALTHCHECK_UUID |
--healthcheck-uuid |
Healthchecks.io check UUID for monitoring | |
ONEPIECE_POSTHOG_KEY |
--posthog-key |
PostHog project API key for analytics | |
ONEPIECE_POSTHOG_HOST |
--posthog-host |
PostHog API host |
Optional PostHog analytics can be enabled by setting ONEPIECE_POSTHOG_KEY or passing --posthog-key.
ONEPIECE_POSTHOG_KEYor--posthog-keyenables the PostHog client when setONEPIECE_POSTHOG_HOSTor--posthog-hostoverrides the PostHog API host- If
ONEPIECE_POSTHOG_HOSTis unset, the app defaults tohttps://eu.i.posthog.com
The dashboard supports optional healthchecks.io monitoring. When configured, each poll cycle sends:
- A start signal before fetching data (enables execution time tracking)
- A success signal with diagnostics (profile name, episodes watched, duration) on completion
- A failure signal with error details if the poll fails
Signals use run IDs to correlate start/completion for accurate duration measurement, and include automatic retries with exponential backoff.
onepiece web— Start the web dashboardonepiece version— Print version information