@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/man/flick.1 ADDED
@@ -0,0 +1,104 @@
1
+ .TH FLICK 1 "2026-11-02" "flick 0.1.0" "User Commands"
2
+ .SH NAME
3
+ flick \- search a film or a show, pick a torrent, watch it now
4
+ .SH SYNOPSIS
5
+ .B flick
6
+ [\fItitle\fR]
7
+ [\fIoptions\fR]
8
+ .br
9
+ .B flick couch
10
+ [\fItitle\fR]
11
+ [\fIoptions\fR]
12
+ .SH DESCRIPTION
13
+ .B flick
14
+ is a full\-screen terminal UI. It opens on a splash, then a wall of posters:
15
+ what you were watching and what is trending. Typing searches IMDb. Opening a
16
+ title lists torrent sources from YTS, EZTV, The Pirate Bay, Knaben and Nyaa,
17
+ with a suggested pick, and pressing enter streams it straight into a player.
18
+ Shows get a season and episode list with watched marks and the next episode.
19
+ .PP
20
+ Films stream through a torrent engine on this computer while they download,
21
+ so playback starts in seconds. They are cached, and nothing keeps uploading
22
+ once a film is closed.
23
+ .PP
24
+ Posters are drawn with the kitty graphics protocol in kitty and Ghostty on
25
+ macOS. Other terminals show cards with the title instead.
26
+ .SH COMMANDS
27
+ .TP
28
+ .B flick
29
+ Open flick: continue watching, trending films and shows, search.
30
+ .TP
31
+ .B flick \fItitle\fR
32
+ Open flick already searching for \fItitle\fR.
33
+ .TP
34
+ .B flick couch \fR[\fItitle\fR]
35
+ Watch a film together from two places. flick serves a room page, the play,
36
+ pause and seek sync, and the film itself from this computer through a
37
+ Cloudflare tunnel, and prints the room's link. The other person opens the link
38
+ in a desktop browser; nothing to install. Only files every browser plays (MP4
39
+ with H.264) are offered. Couch plays films, not shows.
40
+ .SH OPTIONS
41
+ .TP
42
+ .BI \-\-engine " rqbit\fR|\fPwebtorrent"
43
+ The torrent engine. Default: rqbit if it is installed, else the built\-in
44
+ webtorrent.
45
+ .TP
46
+ .BI \-\-player " iina\fR|\fPmpv\fR|\fPvlc\fR|\fPbrowser"
47
+ The player. Default: the first one installed, in that order.
48
+ .TP
49
+ .B \-\-dub
50
+ Anime: prefer dual\-audio releases.
51
+ .TP
52
+ .BR \-h ", " \-\-help
53
+ Show help.
54
+ .TP
55
+ .BR \-v ", " \-\-version
56
+ Show the version.
57
+ .SH KEYS
58
+ .TP
59
+ .B type
60
+ Search films and shows.
61
+ .TP
62
+ .BR \(<- " " \(->
63
+ Move along the poster wall; change season on a show.
64
+ .TP
65
+ .BR \(ua " " \(da
66
+ Move through episodes and sources.
67
+ .TP
68
+ .B tab
69
+ Switch section: continue, now showing, shows.
70
+ .TP
71
+ .B enter
72
+ Open a title, an episode, or play a source.
73
+ .TP
74
+ .B c
75
+ Couch: copy the room link while a film is on.
76
+ .TP
77
+ .B esc
78
+ Back, clear the search, or return to the splash.
79
+ .TP
80
+ .B paste
81
+ A magnet link or info hash plays straight away.
82
+ .TP
83
+ .B ctrl\-c
84
+ Quit. The torrent, the room and the tunnel close with flick.
85
+ .SH FILES
86
+ .TP
87
+ .I ~/.config/flick/config.json
88
+ Settings: \fBengine\fR, \fBplayer\fR, \fBcacheGB\fR (default 10), \fBdub\fR,
89
+ and for couch \fBroom\fR, \fBtunnelToken\fR and \fBtunnelHost\fR.
90
+ .TP
91
+ .I ~/.config/flick/history.json
92
+ What you watched, for continue watching and the episode marks.
93
+ .TP
94
+ .I ~/.cache/flick/
95
+ Films (capped at \fBcacheGB\fR, least recently watched removed first),
96
+ subtitles and posters.
97
+ .SH COUCH ON A FIXED ADDRESS
98
+ By default a couch room gets a new random trycloudflare.com address each time.
99
+ For one address that never changes, create a named Cloudflare tunnel routed to
100
+ http://127.0.0.1:8765 and put its token and hostname in the config as
101
+ \fBtunnelToken\fR and \fBtunnelHost\fR. The token is a secret.
102
+ .SH SEE ALSO
103
+ .BR rqbit (1),
104
+ .BR mpv (1)
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
2
  "name": "@nitrimandylis/flick",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Search a film or a show, pick a torrent, watch it now in a full-screen terminal UI. Or watch together, in sync, from two places.",
5
+ "keywords": [
6
+ "torrent",
7
+ "streaming",
8
+ "tui",
9
+ "watch-party",
10
+ "cli",
11
+ "ink"
12
+ ],
13
+ "license": "MIT",
14
+ "author": "Nick Trimandylis",
15
+ "homepage": "https://github.com/nitrimandylis/flick#readme",
16
+ "type": "module",
17
+ "bin": {
18
+ "flick": "dist/flick.js"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "room",
23
+ "man",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "man": [
28
+ "man/flick.1"
29
+ ],
30
+ "engines": {
31
+ "node": ">=22"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/nitrimandylis/flick.git"
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "scripts": {
41
+ "build": "bun build src/cli.tsx --target=node --format=esm --packages=external --outfile dist/flick.js",
42
+ "prepack": "bun run build",
43
+ "dev": "bun src/cli.tsx",
44
+ "test": "bun test src",
45
+ "typecheck": "tsc --noEmit -p ."
46
+ },
47
+ "dependencies": {
48
+ "cloudflared": "^0.7.3",
49
+ "ink": "^8.0.0",
50
+ "react": "^19.3.1",
51
+ "webtorrent": "^3.0.21",
52
+ "ws": "^8.22.1"
53
+ },
54
+ "devDependencies": {
55
+ "@types/node": "^26.6.6",
56
+ "@types/react": "^19.3.0",
57
+ "@types/ws": "^8.18.2",
58
+ "typescript": "^7.0.2"
59
+ },
60
+ "trustedDependencies": [
61
+ "cloudflared",
62
+ "node-datachannel",
63
+ "utp-native"
64
+ ]
65
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="8" fill="#060a12"/><circle cx="16" cy="16" r="5" fill="#3df5ff"/></svg>
Binary file
Binary file
package/room/room.html ADDED
@@ -0,0 +1,80 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>couch</title>
7
+ <meta name="theme-color" content="#060a12">
8
+ <meta name="robots" content="noindex">
9
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
10
+ <link rel="preload" href="/fonts/space-grotesk.woff2" as="font" type="font/woff2" crossorigin>
11
+ <link rel="stylesheet" href="/style.css">
12
+ </head>
13
+ <body>
14
+ <!-- Entry gate: the click on "sit down" is what lets the player autoplay with sound. -->
15
+ <section class="panel" id="gate">
16
+ <p id="gate-film"></p>
17
+ <div class="name" id="name-field" hidden>
18
+ <label for="name">Your name, so the other person knows who paused</label>
19
+ <input id="name" maxlength="24" autocomplete="given-name" spellcheck="false">
20
+ </div>
21
+ <button class="sign" id="sit">sit down</button>
22
+ <p id="gate-peer"></p>
23
+ </section>
24
+
25
+ <section class="panel" id="empty" hidden>
26
+ <p class="nothing-on">Nothing on yet</p>
27
+ <p>The host picks one in <code>flick couch</code>. It appears here for both of you.</p>
28
+ <p id="last"></p>
29
+ </section>
30
+
31
+ <section class="stage" id="stage" hidden>
32
+ <!-- The video's own fullscreen is hidden: ours fullscreens the page, so the pill survives. -->
33
+ <video id="player" controls controlslist="nofullscreen nodownload noremoteplayback" disablepictureinpicture playsinline crossorigin="anonymous">
34
+ <track id="subs" kind="subtitles" srclang="en" label="English">
35
+ </video>
36
+
37
+ <div class="pill asleep" id="pill">
38
+ <span class="dot" id="dot"></span>
39
+ <span id="status"></span>
40
+ <button class="resync" id="resync" hidden>Resync</button>
41
+ <span class="film" id="pill-film"></span>
42
+ <span class="time" id="clock"></span>
43
+ <button class="cc" id="cc" aria-label="English subtitles" aria-pressed="false" hidden>CC</button>
44
+ <button class="icon-button" id="fullscreen" aria-label="Fullscreen">
45
+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M2 6V2h4M10 2h4v4M14 10v4h-4M6 14H2v-4"/></svg>
46
+ </button>
47
+ </div>
48
+
49
+ <div class="curtain gone" id="curtain">
50
+ <p id="curtain-text"></p>
51
+ <div class="line" id="curtain-line"></div>
52
+ </div>
53
+
54
+ <div class="toast gone" id="toast"></div>
55
+ </section>
56
+
57
+ <section class="after" id="after" hidden>
58
+ <div class="backdrop" id="backdrop"></div>
59
+ <div class="after-body">
60
+ <h1 id="after-title"></h1>
61
+ <p class="facts" id="facts"></p>
62
+ <div>
63
+ <p class="tagline" id="tagline"></p>
64
+ <p class="plot" id="plot"></p>
65
+ <p class="about" id="about"></p>
66
+ <dl class="credits" id="credits"></dl>
67
+ </div>
68
+ <aside class="verdict">
69
+ <h2>What did you give it?</h2>
70
+ <div class="stars" id="stars"></div>
71
+ <p id="verdict-note">Both scores stay hidden until you have both picked one.</p>
72
+ <div class="reveal" id="reveal" hidden></div>
73
+ <button class="quiet-button" id="done">Done, back to the room</button>
74
+ </aside>
75
+ </div>
76
+ </section>
77
+
78
+ <script src="/room.js"></script>
79
+ </body>
80
+ </html>