Home Manual Reference Source

:pencil: MyScriptJS is the fastest way to integrate rich handwriting features in your webapp.

MyScriptJS preview

What is it about?

MyScriptJS is a javascript library that can be used in every web application (whatever javascript framework you are using) to bring handwriting recognition. It integrates all you need:

Getting started

Prerequisites

  1. Have bower installed. Have a MyScript developer account. You can create one here.
  2. Get your keys and the free monthly quota to access MyScript Cloud at developer.myscript.com

Installation

  1. Download MyScriptJS library
    bower install myscript
    
  2. Create and edit index.html file in the same directory

  3. Add the following line in the head section ot your file

<link rel="stylesheet" href="bower_components/myscript/dist/myscript.min.css"/>
<script src="bower_components/myscript/dist/myscript.min.js"></script>
  1. In the body create a div that will contain the editing zone
    <div id="editor"></div>
  1. In javascript, create the editor attached to editor DOM Node
  var editorElement = document.getElementById('editor');

  MyScript.register(editorElement, {
    recognitionParams: {
      type: 'MATH',
      server: {
        applicationKey: '#YOUR MYSCRIPT CDK APPLICATION KEY#',
        hmacKey: '#YOUR MYSCRIPT CDK HMAC KEY#'
      }
    }
  });
  1. Launch a local webserver and browse the sample

Examples

The directory examples/ of this git repository contains all the example source code.

Documentation

A complete guide is available on MyScript Developer website.

The API Reference is available in the docs directory or on myscript.github.io/MyScriptJS/ website.

Building MyScriptJS

:warning: Master refers to 4.0.x versions of the lib. Consider branch 1.2.x for previous versions of MyScriptJS.

Instructions to build the project are given in SETUP.md file.

Getting support

You can get some support from the dedicated section on MyScript Developer website.

Sharing your feedback ?

Made a cool app with MyScriptJS? We would love to hear about you! We’re planning to showcase apps using it so let us know by sending a quick mail to myapp@myscript.com.

Contributing

We welcome your contributions: If you would like to extend MyScriptJS for your needs, feel free to fork it! Please sign our Contributor License Agreement before submitting your pull request.