npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

elmoed-electron-modular-editor

v0.0.36

Published

Electron Modular Editor - base framework for building editors in Electron.js

Downloads

2

Readme

Electron Modular Editor

Travis CI

Elmoed badge

Electron Modular Editor is a component system / framework for writing electron.js-based editing programs, factoring away some common boilerplate. The typical usage would be to build something like an office suite. It supports the concept of mounting "editors" that consist of backend (main process code) hooked up with IPC to corresponding front end (renderer process code). It can automatically mount one of these in response to "opening a file", or editing a portion of a file.

WIP: API subject to drastic change, and not yet documented. Not ready for public usage, mostly just intended to be used as an internally used library.

Forms the backbone of two other WIP projects, Scroll Editor -- an extensible document preparation system based on markdown -- and Whiteboard -- an activity- based slide system for teaching and tutorials.

Features

  • Auto-generates an HTML document with included front-end JS

  • Separate out "backend" (main process) electron code from "frontend" (renderer process)

  • Componentize the editor, with components based on filetype

  • Allows multiple windows editing multiple documents, all driven by only 1 main process

Getting started

NOTE: You might not want to use elmoed, since its main purpose, at the present time, is just to power Whiteboard (and, soon, Scroll). However, if you find the examples close to what you want, then maybe it would make a good starting point for your editor.

To build a editor or editor-suite based on elmoed, take a look at the examples/ directory. That contains a "micro office suite" of a faux image editor, a faux text editor, and a faux "manifest" editor, which would make sense for some sort of mixed-content type editor (e.g., a rich text document that has a built-in image editor and text editor).

To run each example, try one of the following:

npm run example-simple-text
npm run example-simple-image
npm run example-simple

Running end-to-end tests

  • Run tests with npm run test

  • Requires node 8 or greater

Gotchas

  • Breaks with npm link, because of adaptorPath, need to manually specify adaptorPath

Built-in adaptors

  • Riotjs