Nocturni
In DevelopmentA streaming catalog that only offers Play on titles with a checked license
Role: Solo developer
Solo · Since Sep 2026 · Private repo
A streaming app split in two. Descubrir is the full TMDB catalog with watch providers per country. Play is a catalog of public-domain and Creative Commons titles that play inside the app after a license check. It also has live TV from validated community playlists, Supabase-backed accounts, and a registry that classifies every source I evaluated.
Problem
A "watch everything" streaming clone is a common learning project, but most either hardcode unlicensed embed domains straight into the code, or skip authentication and persistence entirely and leave everything as local mock state.
Solution
Popular titles can't be played legally from a third-party app, and free legal catalogs have little that is current, so I stopped merging them. Descubrir shows the TMDB catalog and links out through JustWatch data. Play only lists what a sync script verified against the Internet Archive metadata, and the Reproducir button exists only when a real source does. Accounts run on Supabase with sub-profiles and RLS-protected favorites and progress, and the app falls back to a local guest mode without a backend.
Architecture highlights
- Server Components fetch TMDB directly on the server (the token never reaches the client). Each home row streams on its own through Suspense, so one failing category does not take the page down
- The watch-providers tab reads TMDB's JustWatch data per country and separates subscription, free, free with ads, rent and buy, with the attribution TMDB requires. When a title has no internal source it says so and the Reproducir button does not render
- Play is built by a sync script that looks up each Internet Archive item and keeps it only if it declares a Creative Commons or public-domain license, or was published in 1929 or earlier. Everything else is dropped and the license is shown on each title
- A second script imports live channels from community playlists and checks each one: valid M3U8, first segment reachable, CORS headers, no redirect to private hosts. In one run 869 of 1,541 candidates passed, so the page lists channels that open, with their source and check date
- Every source I evaluated sits in a registry with a class (direct playback, embed, metadata API, external link, pending, not integrable). A test fails if a link or a metadata API claims to play inside the app, or if an adult source is approved without evidence
- Writing tests for the services found a real bug: favorites and watch progress never reached Supabase, because supabase-js builders are lazy and the code called `void query` instead of running it. The tests now fail if that comes back
More highlights (1)
- Supabase auth with row-level security on every table, WITH CHECK on every mutating policy, and a guest mode that works without a backend. The +18 zone is behind a client-side PIN, which is not real age verification, so it is off by default