copykat-studio 0.0.0-stage → 0.6.7
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 +109 -0
- package/NOTICE +23 -0
- package/README.md +15 -2
- package/bin/copykat.js +93 -0
- package/oso.png +0 -0
- package/package.json +32 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
CopyKat Studio by Oso — Copyright (c) 2026 PaulVentseck / usepaul. All rights reserved except as granted below.
|
|
2
|
+
|
|
3
|
+
copykat is source-available under the Elastic License 2.0 (the full text follows).
|
|
4
|
+
|
|
5
|
+
In plain words (this summary is not the license; the text below is what applies):
|
|
6
|
+
- Use it for free, for yourself and for your own business: install it, change it, make your videos.
|
|
7
|
+
- You may NOT offer copykat to other people as a hosted or managed service (a SaaS, a web where others
|
|
8
|
+
log in and use it, an API for clients…) without a commercial license from the licensor.
|
|
9
|
+
- Do not remove the license notices.
|
|
10
|
+
A commercial license (to run it as a service for others) is available from usepaul.
|
|
11
|
+
|
|
12
|
+
Parts of copykat come from third parties under their own licenses (MIT and SIL Open Font License);
|
|
13
|
+
they keep those licenses. See NOTICE.
|
|
14
|
+
|
|
15
|
+
----------------------------------------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
Elastic License 2.0
|
|
18
|
+
|
|
19
|
+
URL: https://www.elastic.co/licensing/elastic-license
|
|
20
|
+
|
|
21
|
+
## Acceptance
|
|
22
|
+
|
|
23
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
24
|
+
|
|
25
|
+
## Copyright License
|
|
26
|
+
|
|
27
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
28
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
29
|
+
available, and prepare derivative works of the software, in each case subject to
|
|
30
|
+
the limitations and conditions below.
|
|
31
|
+
|
|
32
|
+
## Limitations
|
|
33
|
+
|
|
34
|
+
You may not provide the software to third parties as a hosted or managed
|
|
35
|
+
service, where the service provides users with access to any substantial set of
|
|
36
|
+
the features or functionality of the software.
|
|
37
|
+
|
|
38
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
39
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
40
|
+
software that is protected by the license key.
|
|
41
|
+
|
|
42
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
43
|
+
of the licensor in the software. Any use of the licensor’s trademarks is subject
|
|
44
|
+
to applicable law.
|
|
45
|
+
|
|
46
|
+
## Patents
|
|
47
|
+
|
|
48
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
49
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
50
|
+
sale, import and have imported the software, in each case subject to the
|
|
51
|
+
limitations and conditions in this license. This license does not cover any
|
|
52
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
53
|
+
the software. If you or your company make any written claim that the software
|
|
54
|
+
infringes or contributes to infringement of any patent, your patent license for
|
|
55
|
+
the software granted under these terms ends immediately. If your company makes
|
|
56
|
+
such a claim, your patent license ends immediately for work on behalf of your
|
|
57
|
+
company.
|
|
58
|
+
|
|
59
|
+
## Notices
|
|
60
|
+
|
|
61
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
62
|
+
also gets a copy of these terms.
|
|
63
|
+
|
|
64
|
+
If you modify the software, you must include in any modified copies of the
|
|
65
|
+
software prominent notices stating that you have modified the software.
|
|
66
|
+
|
|
67
|
+
## No Other Rights
|
|
68
|
+
|
|
69
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
70
|
+
these terms.
|
|
71
|
+
|
|
72
|
+
## Termination
|
|
73
|
+
|
|
74
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
75
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
76
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
77
|
+
later than 30 days after you receive that notice, your licenses will be
|
|
78
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
79
|
+
reinstatement, any additional violation of these terms will cause your licenses
|
|
80
|
+
to terminate automatically and permanently.
|
|
81
|
+
|
|
82
|
+
## No Liability
|
|
83
|
+
|
|
84
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
85
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
86
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
87
|
+
legal claim.*
|
|
88
|
+
|
|
89
|
+
## Definitions
|
|
90
|
+
|
|
91
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
92
|
+
software the licensor makes available under these terms, including any portion
|
|
93
|
+
of it.
|
|
94
|
+
|
|
95
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
96
|
+
|
|
97
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
98
|
+
organization that you work for, plus all organizations that have control over,
|
|
99
|
+
are under the control of, or are under common control with that
|
|
100
|
+
organization. **control** means ownership of substantially all the assets of an
|
|
101
|
+
entity, or the power to direct its management and policies by vote, contract, or
|
|
102
|
+
otherwise. Control can be direct or indirect.
|
|
103
|
+
|
|
104
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
105
|
+
these terms.
|
|
106
|
+
|
|
107
|
+
**use** means anything you do with the software requiring one of your licenses.
|
|
108
|
+
|
|
109
|
+
**trademark** means trademarks, service marks, and similar rights.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
copykat includes material adapted from third-party projects under the MIT License:
|
|
2
|
+
|
|
3
|
+
- copykat/data/looks.json: the 51 film looks were translated from the style prompts (styles/*/STYLE.md)
|
|
4
|
+
of Lemo-Opuscar — Copyright (c) 2026 LemoLab — https://github.com/lemomo-ai/lemo-opuscar (MIT).
|
|
5
|
+
- copykat/collage.py: the collage motion model (assemble-from-empty, ease-out-back entries, poses on twos
|
|
6
|
+
with seeded jitter) follows Pasteup — Copyright (c) 2026 Tarik Moody — https://github.com/tmoody1973/pasteup (MIT).
|
|
7
|
+
|
|
8
|
+
MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
9
|
+
and associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
11
|
+
of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
|
|
12
|
+
conditions: The above copyright notice and this permission notice shall be included in all copies or
|
|
13
|
+
substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
14
|
+
|
|
15
|
+
The studio's pixel-art look (copykat/data/fonts, copykat/data/oso):
|
|
16
|
+
|
|
17
|
+
- Fonts, under the SIL Open Font License 1.1 (https://openfontlicense.org): Pixelify Sans (Copyright 2021 The
|
|
18
|
+
Pixelify Sans Project Authors), Silkscreen (Copyright 2001 The Silkscreen Project Authors, Jason Kottke) and Atkinson Hyperlegible
|
|
19
|
+
(Copyright 2020 Braille Institute of America, Inc.). They may be used, bundled and redistributed freely,
|
|
20
|
+
but not sold by themselves.
|
|
21
|
+
- Oso, the office cat (copykat/data/oso/*.png), is the cat of usepaul's pixel-art office. It is part of the
|
|
22
|
+
usepaul brand and is not covered by the Elastic License grant: keep it as copykat's logo, don't reuse it
|
|
23
|
+
as the logo of something else.
|
package/README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CopyKat Studio by Oso
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="https://unpkg.com/copykat-studio/oso.png" alt="Oso, el gato de CopyKat Studio" width="160">
|
|
4
|
+
|
|
5
|
+
Copia el estilo de un reel, story, post o TikTok y hazlo con tus fotos y vídeos. Y baja vídeos de YouTube,
|
|
6
|
+
Instagram, TikTok, Vimeo… en la calidad que quieras, o sólo el audio.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx copykat-studio # abre el estudio en http://127.0.0.1:8080 (sólo para ti, sin clave)
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
La primera vez instala copykat (Python) en `~/.copykat/venv`. Necesita Python 3.10+ y ffmpeg.
|
|
13
|
+
Con `npm i -g copykat-studio` también tienes la orden `copykat` (`copykat download URL -q 720`, `copykat --help`).
|
|
14
|
+
|
|
15
|
+
**Licencia**: Elastic License 2.0. Gratis para tu uso; ofrecerlo a terceros como servicio (SaaS) requiere licencia
|
|
16
|
+
comercial de usepaul. Ver LICENSE y NOTICE.
|
package/bin/copykat.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// copykat desde npm: `npx copykat-studio` abre el estudio en tu ordenador, y `copykat <orden>` hace lo mismo
|
|
3
|
+
// que el copykat de Python (descargar, analizar, collage…).
|
|
4
|
+
//
|
|
5
|
+
// copykat está escrito en Python. Este lanzador lo instala la primera vez en su propio entorno
|
|
6
|
+
// (~/.copykat/venv, no toca el Python del sistema) y luego sólo lo arranca. Necesita Python 3.10+ y ffmpeg.
|
|
7
|
+
'use strict';
|
|
8
|
+
const { spawnSync, spawn } = require('child_process');
|
|
9
|
+
const fs = require('fs');
|
|
10
|
+
const os = require('os');
|
|
11
|
+
const path = require('path');
|
|
12
|
+
|
|
13
|
+
const VERSION = require('../package.json').version;
|
|
14
|
+
const WIN = process.platform === 'win32';
|
|
15
|
+
const CASA = process.env.COPYKAT_HOME || path.join(os.homedir(), '.copykat');
|
|
16
|
+
const VENV = path.join(CASA, 'venv');
|
|
17
|
+
const PY_VENV = WIN ? path.join(VENV, 'Scripts', 'python.exe') : path.join(VENV, 'bin', 'python');
|
|
18
|
+
const MARCA = path.join(VENV, '.copykat-version');
|
|
19
|
+
|
|
20
|
+
// Desde el repositorio clonado (desarrollo): tu código. Publicado en npm: el paquete compilado de PyPI para tu
|
|
21
|
+
// sistema (copykat-studio, sin código fuente), de la misma versión que este lanzador.
|
|
22
|
+
const REPO = path.join(__dirname, '..', '..');
|
|
23
|
+
const DESDE_REPO = fs.existsSync(path.join(REPO, 'pyproject.toml')) && fs.existsSync(path.join(REPO, 'copykat'));
|
|
24
|
+
|
|
25
|
+
function fuente() {
|
|
26
|
+
return DESDE_REPO ? REPO : null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function paquete() {
|
|
30
|
+
return DESDE_REPO ? `${REPO}[all]` : `copykat-studio[all]==${VERSION}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function corre(cmd, args, opciones = {}) {
|
|
34
|
+
const r = spawnSync(cmd, args, { stdio: 'inherit', ...opciones });
|
|
35
|
+
return r.status === 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function buscarPython() {
|
|
39
|
+
const candidatos = [process.env.COPYKAT_PYTHON, 'python3', 'python', WIN ? 'py' : null].filter(Boolean);
|
|
40
|
+
for (const cmd of candidatos) {
|
|
41
|
+
const extra = cmd === 'py' ? ['-3'] : [];
|
|
42
|
+
const r = spawnSync(cmd, [...extra, '-c', 'import sys; print("%d.%d" % sys.version_info[:2])'], { encoding: 'utf8' });
|
|
43
|
+
if (r.status !== 0) continue;
|
|
44
|
+
const [mayor, menor] = r.stdout.trim().split('.').map(Number);
|
|
45
|
+
if (mayor === 3 && menor >= 10) return [cmd, extra];
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function instalar() {
|
|
51
|
+
let instalada = '';
|
|
52
|
+
try { instalada = fs.readFileSync(MARCA, 'utf8').trim(); } catch (e) { /* primera vez */ }
|
|
53
|
+
if (instalada === VERSION && fs.existsSync(PY_VENV)) return;
|
|
54
|
+
const python = buscarPython();
|
|
55
|
+
if (!python) {
|
|
56
|
+
console.error('copykat necesita Python 3.10 o más nuevo: https://www.python.org/downloads/\n' +
|
|
57
|
+
'(o dime cuál usar con COPYKAT_PYTHON=/ruta/a/python)');
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
console.log(instalada ? `Actualizando CopyKat Studio by Oso a ${VERSION}…` : `Instalando CopyKat Studio by Oso ${VERSION} en ${VENV} (sólo la primera vez)…`);
|
|
61
|
+
fs.mkdirSync(CASA, { recursive: true });
|
|
62
|
+
if (!fs.existsSync(PY_VENV) && !corre(python[0], [...python[1], '-m', 'venv', VENV])) {
|
|
63
|
+
console.error('No he podido crear el entorno de Python (en Debian/Ubuntu: sudo apt install python3-venv).');
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
const ok = corre(PY_VENV, ['-m', 'pip', 'install', '--quiet', '--upgrade', 'pip']) &&
|
|
67
|
+
corre(PY_VENV, ['-m', 'pip', 'install', '--quiet', '--upgrade', ...(process.env.COPYKAT_PIP_ARGS || '').split(' ').filter(Boolean), paquete()]);
|
|
68
|
+
if (!ok) {
|
|
69
|
+
console.error('La instalación ha fallado. Vuelve a probar; si sigue, borra ' + VENV + ' y empieza de cero.');
|
|
70
|
+
process.exit(1);
|
|
71
|
+
}
|
|
72
|
+
fs.writeFileSync(MARCA, VERSION);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function avisarFfmpeg() {
|
|
76
|
+
const r = spawnSync('ffmpeg', ['-version'], { stdio: 'ignore' });
|
|
77
|
+
if (r.status === 0) return;
|
|
78
|
+
const como = process.platform === 'darwin' ? 'brew install ffmpeg'
|
|
79
|
+
: WIN ? 'winget install ffmpeg' : 'sudo apt install ffmpeg';
|
|
80
|
+
console.warn(`Aviso: falta ffmpeg (hace falta para vídeo y audio). Instálalo con: ${como}`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
instalar();
|
|
84
|
+
avisarFfmpeg();
|
|
85
|
+
const args = process.argv.slice(2);
|
|
86
|
+
// Sin nada, o al llamarlo `copykat-studio`: el estudio web, sólo para ti, en este ordenador.
|
|
87
|
+
const comoEstudio = args.length === 0 || (path.basename(process.argv[1]).startsWith('copykat-studio') && args[0]?.startsWith('-'));
|
|
88
|
+
const final = comoEstudio ? ['studio', ...args] : args;
|
|
89
|
+
// La carpeta del proyecto: si se lanza desde el repositorio clonado, ahí (temporal/ y logs/); si no, ~/copykat.
|
|
90
|
+
const carpeta = process.env.COPYKAT_CARPETA || (DESDE_REPO ? REPO : path.join(os.homedir(), 'copykat'));
|
|
91
|
+
const hijo = spawn(PY_VENV, ['-m', 'copykat', ...final], { stdio: 'inherit', env: { ...process.env, COPYKAT_CARPETA: carpeta } });
|
|
92
|
+
for (const senal of ['SIGINT', 'SIGTERM']) process.on(senal, () => hijo.kill(senal));
|
|
93
|
+
hijo.on('exit', (codigo) => process.exit(codigo ?? 0));
|
package/oso.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copykat-studio",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.6.7",
|
|
4
|
+
"description": "CopyKat Studio by Oso: copia el estilo de un reel, story, post o TikTok y hazlo con tus fotos y textos; baja vídeos en la calidad que quieras. Uso personal.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "PaulVentseck / usepaul",
|
|
7
|
+
"bin": {
|
|
8
|
+
"copykat": "bin/copykat.js",
|
|
9
|
+
"copykat-studio": "bin/copykat.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin/",
|
|
13
|
+
"oso.png",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"NOTICE",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepack": "node -e \"for (const f of ['LICENSE','NOTICE']) require('fs').copyFileSync('../'+f, f)\""
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=18"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"reels",
|
|
26
|
+
"stories",
|
|
27
|
+
"tiktok",
|
|
28
|
+
"video",
|
|
29
|
+
"template",
|
|
30
|
+
"yt-dlp",
|
|
31
|
+
"downloader",
|
|
32
|
+
"pixel-art"
|
|
33
|
+
]
|
|
34
|
+
}
|