Deadpan-DDP: Write clients for Meteor's DDP Protocol

[ library, mit, program, unclassified ] [ Propose Tags ]

The Deadpan-DDP project includes a debugging-tool, as well as a general purpose library.

DDP is the protocol that Meteor speaks between client and server.

The DDP tech-stack is: Websockets -> JSON -> EJson -> Collections -> Subscriptions + RPC.

In order to use the debugging tool, install this package and run deadpan for a usage statement.

In order to use the library, simply import Web.DDP.Deadpan.

The DSL monad is largely based around RPC calls and callbacks. In order to write an application you would call Web.DDP.Deadpan.runClient with

  • An initial application state (this includes initial callbacks)

  • A set of connection parameters

  • A Web.DDP.Deadpan.DSL.Deadpan application

There are several callback-sets provided in Web.DDP.Deadpan, however, if you want to pick in a more granular fashion, look inside Web.DDP.Deadpan.Callbacks.

The connection parameters are the triple (Domain, Port, Path)...

For convenience the function getURI is provided to turn a URI of the form websocket://localhost:3000/websocket into the triple (Right ("localhost", 3000, "websocket"))... or an error (Left "error message").

Refer to the on Github for more information.


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,
Change log
Dependencies aeson, base (>=4 && <5), base64-bytestring, bytestring, containers, hashable, haskeline (>=0.7), lens, mtl, network, network-uri, random, safe, scientific, stm, text, time (>=1.4), transformers, unordered-containers, vector, websockets [details]
License MIT
Author Lyndon Maydwell
Home page
Uploaded by LyndonMaydwell at 2015-10-15T23:58:20Z
Reverse Dependencies 1 direct, 0 indirect [details]
Executables deadpan
Downloads 12776 total (19 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-10-16 [all 1 reports]