Technical Documentation: os-js/OS.js
โน๏ธ Provenance: In-Tree Documentation (7 Chapters) ยท CodeWiki Reference ยท Recency: Active (< 180 days)
File: README.md
OS.js
OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
Backing/Donations:
Github sponsorship,
Patreon,
OpenCollective,
LibrePay,
PayPal,
Bitcoin
Support:
Chat,
Forums,
Twitter,
Facebook
Introduction
This is the OS.js base repository that you can use as a template to make your own distributions, installations and development environments.
Try it yourself
Visit the official demo for a preview version. Please note that some features are disabled and might be outdated or unavailable at times.
Documentation
See the official manuals for articles, tutorials and guides.
There's also a contribution guide if you want to contribute to this project.
Installation
OS.js runs on
http://localhost:8000by default.
Using a pre-made image
You can use the official Docker base image to run OS.js without downloading this repository.
This image is based on this source code and comes with a minimal setup.
docker run -p 8000:8000 osjs/osjs:latestUsing this repository
Clone the master branch:
You can also download an archived version (ex. zip file) instead of using git.
git clone -b master --single-branch https://github.com/os-js/OS.js.git
cd OS.jsDocker Compose installation
The easiest way to install is to use Docker Compose. This allows you to run a single command
to set everything up:
docker-compose upLocal installation
You can also install this directly onto your system by using the following set of commands.
NOTE: Requires Node v10 (or later. node 17 not currently supported without workaround).
# Install dependencies
npm install
# It's recommended that you update dependencies
npm update
# Optionally install extra packages:
# For a list of packages, see https://manual.os-js.org/resource/official/
npm install @osjs/example-application
# Discover installed packages
npm run package:discover
# Build client
npm run build
# Start serving
npm run serveFile: CONTRIBUTING.md
Contributing
If you want to contribute, but not sure what to do, here's a list of things that I always need help with:
- Translations
- Bug-hunting
- Finding security problems
- Themes and general graphics
- Website design (like the homepage and manuals)
- Documentation
If you need help, or just up for some general discussion, head into the community forums or community chat.
See manual for more information.
You can view all open issues on github, which is usually a good starting point if you want to start contributing:
https://github.com/search?q=org%3Aos-js+is%3Aopen+is%3Aissue+archived%3Afalse&type=Issues
Support
You can also donate or become a patreon, which helps out covering server costs and potentially make it possible to put out bounties:
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Donate via Liberapay
- Donate via PayPal
Or via Bitcoin: bc1q8wd9e9xlppr7nft09n4guz89j0cp9gepl606s0
Members
If you are a member of the official OS.js developer Team:
File: docker-compose.yml
OS.js - JavaScript Cloud/Web Desktop Platform
Copyright (c) 2011-2020, Anders Evenrud
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@author Anders Evenrud
@licence Simplified BSD License
THIS IS ONLY INTENDED FOR DEVELOPMENT USAGE
version: '3'
services:
osjs:
user: node
build:
context: .
volumes:
- .:/usr/src/osjs
ports:
- "${OSJS_NODE_PORT:-8000}:8000"
File: package.json
{
"name": "@osjs/osjs",
"version": "3.1.12",
"description": "OS.js",
"main": "index.js",
"scripts": {
"test": "npm run eslint && npm run stylelint",
"eslint": "eslint 'src/client//*.js' 'src/server//.js'",
"stylelint": "stylelint 'src/client/.scss'",
"serve": "node src/server/index.js",
"build:manifest": "osjs-cli package:discover",
"package:discover": "osjs-cli package:discover",
"package:create": "osjs-cli package:create",
"make:auth": "osjs-cli make:auth",
"make:settings": "osjs-cli make:settings",
"make:vfs": "osjs-cli make:vfs",
"make:application": "osjs-cli make:application",
"make:iframe-application": "osjs-cli make:iframe-application",
"make:provider": "osjs-cli make:provider",
"build": "webpack",
"watch": "webpack --watch"
},
"keywords": [
"osjs"
],
"author": "Anders Evenrud [email protected]",
"license": "BSD-2-Clause",
"devDependencies": {
"@osjs/dev-meta": "^2.1.0",
"html-webpack-plugin": "^3.2.0",
"source-map-loader": "^0.2.4"
},
"dependencies": {
"@osjs/calculator-application": "^1.2.8",
"@osjs/cli": "^3.1.3",
"@osjs/client": "^3.7.1",
"@osjs/dialogs": "^3.1.0",
"@osjs/draw-application": "^1.2.12",
"@osjs/filemanager-application": "^1.6.2",
"@osjs/freedesktop-sounds": "^3.0.3",
"@osjs/gnome-icons": "^4.0.5",
"@osjs/gui": "^4.0.36",
"@osjs/htmlviewer-application": "^1.2.6",
"@osjs/musicplayer-application": "^1.2.8",
"@osjs/panels": "^3.0.31",
"@osjs/preview-application": "^1.1.17",
"@osjs/server": "^3.2.3",
"@osjs/settings-application": "^1.1.8",
"@osjs/standard-theme": "^4.0.9",
"@osjs/textpad-application": "^1.2.7",
"hyperapp": "^1.2.10",
"typeface-roboto": "0.0.75"
},
"repository": {
"type": "git",
"url": "git+https://github.com/osjs/OS.js.git"
},
"bugs": {
"url": "https://github.com/osjs/OS.js/issues"
},
"homepage": "https://www.os-js.org",
"engines": {
"node": ">=10.0.0"
},
"eslintConfig": {
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"extends": "@osjs/eslint-config"
},
"stylelint": {
"extends": "@osjs/stylelint-config"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{}
]
],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
}
File: .github/FUNDING.yml
These are supported funding model platforms
github: andersevenrud
patreon: andersevenrud
open_collective: osjs
liberapay: os-js
custom: https://paypal.me/andersevenrud
File: .github/workflows/node.yml
name: Node tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
version: [12, 13, 14, 15, 16]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm run package:discover
- run: npm run build
File: .github/workflows/test.yml
name: Lint tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Lint tests (node latest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '13.x'
- run: npm install
- run: npm run eslint
- run: npm run stylelint
--- METRICS ---
- Files Extracted: 7
- Estimated Token Budget: ~2628 tokens
- Recency Window: Active (< 180 days)
- Canonical Reference: https://codewiki.google/github.com/os-js/OS.js