4lejandrito / next-plausible

Simple integration for https://nextjs.org and https://plausible.io analytics
https://next-plausible.vercel.app
MIT License
603 stars 33 forks source link

PoC: plausible client for server side #116

Open GWSzeto opened 9 months ago

GWSzeto commented 9 months ago

This is a quick PoC for supporting the plausible API on the server side for nextJS

The main inspiration came from the PostHog-node library which does something similar.

Structure

Admittedly, this structure supports my personal use-case, but it should be translatable to other's use cases fairly well