AppJS

(弃用!)基于nodejs的SDK,使用HTML5/CSS/JS构建桌面应用。「(Deprecated!) SDK on top of nodejs to build desktop apps using HTML5/CSS/JS」

  • Owner: appjs/appjs
  • Platform: Linux, Mac, Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

注意事项

AppJS 项目已经有好几个月没有积极开发了。然而项目的所有权现在已经发生了变化,并且正在讨论未来的发展。

一个分支项目 deskshell 一直在非常积极地开发。它是一个基于 javascript 的 SDK,用于构建应用程序,使用现成的 nodejs 和 chromium 来构建 html5/css/js 应用程序。

未来可能会涉及到 appjs 能够独立运行或作为 deskshell 的前端。请在我们的邮件列表中参与讨论:https://groups.google.com/forum/#!forum/appjs-dev

AppJS

AppJS 是一个使用 Node.js 与 Chromium 融合开发桌面应用程序的 SDK。通过 AppJS,您可以使用与网站建设相同的库和知识来开发桌面工具和应用程序。您可以在一个包中获得以下所有内容。

  • 由 Chromium 提供的 JS、HTML5、CSS、SVG、WebGL。
  • 成熟的 http/https 服务器和客户端 API -- Node。
  • 文件系统,DNS,密码学,子进程,操作系统 API -- Node。
  • 沙盒式代码执行环境虚拟机 -- Node
  • 用于将本机 C++ 绑定到 JavaScript 的工具 -- Node。


30秒快速启动

下面的包包含了开始使用 AppJS 所需的一切,包括 Node.js、所有的依赖项、二进制文件和一个准备好的启动器。1.) 解压到一个文件夹。2.) 双击启动。3.) Hello World。

AppJS 0.0.20 可分发:

npm install OS X 安装目前已损坏。

现在可以通过 npm 安装 AppJS。

npm install appjs

AppJS 在 OS X 上需要 32 位的 Node。在 64 位 OS X 上可以工作,但 Node 必须是 32 位的。我们正在努力解决这个问题,但这是 Chrome 浏览器本身的限制,所以还在进行中。启动这个 chromium 问题,帮助我们获得动力。

(Windows 需要 MSVC++ 2010 运行时

一分钟使用概述

var app = module.exports = require('appjs');

app.serveFilesFrom(__dirname + '/content');

var window = app.createWindow({
  width  : 640,
  height : 460,
  icons  : __dirname + '/content/icons'
});

window.on('create', function(){
  console.log("Window Created");
  window.frame.show();
  window.frame.center();
});

window.on('ready', function(){
  console.log("Window Ready");
  window.require = require;
  window.process = process;
  window.module = module;
  window.addEventListener('keydown', function(e){
    if (e.keyIdentifier === 'F12') {
      window.frame.openDevTools();
    }
  });
});

window.on('close', function(){
  console.log("Window Closed");
});

许可证

MIT许可证
版权所有 (c) 2012 AppJS 作者
详见LICENSE文件。


(The first version translated by vz on 2020.09.26)

Main metrics

Overview
Name With Ownerappjs/appjs
Primary LanguageC++
Program languagePython (Language Count: 6)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2012-03-28 10:01:56
Pushed At2016-05-01 09:27:13
Last Commit At2014-12-11 21:09:40
Release Count0
用户参与
Stargazers Count3.4k
Watchers Count216
Fork Count352
Commits Count690
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count33
Pull Requests Open Count1
Pull Requests Close Count18
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Attention

AppJS project has not been actively developed for several months. However ownership of the project has now changed
and the future is being discussed.

An offshoot project deskshell has been very actively developed.
It is a javascript based SDK for building applications that uses an off the shelf nodejs and chromium to
build html5 / css / js applications.

The future will probably involve appjs being able to be run stand alone or as a frontend to deskshell. Please contribute
to the discussions on our mailing list: https://groups.google.com/forum/#!forum/appjs-dev

AppJS

AppJS is an SDK to develop desktop applications using Node.js melded with Chromium. With AppJS you can develop desktop tools and applications using the same libraries and knowledge used to build websites. You get all the following in one package:

  • JS, HTML5, CSS, SVG, WebGL provided by Chromium
  • mature http/https servers and client APIs - Node
  • filesystem, dns, cryptography, subprocesses, OS APIs - Node
  • sandboxed code execution environments virtual machines - Node
  • tools for exposing native C++ bindings to JavaScript- Node

30 Second Quickstart

The below packages include everything needed to get started with AppJS, including Node.js, all dependencies, binaries, and a launcher ready to go out of the box. 1.) Extract to a folder. 2.) Double click on launch. 3.) Hello World.

AppJS 0.0.20 Distributables:

npm install
OS X install is currently broken

AppJS can be now be installed via npm.

npm install appjs

AppJS requires 32bit Node on OS X. It works on 64bit OS X but Node must be 32bit. We're working on solving this, but it's a limitation of Chrome itself so it's a work in progress.
Help us gain traction by starring this chromium issue.

(Windows requires MSVC++ 2010 runtimes)

One Minute Usage Overview

var app = module.exports = require('appjs');

app.serveFilesFrom(__dirname + '/content');

var window = app.createWindow({
  width  : 640,
  height : 460,
  icons  : __dirname + '/content/icons'
});

window.on('create', function(){
  console.log("Window Created");
  window.frame.show();
  window.frame.center();
});

window.on('ready', function(){
  console.log("Window Ready");
  window.require = require;
  window.process = process;
  window.module = module;
  window.addEventListener('keydown', function(e){
    if (e.keyIdentifier === 'F12') {
      window.frame.openDevTools();
    }
  });
});

window.on('close', function(){
  console.log("Window Closed");
});

Shared Contexts

chrome-in-node-repl

DOM Event Listener in Node

License

The MIT License

Copyright (c) 2012 The AppJS Authors

See the LICENSE file for details.