DEV Community

Cover image for massCode v2 - An open source snippets manager is out to beta πŸŽ‰
Anton Reshetov
Anton Reshetov

Posted on

massCode v2 - An open source snippets manager is out to beta πŸŽ‰

Hi, there!

For a long time I did not have free time to develop massCode v1 and I am exited that massCode v2 is out to beta.

Goal

The v1 code base is simply obsolete. massCode v1 was written using Electron v7, Vue 2, and JavaScript. The new version of massCode is based on Electron 16, Vue 3, and TypeScript. The only option to use the latest technology is to start from scratch, since rewriting the current code base is pretty much like starting from scratch, except that a lot of time will be spent migrating to the new requirements of the technology in use. This also includes updating dependencies.

Electron v16 makes it possible to create a build for M1, Vue 3 & Vite is a very fast development and final build of the frontend of the application, TypeScript is a typing tool which gives less time for the subsequent development.

In the new version of the application I am abandoning Monaco editor in favor of Ace editor, as it is a lighter weight library. Ace also supports much more language syntax highlighting and TextMate, which is more widespread than the proprietary Monarch for Monaco editor.

The new version will have a database based on plain JSON. In v1 it was used for this purpose library NeDB, which is no longer supported by the author and has bugs. Also, new version will have API server available on localhost, which will allow integration with any third-party applications, such as Raycast or Alfred.

Features

Organization

massCode allows you to organize snippets using multi-level folders as well as tags. Each snippet has fragments - tabs, which gives even greater level of organization.

Editor

A snippet manager must not only provide organization of snippets but also have a good code editor. That's why under the hood of massCode there's Ace. Ace is a high performance code editor which supports syntax highlighting for over 170 languages. I also added a Prettier to code formatter.

Markdown

massCode allows you to write in Markdown and also provide syntax highlighting inside a code block. And of course there is a preview.

Search

It is impossible to imagine a productive snippets manager without quick access to snippets. Therefore massCode has a fast full-text search with highlighting of the search query.

Autosave

massCode automatically saves any changes you make during work, so you don't have to worry about losing changes.

Sync

You can use any service that provides cloud synchronization, such as iCloud Drive, Google Drive, Dropbox or other similar.

Database

massCode uses a simple JSON to store your data. The database files are on your local computer.

API Server

Coming soon.

I hope that my app will be useful to someone.

GitHub logo massCodeIO / massCode

A free and open source code snippets manager for developers

massCode

Built with Electron, Vue 3 & Codemirror.
Inspired by applications like SnippetsLab and Quiver

GitHub package.json version GitHub All Releases GitHub

Latest Release | Documentation | Change Log

Extensions VS Code | Raycast | Alfred

Support

massCode is open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support massCode development via the following methods:

Donate via Open Collective Donate via PayPal Donate via Ko-Fi

Features

Organization

massCode allows you to organize snippets using multi-level folders as well as tags. Each snippet has fragments - tabs, which gives even greater level of organization.

Editor

massCode uses Codemirror as the basis for the editor and .tmLanguage as the grammar for syntax highlighting. This tandem opens the door to over 600 existing grammars. The application currently supports more than 160 grammars. In addition to .tmLanguage, the application supports .tmTheme for themes. There is also support…




Best regards, Anton.

Top comments (3)

Collapse
 
firozansari profile image
Firoz Ansari

I played with massCode and it seems very promising. Congratulations! I am looking forward for API Server which could be a killer feature. One feature I am missing in massCode is the backlinks but it's too early.

Collapse
 
antonreshetov profile image
Anton Reshetov

Experimented with the Raycast extension. So far, you can search and copy. In the future I plan to add a form to add snippets to the inbox.

github.com/massCodeIO/massCode-ass...

Collapse
 
antonreshetov profile image
Anton Reshetov

Just release v2.0.0-beta.6 which will add 8 themes. 4 light and 4 dark.
github.com/massCodeIO/massCode/rel...