Need help with syn?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

443 Stars 263 Forks MIT License 331 Commits 60 Opened issues


Standalone Synthetic Event Library

Services available


Need anything else?

Contributors list


Join the chat at License: MIT npm version Travis build status Greenkeeper badge

For questions or discussion, check out our forums.

If you are looking for the Synergy project, you can find it here. Thanks postquagga for letting us use the name!

Syn lets you simulate user behavior like typing, clicking, moving, and dragging exactly how a real user would perform those actions. 'hello' )
   .type( 'Hello World' )
   .drag( 'trash' );


Install Syn via the command line with npm:

> npm install syn

or bower:

> bower install syn

Or by downloading it here.

Inside the download, npm package and bower package, there are the following folders:

  • dist/global/syn.js
    - A standalone file that can be used with a
  • dist/amd
    - An AMD build that can be used with RequireJS and other AMD loaders.
  • dist/cjs
    - A CommonJS build that is used by node or browserify.
  • src
    - The source files that can be loaded by StealJS, SystemJS, and eventually JSPM.


The following walk you through how to load Syn into various environments.

Node / Browserify

Assuming you installed with

, simply
like the following:
var syn = require("syn");'hello'));


If you installed via NPM or Bower and are using the npm or bower module for configuration, you can use import, require, or define to load the syn module without any configuration.

import syn from "syn";'hello'));

AMD / RequireJS

Add the following package configuration:

    packages: [{
        name: 'syn',
        location: 'PATH/TO/syn/dist/amd',
        main: 'syn'

PATH/TO should be the path from your baseUrl to the location of the syn folder. Once this is properly configured, you should be able to write:

define(['syn'], function(syn){'hello'));

Script Tag / Standalone

If you don't use a module loader, you can simply add the following to your page:

PATH/TO should be the path to the installed syn folder.

Use element [, options][, callback] )

syn.dblclick( element [, options][, callback] )

syn.type( element, text [, callback] )

syn.key( element, key [, callback] )

syn.delay( time=600 )

syn.drag( element, optionsOrTarget [, callback])


Check out the contribution guide.

Relevant Links

  1. Blog post introducing Syn — a Standalone Synthetic Event Library
  2. Gitter chat

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.