thrust breach - 跨平台应用框架
MIT
跨平台
C/C++
软件简介
thrust 是基于 Chromium 的跨平台、跨语言应用程序框架
。
语言绑定:
NodeJS
通过 npm install node-thrust:
require('node-thrust')(function(err, api) {
api.window({ root_url: 'https://breach.cc' }).show();
});
库:
- node-thrust breach/node-thrust
Go
通过 go get -u github.com/miketheprogrammer/go-thrust/:
package mainimport ( "github.com/miketheprogrammer/go-thrust/dispatcher"
"github.com/miketheprogrammer/go-thrust/spawn"
"github.com/miketheprogrammer/go-thrust/window")func main() {
spawn.Run() thrustWindow := window.NewWindow("http://breach.cc/", nil)
thrustWindow.Show()
thrustWindow.Maximize()
thrustWindow.Focus()
dispatcher.RunLoop()
}
库
- go-thrust : miketheprogrammer/go-thrust
Python
通过 pip3 install pythrust [--user]
(要求 Python3):
import asyncio, pythrust
loop = asyncio.get_event_loop()
api = pythrust.API(loop)
asyncio.async(api.spawn())
asyncio.async(api.window({ 'root_url': 'http://breach.cc' }).show())
loop.run_forever()
库
- pythrust breach/pythrust
架构:
[Thurst Architecture]
(Platform) [stdio] (Your Implementation)
#
+--------------+ # +-----------------------+ |
| Cocoa / Aura | # +---| win3: (HTML/JS) | |
+-------+------+ # | +-----------------------++ |
| # +--| win2: (HTML/JS) | | cli
+------------+ +-------+------+ # | +-----------------------++ |
| +-+ thrust (C++) +-------+-+ win1: (HTML/JS) | |
| ContentAPI | +-------+------+ # +-----------------------+ |
| | | # | (TCP/FS)
| (Blink/v8) | +-------+------+ # +-----------------------+ |
| | + JSON RPC srv +---------+ Client App (any Lang) | | srv
+------------+ +--------------+ # +-----------------------+ |
#