How to extend Tyk with JavaScript

Pluggable middleware

The JavaScript Virtual Machine provides pluggable middleware that can modify a request on the fly and are designed to augment a running Tyk process, are easy to implement and run inside the Tyk process in a sandboxed ECMAScript interpreter.

JavaScript plugins are for lightweight tasks as they do not have access to all the same features as the other plugin options.

We’ve created documentation to help you write JavaScript plugins for Tyk. Use the link below to find out more.

Tyk Javascript documentation