[Web Hooks] DrEval

28 views
Skip to first unread message

Jeff Lindsay

unread,
May 6, 2010, 12:49:57 AM5/6/10
to webh...@googlegroups.com
Anybody use this for anything yet?


It's supposed to be what's going to power Scriptlets v2. 

I just realized something else AMAZING that can be done with it. Think lambda webhooks. ;)

--
Jeff Lindsay
http://progrium.com

--
You received this message because you are subscribed to the Google Groups "WebHooks" group.
To post to this group, send email to webh...@googlegroups.com.
To unsubscribe from this group, send email to webhooks+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webhooks?hl=en.

John Herren

unread,
May 6, 2010, 2:12:49 AM5/6/10
to webh...@googlegroups.com
Lambda webhooks...

I've thought for a while this might be one of the big next steps for
the read write web, and maybe the 'killer app' for webhooks. It makes
a lot of sense to me to send actions around with content/data. An
example would be, say, an RSS reader. You know the bar at the bottom
of Google Reader that lets you "Add Star", "Email", and "Send To"? Why
not let the feeds themselves contain actions on an item, in the form
of a REST URI, Javascript snippit, or whatever. If we can standardize
an action syntax, the UI could deal with the presentation. This idea
gets even cooler if your reader had a list of your own defined filters
and actions. It would help automation and chaining, too, because you
would not need to know the API details for a feed item since they
would be embedded.

jh

Jeff Lindsay

unread,
May 6, 2010, 3:09:08 AM5/6/10
to webh...@googlegroups.com
Joshua Schachter was talking about something like this a while back. The "sites offering you a list of personal actions" idea. 

Anyway, I'm working on a sort of "async rpc" protocol on top of json-rpc (could work with xml-rpc too) over HTTP. It'll probably be called something like WebDelegate or something. The synchronous version is how I do plugin architectures with webhooks.

But yes, take that idea + Scriptlets. Then evented programming. You can have Scriptlets that create adhoc scripts to handle webhook events (such as async rpc results). It actually looks like this:

blah();
blah();
blah();
var url = webhook(function () {
   resp.write(req.get('echo'));
});

That anonymous function is turned into a script that webhook() creates, returning a URL for it. 

The API for this isn't completely defined, but it's possible, I know now. And what this leads to is pretty... nuts.

-jeff

S Sriram

unread,
May 6, 2010, 9:54:11 AM5/6/10
to webh...@googlegroups.com
Hi,

Check out http://www.akshell.com it is not open source and no evented programming but
he has built out a complete javascript client/server hosted framework including
a javascript-db interface.

S. Sriram

Jeff Lindsay

unread,
May 6, 2010, 11:10:21 AM5/6/10
to webh...@googlegroups.com
There was also AppJet, Zimki, and more recently Joyent Smart Platform. All of these try to let you build web apps. None of them are catered towards webhooks, glue code, etc. Keep in mind DrEval isn't evented either, but programming with webhooks is basically evented programming.
Reply all
Reply to author
Forward
0 new messages