Logo

0x3d.Site

is designed for aggregating information.
Welcome
check repository here

🏴‍☠️ piratepx

A simple, privacy-respecting, no cookie, zero JavaScript, 35 byte counter pixel for websites, mobile apps, server-side APIs, CLIs, and just about anywhere else.

Sign up for free at https://www.piratepx.com! piratepx

Overview

This repository contains both the backend and frontend of the app to simplify development and deployment. Other than a few lines of configuration here and there to make this possible, however, they're pretty much separate codebases.

Backend

The backend is a JSON REST API built in Node.js using Fastify and Objection.js. It persists data to a PostgreSQL database.

The source code is located in the api directory, with configuration files in the root of this repository (where this README lives).

Frontend

The frontend is a single-page app built with Vue.js and Tailwind CSS.

The source code is fully isolated in the web directory, which is also where its own configuration files are located.

Development

The following includes the necessary steps to get the full app setup for development, with a focus on backend-specific details. See web/README.md for frontend-specific details.

Prerequisites

Docker Compose is used to run PostgreSQL as configured in compose.yaml. Once installed, simply run:

$ docker compose up

The app itself is not run in a Docker container in development, as it's easy enough to install the necessary version of Node.js with nvm:

$ nvm install

Dependencies

Install dependencies with npm:

$ npm install
$ cd web && npm install

Config

dotenv is used to load environment variables from a .env file into process.env. This file is ignored by version control to prevent committing secrets.

See .env.dist for an example.

Database

Migrations

Knex.js is used to manage database migrations, which are located in api/db/migrations.

To run the latest migrations:

$ npm run knex migrate:latest

Start

Start both the backend and frontend development servers:

$ npm run dev

Code Style & Linting

Prettier is setup to enforce a consistent code style. It's highly recommended to add an integration to your editor that automatically formats on save.

ESLint is setup with the "recommended" rules to enforce a level of code quality. It's also highly recommended to add an integration to your editor that automatically formats on save.

To run via the command line:

$ npm run lint

Releasing

After development is done in the development branch and is ready for release, it should be merged into the main branch, where the latest release code lives. Release It! is then used to interactively orchestrate the release process:

$ npm run release
Analytics
Analytics
Analytics involves collecting, analyzing, and interpreting data to uncover patterns and trends. It's essential for making data-driven decisions in business and technology. Tools like Google Analytics help track and measure online performance effectively.
GitHub - jortilles/EDA: Enterprise Data Analytics by Jortilles ( EDA )
GitHub - jortilles/EDA: Enterprise Data Analytics by Jortilles ( EDA )
GitHub - eldy/AWStats: AWStats Log Analyzer project (official sources)
GitHub - eldy/AWStats: AWStats Log Analyzer project (official sources)
GitHub - electerious/Ackee: Self-hosted, Node.js based analytics tool for those who care about privacy.
GitHub - electerious/Ackee: Self-hosted, Node.js based analytics tool for those who care about privacy.
GitHub - sheshbabu/freshlytics: Open source privacy-friendly analytics
GitHub - sheshbabu/freshlytics: Open source privacy-friendly analytics
GitHub - piratepx/app: Just a little analytics insight for your personal or indie project
GitHub - piratepx/app: Just a little analytics insight for your personal or indie project
GitHub - kindmetrics/kindmetrics: Kind metrics analytics for your website
GitHub - kindmetrics/kindmetrics: Kind metrics analytics for your website
GitHub - PostHog/posthog: 🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
GitHub - PostHog/posthog: 🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
Parse.ly Content Analytics
Parse.ly Content Analytics
Hotjar: Website Heatmaps & Behavior Analytics Tools
Hotjar: Website Heatmaps & Behavior Analytics Tools
PostHog - How developers build successful products
PostHog - How developers build successful products
A/B Testing, Personalization, and Optimization | SiteSpect
A/B Testing, Personalization, and Optimization | SiteSpect
Try demo | Offen Fair Web Analytics
Try demo | Offen Fair Web Analytics
Screenful - #1 Productivity Analytics Platform
Screenful - #1 Productivity Analytics Platform
Engineering Analytics to boost developer productivity
Engineering Analytics to boost developer productivity
Geckoboard | Real-time KPI dashboards that improve team performance
Geckoboard | Real-time KPI dashboards that improve team performance
Chartbrew - Client reports for your team and clients
Chartbrew - Client reports for your team and clients
Chartbrew - Visualize your data in one place
Chartbrew - Visualize your data in one place
GitHub - socioboard/Socioboard-5.0: Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
GitHub - socioboard/Socioboard-5.0: Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
Keen - Event Streaming Platform
Keen - Event Streaming Platform
Sprout Social: Social Media Management Solutions
Sprout Social: Social Media Management Solutions
Neil Patel: Helping You Succeed Through Online Marketing!
Neil Patel: Helping You Succeed Through Online Marketing!
Buffer: All-you-need social media toolkit for small businesses
Buffer: All-you-need social media toolkit for small businesses
#1 Privacy-Led Product Analytics | Countly
#1 Privacy-Led Product Analytics | Countly
Delivery Ops for Product & Engineering Leaders | Haystack
Delivery Ops for Product & Engineering Leaders | Haystack
Digital Customer Experience Analytics - Glassbox
Digital Customer Experience Analytics - Glassbox
Screpy - AI-Based SEO & Web Analysis Tool
Screpy - AI-Based SEO & Web Analysis Tool
Build software better, together
Build software better, together
Statcounter - Web Analytics Made Easy
Statcounter - Web Analytics Made Easy
Countly Team
Countly Team
Matomo Analytics
Matomo Analytics
Analytics
More on Analytics

Programming Tips & Tricks

Code smarter, not harder—insider tips and tricks for developers.

Error Solutions

Turn frustration into progress—fix errors faster than ever.

Shortcuts

The art of speed—shortcuts to supercharge your workflow.
  1. Collections 😎
  2. Frequently Asked Question's 🤯

Tools

available to use.

Made with ❤️

to provide resources in various ares.