Socket
Book a DemoInstallSign in
Socket

@onlabsorg/oloviewer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onlabsorg/oloviewer

A HTTP client and Stilo plugin for rendering olojs documents in the browser.

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

oloViewer

This package has been discontinued, since now olowiki supports static content and can act as a viewer.

This is a web client that renders olojs documents in the browser. You can either use it via the NodeJS API or as a stilo plugin.

Use oloViewer via the NodeJS API

Install olojs and oloViewer via npm:

npm install @onlabsorg/olojs
npm install @onalbsorg/oloviewer

Create an olojs store to be serverd:

olo = require('@onlabsorg/olojs');
store = new olo.FileStore(`/path/to/home`);

Create and start an oloViewer server:

{Server} = require('@onlabsorg/oloviewer');
server = Server(store);
server.listen(8010);

Use oloViewer as stilo plugin

Install stilo and initialize a repository:

npm install -g @onlabsorg/stilo 
cd /path/to/home
stilo init

Install and start the viewer plugin:

stilo install @onlabsorg/oloviewer
stilo run viewer

Render a document in the browser

Once you have an oloViewer server listening (say to port 8010), you can render the documents of the served store in the browser at the following URL:

http://localhost:8010/#/path/to/doc

Optionally you can pass a query string after the path (e.g. #/path/to/doc?key1=val1&key2=val2&key3=val2). In that case, the keys-value pairs contained in the query string will be available to the document scope under the __query__ namespace.

License

This software is released under the MIT license.

  • stilo is a command-line interface written in NodeJS that allows you to create and mange local olojs document repositories.
  • olojs is a distributed content management system

FAQs

Package last updated on 12 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.