Skip to content

jshawl/remoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remoji

npm version

emoji reactions anywhere! demo

Usage

<div data-remoji-id="demo"></div>
<script type="module">
  import { remoji } from "https://www.unpkg.com/@jshawl/remoji@latest/remoji.js";
  remoji.init();
</script>

Configuration

remoji.init({
  apiUrl: "https://my-emoji-reaction-server.com", // default: https://remoji.jshawl.workers.dev
  emojis: ["👍", "👎"], // default: ["👍", "😄", "❤️", "🚀", "👀"]
  orgId: "acme corp, inc.", // default: window.location.host
  userId: "jesse@jesse.sh", // default: crypto.randomUUID()
});

Local Development

Start the client:

cd client && npm start

Start the server:

cd server && npm start

Open the development page:

open http://127.0.0.1:8080/examples/development.html