anfragment / encursors

Transform static webpages into interactive spaces with real-time user cursors for free

Home Page:https://anfragment.github.io/encursors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encursors logo

Encursors

Ever feel like a lone wanderer on the digital plains of the web? Do your static websites seem just a tad too... static? Fear not, for Encursors is here to help! This nifty little tool transforms your website into a bustling village square. With a simple script, Encursors displays each visitor's cursor movements in real time, letting everyone see where everyone else is looking. It's like a party on your page, and everyone's invited!

The backend is built and hosted with Encore, a development platform for building event-driven and distributed systems. You can run your own instance by cloning the repostory.

Note

Encursors does not display cursors or track users on mobile devices.

Demo

You can see Encursors in action on our demo page. Open the page in multiple tabs or devices to see the cursors move in real time!

Features

  • Displays the flag of the country the visitor is from alongside their cursor.
  • Custom cursors based on the visitor's operating system.
  • Respects the prefers-reduced-motion setting by not displaying the cursors when it is enabled.
  • No cookies or tracking of any kind. Cursor data is permanently deleted after a visitor leaves the page.
  • Fully open source and free to use.

Installation

To install Encursors, simply add the following script tag to your website's HTML:

<script src="https://cdn.jsdelivr.net/gh/anfragment/encursors@release/script/dist/cursors.min.js"></script>

Configuration options

You can configure Encursors by passing options to the script tag as data attributes. Here are the available options:

  • data-api-url: The base URL of the API. Set if you're running your own instance. Should not include the protocol or the trailing slash.
  • data-z-index: The z-index of the cursor elements. Optional.

About

Transform static webpages into interactive spaces with real-time user cursors for free

https://anfragment.github.io/encursors/

License:MIT License


Languages

Language:Go 46.2%Language:JavaScript 29.2%Language:HTML 21.5%Language:Makefile 1.4%Language:CSS 1.1%Language:CUE 0.5%