@craft-native/craft 0.0.8 → 0.0.13

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 (3) hide show
  1. package/README.md +15 -15
  2. package/dist/index.js +1 -1
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ts-craft
1
+ # @craft-native/craft
2
2
 
3
3
  Build lightning-fast desktop apps with web languages, powered by Zig.
4
4
 
@@ -16,7 +16,7 @@ Build lightning-fast desktop apps with web languages, powered by Zig.
16
16
  ## Installation
17
17
 
18
18
  ```bash
19
- bun add ts-craft
19
+ bun add @craft-native/craft
20
20
  ```
21
21
 
22
22
  ## Quick Start
@@ -24,7 +24,7 @@ bun add ts-craft
24
24
  ### Minimal Example (1 line!)
25
25
 
26
26
  ```ts
27
- import { show } from '@stacksjs/ts-craft'
27
+ import { show } from '@craft-native/craft'
28
28
 
29
29
  await show('<h1>Hello Craft!</h1>', { title: 'My App', width: 600, height: 400 })
30
30
  ```
@@ -32,7 +32,7 @@ await show('<h1>Hello Craft!</h1>', { title: 'My App', width: 600, height: 400 }
32
32
  ### Hello World
33
33
 
34
34
  ```ts
35
- import { createApp } from '@stacksjs/ts-craft'
35
+ import { createApp } from '@craft-native/craft'
36
36
 
37
37
  const html = `
38
38
  <!DOCTYPE html>
@@ -73,7 +73,7 @@ await app.show()
73
73
  ### Load a URL
74
74
 
75
75
  ```ts
76
- import { loadURL } from '@stacksjs/ts-craft'
76
+ import { loadURL } from '@craft-native/craft'
77
77
 
78
78
  // Load any website or local dev server
79
79
  await loadURL('http://localhost:3000', {
@@ -92,7 +92,7 @@ await loadURL('http://localhost:3000', {
92
92
  Create a new Craft app instance.
93
93
 
94
94
  ```ts
95
- import { createApp } from '@stacksjs/ts-craft'
95
+ import { createApp } from '@craft-native/craft'
96
96
 
97
97
  const app = createApp({
98
98
  html: '<h1>Hello</h1>', // HTML content
@@ -113,7 +113,7 @@ await app.show()
113
113
  Quick helper to show a window with HTML.
114
114
 
115
115
  ```ts
116
- import { show } from '@stacksjs/ts-craft'
116
+ import { show } from '@craft-native/craft'
117
117
 
118
118
  await show('<h1>Hello World</h1>', {
119
119
  title: 'My App',
@@ -127,7 +127,7 @@ await show('<h1>Hello World</h1>', {
127
127
  Quick helper to load a URL.
128
128
 
129
129
  ```ts
130
- import { loadURL } from '@stacksjs/ts-craft'
130
+ import { loadURL } from '@craft-native/craft'
131
131
 
132
132
  await loadURL('http://localhost:3000', {
133
133
  title: 'Dev Server',
@@ -169,7 +169,7 @@ Craft supports menubar/system tray apps with or without a popup window.
169
169
  ### Menubar with Popup Window
170
170
 
171
171
  ```ts
172
- import { createApp } from '@stacksjs/ts-craft'
172
+ import { createApp } from '@craft-native/craft'
173
173
 
174
174
  const app = createApp({
175
175
  html: `<h1>Pomodoro Timer</h1>`,
@@ -287,7 +287,7 @@ Craft includes pre-built CSS styles for three popular sidebar designs:
287
287
  ### Tahoe Style (macOS Finder)
288
288
 
289
289
  ```ts
290
- import { tahoeStyles, renderTahoeSidebar, tahoeDemoData } from '@stacksjs/ts-craft'
290
+ import { tahoeStyles, renderTahoeSidebar, tahoeDemoData } from '@craft-native/craft'
291
291
 
292
292
  // Use Tailwind classes
293
293
  const sidebar = `<div class="${tahoeStyles.sidebar}">...</div>`
@@ -299,7 +299,7 @@ const html = renderTahoeSidebar(tahoeDemoData)
299
299
  ### Arc Style (Arc Browser)
300
300
 
301
301
  ```ts
302
- import { arcStyles, renderArcSidebar, arcDemoData } from '@stacksjs/ts-craft'
302
+ import { arcStyles, renderArcSidebar, arcDemoData } from '@craft-native/craft'
303
303
 
304
304
  // Gradient pills, collapsible sections
305
305
  const html = renderArcSidebar(arcDemoData, false) // collapsed = false
@@ -308,7 +308,7 @@ const html = renderArcSidebar(arcDemoData, false) // collapsed = false
308
308
  ### OrbStack Style (Minimal Dark)
309
309
 
310
310
  ```ts
311
- import { orbstackStyles, renderOrbStackSidebar, orbstackDemoData } from '@stacksjs/ts-craft'
311
+ import { orbstackStyles, renderOrbStackSidebar, orbstackDemoData } from '@craft-native/craft'
312
312
 
313
313
  // Dark #1a1a1a theme with status indicators
314
314
  const html = renderOrbStackSidebar(orbstackDemoData)
@@ -388,7 +388,7 @@ See [benchmarks](../../benchmarks) for detailed performance comparisons.
388
388
 
389
389
  ```bash
390
390
  # Clone the monorepo
391
- git clone https://github.com/stacksjs/craft
391
+ git clone https://github.com/home-lang/craft
392
392
  cd craft
393
393
 
394
394
  # Install dependencies
@@ -415,7 +415,7 @@ MIT © [Chris Breuer](https://github.com/chrisbbreuer)
415
415
 
416
416
  ## Links
417
417
 
418
- - [Documentation](https://github.com/stacksjs/craft#readme)
418
+ - [Documentation](https://github.com/home-lang/craft#readme)
419
419
  - [Examples](../examples-ts)
420
420
  - [Benchmarks](../../benchmarks)
421
- - [Issues](https://github.com/stacksjs/craft/issues)
421
+ - [Issues](https://github.com/home-lang/craft/issues)
package/dist/index.js CHANGED
@@ -8594,7 +8594,7 @@ class CraftApp {
8594
8594
  } else if (error.code === "ENOENT") {
8595
8595
  errorMessage.push("Binary not found or not executable.", "Ensure Craft core is built:", " bun run build:core");
8596
8596
  } else {
8597
- errorMessage.push("For troubleshooting, visit:", " https://github.com/stacksjs/craft/issues");
8597
+ errorMessage.push("For troubleshooting, visit:", " https://github.com/home-lang/craft/issues");
8598
8598
  }
8599
8599
  reject(new Error(errorMessage.join(`
8600
8600
  `)));
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@craft-native/craft",
3
- "version": "0.0.8",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "description": "Build desktop apps with web languages - TypeScript SDK for Craft",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/stacksjs/craft#readme",
8
+ "homepage": "https://github.com/home-lang/craft#readme",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/stacksjs/craft.git",
11
+ "url": "git+https://github.com/home-lang/craft.git",
12
12
  "directory": "packages/typescript"
13
13
  },
14
14
  "bugs": {
15
- "url": "https://github.com/stacksjs/craft/issues"
15
+ "url": "https://github.com/home-lang/craft/issues"
16
16
  },
17
17
  "keywords": [
18
18
  "desktop",