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

moloko

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

moloko

Moloko is an embedded web based code editor built atop of Monaco

  • 0.2.2-beta.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Moloko

Moloko is an embedded web based code editor built atop of Monaco.

Installation

Moloko has peer dependencies on mithril.js and Æsthetic. Both these modules need to be installed in order for moloko to be used.

pnpm add moloko

Peer Dependencies

pnpm add mithril esthetic

Use Case?

Moloko is developed for playground usage within Æsthetic and Liquify.

Requirements

Moloko is running atop of Monaco and thus it requires workers be integrated into a distribution bundle of your project.

Supported Themes

Currently Moloko provides support for a single (dark) theme:

  • Potion

Supported Languages

In addition to Liquid, Moloko also supports several other languages:

  • HTML
  • Liquid
  • XML
  • JavaScript
  • TypeScript
  • CSS
  • SCSS
  • JSON
  • YAML

Usage

Moloko leverages the powerful mithril.js SPA framework together with the Æsthetic beautification tool and Monaco text editor.

import moloko from 'moloko';

// Render the editor to a document element
moloko.mount(document.body, options?: Options);

Contributing

Despite running atop of Monaco, Moloko will spin up its own build and expose it. In order to support the grammars and embedded languages of the Shopify Liquid variation the module employs its own Liquid grammar.

Pre-requisites

Setup

  • Ensure pnpm is installed globally npm i pnpm -g
  • Leverage pnpm env if you need to align node versions
  • Clone this repository git clone https://github.com/panoply/moloko.git
  • Run pnpm i in the root directory
  • Run pnpm dev and start coding

You can run pnpm build to generate a distributed bundle.

Author

🥛 Νίκος Σαβίδης

FAQs

Package last updated on 16 Jul 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