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

sn-bold-editor

v1.3.5

Published

The Bold Editor is a Standard Notes derived editor that offers text formatting and FileSafe integration.

Downloads

8

Readme

Bold Editor

The Bold Editor is a Standard Notes derived editor that offers text formatting and FileSafe integration.

Over 21 different text formatting features are available.

Local Installation

Get a full working copy of the editor (with FileSafe) for development.

  1. Clone the bold-editor and filesafe-embed repositories from GitHub.

  2. Ensure that either the Standard Notes desktop app is available for use or the web app is accessible. Use both locally or with an Extended account (or the extension will not load).

  3. In the bold-editor folder, edit the package.json file under devDependencies to use the local filesafe-embed:

    "filesafe-embed": "~/folder_with_both_repositories/filesafe-embed",
  4. Run npm i in both the bold-editor and filesafe-embed folders to install the required dependencies.

    • If there are errors, delete the package-lock.json file and node_modules folder. Then run npm i again. (source)
  5. Edit app/index.html for use locally:

    • comment out lines under 'Production'
    • uncomment lines under 'Development'
    <!-- Development -->
    <script type="text/javascript" src="redactor.min.js"></script>
    <script type="text/javascript" src="app.min.js"></script>
    
    <!-- Production -->
    <!--<script type="text/javascript" src="dist.min.js"></script>-->
  6. Run npm run build to build the files.

  7. Run npm i -g http-server to install a simple local server to host the extension.

  8. Choose between webpack Watch Mode and webpack-dev-server for development and follow the corresponding instructions.

Development with webpack Watch Mode (recommended)

Start by following the instructions here: https://docs.standardnotes.org/extensions/local-setup. Included in the repository is an ext.json.sample file that can be used in the setup.

This will setup a local server from which the bold-editor can be imported via the desktop app or the web app. You should be able to use the bold-editor now.

However, this will not allow for easy development because the app will not automatically build to the dist folder. We will use webpack for this.

  1. Use npm run watch to automatically build files.

    • There should be an existing console open that is running http-server
    • Open a new console for npm run watch
  2. Disable the cache on the desktop app/web app.

    • We want to ensure that the latest build is always loaded when the app is refreshed
    • Open devtools (Ctrl+Shift+i) and go to Network
    • Check Disable cache
    • On some systems, devtools must be kept open for this to work
  3. Make some changes to Editor.js, reload the desktop or web app, and your changes will show up.

Development with webpack-dev-server

Note that this method only actively builds app.min.js.

The steps are similar to the webpack Watch Mode, differences are listed below:

  • The ext.json file belongs in the dist folder
  • Update the url to http://localhost:8080
  • npm run start to use the webpack-dev-server.

Disable the cache as in the webpack Watch Mode. Reload may be required to see changes in action.

Production

In production environments, check that the index.html file is configured as follows:

<!-- Development -->
<!-- <script type="text/javascript" src="redactor.min.js"></script>
<script type="text/javascript" src="app.min.js"></script> -->

<!-- Production -->
<script type="text/javascript" src="dist.min.js"></script>

dist.min.js is built via grunt.

The CSS is also built with grunt, so webpack-dev-server will not be able to reload it. You must run npm run build anytime you change the CSS.

Support

Please open a new issue and the Standard Notes team will take a look as soon as we can. For more information on editors, refer to the following link:

Known issue: ordered lists, unordered lists, and tables seem to ignore any font preference you apply to it.

License

GNU AGPL v3.0