No description, website, or topics provided.
Clone or download
Latest commit 3519da3 Oct 15, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates Update stripe-payment.yaml Oct 14, 2017
.gitignore Initial commit Aug 22, 2016
Gruntfile.js Update deploy Apr 18, 2017
LICENSE Initial commit Aug 22, 2016 Update Oct 19, 2016
package.json Clean up package.json Aug 24, 2016

Webtask Editor Templates

Here you will find the entire list of templates that you can use from Webtask Editor.


Basically you have two views of templates:

  • Templates list

  • Template details

How to create a template

If you have a webtask to share, you can create a Pull Request and add your template. The team will review it and once it is aproved the template will be available through Webtask Editor.



The name of the template. It will appear on the templates section.


This is the type of the example. It can be sample or webhook. Currently not in use.


The description of the template it will appear on the list of templates.


Indicates who writes the template.

  • name: The name of the author
  • link: A link to GitHub or Twitter
  name: johndoe


Sample request gives you the posibility to have a sample request by default for testing the webtask.

  • method: The HTTP method. Example: GET, POST, etc.
  • type: The type of the request. It can be: json, xml or text.
  • mode: The mode of the runner. It can be: body, parameters or headers.
  • data: The default data for the request.
  method: 'POST'
  type: 'json'
  mode: 'body'
  data: |
      "text":"googlebot: What is the air-speed?",
      "trigger_word": "googlebot:"


  • parse: Indicates if the body should be parsed.
  • merge: Indicates if the body should be merged.
  parse: true
  merge: true


This is the list of secrets that your template requires for working, basically a key/value pair.



Here you can put some instructions about how to use the template or explain what it does. A note, contains the following fields:

  • title: The title of the note. It will appear on the details section
  • content: The content of the note. It supports markdown.
  title: Description
  content: |
    The `context` argument behaves the same way as in the two simpler programming models. The body of the request will be unconsumed unless the `pb` claim of the [webtask token]( is set to 1. Note that this programming model does not have a concept of a callback. Ending the HTTP response indicates completion.


The actual code for the webtask. It supports js or es6.

  js: |
    module.exports = function (context, req, res) {
      res.writeHead(200, { 'Content-Type': 'text/html '});
      res.end('<h1>Hello, world!</h1>');

  es6: |
    'use latest';

    module.exports = (context, req, res) => {
      res.writeHead(200, { 'Content-Type': 'text/html '});
      res.end('<h1>Hello, world!</h1>');


This project is licensed under the MIT license. See the LICENSE file for more info.