summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheia2022-07-31 13:47:15 -0400
committertheia2022-07-31 13:47:15 -0400
commitfd76ae015b2b40efd004b0d3e2a651fc95781afb (patch)
tree7cbc32277ba285029ab3c743b6fccb9556743752
parentca9f2cf1cdd49e685e08997a4e43c78975ed8cf7 (diff)
slight doc updates
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4ac0a73..c9ab192 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-# The Basic Graffiti Javascript Library
+# Graffiti for Vanilla Javascript
This is the base Javascript library that interfaces with the [Graffiti server](https://github.com/csail-graffiti/server).
-We recommend not using the vanilla library itself but instead using framework plugins built on top of this library like the [Graffiti plugin for Vue.JS](https://github.com/csail-graffiti/graffiti-js-vue).
+We recommend not using this vanilla library itself but instead using framework plugins that are built on top of it like the [Graffiti plugin for Vue.JS](https://github.com/csail-graffiti/graffiti-js-vue).
Example usage:
@@ -42,6 +42,9 @@ const myCoolPost = {
type: 'post',
content: 'hello world'
}
+// ("completing" an object annotates
+// it with your user ID and a random
+// object ID, required by the server)
gs.complete(myCoolPost)
await gs.update(myCoolPost)