thrust 是基于 Chromium 的跨平台、跨语言应用程序框架 。
NodeJS
通过 npm install node-thrust:
npm install node-thrust:
require('node-thrust')(function(err, api) { api.window({ root_url: 'https://breach.cc' }).show(); });
库:
Go
通过 go get -u github.com/miketheprogrammer/go-thrust/:
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() }
库
Python
通过 pip3 install pythrust [--user] (要求 Python3):
pip3 install pythrust [--user]
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()
[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 +------------+ +--------------+ # +-----------------------+ | #