Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
orator-wiki
Advanced tools
Wiki content server and basic web Content Management System. Flexible enough to scale into various documentation and learning property uses. Stores structured content in Markdown format.
You can see the content management system "work" without any style by downloading this git repository, then:
npm install
npm run serve
Which will start a basic web server on port 7000, and serve the simplest HTML possible. The wiki content is served from an adjacent folder. The markdown is in Site/Content
by default and the actual web page/dependencies is in Site/Html
.
The expectation for using this is that it will be extended. You will want to create a node.js project of your own, and include this as a dependency.
npm init
from the empty folder you want a project innpm install orator --save
from your project foldernpm install orator-wiki --save
from your project foldermkdir Html
and mkdir Content
from within your project foldercp -R node_modules/orator-wiki/Site/Html/* Html/
from within your project foldercp -R node_modules/orator-wiki/Site/Content/* Content/
from within your project foldertouch MyServer.js
from within your project folderLaunch your favorite text editor and put something like this in your MyServer.js file:
var libOrator = require('orator').new(
{
Product: 'MyContentServer',
ProductVersion: require(__dirname+'/package.json').version,
"APIServerPort": 7777,
WikiContentFolder: __dirname+'/Content/',
StaticContentFolder:__dirname+'/Html/'
});
var libOratorWiki = require('./Orator-Wiki.js').new(libOrator);
libOratorWiki.initializeEndpoints();
libOrator.startWebServer();
Then you can start the server by running the following command in your project folder:
node MyServer.js
After that, a browser pointed to (http://localhost:7777) on the machine you run the server from should open a really basic, unstyled wiki content editor.
You can start to make changes to the Html folder to alter how the site looks, and changes to the Content folder to expand on the content. Markdown will be automatically turned into html by the browser when it is in the Content folder, and binaries will serve properly.
Feel free to go nuts adding other Javascript and CSS libraries, but the ones in the page need to stay for the basic wiki functionality to work. The bundled marked library is stock, but the orator-wiki.js web file adds a layer to it for parsing out wiki text.
To link to other articles in the Content folder, you just use a basic mustache wiki syntax:
{MyDocumentTitle}
points to the MyDocumentTitle.md
file in your content folder.{Some/Path/AppleRecipe}
points to the Some/Path/AppleRecipe.md
file in the content folder.You may wish to use different text for links, which can be done with a pipe:
{Process/Devs|My Tasks}
points to the Process/Devs.md
file in the content folder, but displays the link text as My Tasks
in the browser.{}
If you want to get very fancy, you can create links that automatically scroll to a specific point in the content. This is done with a third datapart in the wiki link:
{Process/Devs|Workboard Flow and Process>workboard-flow-and-process}
points to the Process/Devs.md
file in the content folder, displays Workboard Flow and Process
in the browser and automatically scrolls to the element on the page with the id workboard-flow-and-process
. _This is especially handy because the markdown parser automatically creates ids for title elements on the page, so if you create a line in the markdown document that says #Workboard Flow and Process
this link would scroll down so that line is visible.FAQs
Orator Wiki plug-in module
We found that orator-wiki demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.