ossclip 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 ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Muhammad Ahsan Ayaz
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.
22
+
23
+ ---
24
+
25
+ Note (not part of the MIT grant above, which covers this repository's own
26
+ code): rendering depends on Remotion, which is source-available under its own
27
+ two-tier licence — see https://github.com/remotion-dev/remotion/blob/main/LICENSE.md.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # ossclip
2
+
3
+ **A local-first CLI that turns a talking-head take into a finished short.** It cuts silence and filler words, writes word-timed kinetic captions, frames on the measured face, and has an LLM plan **code-rendered on-screen graphics** — title cards, stat cards, diagrams, terminal and chat mockups — from what was actually said.
4
+
5
+ Transcription is local (whisper.cpp), rendering is local (Remotion); the only network calls are the LLM planning ones, on your own key or your existing Claude Code subscription. Vertical 9:16 by default, landscape 16:9 with `--aspect`.
6
+
7
+ ![A produced frame](https://raw.githubusercontent.com/AhsanAyaz/ossclip/main/docs/site/assets/render-example.png)
8
+
9
+ ```sh
10
+ npm install -g ossclip
11
+ ossclip doctor # checks every prerequisite, prints the exact fix per line
12
+ ```
13
+
14
+ `ossclip doctor` checks Node ≥ 22, `ffmpeg`/`ffprobe`, [whisper.cpp](https://github.com/ggml-org/whisper.cpp) (`whisper-cli`), the transcription model, and an LLM provider — printing the per-platform install command for anything missing.
15
+
16
+ ```sh
17
+ # The whole thing: cut + captions + LLM-planned graphics + cover
18
+ ossclip produce input.mp4 --produce -o out.mp4
19
+
20
+ # Just the cut and captions — no LLM, no network
21
+ ossclip produce input.mp4 -o out.mp4
22
+
23
+ # Long-form in, one short out: the strongest ~60s window, chosen by the producer
24
+ ossclip produce podcast.mp4 --produce --clip 60 -o clip.mp4
25
+
26
+ # Edit what it produced — direct manipulation, in the browser
27
+ ossclip edit "<work directory>"
28
+ ```
29
+
30
+ **Scope, honestly:** ossclip is at its best polishing a take you have already cut down. `--clip` selects a single strongest window from long-form input — one clip, not N.
31
+
32
+ AI can make mistakes: the cut, the captions and every graphic are generated — review the output before publishing.
33
+
34
+ **Full documentation, flags, keybinds and the findings log:** [github.com/AhsanAyaz/ossclip](https://github.com/AhsanAyaz/ossclip)
35
+
36
+ ## Licence
37
+
38
+ MIT. Rendering depends on [Remotion](https://www.remotion.dev/), which is source-available under [its own two-tier licence](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md) — for-profit companies above its stated size need a company licence.
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ // The published entry point (R18 §90b). The CLI — and the Remotion render
3
+ // entry it hands to @remotion/bundler — are TypeScript SOURCES: Remotion
4
+ // bundles the composition from .tsx at render time, so shipping sources is
5
+ // the design, and tsx runs them. tsx is registered here as a library from
6
+ // this package's own dependencies — a plain `#!/usr/bin/env tsx` shebang
7
+ // would demand a GLOBAL tsx, which a fresh `npm i -g ossclip` does not have.
8
+ import { register } from "tsx/esm/api";
9
+
10
+ register();
11
+ await import("../src/index.ts");