From ace54c6e771ebc38a767ddfa8255212a238cb69a Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Sun, 4 Oct 2026 18:07:07 +0100 Subject: [PATCH] chore: rename OpenShorts to Clipwright - Rebrand all text, package/CLI (clipwright_cli), env vars (CLIPWRIGHT_*), localStorage keys, Docker container names and webhook header - Rename/relocate assets, skills/, n8n examples, font map; delete dead MCP metadata (server.json, glama.json) and generated egg-info - Canonical site URL -> https://git.pbento.pt/pedro-bento/clipwright - Preserve fork provenance (upstream OpenShorts attribution in README/NOTICE/LICENSE) --- .env.example | 6 +- .github/workflows/publish-cli.yml | 4 +- .gitignore | 2 +- .hallmark/log.json | 2 +- CLAUDE.md | 10 +- Dockerfile | 6 +- LICENSE | 3 +- NOTICE | 13 +- README.md | 37 +- app.py | 6 +- assets/make_watermark.py | 4 +- cli/README.md | 28 +- cli/{openshorts_cli.py => clipwright_cli.py} | 20 +- cli/openshorts.egg-info/PKG-INFO | 49 --- cli/openshorts.egg-info/SOURCES.txt | 8 - cli/openshorts.egg-info/dependency_links.txt | 1 - cli/openshorts.egg-info/entry_points.txt | 2 - cli/openshorts.egg-info/top_level.txt | 1 - cli/pyproject.toml | 16 +- dashboard/index.html | 92 ++--- dashboard/nginx.conf | 4 +- dashboard/package-lock.json | 4 +- dashboard/package.json | 2 +- ...ogo-openshorts.png => logo-clipwright.png} | Bin dashboard/public/robots.txt | 4 +- dashboard/seo/data.js | 52 ++- dashboard/seo/landing-fallback.js | 20 +- dashboard/seo/legal.js | 192 +++++----- dashboard/seo/pages.js | 362 +++++++++--------- dashboard/seo/render.js | 18 +- dashboard/seo/tools.js | 24 +- dashboard/src/App.jsx | 46 +-- dashboard/src/Landing.jsx | 112 +++--- dashboard/src/Legal.jsx | 10 +- dashboard/src/components/ClipEditor.jsx | 2 +- dashboard/src/components/HookModal.jsx | 4 +- dashboard/src/components/MediaInput.jsx | 16 +- dashboard/src/components/ResultCard.jsx | 4 +- dashboard/src/components/StarBanner.jsx | 4 +- dashboard/src/lib/analytics.js | 2 +- dashboard/src/lib/consent.js | 4 +- dashboard/src/main.jsx | 4 +- dashboard/src/remotion/lib/captions.ts | 2 +- dashboard/tools/common.js | 4 +- dashboard/tools/transcript.js | 4 +- dashboard/vite-plugin-seo.js | 18 +- dashboard/vite.config.js | 3 +- demo-openshorts.mp4 => demo-clipwright.mp4 | Bin design.md | 6 +- docker-compose.e2e.local.yml | 2 +- docker-compose.yml | 6 +- docs/compliance/retencion.md | 4 +- docs/compliance/subprocessors.md | 10 +- docs/dsa-notice-and-action.md | 4 +- examples/n8n/README.md | 20 +- ...y.json => clipwright-clip-and-notify.json} | 14 +- ...e.json => clipwright-content-machine.json} | 26 +- ffmpeg_utils.py | 2 +- file_hosts.py | 2 +- ...s-fontmap.conf => clipwright-fontmap.conf} | 0 free_tools.py | 2 +- glama.json | 6 - main.py | 2 +- ops/README.md | 28 +- remotion/package.json | 2 +- remotion/src/Root.tsx | 2 +- remotion/src/lib/captions.ts | 2 +- render-service/package-lock.json | 4 +- render-service/package.json | 2 +- server.json | 26 -- .../.claude-plugin/plugin.json | 10 +- skills/{openshorts => clipwright}/README.md | 10 +- skills/{openshorts => clipwright}/SKILL.md | 16 +- .../{openshorts => clipwright}/reference.md | 6 +- tests/test_ai_disclosure.py | 4 +- tests/test_hook_grounding.py | 10 +- tests/test_no_blocking_http_in_async.py | 2 +- tests/test_youtube_non_video_urls.py | 6 +- thumbnail.py | 6 +- transcribe_backends.py | 2 +- 80 files changed, 692 insertions(+), 783 deletions(-) rename cli/{openshorts_cli.py => clipwright_cli.py} (93%) delete mode 100644 cli/openshorts.egg-info/PKG-INFO delete mode 100644 cli/openshorts.egg-info/SOURCES.txt delete mode 100644 cli/openshorts.egg-info/dependency_links.txt delete mode 100644 cli/openshorts.egg-info/entry_points.txt delete mode 100644 cli/openshorts.egg-info/top_level.txt rename dashboard/public/{logo-openshorts.png => logo-clipwright.png} (100%) rename demo-openshorts.mp4 => demo-clipwright.mp4 (100%) rename examples/n8n/{openshorts-clip-and-notify.json => clipwright-clip-and-notify.json} (92%) rename examples/n8n/{openshorts-content-machine.json => clipwright-content-machine.json} (96%) rename fonts/{openshorts-fontmap.conf => clipwright-fontmap.conf} (100%) delete mode 100644 glama.json delete mode 100644 server.json rename skills/{openshorts => clipwright}/.claude-plugin/plugin.json (65%) rename skills/{openshorts => clipwright}/README.md (83%) rename skills/{openshorts => clipwright}/SKILL.md (92%) rename skills/{openshorts => clipwright}/reference.md (96%) diff --git a/.env.example b/.env.example index a35ed09..4f85e3c 100644 --- a/.env.example +++ b/.env.example @@ -93,7 +93,7 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # API key. Point POSTIZ_URL at your instance; do not rely on any built-in # default. Required for the server-side publishing, queue and analytics calls # (the dashboard can also send the user's X-Postiz-Url / X-Postiz-Key headers -# per request). Postiz holds the social platform tokens; OpenShorts only +# per request). Postiz holds the social platform tokens; Clipwright only # uploads clip bytes. # POSTIZ_URL=https://your-postiz-host # POSTIZ_API_KEY=your_postiz_api_key @@ -118,9 +118,9 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # Encrypted PostgreSQL backups (ops/pg_backup.sh — installed and scheduled on # the database host, not by the app). -# DATABASE_URL=postgres://user:pass@host:5432/openshorts +# DATABASE_URL=postgres://user:pass@host:5432/clipwright # BACKUP_AGE_RECIPIENT=age1... -# BACKUP_DEST=s3://openshorts-backups/pg +# BACKUP_DEST=s3://clipwright-backups/pg # BACKUP_S3_ENDPOINT=https://.r2.cloudflarestorage.com # RETENTION_DAYS=30 diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index f62a84f..dfe8346 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -1,7 +1,7 @@ name: Publish CLI to PyPI # Push a tag cli-vX.Y.Z (matching `version` in cli/pyproject.toml) to publish -# the `openshorts` CLI. Uses PyPI Trusted Publishing (OIDC): no API token. +# the `clipwright` CLI. Uses PyPI Trusted Publishing (OIDC): no API token. on: push: tags: @@ -35,7 +35,7 @@ jobs: - name: Smoke test the wheel run: | pip install dist/*.whl - openshorts --help + clipwright --help - name: Publish uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.gitignore b/.gitignore index 74c5912..0ec1dd6 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,7 @@ output/ .claude/ # skills/ holds third-party installs (symlinks); our own published skill is versioned skills/* -!skills/openshorts/ +!skills/clipwright/ skills-lock.json diff --git a/.hallmark/log.json b/.hallmark/log.json index f4a45b1..3e9effa 100644 --- a/.hallmark/log.json +++ b/.hallmark/log.json @@ -1,3 +1,3 @@ [ - { "date": "2026-07-17", "scope": "app", "macrostructure": "Marquee Hero (marketing) / Workbench (app) / Long Document (content)", "theme": "lumen", "drop": "night", "enrichment": "filament-chamber apparatus + meter strip (landing only)", "brief": "OpenShorts · full app + landing redesign, design.md-managed" } + { "date": "2026-07-17", "scope": "app", "macrostructure": "Marquee Hero (marketing) / Workbench (app) / Long Document (content)", "theme": "lumen", "drop": "night", "enrichment": "filament-chamber apparatus + meter strip (landing only)", "brief": "Clipwright · full app + landing redesign, design.md-managed" } ] diff --git a/CLAUDE.md b/CLAUDE.md index e086462..3e23ccc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -OpenShorts is an AI-powered vertical video editor that transforms long YouTube videos or local uploads into viral-ready short clips (9:16 format) for TikTok, Instagram Reels, and YouTube Shorts. It also includes YouTube Studio (titles, thumbnails, descriptions) and publishes through a self-hosted Postiz instance. Uses Google Gemini 3.1 Flash-Lite (`gemini-3.1-flash-lite`, overridable with `GEMINI_MODEL`) for viral moment detection and title generation. +Clipwright is an AI-powered vertical video editor that transforms long YouTube videos or local uploads into viral-ready short clips (9:16 format) for TikTok, Instagram Reels, and YouTube Shorts. It also includes YouTube Studio (titles, thumbnails, descriptions) and publishes through a self-hosted Postiz instance. Uses Google Gemini 3.1 Flash-Lite (`gemini-3.1-flash-lite`, overridable with `GEMINI_MODEL`) for viral moment detection and title generation. ## Development Commands @@ -79,7 +79,7 @@ homepage as zero characters of text. `vite-plugin-seo.js` fixes that at build ti - Generates `sitemap.xml` and `llms.txt` from the same page list, so they cannot drift. Do not add a static `public/sitemap.xml` back. -When editing pricing anywhere, edit `seo/data.js` too. OpenShorts has a single +When editing pricing anywhere, edit `seo/data.js` too. Clipwright has a single self-hosted edition: free and open source under MIT. Do not reintroduce a hosted or paid tier into the copy. @@ -100,7 +100,7 @@ or paid tier into the copy. `dashboard/tools/*.js` (`vite.config.js` rollupOptions.input) that `vite-plugin-seo.js` looks up by name in the bundle. The 9:16 converter runs in the browser with mediabunny/WebCodecs (no upload). -- Attribution: `seo/render.js` writes the same first-touch `os_attrib` key the +- Attribution: `seo/render.js` writes the same first-touch `cw_attrib` key the app writes, from the static page the visit started on. Before, every signup was credited to "/" (7,481/7,481 rows, 30 days to 23-sep-2026). Signup, CheckoutStarted and Subscribed carry `landing_path`/`referrer_host`/utm as @@ -118,7 +118,7 @@ Cada nombre enciende su variable de entorno para **ese** trabajo `AUTO_LAYOUT=1` (recorte simple y nada más). Sin `layouts` manda el env del despliegue, que desde el 25-ago-2026 es `AUTO_LAYOUT=1`. El dashboard lo expone en opciones avanzadas ("vertical layout": auto / split / screencast / none, -`MediaInput.jsx`, recordado en `localStorage.os_layout`). +`MediaInput.jsx`, recordado en `localStorage.cw_layout`). `auto` activa `layout_picker.py`: **una** llamada a Gemini por vídeo de origen (no por clip) que elige entre `none` / `screencast` / `split`. Medido sobre el @@ -374,7 +374,7 @@ Auth is the raw key, no `Bearer`. ### Webhooks `POST /api/process` takes `webhook_url` + optional - `webhook_secret` (HMAC-SHA256, `X-OpenShorts-Signature`). Validated with + `webhook_secret` (HMAC-SHA256, `X-Clipwright-Signature`). Validated with `security_utils.assert_public_url` at submit AND at delivery (DNS rebinding). Fired once per job from `run_job_wrapper`; survives redeploys via the resume manifest. Each clip carries `video_url` (the local `/videos/...` path). diff --git a/Dockerfile b/Dockerfile index a9c9a89..28713dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,9 +81,9 @@ COPY . . # Register the bundled fonts (Anton for Impact) and the UI-name -> real-font # aliases with fontconfig so libass resolves what the subtitle modal offers. -RUN mkdir -p /usr/local/share/fonts/openshorts \ - && cp fonts/*.ttf /usr/local/share/fonts/openshorts/ \ - && cp fonts/openshorts-fontmap.conf /etc/fonts/conf.d/60-openshorts.conf \ +RUN mkdir -p /usr/local/share/fonts/clipwright \ + && cp fonts/*.ttf /usr/local/share/fonts/clipwright/ \ + && cp fonts/clipwright-fontmap.conf /etc/fonts/conf.d/60-clipwright.conf \ && fc-cache -f # Create a non-root user (Moved up) diff --git a/LICENSE b/LICENSE index a5ad963..fb8cca4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License -Copyright (c) 2024 OpenShorts +Copyright (c) 2024 OpenShorts (original project) +Copyright (c) 2026 Clipwright contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/NOTICE b/NOTICE index dc401f9..0191d82 100644 --- a/NOTICE +++ b/NOTICE @@ -1,8 +1,17 @@ +Clipwright +Copyright (c) 2026 Clipwright contributors + +This project is a fork of OpenShorts (https://github.com/mutonby/openshorts), +Copyright (c) 2024 OpenShorts, released under the MIT License. + +The Clipwright core application is licensed under the MIT License (see LICENSE). +The upstream OpenShorts copyright below is preserved and remains in effect. + +---------------------------------------------------------------------- + OpenShorts Copyright (c) 2024 OpenShorts -The OpenShorts core application is licensed under the MIT License (see LICENSE). - EXCEPTION: All content that resides under the "cloud/" directory of this repository is licensed under the license defined in "cloud/LICENSE" (the OpenShorts Commercial License), not under the MIT License. diff --git a/README.md b/README.md index ecd710c..fd5deab 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,18 @@ -# OpenShorts +# Clipwright [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![Docker](https://img.shields.io/badge/Docker-Ready-2496ED?logo=docker&logoColor=white)](https://docs.docker.com/compose/) -[![GitHub stars](https://img.shields.io/github/stars/mutonby/openshorts?style=social)](https://github.com/mutonby/openshorts) -[![Last Commit](https://img.shields.io/github/last-commit/mutonby/openshorts)](https://github.com/mutonby/openshorts/commits/main) - **Self-hosted AI video platform** with 2 tools in one: **Clip Generator** and **YouTube Studio**, publishing through a self-hosted **Postiz** instance. -![Your podcast, and the vertical clip OpenShorts makes of it: both speakers stacked, captions on the seam](screenshots/split-before-after.gif) +![Your podcast, and the vertical clip Clipwright makes of it: both speakers stacked, captions on the seam](screenshots/split-before-after.gif) -Two people on camera? OpenShorts stacks them instead of shrinking the wide shot, puts the captions on the seam where they cover nobody, and switches back to a face-tracked crop when the cut goes to one person. The AI picks the layout per video; nothing to configure. +Two people on camera? Clipwright stacks them instead of shrinking the wide shot, puts the captions on the seam where they cover nobody, and switches back to a face-tracked crop when the cut goes to one person. The AI picks the layout per video; nothing to configure. -This is a clean, self-hosted fork. You run it on your own machine with Docker and bring your own Gemini and ElevenLabs keys. There is no hosted service, no billing, and no usage cap. Publishing to TikTok, Instagram Reels and YouTube Shorts goes through your own [Postiz](https://postiz.com/) instance. +This is a clean, self-hosted fork of [OpenShorts](https://github.com/mutonby/openshorts), renamed Clipwright. You run it on your own machine with Docker and bring your own Gemini and ElevenLabs keys. There is no hosted service, no billing, and no usage cap. Publishing to TikTok, Instagram Reels and YouTube Shorts goes through your own [Postiz](https://postiz.com/) instance. + +> **Fork:** Clipwright is a fork of OpenShorts (), MIT-licensed. Upstream copyright is preserved in [LICENSE](LICENSE) and [NOTICE](NOTICE). --- @@ -55,7 +54,7 @@ Free AI YouTube toolkit: thumbnails, titles and descriptions. ### Postiz Publishing - **One-click posting** to TikTok, Instagram Reels, and YouTube Shorts through your self-hosted Postiz instance - **Schedule uploads** for any date and time — plan your content calendar and let Postiz publish -- **You own the credentials**: Postiz runs on your infrastructure and holds the platform tokens, so OpenShorts never has them +- **You own the credentials**: Postiz runs on your infrastructure and holds the platform tokens, so Clipwright never has them ### Infrastructure - S3 cloud backup (optional; private bucket for clips) @@ -74,7 +73,7 @@ Free AI YouTube toolkit: thumbnails, titles and descriptions. ## How Much Does It Cost? -Self-hosting OpenShorts is free. You provide the machine and you only pay for the AI APIs you use, and most have generous free tiers: +Self-hosting Clipwright is free. You provide the machine and you only pay for the AI APIs you use, and most have generous free tiers: | Service | Free Tier | Paid Cost | Used For | |---------|-----------|-----------|----------| @@ -101,8 +100,8 @@ Self-hosting OpenShorts is free. You provide the machine and you only pay for th ### 1. Clone ```bash -git clone https://github.com/mutonby/openshorts.git -cd openshorts +git clone https://git.pbento.pt/pedro-bento/clipwright.git +cd clipwright ``` ### 2. Configure (optional) @@ -164,8 +163,8 @@ ASR_GPU_CONCURRENCY=1 **Verify:** ```bash docker compose up --build -d -docker exec openshorts-backend nvidia-smi -L -docker exec openshorts-backend ffmpeg -hide_banner -f lavfi -i testsrc=size=256x256:rate=1 -frames:v 1 -c:v h264_nvenc -f null - +docker exec clipwright-backend nvidia-smi -L +docker exec clipwright-backend ffmpeg -hide_banner -f lavfi -i testsrc=size=256x256:rate=1 -frames:v 1 -c:v h264_nvenc -f null - ``` The backend log on the first job reports the chosen encoder and transcription device. A CUDA error in whisper (e.g. VRAM exhausted) retries once on CPU automatically. 8 GB of VRAM is enough for `large-v3-turbo` fp16 plus the detection models. @@ -229,7 +228,7 @@ You don't need the dashboard. The pipeline is callable by scripts and workflows. curl -X POST http://localhost:8000/api/process \ -H "Content-Type: application/json" \ -d '{"url": "https://youtube.com/watch?v=...", "acknowledged": true, - "webhook_url": "https://your-server.com/hooks/openshorts"}' + "webhook_url": "https://your-server.com/hooks/clipwright"}' ``` Interactive docs at `/docs` (OpenAPI) on any instance. @@ -243,7 +242,7 @@ Pass `webhook_url` (and optionally `webhook_secret`) to `POST /api/process` and "clips": [{"index": 0, "title": "…", "video_url": "…"}]} ``` -With a secret, the body is signed: `X-OpenShorts-Signature: sha256=`. +With a secret, the body is signed: `X-Clipwright-Signature: sha256=`. ### n8n @@ -309,18 +308,14 @@ Postiz instance. 1. **Deploy Postiz**: run your own instance with Docker (see the [Postiz docs](https://docs.postiz.com/)) 2. **Connect accounts**: link TikTok, Instagram and/or YouTube inside Postiz 3. **Create an API key**: in Postiz settings, generate a public API key -4. **Use in OpenShorts**: paste the Postiz URL and key in Settings, then use "Test connection" to list the connected channels +4. **Use in Clipwright**: paste the Postiz URL and key in Settings, then use "Test connection" to list the connected channels --- -## Star History - -[![Star History Chart](https://api.star-history.com/svg?repos=mutonby/openshorts&type=Date)](https://star-history.com/#mutonby/openshorts&Date) - ## Contributions Contributions are welcome! Whether it's improving the crop and subtitle pipeline or the dashboard — feel free to open a PR. ## License -MIT License — OpenShorts is yours to use, modify, and scale. +MIT License — Clipwright is yours to use, modify, and scale. diff --git a/app.py b/app.py index f64924f..c543654 100644 --- a/app.py +++ b/app.py @@ -1408,9 +1408,9 @@ async def _webhook_clip_entries(job_id, job): async def _deliver_webhook(url, body: bytes, secret): - headers = {"Content-Type": "application/json", "User-Agent": "OpenShorts-Webhook/1.0"} + headers = {"Content-Type": "application/json", "User-Agent": "Clipwright-Webhook/1.0"} if secret: - headers["X-OpenShorts-Signature"] = _sign_webhook(body, secret) + headers["X-Clipwright-Signature"] = _sign_webhook(body, secret) from security_utils import assert_public_url, UnsafeURLError loop = asyncio.get_event_loop() for attempt, delay in enumerate(WEBHOOK_RETRY_DELAYS, 1): @@ -2537,7 +2537,7 @@ async def download_all_clips(job_id: str, request: Request): return FileResponse( zip_path, media_type="application/zip", - filename=f"openshorts_clips_{job_id[:8]}.zip", + filename=f"clipwright_clips_{job_id[:8]}.zip", background=BackgroundTask(os.remove, zip_path), ) diff --git a/assets/make_watermark.py b/assets/make_watermark.py index a962d32..8189209 100644 --- a/assets/make_watermark.py +++ b/assets/make_watermark.py @@ -1,4 +1,4 @@ -"""Render the OpenShorts watermark lockup (white mark + wordmark) to a PNG. +"""Render the Clipwright watermark lockup (white mark + wordmark) to a PNG. Pre-rendered at 4x so it downscales cleanly onto any clip size, with a soft dark shadow so it stays legible over bright footage. @@ -10,7 +10,7 @@ H = 64 * S # lockup height PAD = 6 * S font = ImageFont.truetype("/System/Library/Fonts/HelveticaNeue.ttc", int(38 * S), index=1) # Bold -text = "OpenShorts" +text = "Clipwright" tmp = Image.new("RGBA", (10, 10)) tb = ImageDraw.Draw(tmp).textbbox((0, 0), text, font=font) diff --git a/cli/README.md b/cli/README.md index 4f56fb7..d38d948 100644 --- a/cli/README.md +++ b/cli/README.md @@ -1,31 +1,31 @@ -# OpenShorts CLI +# Clipwright CLI Clip long videos into vertical 9:16 shorts from the terminal. Zero dependencies; talks to the same self-hosted REST API the dashboard uses. ```bash -pip install openshorts # or: uvx openshorts / pipx run openshorts +pip install clipwright # or: uvx clipwright / pipx run clipwright ``` ## Use it against your own instance -OpenShorts is free, open source under MIT and self-hosted with Docker. There is +Clipwright is free, open source under MIT and self-hosted with Docker. There is no hosted edition and no paid plan, so there is no account to create. Point the CLI at your instance: ```bash -export OPENSHORTS_API_URL=http://localhost:8000 +export CLIPWRIGHT_API_URL=http://localhost:8000 -openshorts process "https://youtube.com/watch?v=..." --wait -openshorts clips -openshorts publish 0 --platforms tiktok,youtube -openshorts quota +clipwright process "https://youtube.com/watch?v=..." --wait +clipwright clips +clipwright publish 0 --platforms tiktok,youtube +clipwright quota ``` Self-hosted instances are open by default and need no API key. You do need a Google Gemini key: put it in the server's environment, or send it per call as an `X-Gemini-Key` header. If you put your own instance behind a key, the CLI sends -`OPENSHORTS_API_KEY` (`osk_...`) as a bearer token. +`CLIPWRIGHT_API_KEY` (`clw_...`) as a bearer token. ## Publish through Postiz @@ -35,13 +35,13 @@ API key with `--postiz-url` / `--postiz-key`, or set `POSTIZ_URL` / `X-Postiz-Key`. ```bash -openshorts publish 0 --platforms tiktok,youtube \ +clipwright publish 0 --platforms tiktok,youtube \ --postiz-url https://postiz.example.com --postiz-key ``` ## Quota -`openshorts quota` prints the instance config it reads from `GET /api/config`: +`clipwright quota` prints the instance config it reads from `GET /api/config`: the job-retention window, whether YouTube-URL ingest is enabled, and the local-LLM setting. A self-hosted instance has no minute quota, so none is reported. @@ -49,10 +49,10 @@ reported. ## Pipelines and webhooks Prefer the webhook to `--wait`: pass `--webhook` and `--webhook-secret` and -OpenShorts POSTs once (HMAC-signed, `X-OpenShorts-Signature: sha256=`) when +Clipwright POSTs once (HMAC-signed, `X-Clipwright-Signature: sha256=`) when the job ends, with each clip's title and `video_url`. Set `PUBLIC_API_URL` on the server so those links are absolute; otherwise they are relative to your instance. -The agent-native version of the same surface is the OpenShorts skill in -[`skills/openshorts/`](../skills/openshorts/). +The agent-native version of the same surface is the Clipwright skill in +[`skills/clipwright/`](../skills/clipwright/). diff --git a/cli/openshorts_cli.py b/cli/clipwright_cli.py similarity index 93% rename from cli/openshorts_cli.py rename to cli/clipwright_cli.py index 81552b5..09d05b6 100644 --- a/cli/openshorts_cli.py +++ b/cli/clipwright_cli.py @@ -1,13 +1,13 @@ -"""OpenShorts CLI: clip long videos into vertical shorts from the terminal. +"""Clipwright CLI: clip long videos into vertical shorts from the terminal. -Zero dependencies by design so `uvx openshorts` and `pipx run openshorts` +Zero dependencies by design so `uvx clipwright` and `pipx run clipwright` start instantly. Talks to the same REST API the dashboard uses; nothing here can drift from what the app actually does. Auth and target come from the environment: - OPENSHORTS_API_KEY osk_... key for a deploy that requires one (optional; + CLIPWRIGHT_API_KEY clw_... key for a deploy that requires one (optional; a self-hosted instance needs none) - OPENSHORTS_API_URL defaults to http://localhost:8000 for a self-hosted + CLIPWRIGHT_API_URL defaults to http://localhost:8000 for a self-hosted instance, where no key is needed. Publishing goes through Postiz. The base URL and API key come from the @@ -27,14 +27,14 @@ POLL_SECONDS = 10 def _base(): - return os.environ.get("OPENSHORTS_API_URL", DEFAULT_API).rstrip("/") + return os.environ.get("CLIPWRIGHT_API_URL", DEFAULT_API).rstrip("/") def _request(method, path, body=None, extra_headers=None): headers = {"Accept": "application/json"} if extra_headers: headers.update(extra_headers) - key = os.environ.get("OPENSHORTS_API_KEY") + key = os.environ.get("CLIPWRIGHT_API_KEY") if key: headers["Authorization"] = f"Bearer {key}" data = None @@ -102,7 +102,7 @@ def cmd_process(args): if args.wait: _watch(job_id, as_json=args.json) else: - print(f"follow it with: openshorts status {job_id} --watch") + print(f"follow it with: clipwright status {job_id} --watch") def _watch(job_id, as_json=False): @@ -205,8 +205,8 @@ def cmd_publish(args): def main(argv=None): parser = argparse.ArgumentParser( - prog="openshorts", - description="Clip long videos into vertical shorts via the OpenShorts API.", + prog="clipwright", + description="Clip long videos into vertical shorts via the Clipwright API.", ) parser.add_argument("--json", action="store_true", help="raw JSON output") sub = parser.add_subparsers(dest="command", required=True) @@ -216,7 +216,7 @@ def main(argv=None): p.add_argument("--layouts", help="comma list: auto,split,screencast,speaker_cut,punch_in") p.add_argument("--format", help="output format, e.g. 1080p") p.add_argument("--webhook", help="webhook URL fired once when the job ends") - p.add_argument("--webhook-secret", help="HMAC secret for X-OpenShorts-Signature") + p.add_argument("--webhook-secret", help="HMAC secret for X-Clipwright-Signature") p.add_argument("--wait", action="store_true", help="stream logs until the job ends") p.set_defaults(func=cmd_process) diff --git a/cli/openshorts.egg-info/PKG-INFO b/cli/openshorts.egg-info/PKG-INFO deleted file mode 100644 index 414639f..0000000 --- a/cli/openshorts.egg-info/PKG-INFO +++ /dev/null @@ -1,49 +0,0 @@ -Metadata-Version: 2.4 -Name: openshorts -Version: 0.1.0 -Summary: CLI for OpenShorts: clip long videos into vertical shorts and publish them, from the terminal -Author: OpenShorts -License: MIT -Project-URL: Homepage, https://www.openshorts.app -Project-URL: Source, https://github.com/mutonby/openshorts -Project-URL: Documentation, https://www.openshorts.app/mcp -Keywords: video,clips,shorts,ai,tiktok,youtube-shorts,cli -Classifier: Environment :: Console -Classifier: License :: OSI Approved :: MIT License -Classifier: Programming Language :: Python :: 3 -Classifier: Topic :: Multimedia :: Video -Requires-Python: >=3.9 -Description-Content-Type: text/markdown - -# OpenShorts CLI - -Clip long videos into vertical 9:16 shorts from the terminal. Zero -dependencies; talks to the same API the dashboard, the MCP server and the -webhooks use. - -```bash -pip install openshorts # or: uvx openshorts / pipx run openshorts - -export OPENSHORTS_API_KEY=osk_... # from your account page at openshorts.app - -openshorts process "https://youtube.com/watch?v=..." --wait -openshorts clips -openshorts publish 0 --platforms tiktok,youtube -openshorts quota -``` - -Self-hosted instance? Point it at your own machine and skip the key: - -```bash -export OPENSHORTS_API_URL=http://localhost:8000 -openshorts process "https://youtube.com/watch?v=..." --wait -``` - -For pipelines, prefer the webhook to `--wait`: pass `--webhook` and -`--webhook-secret` and OpenShorts POSTs once (HMAC-signed, -`X-OpenShorts-Signature: sha256=`) when the job ends, with clip titles -and durable download links. - -The hosted free tier is 20 minutes/month with a watermark; paid plans from -$12/month. The self-hosted edition is MIT and has no meter. Agent-native -version of the same surface: [openshorts.app/mcp](https://www.openshorts.app/mcp). diff --git a/cli/openshorts.egg-info/SOURCES.txt b/cli/openshorts.egg-info/SOURCES.txt deleted file mode 100644 index ece47b3..0000000 --- a/cli/openshorts.egg-info/SOURCES.txt +++ /dev/null @@ -1,8 +0,0 @@ -README.md -openshorts_cli.py -pyproject.toml -openshorts.egg-info/PKG-INFO -openshorts.egg-info/SOURCES.txt -openshorts.egg-info/dependency_links.txt -openshorts.egg-info/entry_points.txt -openshorts.egg-info/top_level.txt \ No newline at end of file diff --git a/cli/openshorts.egg-info/dependency_links.txt b/cli/openshorts.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/cli/openshorts.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/cli/openshorts.egg-info/entry_points.txt b/cli/openshorts.egg-info/entry_points.txt deleted file mode 100644 index 5e97037..0000000 --- a/cli/openshorts.egg-info/entry_points.txt +++ /dev/null @@ -1,2 +0,0 @@ -[console_scripts] -openshorts = openshorts_cli:main diff --git a/cli/openshorts.egg-info/top_level.txt b/cli/openshorts.egg-info/top_level.txt deleted file mode 100644 index 6587bc1..0000000 --- a/cli/openshorts.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -openshorts_cli diff --git a/cli/pyproject.toml b/cli/pyproject.toml index 67fa48c..f00a878 100644 --- a/cli/pyproject.toml +++ b/cli/pyproject.toml @@ -3,13 +3,13 @@ requires = ["setuptools>=68"] build-backend = "setuptools.build_meta" [project] -name = "openshorts" +name = "clipwright" version = "0.1.0" -description = "CLI for OpenShorts: clip long videos into vertical shorts and publish them, from the terminal" +description = "CLI for Clipwright: clip long videos into vertical shorts and publish them, from the terminal" readme = "README.md" requires-python = ">=3.9" license = { text = "MIT" } -authors = [{ name = "OpenShorts" }] +authors = [{ name = "Clipwright" }] keywords = ["video", "clips", "shorts", "ai", "tiktok", "youtube-shorts", "cli"] classifiers = [ "Environment :: Console", @@ -19,12 +19,12 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/mutonby/openshorts" -Source = "https://github.com/mutonby/openshorts" -Documentation = "https://github.com/mutonby/openshorts/tree/main/cli" +Homepage = "https://git.pbento.pt/pedro-bento/clipwright" +Source = "https://git.pbento.pt/pedro-bento/clipwright" +Documentation = "https://git.pbento.pt/pedro-bento/clipwright/tree/main/cli" [project.scripts] -openshorts = "openshorts_cli:main" +clipwright = "clipwright_cli:main" [tool.setuptools] -py-modules = ["openshorts_cli"] +py-modules = ["clipwright_cli"] diff --git a/dashboard/index.html b/dashboard/index.html index cc2e3e3..14b6be3 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -3,7 +3,7 @@ - + @@ -21,35 +21,35 @@ - OpenShorts - Free Open Source AI Clip Generator (MIT) + Clipwright - Free Open Source AI Clip Generator (MIT) - + - + - + + content="Clipwright - Open Source AI Clip Generator" /> - + - + - + + content="Clipwright - Open Source AI Clip Generator" /> - +