@nitrimandylis/flick 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/flick.js +3597 -0
- package/man/flick.1 +104 -0
- package/package.json +63 -4
- package/room/favicon.svg +1 -0
- package/room/fonts/space-grotesk.woff2 +0 -0
- package/room/fonts/space-mono.woff2 +0 -0
- package/room/room.html +80 -0
- package/room/room.js +551 -0
- package/room/style.css +389 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nick Trimandylis
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
```
|
|
2
|
+
███████╗██╗ ██╗ ██████╗██╗ ██╗
|
|
3
|
+
██╔════╝██║ ██║██╔════╝██║ ██╔╝
|
|
4
|
+
█████╗ ██║ ██║██║ █████╔╝
|
|
5
|
+
██╔══╝ ██║ ██║██║ ██╔═██╗
|
|
6
|
+
██║ ███████╗██║╚██████╗██║ ██╗
|
|
7
|
+
╚═╝ ╚══════╝╚═╝ ╚═════╝╚═╝ ╚═╝
|
|
8
|
+
```
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
<div align="center">
|
|
11
|
+
|
|
12
|
+
### `SEARCH IT // PICK IT // WATCH IT NOW`
|
|
13
|
+
|
|
14
|
+
*a cinema lobby in your terminal: posters, torrents, and a couch for two people in two cities*
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+
-FF3DCB?style=flat-square&labelColor=111111)
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 🎬 What is this
|
|
27
|
+
|
|
28
|
+
flick is a full-screen terminal app for watching films and shows. It opens on a wall of posters (what you were watching, what is trending), you type to search IMDb, and opening a title lists torrent sources from five sites with one marked as the sensible pick. Press enter and it streams into IINA, mpv, VLC or your browser while it downloads, so the film starts in seconds instead of after the whole file arrives.
|
|
29
|
+
|
|
30
|
+
`flick couch` is the other half. Two people, two places, one film: flick serves a room page, the play/pause/seek sync and the film itself from your computer through a Cloudflare tunnel, and prints a link. The other person opens it in a desktop browser and that is their entire setup. It replaced a video call with screen sharing, which was slow, hot, and loud enough to hear over the film.
|
|
31
|
+
|
|
32
|
+
```console
|
|
33
|
+
nick@flick:~$ flick couch
|
|
34
|
+
[✓] room open: https://couch.example.com/r/9bc1zqc97c
|
|
35
|
+
[i] kat joined. the laptop fan did not.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 🍿 The lobby
|
|
39
|
+
|
|
40
|
+
| | feature | what it actually does |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| 01 | **poster wall** | real posters through the kitty graphics protocol (kitty, Ghostty), title cards everywhere else |
|
|
43
|
+
| 02 | **search first** | titles from IMDb, then sources from YTS and EZTV (matched by IMDb id), The Pirate Bay, Knaben and Nyaa |
|
|
44
|
+
| 03 | **the pick** | 1080p, x264, under 6 GB, most seeders. the 86 GB remux is still there, just not first |
|
|
45
|
+
| 04 | **shows and anime** | seasons, episodes, watched marks, and which one is next |
|
|
46
|
+
| 05 | **couch** | a browser room both people sit in; play, pause and seek stay in step, and flick tells you if your upload keeps up |
|
|
47
|
+
| 06 | **pluggable** | engine rqbit or the built-in webtorrent, player IINA, mpv, VLC or the browser |
|
|
48
|
+
| 07 | **cache with a cap** | 10 GB by default, least recently watched goes first, nothing seeds after a film closes |
|
|
49
|
+
| 08 | **no ratings** | on purpose. you are about to watch it anyway |
|
|
50
|
+
|
|
51
|
+
## 🚀 Run it
|
|
52
|
+
|
|
53
|
+
Node 22 or newer. rqbit (`brew install rqbit`) and IINA or mpv are optional and better; without them flick uses its built-in engine and your browser.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npx @nitrimandylis/flick # run once, nothing installed
|
|
57
|
+
npm i -g @nitrimandylis/flick # or: bun add -g @nitrimandylis/flick
|
|
58
|
+
flick
|
|
59
|
+
flick couch
|
|
60
|
+
man flick
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Type a title, press enter twice, and the film is playing. The second enter is the one you will regret at 2 am.
|
|
64
|
+
|
|
65
|
+
### Couch on a fixed address
|
|
66
|
+
|
|
67
|
+
A room gets a new random `trycloudflare.com` address each run. For one that never changes (a bookmark the other person keeps), create a named Cloudflare tunnel routed to `http://127.0.0.1:8765` and put its token and hostname in `~/.config/flick/config.json` as `tunnelToken` and `tunnelHost`. The token is a secret, so it lives only in that file.
|
|
68
|
+
|
|
69
|
+
### For agents
|
|
70
|
+
|
|
71
|
+
[`flick-cli/SKILL.md`](flick-cli/SKILL.md) is an agent skill. It covers setup, the couch tunnel, and the traps. flick is interactive from top to bottom, so the skill tells an agent to hand the user the command rather than run it: only `flick --help` and `flick --version` are safe from a tool call. Copy the directory into your agent's skills folder to install it.
|
|
72
|
+
|
|
73
|
+
## 🔩 Under the hood
|
|
74
|
+
|
|
75
|
+
```mermaid
|
|
76
|
+
flowchart LR
|
|
77
|
+
T[terminal UI, Ink] --> I[IMDb: titles, posters, details]
|
|
78
|
+
T --> S[YTS · EZTV · TPB · Knaben · Nyaa]
|
|
79
|
+
S --> E[engine: rqbit or webtorrent]
|
|
80
|
+
E --> P[player: IINA · mpv · VLC · browser]
|
|
81
|
+
E --> R[couch room: page + sync + film]
|
|
82
|
+
R --> C[Cloudflare tunnel] --> B[their browser]
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
| layer | path | job |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| cli | `src/cli.tsx` | arguments, help, picks the engine and player, starts the UI |
|
|
88
|
+
| ui | `src/ui.tsx`, `src/look.tsx` | the lobby, episodes, sources and playing screens; marquee, film strip, badges |
|
|
89
|
+
| posters | `src/poster.ts` | kitty graphics through Unicode placeholders, poster-tinted accents |
|
|
90
|
+
| titles | `src/titles.ts`, `src/anime.ts` | IMDb search, details, seasons, episodes; AniList for anime |
|
|
91
|
+
| sources | `src/torrents.ts` | the five sites, the pick, quality parsing, what a browser can play |
|
|
92
|
+
| engines | `src/engines.ts` | rqbit over its HTTP API, or webtorrent in process |
|
|
93
|
+
| couch | `src/couch.ts`, `src/room.ts`, `src/tunnel.ts`, `room/` | the room server, the sync rules, the tunnel, the page she opens |
|
|
94
|
+
|
|
95
|
+
**Stack:** TypeScript · Ink · Node 22 · ws · webtorrent · cloudflared · Bun for builds and tests
|
|
96
|
+
|
|
97
|
+
## 🙏 Credits
|
|
98
|
+
|
|
99
|
+
flick's list of torrent sources follows the one curated by [torlink](https://github.com/baairon/torlink) (bairon.dev, MIT), and its search-first terminal UI took inspiration from torlink's.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
<div align="center">
|
|
104
|
+
|
|
105
|
+
**[Nick Trimandylis](https://github.com/nitrimandylis)**
|
|
106
|
+
|
|
107
|
+
`THE FILM STARTS WHEN YOU DO`
|
|
108
|
+
|
|
109
|
+
MIT licensed.
|
|
110
|
+
|
|
111
|
+
</div>
|