A static, agent-friendly template for building an Employee Generated Content leaderboard: team reach, top posts, race animation, trends, and per-poster activity.
This is the public version of the Slite EGC dashboard.
npm install
npm run build
open dist/index.htmlBy default the build uses data.example.json. To use your own data:
cp data.example.json data.json
# edit data.json or ask an agent to generate it from your source system
npm run buildThe dashboard is static. You can host dist/ anywhere.
The repo includes an optional scheduled refresh path. Add
scripts/fetch-data.mjs so it prints schema-valid dashboard JSON to stdout, then
use .github/workflows/refresh-dashboard.yml to rebuild, validate, commit, and
deploy the dashboard on a schedule.
Start from:
cp scripts/fetch-data.example.mjs scripts/fetch-data.mjsMore detail: docs/auto-update.md.
Point your agent at this repository and say:
Build an EGC dashboard for our team.
Use AGENTS.md, inspect data.schema.json, create data.json from our LinkedIn or
social analytics export, run npm run build, and deploy dist/ to Cloudflare Pages.The agent should only need to produce a data.json matching the schema. The
visual system and build step are already here.
The included dashboard expects aggregated metrics by person and period:
- posts
- impressions / reach
- likes, comments, reposts
- top posts with public URLs and timestamps
- optional all-post
activity_postsfor accurate activity heatmaps - follower counts
You can feed it from MagicPost, Shield, Taplio, a spreadsheet export, a warehouse
query, or a hand-built JSON file. The source does not matter as long as
data.json matches data.schema.json.
npm run build
npx wrangler pages deploy dist --project-name egc-dashboardMore detail: docs/deploy-cloudflare-pages.md.
AGENTS.mdtells coding agents how to recreate the dashboard..github/workflows/refresh-dashboard.ymlis an optional scheduled refresh loop.data.schema.jsonis the public data contract.data.example.jsonis fake sample data.scripts/fetch-data.example.mjsshows the refresh-script contract.src/template.htmlis the visual dashboard.scripts/build.mjsembeds data into the template and writesdist/.public/photos/contains sample avatars copied intodist/photos/.
Do not commit tokens, private post analytics, private customer data, emails, internal IDs, or raw employee exports you do not want public. For a public demo, use anonymized data or data from posts that are already public.
Built by Slite as a forkable template for teams that want to turn social posting into a visible, playful team ritual.