ott
Search uses TMDB's movie and TV metadata API. Create a TMDB API Read Access Token and put it in .env.local as TMDB_ACCESS_TOKEN=...; the token is read by the Vite server proxy and is not included in browser bundles. .env.local is ignored by Git. Restart Vite after changing it.
- Language
- TypeScript
- Stars
- 0
- Last updated
From the README
Sammy Flix
A static movie and TV discovery catalog built with React, TypeScript, and Vite. The visitor does not get an API-key popup. Search and discovery call TMDB directly with the configured v3 API key. Search shows a live TMDB suggestions dropdown, and every title's detail view shows TMDB "More like this" recommendations.
TMDB key visibility
A key included in a static GitHub Pages app is public: anyone can inspect the browser bundle and reuse the key against TMDB. This setup uses the TMDB v3 API key you chose, not the more sensitive Read Access Token. Monitor your TMDB usage and rotate the key if it is abused. Do not use this public-key configuration for credentials that must remain secret.
GitHub Pages
The site is published at https://abdulmanan69.github.io/ott/. The GitHub Actions Pages workflow reads the TMDB v3 API key from the VITE_TMDB_API_KEY repository variable. After changing it, rerun Actions > Deploy Sammy Flix to GitHub Pages or push a new commit. The TMDB key is public in the built site.
Local development
Put VITE_TMDB_API_KEY in .env.local, then run:
npm install npm run dev
.env.local is ignored by Git. The old TMDB_ACCESS_TOKEN server-side local proxy remains available if no v3 key is configured. Live TMDB data requires an internet connection.
Playback
The player URL prefixes are set directly in src/App.tsx: https://nxsha.space/embed/tv/ and https://nxsha.space/embed/movie/. TMDB IDs are appended to those prefixes; TV titles use season 1, episode 1. Playback sources must be authorized and allow embedding. The player iframe is sandboxed without allow-popups or allow-top-navigation, so ad scripts inside the embed cannot open new tabs or redirect the page. UI the provider draws inside its own player (server pickers, app promos) cannot be removed from outside the iframe.
Attribution
This product uses the TMDB API but is not endorsed or certified by TMDB.