# orion

> An Eclipse Orion server written in Node.js.

Latest version **20.0.0** (published 2019-03-29) · EPL-1.0 license · 0 weekly downloads

## Install

```sh
npm install orion
pnpm add orion
yarn add orion
bun add orion
```

Provides the command `orion`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 20.0.0 |
| Published | 2019-03-29 |
| First published | 2012-11-22 |
| Weekly downloads | 0 |
| License | EPL-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^6.11.1 |
| Dependencies | 49 |
| Unpacked size | 58.5 MB |
| Known vulnerabilities | 0 (+31 in 10 direct dependencies) |
| Install scripts | no |
| GitHub stars | 222 |
| Author | Orion contributors |
| Maintainers | gheorghe, libingw, mamacdon, mrennie, soulbeing |
| Keywords | orion, eclipse, ide |

## Links

- npm: https://www.npmjs.com/package/orion
- Repository: https://github.com/eclipse/orion.client
- Homepage: http://eclipse.org/orion/
- Issues: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&component=Node
- npm.io page: https://npm.io/package/orion

## Dependencies (49)

- [diff](https://npm.io/package/diff.md) ^3.1.0
- [mime](https://npm.io/package/mime.md) ^1.3.4
- [async](https://npm.io/package/async.md) ^0.9.0
- [csurf](https://npm.io/package/csurf.md) ^1.9.0
- [https](https://npm.io/package/https.md) ^1.0.0
- [nconf](https://npm.io/package/nconf.md) ^0.9.1
- [xterm](https://npm.io/package/xterm.md) ^2.3.2
- [yauzl](https://npm.io/package/yauzl.md) ^2.8.0
- [fs-ext](https://npm.io/package/fs-ext.md) ^1.0.0
- [log4js](https://npm.io/package/log4js.md) ^2.3.11
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ~2.2.6
- [semver](https://npm.io/package/semver.md) ^5.3.0
- [express](https://npm.io/package/express.md) ^4.13.3
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.6.1
- [mongodb](https://npm.io/package/mongodb.md) ^2.1.7
- [nodegit](https://npm.io/package/nodegit.md) 0.19.0
- [request](https://npm.io/package/request.md) ^2.69.0
- [archiver](https://npm.io/package/archiver.md) ^0.21.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.3.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.26.7
- [lockfile](https://npm.io/package/lockfile.md) ^1.0.1
- [mongoose](https://npm.io/package/mongoose.md) ^4.4.6
- [passport](https://npm.io/package/passport.md) ^0.3.2
- [socket.io](https://npm.io/package/socket.io.md) ~2.0.3
- [basic-auth](https://npm.io/package/basic-auth.md) ^1.0.3
- [multiparty](https://npm.io/package/multiparty.md) ^4.1.2
- [nodemailer](https://npm.io/package/nodemailer.md) ^2.3.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.15.0
- [compression](https://npm.io/package/compression.md) ^1.6.0
- [cron-parser](https://npm.io/package/cron-parser.md) ^2.4.4
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.11
- [tiny-worker](https://npm.io/package/tiny-worker.md) ^1.1.4
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^7.2.0
- [connect-mongo](https://npm.io/package/connect-mongo.md) ^2.0.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.1
- [response-time](https://npm.io/package/response-time.md) ^2.3.2
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [app-module-path](https://npm.io/package/app-module-path.md) ^2.2.0
- [express-session](https://npm.io/package/express-session.md) ^1.13.0
- [google-protobuf](https://npm.io/package/google-protobuf.md) ^3.0.0-alpha.6.2
- [yaml-ast-parser](https://npm.io/package/yaml-ast-parser.md) 0.0.28
- [graceful-cluster](https://npm.io/package/graceful-cluster.md) 0.0.5
- [passport-github2](https://npm.io/package/passport-github2.md) ^0.1.10
- [generate-password](https://npm.io/package/generate-password.md) ^1.1.1
- [passport-google-oauth20](https://npm.io/package/passport-google-oauth20.md) ^1.0.0
- [passport-local-mongoose](https://npm.io/package/passport-local-mongoose.md) ^4.0.0
- [passport-local-mongoose-email](https://npm.io/package/passport-local-mongoose-email.md) ^0.1.2
- [lru-cache-for-clusters-as-promised](https://npm.io/package/lru-cache-for-clusters-as-promised.md) ^1.5.15

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 20.0.0 (latest) — 2019-03-29
- 19.0.0 — 2018-08-17
- 17.0.0 — 2018-01-11
- 16.2.0 — 2018-01-08
- 16.1.0 — 2017-10-17
- 16.0.0 — 2017-10-04
- 15.9.0 — 2017-09-29
- 15.2.0 — 2017-07-27
- 14.3.0 — 2017-04-11
- 0.0.101 — 2016-05-14
- 0.0.100 — 2016-05-11
- 0.0.38 — 2015-10-13
- 0.0.37 — 2015-08-05
- 0.0.36 — 2015-02-27
- 0.0.35 — 2015-02-12
- … 31 more at https://npm.io/package/orion/versions

## README

# Orion
[![Build Status](https://travis-ci.org/eclipse/orion.client.svg?branch=master)](https://travis-ci.org/eclipse/orion.client) [![Coverage Status](https://coveralls.io/repos/github/eclipse/orion.client/badge.svg?branch=master)](https://coveralls.io/github/eclipse/orion.client?branch=master) [![NPM version](https://img.shields.io/npm/v/orion.svg)](https://npmjs.org/package/orion)

A minimal, single-user deployment of [Eclipse Orion](http://www.eclipse.org/orion/). Orion provides an extensible IDE that runs in your browser. It's particularly good for writing Javascript.

## Features
* Basic file management
* Source code editing
* Install plugins to customize your environment
* User preferences
* Git support based on [nodegit](http://www.nodegit.org/)
* Multi-user support (optional, requires MongoDB)

## Usage
For full instructions, see the [Getting Started guide](https://wiki.eclipse.org/Orion/Node/Getting_started).

## Installation
* To install the built server run `npm install orion`.
* Alternatively, you can install from source by checking out the repo from [GitHub](https://github.com/eclipse/orion.client)
and then running `cd modules/orionode && npm install`.
* Orion has an optional dependency on the node-pty package, which is not installed by default. You can install this package with `npm install node-pty`.  If this package is not installed then an error message will be displayed when the server is run, but will still run fine.

#### Nodegit Installation
During the installation from [NPM](https://www.npmjs.com/package/orion), Nodegit will try to find binaries for your installed version of Node.js / operating system. If it has them, they will be downloaded and the installation will complete normally.
If however, it does not have a pre-built version ready to go, Nodegit will start up its builder to try and create the binaries it requires. Depending on your operating system and build-time tools you have installed, this will complete normally and everything will work fine. 
If you are missing build tools that it needs to build its binaries, the install will fail.

If your build / install does fail, please read [Nodegits' build page](http://www.nodegit.org/guides/install/from-source/) to make sure you have all the expected tools installed and try running ```npm install orion``` again.

### Running the server
1. Browse to the directory where you installed Orion, usually `node_modules/orion/`.
2. Edit the `orion.conf` file. Uncomment the following line, replacing the password with something of your choice:
  ```
  pwd=[secretpassword]
  ```
  This prevents unauthorized access to your Orion server.

3. Run `npm start orion` or `node [node_modules]/orion/server.js`.
4. Go to **[http://localhost:8081](http://localhost:8081)** to use Orion. You will be prompted with a basic auth dialog; enter the password you chose earlier (leave the user name blank).

The port number can be changed by passing the `--port` argument or setting the `PORT` environment variable.

### Global installation
If you installed Orion as a global package with `npm install -g orion`, you can run the command `orion` from any directory (rather than `npm start orion` as outlined above.)
Orion will then start using your current directory (or a directory you specify on the command  line) as the location.
See the [Getting Started guide](https://wiki.eclipse.org/Orion/Node/Getting_started#Using_a_global_installation_of_Orionode) for more details.

### Multi-user server
By default the server runs in single-user mode. Set `orion.single.user=false` in the `orion.conf` file
to enable multiple users. This requires a MongoDB installation.

#### Known Git issues
* Cloning repos using the SSH protocol (`ssh://`) will not work out of the box due to a [Nodegit issue](https://github.com/nodegit/nodegit/pull/763).
  You can work around this by editing `vendor/libgit2.gyp`, obtaining a newer version of OpenSSL, and then rebuilding Nodegit from source.

### Using Orion within a larger app
Use `require('orion')` to get access to our startServer function, which is suitable for use within a larger [Express](http://expressjs.com/) project:

```js
var orion = require('orion');
var express = require('express');
var myapp = express()
			.use(orion({ workspaceDir: '.myworkspace' }))
			/* .use( additional handlers ) */
```

### Running the tests
We use [Mocha](https://github.com/visionmedia/mocha) for our tests. Run `npm test` or `mocha`.

## License
Dual-licensed under the [Eclipse Public License v1.0](http://www.eclipse.org/legal/epl-v10.html) and the [Eclipse Distribution License v1.0](http://www.eclipse.org/org/documents/edl-v10.html).

---
_Source: https://npm.io/package/orion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
