@reels/tui 1.1.51

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.
Files changed (3) hide show
  1. package/README.md +51 -0
  2. package/bin/reels +39 -0
  3. package/package.json +27 -0
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # reels
2
+
3
+ Instagram reels in the terminal.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @reels/tui
9
+ ```
10
+
11
+ ## Prerequisites
12
+
13
+ - **Terminal**: [Kitty](https://sw.kovidgoyal.net/kitty/), [WezTerm](https://wezfurlong.org/wezterm/), or [Konsole](https://konsole.kde.org/) (Kitty graphics protocol required)
14
+ - **Browser**: Chrome, Chromium, or Brave
15
+ - **FFmpeg**: FFmpeg 8+
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ reels
21
+ ```
22
+
23
+ ### Flags
24
+ - `--headed` - Run browser in headed mode (visible browser window)
25
+ - `--login` - Open browser window to log in to Instagram
26
+
27
+ ### Controls
28
+ - `j` / `k` - Next / previous reel
29
+ - `Space` - Pause/resume
30
+ - `l` - Like/unlike
31
+ - `c` - Toggle comments
32
+ - `e` - Toggle navbar
33
+ - `m` - Mute
34
+ - `]` / `[` - Volume up/down
35
+ - `=` / `-` - Enlarge/shrink video
36
+ - `q` - Quit
37
+
38
+ All keybinds are configurable in `reels.conf`.
39
+
40
+ ## Supported Platforms
41
+
42
+ | Platform | Package |
43
+ |----------|---------|
44
+ | Linux x64 | `@reels/linux-x64` |
45
+ | macOS ARM64 | `@reels/darwin-arm64` |
46
+
47
+ ## Links
48
+
49
+ - [GitHub](https://github.com/njyeung/reels)
50
+ - [Homebrew](https://github.com/njyeung/homebrew-tap)
51
+ - [AUR](https://aur.archlinux.org/packages/reels-bin)
package/bin/reels ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("child_process");
4
+ const path = require("path");
5
+ const os = require("os");
6
+
7
+ const PLATFORMS = {
8
+ "linux-x64": "@reels/linux-x64",
9
+ "darwin-arm64": "@reels/darwin-arm64",
10
+ };
11
+
12
+ const platform = `${os.platform()}-${os.arch()}`;
13
+ const pkg = PLATFORMS[platform];
14
+
15
+ if (!pkg) {
16
+ console.error(
17
+ `reels: unsupported platform ${platform}. Supported: ${Object.keys(PLATFORMS).join(", ")}`
18
+ );
19
+ process.exit(1);
20
+ }
21
+
22
+ let binPath;
23
+ try {
24
+ binPath = path.join(require.resolve(`${pkg}/package.json`), "..", "bin", "reels");
25
+ } catch {
26
+ console.error(
27
+ `reels: could not find package ${pkg}. Make sure optional dependencies are installed.`
28
+ );
29
+ process.exit(1);
30
+ }
31
+
32
+ try {
33
+ execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
34
+ } catch (e) {
35
+ if (e.status !== null) {
36
+ process.exit(e.status);
37
+ }
38
+ throw e;
39
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@reels/tui",
3
+ "version": "1.1.51",
4
+ "description": "Instagram reels in the terminal",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "instagram",
8
+ "reels",
9
+ "tui",
10
+ "terminal",
11
+ "cli",
12
+ "doomscrolling",
13
+ "brainrot",
14
+ "reels-downloader"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/njyeung/reels"
19
+ },
20
+ "bin": {
21
+ "reels": "bin/reels"
22
+ },
23
+ "optionalDependencies": {
24
+ "@reels/linux-x64": "1.1.5",
25
+ "@reels/darwin-arm64": "1.1.5"
26
+ }
27
+ }