create-byoky-app 0.4.10 → 0.4.14

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 (2) hide show
  1. package/README.md +61 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # create-byoky-app
2
+
3
+ Scaffold a new app powered by [Byoky](https://byoky.com). Choose a template, get a working project with wallet integration out of the box.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npx create-byoky-app
9
+ ```
10
+
11
+ Or with a project name:
12
+
13
+ ```bash
14
+ npx create-byoky-app my-ai-app
15
+ ```
16
+
17
+ The CLI prompts you to pick a template, then generates the project and prints next steps.
18
+
19
+ ## Templates
20
+
21
+ ### AI Chat (Next.js)
22
+
23
+ Multi-provider streaming chat app. Uses the Anthropic SDK with Byoky's proxied fetch.
24
+
25
+ - Next.js 15 + React
26
+ - Streaming responses via `client.messages.stream()`
27
+ - Provider selection, usage stats, connected status
28
+
29
+ ### Multi-Provider (Vite)
30
+
31
+ Minimal setup showing how to connect multiple providers with fallback.
32
+
33
+ - Vite + vanilla TypeScript
34
+ - Requests Anthropic, OpenAI, and Gemini (all optional)
35
+ - Test buttons for each connected provider
36
+
37
+ ### Backend Relay (Express)
38
+
39
+ Server-side LLM calls through the user's wallet. The server never sees API keys.
40
+
41
+ - Express + Vite (dual server)
42
+ - `ByokyServer` handles WebSocket relay
43
+ - `/api/generate` endpoint for proxied LLM requests
44
+ - Supports Anthropic, OpenAI, and Gemini
45
+
46
+ ## What You Get
47
+
48
+ ```
49
+ my-ai-app/
50
+ package.json
51
+ tsconfig.json
52
+ src/
53
+ ...template files
54
+ README.md
55
+ ```
56
+
57
+ Run `npm install && npm run dev` and you're live.
58
+
59
+ ## License
60
+
61
+ [MIT](../../LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-byoky-app",
3
- "version": "0.4.10",
3
+ "version": "0.4.14",
4
4
  "description": "Scaffold a new app powered by Byoky",
5
5
  "type": "module",
6
6
  "bin": {