Visualize Your Trakt.tv History
19 |Display your watched movies and shows in a poster grid. Easily switch between years and get an overview of all your history.
21 |├── .env.example ├── .github ├── FUNDING.yml ├── actions │ └── pnpm-install │ │ └── action.yml ├── assets │ ├── trakt-black.svg │ └── trakt-white.svg └── workflows │ └── unit-testing.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── eslint.config.js ├── netlify.toml ├── package.json ├── pnpm-lock.yaml ├── postcss.config.cjs ├── src ├── app.d.ts ├── app.html ├── assets │ ├── color-modes.png │ ├── default-preview.png │ ├── noise.png │ └── screenshot-mode.png ├── auth.ts ├── const.ts ├── hooks.server.ts ├── lib │ ├── Image.svelte │ ├── InfiniteLoading.svelte │ ├── Meta.svelte │ ├── PlausibleAnalytics.svelte │ ├── Spacer.svelte │ ├── Svg.svelte │ ├── Switch.svelte │ ├── __tests__ │ │ └── actions.ts │ ├── actions.ts │ ├── button │ │ ├── Primary.svelte │ │ └── Secondary.svelte │ ├── grid │ │ ├── Grid.svelte │ │ └── Item.svelte │ ├── server │ │ └── const.ts │ ├── skip-to-content │ │ ├── Content.svelte │ │ └── Nav.svelte │ ├── store │ │ ├── persisted.ts │ │ ├── plausible.ts │ │ ├── settings.ts │ │ └── stats.ts │ ├── types.ts │ └── utils │ │ ├── __tests__ │ │ ├── __fixtures__ │ │ │ ├── history.shows.ts │ │ │ └── normalize.ts │ │ ├── index.ts │ │ ├── tmdb.ts │ │ └── trakt.ts │ │ ├── index.ts │ │ ├── tmdb.ts │ │ └── trakt.ts ├── routes │ ├── +error.svelte │ ├── +layout.server.ts │ ├── +layout.svelte │ ├── +page.svelte │ ├── Footer.svelte │ ├── Header.svelte │ ├── about │ │ └── +page.svelte │ ├── api │ │ ├── history │ │ │ └── [type] │ │ │ │ └── +server.ts │ │ ├── tmdb-image │ │ │ └── +server.ts │ │ ├── user-stats │ │ │ └── [id] │ │ │ │ └── +server.ts │ │ └── watched │ │ │ └── [type] │ │ │ └── +server.ts │ ├── dashboard │ │ ├── +layout.server.ts │ │ ├── +layout.svelte │ │ ├── +page.svelte │ │ └── [type] │ │ │ └── [year] │ │ │ ├── +page.server.ts │ │ │ └── +page.svelte │ ├── sign-in │ │ └── +page.svelte │ └── style.css └── styles │ ├── base.css │ ├── custom-media-queries.css │ ├── reset.css │ ├── utilities.css │ └── variables.css ├── static ├── _redirects ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── icons.svg ├── og-image.png ├── robots.txt └── site.webmanifest ├── svelte.config.js ├── tsconfig.json └── vite.config.ts /.env.example: -------------------------------------------------------------------------------- 1 | PRIVATE_TRAKT_CLIENT_ID= 2 | PRIVATE_TRAKT_CLIENT_SECRET= 3 | PRIVATE_AUTH_SECRET= 4 | PRIVATE_TMDB_API_KEY= 5 | NEXTAUTH_URL=http://localhost:4173 -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [LekoArts] 4 | patreon: # Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: lekoarts 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | custom: # Replace with a single custom sponsorship URL 9 | -------------------------------------------------------------------------------- /.github/actions/pnpm-install/action.yml: -------------------------------------------------------------------------------- 1 | # Based on https://gist.github.com/belgattitude/838b2eba30c324f1f0033a797bab2e31 2 | 3 | name: PNPM install 4 | description: Run pnpm install with cache enabled 5 | 6 | inputs: 7 | enable-corepack: 8 | description: Enable corepack 9 | required: false 10 | default: 'true' 11 | 12 | runs: 13 | using: composite 14 | 15 | steps: 16 | - name: Install Node.js 17 | uses: actions/setup-node@v4 18 | with: 19 | node-version: lts/* 20 | - name: ⚙️ Enable Corepack 21 | if: ${{ inputs.enable-corepack == 'true' }} 22 | shell: bash 23 | run: | 24 | corepack enable 25 | echo "Corepack enabled" 26 | 27 | - uses: pnpm/action-setup@v3.0.0 28 | if: ${{ inputs.enable-corepack == 'false' }} 29 | with: 30 | run_install: false 31 | 32 | - name: Expose pnpm config(s) through "$GITHUB_OUTPUT" 33 | id: pnpm-config 34 | shell: bash 35 | run: | 36 | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT 37 | 38 | - name: Cache rotation keys 39 | id: cache-rotation 40 | shell: bash 41 | run: | 42 | echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT 43 | 44 | - uses: actions/cache@v4 45 | name: Setup pnpm cache 46 | with: 47 | path: ${{ steps.pnpm-config.outputs.STORE_PATH }} 48 | key: ${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-${{ hashFiles('**/pnpm-lock.yaml') }} 49 | restore-keys: | 50 | ${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}- 51 | 52 | - name: Install dependencies 53 | shell: bash 54 | run: pnpm install --frozen-lockfile --prefer-offline 55 | env: 56 | HUSKY: '0' # By default do not run HUSKY install 57 | -------------------------------------------------------------------------------- /.github/assets/trakt-black.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.github/assets/trakt-white.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.github/workflows/unit-testing.yml: -------------------------------------------------------------------------------- 1 | name: Unit Testing 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | branches: 9 | - main 10 | 11 | concurrency: 12 | group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} 13 | cancel-in-progress: true 14 | 15 | jobs: 16 | unit-testing: 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Checkout 20 | uses: actions/checkout@v4 21 | - name: Install dependencies 22 | uses: ./.github/actions/pnpm-install 23 | - name: Run Vitest 24 | run: pnpm run test:ci 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | vite.config.js.timestamp-* 10 | vite.config.ts.timestamp-* 11 | .netlify 12 | .vercel 13 | coverage 14 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 LekoArts 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
4 | 5 | Visualize Your Trakt.tv History 6 | 7 |
8 | 9 |10 | Display your watched movies and shows in a poster grid. Easily switch between years and get an overview of all your history. Powered by: 11 |
12 | 13 |
14 |
17 |
Sorry, the page you are looking for does not exist.
20 | {:else if page.status === 401} 21 |Sorry, you are not authorized to view this page.
22 | {:else if page.status === 403} 23 |Sorry, you are forbidden to view this page.
24 | {:else if page.status === 500} 25 |Sorry, something went wrong on our end. Please try again later.
26 | {:else} 27 |Something went wrong. Please try again, and if that doesn't help please create a bug report on GitHub. Thanks!
28 | {/if} 29 | {:else} 30 |Something went wrong. Please try again, and if that doesn't help please create a bug report on GitHub. Thanks!
31 | {/if} 32 |Display your watched movies and shows in a poster grid. Easily switch between years and get an overview of all your history.
21 |Your Trakt History is used to display posters of movies and shows you watched in a minimalistic layout. No distractions, just posters.
47 |Want to create your own “Year in Review”? Enable Screenshot Mode and take a picture 📸
51 |Change the color scheme of the whole website by changing its color hue. You can also switch the language for your posters.
55 |The whole website is available on GitHub for you to read. Contributions welcome 🥳
59 |Hi, thanks for using this app!
10 |This website was created by LekoArts as a christmas project to try out SvelteKit. LekoArts loves watching movies and shows ⸺ so why not have a great overview? It's open source and available on GitHub at LekoArts/annum. Contributions welcome! 🥳 You can also follow me on Trakt if you want.
11 |All colors on this website are authored in the Oklch Color Space. The color wheel is the representation of the color hue angle. By changing the color hue in your dashboard you can change the color scheme of the whole website.
12 |Trakt itself doesn't host any images but instead provides metadata for APIs like TMDB. So all posters you can see on this website are sourced from TMDB. TMDB allows to fetch images in different languages, but as it's a community-led effort in most cases only the most popular languages have individual images. Thus the language selector in your dashboard only contains a subset of languages (if you're absolutely missing your language, please open an issue).
13 |Hello {data.session?.user.username} 👋🏻
23 |In total, you watched {data.stats?.movies?.watched} movies and {data.stats?.shows?.watched} shows ({data.stats?.episodes.watched} episodes). You can use this app to view your movies and shows year by year in a poster grid. Here are some quick links to the current and previous year:
24 |On each page you will find a Previous
and Next
button to switch years. Next to the "Sign Out" button you'll see the count for the current year and total count in parentheses. You can also manually change the year in the URL as the format is always the same, for example: /dashboard/movies/{CURRENT_YEAR}
.
Color Hue
47 |Choose a color hue between 0deg
and 360deg
to change the appearance. Default is 240deg
.
Language
65 |By default, all posters are in English. You can choose another language below.
66 |Grouping
82 |Posters will be grouped by month indicated by individual headings.
83 |You need to be signed in to access the dashboard. You will also need to have an account on Trakt.tv. Use the sign in button in the navigation to continue.
7 |If you run into any problems, please open an issue on GitHub.
8 |