murasaki 0.0.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/LICENSE +21 -0
- package/README.md +99 -0
- package/package.json +30 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ichi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Murasaki ðĢ
|
|
2
|
+
|
|
3
|
+
> The desktop framework for Next.js developers.
|
|
4
|
+
> Node-powered. WebView-thin. No Rust. No Chromium.
|
|
5
|
+
|
|
6
|
+
Murasaki lets you build desktop apps with the **Next.js DX you already know**,
|
|
7
|
+
on top of **Node.js you already use**, rendered through the **OS WebView
|
|
8
|
+
that's already on your machine** â no 150MB Chromium, no Rust.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm create murasaki@latest my-app
|
|
12
|
+
cd my-app
|
|
13
|
+
npm run dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
// app/page.tsx
|
|
18
|
+
'use client'
|
|
19
|
+
|
|
20
|
+
import { useClipboard, useNotification } from 'murasaki/native'
|
|
21
|
+
|
|
22
|
+
export default function Home() {
|
|
23
|
+
const { copy } = useClipboard()
|
|
24
|
+
const { show } = useNotification()
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<button onClick={async () => {
|
|
28
|
+
await copy('hello from murasaki')
|
|
29
|
+
show({ title: 'Copied!' })
|
|
30
|
+
}}>
|
|
31
|
+
Copy
|
|
32
|
+
</button>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
That's it. Your Next.js app is now a desktop app. ~15MB binary.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Why Murasaki?
|
|
42
|
+
|
|
43
|
+
| | **Murasaki** | Electron | Tauri | NW.js |
|
|
44
|
+
| ------------------- | -------------- | -------- | ---------- | ----- |
|
|
45
|
+
| Language | TypeScript | Node | Rust + JS | Node |
|
|
46
|
+
| Binary size | **~15MB** | ~150MB | ~5MB | ~150MB|
|
|
47
|
+
| Rendering | OS WebView | Chromium | OS WebView | Chromium |
|
|
48
|
+
| Runtime | **Node.js** | Node.js | Rust | Node.js |
|
|
49
|
+
| Next.js integration | **â
â
â
native** | â
â
| â
via SSG | â
|
|
|
50
|
+
|
|
51
|
+
Murasaki is the only framework that combines:
|
|
52
|
+
|
|
53
|
+
- ðĒ **Node.js you already know** (npm, package.json, async/await)
|
|
54
|
+
- ðŠķ **Tauri-style lightweight** (OS WebView, no Chromium bundle)
|
|
55
|
+
- ⥠**Next.js App Router** (RSC, Server Actions, file-based routing)
|
|
56
|
+
- ðŠ **Type-safe React hooks** for native APIs
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Architecture
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
âââââââââââââââââââââââââââââââââââââââ
|
|
64
|
+
â Your Next.js App â â App Router, RSC, Server Actions
|
|
65
|
+
âââââââââââââââââââââââââââââââââââââââĪ
|
|
66
|
+
â Murasaki Native Hooks (React) â â useClipboard, useNotification, etc.
|
|
67
|
+
âââââââââââââââââââââââââââââââââââââââĪ
|
|
68
|
+
â Murasaki Runtime (Node.js) â â IPC bridge, window lifecycle
|
|
69
|
+
âââââââââââââââââââââââââââââââââââââââĪ
|
|
70
|
+
â OS Native WebView â â WebView2 / WKWebView / WebKitGTK
|
|
71
|
+
âââââââââââââââââââââââââââââââââââââââ
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
No Chromium. No Rust. No new runtime. Just Node + the WebView your OS ships with.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## What's NOT in Murasaki
|
|
79
|
+
|
|
80
|
+
- â **A new runtime** â Node.js is the runtime
|
|
81
|
+
- â **A Chromium bundle** â uses the OS WebView
|
|
82
|
+
- â **Native widgets** â your UI is HTML/CSS/React in a WebView
|
|
83
|
+
- â **Mobile** (yet) â desktop only for v0.x
|
|
84
|
+
|
|
85
|
+
If you want sub-MB binaries â Tauri.
|
|
86
|
+
If you want guaranteed cross-platform consistency â Electron.
|
|
87
|
+
If you want native widgets â Wails / NodeGui.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Status
|
|
92
|
+
|
|
93
|
+
ðą **Pre-alpha**. v0.1 targeted for 2026 Q4.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## License
|
|
98
|
+
|
|
99
|
+
MIT.
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "murasaki",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "The desktop framework for Next.js developers. Node-powered. WebView-thin. No Rust. No Chromium.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"desktop",
|
|
7
|
+
"framework",
|
|
8
|
+
"nextjs",
|
|
9
|
+
"react",
|
|
10
|
+
"node",
|
|
11
|
+
"webview",
|
|
12
|
+
"tauri-alternative",
|
|
13
|
+
"electron-alternative"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/murasakijs/murasaki",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/murasakijs/murasaki.git"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/murasakijs/murasaki/issues"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "ichi",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
]
|
|
30
|
+
}
|