hypeframe 0.2.0 → 0.5.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/README.md +99 -40
- package/dist/index.js +1878 -275
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<b>◆ hypeframe</b><br>
|
|
3
3
|
The local engine for <a href="https://hype-frame.com">HypeFrame Web</a>.<br>
|
|
4
|
-
Code clips, video renders and
|
|
4
|
+
Code clips, video renders and AI agents run on your own machine. The web is just the screen.
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
curl -fsSL https://hype-frame.com/install | bash
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
> **Preview.** HypeFrame Web is opening in stages. The protocol and commands may still change before 1.0.
|
|
@@ -23,6 +23,7 @@ npx hypeframe
|
|
|
23
23
|
- [Quick start](#quick-start)
|
|
24
24
|
- [Commands](#commands)
|
|
25
25
|
- [Rendering](#rendering)
|
|
26
|
+
- [AI agents](#ai-agents)
|
|
26
27
|
- [Security and privacy](#security-and-privacy)
|
|
27
28
|
- [Data folder](#data-folder)
|
|
28
29
|
- [Troubleshooting](#troubleshooting)
|
|
@@ -52,44 +53,48 @@ npx hypeframe
|
|
|
52
53
|
|
|
53
54
|
## Install
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|---|---|
|
|
57
|
-
| Node.js | 20.3 or newer ([download](https://nodejs.org)) |
|
|
58
|
-
| System | Windows 10/11, macOS, Linux (x64 or arm64) |
|
|
59
|
-
| Android | Through Termux (`pkg install nodejs`). Rendering needs Chromium; the HypeFrame app (APK) is the easier route. |
|
|
60
|
-
| iPhone / iPad | Cannot run the engine. Use HypeFrame Web with "In this browser" rendering. |
|
|
61
|
-
| Chrome | Uses the installed Chrome or Edge. Without one, Chrome for Testing is downloaded once (about 150 MB). |
|
|
62
|
-
| RAM | 8 GB or more for 1080p video. 4 GB is enough for small videos. |
|
|
63
|
-
|
|
64
|
-
Run it once without installing:
|
|
56
|
+
**macOS and Linux**
|
|
65
57
|
|
|
66
58
|
```bash
|
|
67
|
-
|
|
59
|
+
curl -fsSL https://hype-frame.com/install | bash
|
|
68
60
|
```
|
|
69
61
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
npm i -g hypeframe
|
|
74
|
-
```
|
|
62
|
+
**Windows** (PowerShell)
|
|
75
63
|
|
|
76
64
|
```powershell
|
|
77
|
-
|
|
78
|
-
irm https://raw.githubusercontent.com/sairidev/hypeframe/main/install.ps1 | iex
|
|
65
|
+
irm https://hype-frame.com/install.ps1 | iex
|
|
79
66
|
```
|
|
80
67
|
|
|
68
|
+
The installer downloads a single `hypeframe` program from
|
|
69
|
+
[GitHub Releases](https://github.com/sairidev/hypeframe/releases), checks it against `SHA256SUMS`, puts it in
|
|
70
|
+
`~/.hypeframe/bin` and adds that folder to your `PATH`. **No Node.js needed.** Open a new terminal afterwards and type
|
|
71
|
+
`hypeframe`. To pick a version: `HYPEFRAME_VERSION=0.3.0` (bash: `curl … | HYPEFRAME_VERSION=0.3.0 bash`). To update
|
|
72
|
+
later: `hypeframe update`.
|
|
73
|
+
|
|
74
|
+
**With Node.js** (20.3 or newer), the npm package works the same:
|
|
75
|
+
|
|
81
76
|
```bash
|
|
82
|
-
#
|
|
83
|
-
|
|
77
|
+
npx hypeframe # run once, nothing installed
|
|
78
|
+
npm i -g hypeframe # keep it installed
|
|
84
79
|
```
|
|
85
80
|
|
|
81
|
+
| | |
|
|
82
|
+
|---|---|
|
|
83
|
+
| System | Windows 10/11 (x64; ARM64 through emulation), macOS (Apple Silicon or Intel), Linux x64 or arm64 (glibc or musl/Alpine) |
|
|
84
|
+
| Android | Through Termux with Node.js (`pkg install nodejs`, then `npx hypeframe`); the installer switches to npm there. Rendering needs Chromium; the HypeFrame app (APK) is the easier route. |
|
|
85
|
+
| iPhone / iPad | Cannot run the engine. Use HypeFrame Web with "In this browser" rendering. |
|
|
86
|
+
| Chrome | Uses the installed Chrome or Edge. Without one, Chrome for Testing is downloaded once (about 150 MB). |
|
|
87
|
+
| ffmpeg | Comes with the npm package. The standalone program downloads the same build once (about 28 MB) and checks its sha256. |
|
|
88
|
+
| RAM | 8 GB or more for 1080p video. 4 GB is enough for small videos. |
|
|
89
|
+
| Disk | About 120 MB for the program, plus Chrome and ffmpeg when they are downloaded. |
|
|
90
|
+
|
|
86
91
|
## Quick start
|
|
87
92
|
|
|
88
93
|
1. Open [HypeFrame Web](https://hype-frame.com) and sign in with Google.
|
|
89
|
-
2. On the machine that will do the work, open a terminal and run `hypeframe
|
|
94
|
+
2. On the machine that will do the work, [install](#install) hypeframe, open a new terminal and run `hypeframe`.
|
|
90
95
|
|
|
91
96
|
```
|
|
92
|
-
◆ hypeframe v0.
|
|
97
|
+
◆ hypeframe v0.3.0
|
|
93
98
|
local engine for HypeFrame Web
|
|
94
99
|
|
|
95
100
|
Account ▲ not connected
|
|
@@ -97,14 +102,14 @@ curl -fsSL https://raw.githubusercontent.com/sairidev/hypeframe/main/install | b
|
|
|
97
102
|
Device LAPTOP-RAFI (windows)
|
|
98
103
|
Render Chrome · GPU off
|
|
99
104
|
24 hours -
|
|
100
|
-
Version 0.
|
|
105
|
+
Version 0.3.0 · Bun 1.4.4 (standalone)
|
|
101
106
|
|
|
102
107
|
◆ What would you like to do?
|
|
103
108
|
│ ● Start the engine (connects your account first)
|
|
104
109
|
│ ○ Open HypeFrame Web
|
|
105
110
|
│ ○ Render speed test
|
|
106
111
|
│ ○ Render history
|
|
107
|
-
│ ○ ✦ AI assistant
|
|
112
|
+
│ ○ ✦ AI assistant (agents used from HypeFrame Web)
|
|
108
113
|
│ ○ Start automatically
|
|
109
114
|
│ ○ Settings
|
|
110
115
|
│ ○ Check this machine
|
|
@@ -156,7 +161,9 @@ engine directly. Every menu item is also a command:
|
|
|
156
161
|
| `hypeframe config` | Device name, GPU, language; interactive in a terminal |
|
|
157
162
|
| `hypeframe clean` | Remove the downloaded Chrome, cached render pages, old logs and failed renders. Finished videos stay |
|
|
158
163
|
| `hypeframe report` | Write a problem report (versions, settings, recent log) with tokens masked |
|
|
159
|
-
| `hypeframe update` | `npm i -g hypeframe@latest` |
|
|
164
|
+
| `hypeframe update` | Update to the latest version (runs the installer again, or `npm i -g hypeframe@latest` for an npm install) |
|
|
165
|
+
| `hypeframe agent list` | AI agents on this machine and whether they are ready |
|
|
166
|
+
| `hypeframe agent add\|login\|remove <id>` | Install an agent and log in (`claude-acp`, `antigravity-acp`, `codex-acp`, `opencode`), log in again, or remove it. An agent you already installed yourself is used as it is; `--download` takes the official download anyway |
|
|
160
167
|
|
|
161
168
|
| Option | Meaning |
|
|
162
169
|
|---|---|
|
|
@@ -204,11 +211,47 @@ render server on the Max plan, then the browser).
|
|
|
204
211
|
need a Chrome that can encode VP9 with alpha. Headless Chrome on Windows cannot, so the engine refuses those quickly and
|
|
205
212
|
the web makes them elsewhere; the terminal says so when the engine starts.
|
|
206
213
|
|
|
214
|
+
## AI agents
|
|
215
|
+
|
|
216
|
+
Chat with an AI agent that runs on this machine, from the Assistant page of HypeFrame Web (on this computer, or on a
|
|
217
|
+
phone or tablet while the engine runs). Set each agent up once in the terminal: run `hypeframe`, choose **✦ AI
|
|
218
|
+
assistant**, pick the agent, then **Install** and **Log in** (or `hypeframe agent add <id>`).
|
|
219
|
+
|
|
220
|
+
| Agent | Id | Account |
|
|
221
|
+
|---|---|---|
|
|
222
|
+
| Claude Code | `claude-acp` | Anthropic API key (Anthropic allows subscription logins only in its own apps) |
|
|
223
|
+
| Antigravity | `antigravity-acp` | its own login |
|
|
224
|
+
| Codex | `codex-acp` | its own login |
|
|
225
|
+
| OpenCode | `opencode` | its own login |
|
|
226
|
+
|
|
227
|
+
- Agents are downloaded from the official [ACP Registry](https://agentclientprotocol.com) and checked against its
|
|
228
|
+
sha256. They run unmodified; HypeFrame talks to them over the Agent Client Protocol. An agent you installed yourself
|
|
229
|
+
before (the same program on `PATH`; on Windows an `.exe`) is used instead of a second download, and **Remove** leaves
|
|
230
|
+
your copy alone.
|
|
231
|
+
- The agent's model, mode and other choices can be picked on the web. Modes that skip asking are not offered there.
|
|
232
|
+
- Chat history is kept in the project folder (`riwayat/`, up to 2 MB per chat) and in the browser. The gateway only
|
|
233
|
+
passes messages on.
|
|
234
|
+
- A file the agent makes in the project folder (image, audio, video, font, Lottie/JSON, up to 4 MB) goes into the open
|
|
235
|
+
project with the `add_file_from_computer` tool.
|
|
236
|
+
- Each chat works in `~/.hypeframe/proyek/<project>`. What HypeFrame enforces:
|
|
237
|
+
- file reads and writes the agent asks HypeFrame to do outside that folder are refused;
|
|
238
|
+
- permission requests that name a place outside it are rejected without asking;
|
|
239
|
+
- requests that name no place, and every terminal command, wait for your approval on the web, whatever the
|
|
240
|
+
permission setting;
|
|
241
|
+
- agent modes that skip asking (such as Claude Code's "bypass permissions" or "accept edits" in your own Claude
|
|
242
|
+
settings) are switched back to the normal mode for every chat.
|
|
243
|
+
- An agent's own built-in tools that never ask (for example reading files) follow that agent's own settings, and
|
|
244
|
+
HypeFrame does not sandbox the agent process. Keep each agent on its normal "ask" setting.
|
|
245
|
+
- HypeFrame tools (create a project, add clips, render…) reach the agent through `hypeframe mcp-bridge` and run in the
|
|
246
|
+
HypeFrame Web tab that sent the message, with the same permission rules as any AI. When no tab is open, the agent
|
|
247
|
+
gets a clear error and the terminal says so.
|
|
248
|
+
|
|
207
249
|
## Security and privacy
|
|
208
250
|
|
|
209
|
-
- **Allowed messages only.** The engine accepts `status
|
|
210
|
-
|
|
211
|
-
|
|
251
|
+
- **Allowed messages only.** The engine accepts `status`, `kunci` (render key) and the agent chat messages
|
|
252
|
+
`agen.mulai`, `agen.kirim`, `agen.izin`, `agen.batal`, `agen.opsi` and `agen.riwayat`, and nothing else. The gateway filters too, but the engine
|
|
253
|
+
never relies on that. A chat message can only reach an agent you installed and logged in to on this machine; there is
|
|
254
|
+
no remote terminal.
|
|
212
255
|
- **Local render service** listens on `127.0.0.1` only. CORS is limited to the HypeFrame Web origin, with Chrome's
|
|
213
256
|
local network access permission. Every render needs a ticket signed (HMAC-SHA256) with a random key made each time
|
|
214
257
|
the engine starts; the key is only handed, through the gateway, to tabs signed in as the engine's owner.
|
|
@@ -218,8 +261,9 @@ the web makes them elsewhere; the terminal says so when the engine starts.
|
|
|
218
261
|
masked in the log file and problem reports. The gateway stores only its sha256.
|
|
219
262
|
- **Phishing codes.** Never approve a code you did not run yourself. When a code was requested from a different
|
|
220
263
|
network than your browser, the approval page shows a warning.
|
|
221
|
-
- **Sent to the server:** device name, operating system, engine version, render capabilities
|
|
222
|
-
|
|
264
|
+
- **Sent to the server:** device name, operating system, engine version, render capabilities, the local port and the
|
|
265
|
+
list of agents (id, name, ready). Agent chats pass through the gateway to your own browser tabs and are not stored
|
|
266
|
+
there. Projects and videos are not sent.
|
|
223
267
|
|
|
224
268
|
Found a vulnerability? See [SECURITY.md](SECURITY.md).
|
|
225
269
|
|
|
@@ -227,17 +271,24 @@ Found a vulnerability? See [SECURITY.md](SECURITY.md).
|
|
|
227
271
|
|
|
228
272
|
```
|
|
229
273
|
~/.hypeframe/
|
|
274
|
+
├── bin/hypeframe the standalone program (curl installer)
|
|
230
275
|
├── akun.json device token (owner-readable only)
|
|
231
276
|
├── settings.json name, GPU, language, addresses
|
|
232
277
|
├── mesin.kunci one engine per folder
|
|
278
|
+
├── agen/<id>/ installed AI agents (how to start them; API keys you typed, owner-readable only;
|
|
279
|
+
│ kerja/ = the empty folder the agent process starts in)
|
|
280
|
+
├── proyek/<project>/ agent working folders (the only place agents may read and write); riwayat/ = chat history
|
|
233
281
|
├── log/hypeframe.log plain-text log, tokens masked (rotated at 1 MB)
|
|
234
282
|
├── cache/
|
|
235
283
|
│ ├── chrome/ Chrome for Testing (when downloaded)
|
|
284
|
+
│ ├── ffmpeg/ ffmpeg for the standalone program (checked download)
|
|
236
285
|
│ └── halaman/<ver>/ render page from HypeFrame Web (last 2 versions)
|
|
237
286
|
└── kerja/render/ render jobs and results (removed automatically)
|
|
238
287
|
```
|
|
239
288
|
|
|
240
|
-
To remove everything: press **Disconnect** on the web,
|
|
289
|
+
To remove everything: press **Disconnect** on the web, run `hypeframe autostart off`, delete `~/.hypeframe` and remove
|
|
290
|
+
the `# hypeframe` line the installer added to your shell profile (Windows: the `.hypeframe\bin` entry in the user
|
|
291
|
+
`PATH`). An npm install goes with `npm rm -g hypeframe`.
|
|
241
292
|
|
|
242
293
|
## Troubleshooting
|
|
243
294
|
|
|
@@ -245,7 +296,8 @@ Start with `hypeframe doctor`: it checks everything the engine needs and says wh
|
|
|
245
296
|
|
|
246
297
|
| Symptom | Cause and fix |
|
|
247
298
|
|---|---|
|
|
248
|
-
| `
|
|
299
|
+
| `hypeframe` not found right after installing | Open a new terminal so it picks up the new `PATH` |
|
|
300
|
+
| `npx` not found | Node.js is missing or too old. Use the curl/PowerShell installer instead, or install Node.js 20.3+ |
|
|
249
301
|
| "Gateway unreachable. Retrying..." | Internet or server trouble. The engine keeps retrying |
|
|
250
302
|
| "The code expired" | Codes last 10 minutes. Run `hypeframe` again |
|
|
251
303
|
| "This account already has 5 devices" | Disconnect one under **My devices** |
|
|
@@ -262,7 +314,8 @@ Still stuck? Run `hypeframe report` and send the file to the HypeFrame team.
|
|
|
262
314
|
## Development
|
|
263
315
|
|
|
264
316
|
This repository is a small monorepo in the style of [OpenCode](https://opencode.ai): TypeScript, Bun for
|
|
265
|
-
tooling,
|
|
317
|
+
tooling, an npm package that runs on plain Node.js, and standalone binaries (Bun runtime with the code built in) for
|
|
318
|
+
the curl installer.
|
|
266
319
|
|
|
267
320
|
```
|
|
268
321
|
packages/
|
|
@@ -272,15 +325,16 @@ packages/
|
|
|
272
325
|
│ │ ├── index.ts arguments → command or menu
|
|
273
326
|
│ │ ├── cli/ menu.ts, args.ts, commands/*.ts
|
|
274
327
|
│ │ ├── engine/ pairing.ts, connection.ts, handler.ts
|
|
275
|
-
│ │ ├── render/ service.ts, job.ts, chrome.ts, page.ts
|
|
328
|
+
│ │ ├── render/ service.ts, job.ts, chrome.ts, page.ts, ffmpeg.ts
|
|
276
329
|
│ │ ├── config/ paths, account, lock, settings, version
|
|
277
330
|
│ │ ├── ui/ theme (colors), log, banner, locale (id/en)
|
|
278
|
-
│ │ └── util/ open, format
|
|
331
|
+
│ │ └── util/ open, format, runtime
|
|
279
332
|
│ └── test/ node:test suites (run through tsx)
|
|
280
333
|
└── protocol/ message shapes, close codes, ticket format, error texts shared with the web
|
|
281
|
-
script/build.ts
|
|
334
|
+
script/build.ts npm bundle, or --compile <targets> for standalone binaries + archives
|
|
282
335
|
script/release.ts typecheck, test, build, npm publish (dry run unless --publish)
|
|
283
|
-
install, install.ps1 installers
|
|
336
|
+
install, install.ps1 the installers served at hype-frame.com/install and /install.ps1
|
|
337
|
+
.github/workflows/ ci.yml (every push), release.yml (tag v*: binaries, GitHub Release, installer test)
|
|
284
338
|
```
|
|
285
339
|
|
|
286
340
|
```bash
|
|
@@ -290,8 +344,12 @@ npm run typecheck
|
|
|
290
344
|
npm test # unit tests + the render service with a fake renderer
|
|
291
345
|
HF_TEST_CHROME=1 npm test # plus a real render in Chrome (needs HF_DIST_RENDER=<dist-render folder>)
|
|
292
346
|
npm run build # Bun bundles src into dist (bun comes as a dev dependency)
|
|
347
|
+
npx bun run script/build.ts --compile host # standalone binary for this machine in dist/standalone/
|
|
293
348
|
```
|
|
294
349
|
|
|
350
|
+
Binary targets: `linux-x64`, `linux-x64-baseline` (CPUs without AVX2), `linux-arm64`, `linux-x64-musl`,
|
|
351
|
+
`linux-arm64-musl`, `darwin-x64`, `darwin-arm64`, `windows-x64`, `windows-x64-baseline`.
|
|
352
|
+
|
|
295
353
|
See [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md).
|
|
296
354
|
|
|
297
355
|
### Protocol (version 1)
|
|
@@ -329,7 +387,8 @@ A package holds `klip.json` (`{klip}`) or `proyek.json` (`{proyek, setelan}`), p
|
|
|
329
387
|
|---|---|
|
|
330
388
|
| `ws`, `yauzl`, `picocolors`, `@clack/prompts` | MIT |
|
|
331
389
|
| `puppeteer-core`, `@puppeteer/browsers` | Apache-2.0 |
|
|
332
|
-
| `ffmpeg-static` | GPL-3.0-or-later (the package and the ffmpeg binary it downloads) |
|
|
390
|
+
| `ffmpeg-static` | GPL-3.0-or-later (the package and the ffmpeg binary it downloads; the standalone program downloads the same ffmpeg build) |
|
|
333
391
|
|
|
392
|
+
The standalone program also contains the [Bun](https://bun.sh) runtime (MIT; it includes JavaScriptCore, LGPL-2.1).
|
|
334
393
|
Chrome for Testing is downloaded from Google under Google's terms. The HypeFrame render page (including Remotion and
|
|
335
394
|
GSAP) is **not** in this package; it is fetched from HypeFrame Web when used and follows its own licenses.
|