Permalink
Browse files

rename tweb to twebz

  • Loading branch information...
1 parent a379af3 commit 54388a7e351a62d385c2ed228d545e4de85d660d @jchris committed Aug 28, 2010
View
@@ -1,4 +1,4 @@
-# Tweb - Decentralizing Twitter, One Tweet at a Time
+# Twebz - Decentralizing Twitter, One Tweet at a Time
This app basically doesn't work yet. But it will. And it will be awesome!
View
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
- <title>Tweb Decentralized Twitter Client for CouchDB</title>
+ <title>Twebz Decentralized Twitter Client for CouchDB</title>
<link rel="stylesheet" href="style/main.css" type="text/css">
</head>
<body>
<div id="account"></div>
- <h1>Tweb</h1>
+ <h1>Twebz</h1>
<div id="profile"></div>
<div id="items"></div>
View
2 _id
@@ -1 +1 @@
-_design/tweb
+_design/twebz
@@ -1,6 +1,6 @@
function() {
var widget = $(this), app = $$(widget).app;
- app.db.openDoc("tweb-config", {
+ app.db.openDoc("twebz-config", {
success : function(doc) {
if (doc.twitter_keypair) {
widget.trigger("keyring");
@@ -1,10 +1,10 @@
-<p>Before you can send tweets from Tweb, there some configuration that needs to
+<p>Before you can send tweets from Twebz, there some configuration that needs to
happen.</p>
-<p>Tweb uses a Node.js program to interact with the Twitter API. The README
- file describes how to install and run the Node.js Tweb program. You may
+<p>Twebz uses a Node.js program to interact with the Twitter API. The README
+ file describes how to install and run the Node.js Twebz program. You may
have even started running it already. If so, it can pull realtime search results into
- the Tweb database already, but it needs more help to pull in your personalized
+ the Twebz database already, but it needs more help to pull in your personalized
timeline, or to let you post to Twitter.</p>
-<p>The first step is to setup an application key for your installation of Tweb.
+<p>The first step is to setup an application key for your installation of Twebz.
You'll only need to do this once, no matter how many users you allow to sign up
- for your copy of Tweb. </p>
+ for your copy of Twebz. </p>
View
@@ -1,3 +0,0 @@
-function(doc) {
- return doc.tweb;
-};
View
@@ -0,0 +1,3 @@
+function(doc) {
+ return doc.twebz;
+};
View
@@ -22,10 +22,10 @@ var searches = tweetstream.createTweetStream({track:config.track,
var timeline = tweetstream.createTweetStream({username:config.username,
password:config.password});
-var twebdb = cc(config.couch);
+var twebzdb = cc(config.couch);
function saveTweetToCouch(tweet) {
- twebdb.save(tweet, function(er, doc) {
+ twebzdb.save(tweet, function(er, doc) {
if (er) {
log(er);
}
@@ -37,9 +37,9 @@ timeline.addListener("tweet", saveTweetToCouch);
function workFromChanges() {
var client = couchdb.createClient(5984, 'localhost'),
- db = client.db('tweb'); // todo use config
+ db = client.db('twebz'); // todo use config
var stream = db.changesStream({
- filter : "tweb/tweb"
+ filter : "twebz/twebz"
});
stream.addListener("data", function(change) {
db.getDoc(change.id, function(e, doc) {
View
@@ -10,7 +10,7 @@ if twitter name == configured twitter acct && username == current logged in user
additional schema
-tweb :
+twebz :
state : sent | unsent | sending
state_at : time()
acct : {
@@ -21,39 +21,39 @@ tweb :
install:
-/* create tweb database*/
+/* create twebz database*/
setup screen
prompt for user to setup twitter app keypair in node/config.json
- prompt to create tweb-private-username database
+ prompt to create twebz-private-username database
ensure user is admin
grant access to private-db to node script
- (user: tweb, password: uuid)
+ (user: twebz, password: uuid)
save uuid in private db
link twitter accounts and save creds in private-db
- prompt to run tweb-node script
+ prompt to run twebz-node script
(can we use externals API to provide uuid to node script?)
link twitter account(s) to couchdb account
store twitter creds in private db
store shared secret in private db
option to send each tweet as any linked account
-required for tweb to post to twitter:
+required for twebz to post to twitter:
twitter creds for tacct x are in private db for cacct
pretweet has tacct and cacct + content signed with shared secret hmac
docids need to be deterministic across nodes or else we get dup tweets
-if tweb initiated, docid is couchdb id
+if twebz initiated, docid is couchdb id
if else, docid is twitter id.
-if tweb initiated remotely, and pushed through twitter before replicated
+if twebz initiated remotely, and pushed through twitter before replicated
twitter
chweet
-tweb
+twebz
chwitter
chweet
chweb

0 comments on commit 54388a7

Please sign in to comment.