Fork me on GitHub

Contents

Background

The goal of this project is to allow anyone to send a short text message to someone only knowing their domain name. The receiver should be able to get the message in whatever way they want (SMS, Email, Twitter DM, etc) without the sender knowing what medium the message will be sent through.

(For a bit of background on why abstracting the delivery mechanism is useful, see the communication protocols of Tantek and myself.)

Also see conversations from the #indiewebcamp IRC channel on July 30 and July 31, 2011.

Goals

Protocol Summary

Given Alice and her site, alice.com, and Bob and his site, bob.com.

Detailed Flow

Protocol

Receiving

Sending

$ curl -d from=http://example.com -d text=hello -d message_id=1234 http://aaronparecki.com/

Implementations

When implementing this service on top of an existing framework like Wordpress or Mediawiki, you can add an Apache RewriteRule to intercept the POST request before the framework gets a hold of it.

Insert this before any other RewriteRule declarations. This matches a POST request to "/" and routes it to a file called message/receive.php

RewriteCond %{REQUEST_METHOD} ^POST
RewriteRule ^$ /message/receive.php [QSA,L]

This prevents this script from interfering with any existing code you might have on your site, as long as no existing code expects to handle post requests to http://example.com/.

Benefits

Drawbacks

List of Current Implementations

Comments

To leave a comment on this page, write a post on your own website and send me a message using this protocol! I will update this page with a link to your site.

Retrieved from "http://www.aaronparecki.com/IndieWeb_Messaging"