Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@onlabsorg/olowiki

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onlabsorg/olowiki

Wiki based on olojs documents

  • 0.18.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

oloWiki

This is a wiki based on olojs documents. See the Zion implementation for a live demo.


view mode (Screenshot of olowiki in view mode)


edit mode with menus (Screenshot of olowiki in edit mode)


Olowiki can be used in two ways:

  • By adding oloWiki to stilo as plugin and execute stilo run wiki or stilo run wiki-build at the command line
  • By creating an oloWiki HTTP server via JavaScript

Let's explore each of these options.

The stilo plugin: dynamic wiki

You can install olowiki as stilo plugin and use it to edit your local olojs repository in the browser. To do so, first you need to install stilo and create a document repository:

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

Then you can add the olowiki plugin to your package:

stilo install @onlabsorg/olowiki

Once olowiki is installed, you can serve the library as follows:

stilo run wiki

You can now render and edit the olojs documents contained in /path/to/home in the browser at http://localhost:8010/#/path/to/doc.

The stilo plugin: static wiki

An alternative way to serve your files via olo-wiki is given by the stilo plugin command stilo run wiki-build [dir-path]. This command will create a static version of olo-wiki in the given directory; you can then start any static http server in that directory and serve its content via olo-wiki.

cd /path/to/dir
stilo run wiki-build .
python -m http.server 8010

Create a custom oloWiki server

Another way to use olowiki is by creating a custom wiki server in JavaScript. First install olojs and olowiki:

npm install @onlabsorg/olojs
npm install @onlabsorg/olowiki

Then create an olojs store:

olo = require('@onlabsorg/olojs');
store = new olo.FileStore('/path/to/store/directory');    // it can be any store type, not just a FileStore

Then create and start the olowiki server:

olowiki = require('@onlabsorg/olowiki');

server = olowiki.Server(store);

server.listen(8010, () => {
    console.log('oloWiki server listening on port 8010');
});

You can now render and edit the olojs documents contained in /path/to/store/directory in the browser at http://localhost:8010/#/path/to/doc.

License

This software is released under the ISC license.

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

Keywords

FAQs

Package last updated on 14 Feb 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc