Skip to content
/ meemoo Public

Reference implementation for input/output communication with a webapp, embedded in an iframe, with a typed interface.

Notifications You must be signed in to change notification settings

meemoo/meemoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

Reference implementation for input/output communication with a webapp, embedded in an iframe, with a typed interface.

---

 _____                           _     
|     |___ ___ _____ ___ ___    |_|___ 
| | | | -_| -_|     | . | . |_  | |_ -|
|_|_|_|___|___|_|_|_|___|___|_|_| |___|
       http://meemoo.org/     |___|

Use it something like this:

<script type="text/javascript" src="http://meemoo.org/meemoo/v1/meemoo-min.js"></script>
<script type="text/javascript">

  Meemoo
    .setInfo({
      title: "example",
      author: "forresto",
      description: "example to show how to turn html into a Meemoo module"
    })
    .addInputs({
      square: {
        action: function (n) {
          Meemoo.send("squared", n*n);
        },
        type: "number"
      },
      reverse: {
        action: function (s) {
          var reversed = s.split("").reverse().join("");
          Meemoo.send("reversed", reversed);
        },
        type: "string"
      }
    })
    .addOutputs({
      squared: { 
        type: "number"
      },
      reversed: { 
        type: "string"
      }
    });
    
</script>

About

Reference implementation for input/output communication with a webapp, embedded in an iframe, with a typed interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published