Commit Graph

208 Commits

Author SHA1 Message Date
Carl-Gerhard Lindesvärd
790801b728 feat: revenue tracking
* wip

* wip

* wip

* wip

* show revenue better on overview

* align realtime and overview counters

* update revenue docs

* always return device id

* add project settings, improve projects charts,

* fix: comments

* fixes

* fix migration

* ignore sql files

* fix comments
2025-11-19 14:27:34 +01:00
Carl-Gerhard Lindesvärd
aa8765d627 tmp logging 2025-11-17 14:44:37 +01:00
Carl-Gerhard Lindesvärd
10726bf373 fix: better support for custom timestamps 2025-11-17 13:56:55 +01:00
Carl-Gerhard Lindesvärd
da59622dce fix: overall perf improvements
* fix: ignore private ips

* fix: performance related fixes

* fix: simply event buffer

* fix: default to 1 events queue shard

* add: cleanup scripts

* fix: comments

* fix comments

* fix

* fix: groupmq

* wip

* fix: sync cachable

* remove cluster names and add it behind env flag (if someone want to scale)

* fix

* wip

* better logger

* remove reqid and user agent

* fix lock

* remove wait_for_async_insert
2025-11-15 22:13:59 +01:00
Carl-Gerhard Lindesvärd
8fbe944df0 fix: use correct client ip header 2025-11-14 13:16:57 +01:00
Carl-Gerhard Lindesvärd
212254d31a feat: new importer (#214) 2025-11-05 09:49:36 +01:00
Carl-Gerhard Lindesvärd
c67f7f9578 fix: error when session expired 2025-11-01 12:35:23 +01:00
Carl-Gerhard Lindesvärd
f454449365 fix: read-after-write issues (#215)
* fix: read-after-write issues

* fix: coderabbit comments

* fix: clear cache on invite

* fix: use primary after a read
2025-10-31 09:56:07 +01:00
Carl-Gerhard Lindesvärd
ddc99e9850 feat: ignore secret or cors for client 2025-10-29 21:14:43 +01:00
Carl-Gerhard Lindesvärd
9790ba8937 feat: prepare supporter self-hosting 2025-10-22 09:44:56 +02:00
Carl-Gerhard Lindesvärd
84a3552daf fix: log session as well 2025-10-18 11:37:15 +02:00
Carl-Gerhard Lindesvärd
21fc076368 fix: checkout 2025-10-18 10:28:56 +02:00
Carl-Gerhard Lindesvärd
81a7e5d62e feat: dashboard v2, esm, upgrades (#211)
* esm

* wip

* wip

* wip

* wip

* wip

* wip

* subscription notice

* wip

* wip

* wip

* fix envs

* fix: update docker build

* fix

* esm/types

* delete dashboard :D

* add patches to dockerfiles

* update packages + catalogs + ts

* wip

* remove native libs

* ts

* improvements

* fix redirects and fetching session

* try fix favicon

* fixes

* fix

* order and resize reportds within a dashboard

* improvements

* wip

* added userjot to dashboard

* fix

* add op

* wip

* different cache key

* improve date picker

* fix table

* event details loading

* redo onboarding completely

* fix login

* fix

* fix

* extend session, billing and improve bars

* fix

* reduce price on 10M
2025-10-16 12:27:44 +02:00
Carl-Gerhard Lindesvärd
436e81ecc9 fix(api): allow multiple cors origins 2025-10-10 15:42:52 +02:00
Carl-Gerhard Lindesvärd
7d4a4c1944 bump groupmq 2025-10-09 10:10:30 +02:00
Carl-Gerhard Lindesvärd
e7c21bc92c fix: remove old event queue, cleaned up session handling, remove hacks 2025-10-09 09:25:52 +02:00
Carl-Gerhard Lindesvärd
5b2f09f29c fix: always use currentDeviceId on client request to make sure they arrive in same group 2025-10-08 07:46:50 +02:00
Carl-Gerhard Lindesvärd
174a30d515 bump groupmq 2025-10-07 18:35:12 +02:00
Carl-Gerhard Lindesvärd
6bc4f6fbd2 bump groupmq 2025-10-07 12:59:13 +02:00
Carl-Gerhard Lindesvärd
e4bc21fc2e fix: set random groupId if events from a server without a profile id 2025-10-07 09:57:12 +02:00
Carl-Gerhard Lindesvärd
af580333b4 fix: bump groupmq, fix stalled sessions in buffers, improve heavy event count 2025-10-06 22:20:14 +02:00
Carl-Gerhard Lindesvärd
b3e06e985d chore: update bots and series icons 2025-10-05 12:01:06 +02:00
Carl-Gerhard Lindesvärd
d06589831d chore: update groupmq 2025-10-05 12:00:50 +02:00
Carl-Gerhard Lindesvärd
0b4fcbad69 feat: use groupmq instead of bullmq for incoming events (#206)
* wip

* wip working group queue

* wip

* wip

* wip

* fix: groupmq package (tests failed)

* minor fixes

* fix: zero is fine for duration

* add logger

* fix: make buffers more lightweight

* bump groupmq

* new buffers and bump groupmq

* fix: buffers based on comments

* fix: use profileId as groupId if exists

* bump groupmq

* add concurrency env for only events
2025-10-04 21:07:55 +02:00
Carl-Gerhard Lindesvärd
ca4a880acd feat: graceful shutdown (#205)
* feat: graceful shutdown

* comments by coderabbit

* fix
2025-10-02 11:03:54 +02:00
Carl-Gerhard Lindesvärd
df32bb04a0 feat(api): add insights endpoints 2025-09-08 22:07:09 +02:00
Carl-Gerhard Lindesvärd
113ab0a28d chore: update bots and referrers 2025-07-02 12:16:01 +02:00
Carl-Gerhard Lindesvärd
5445d6309e test: add vitest
* feature(root): add vitest and some basic tests

* fix(test): after rebase + added referrars test and more sites

* fix(test): test broken after rebase

* fix(test): provide db url to make prisma happy

* fix tests
2025-06-06 19:14:18 +02:00
Carl-Gerhard Lindesvärd
34414e1d3e feat(geo): make geo a package instead of service (#161) 2025-06-06 05:56:54 +02:00
Carl-Gerhard Lindesvärd
5c5154ee86 fix: clear cache for organizations when subscriptions updates 2025-06-04 12:00:45 +02:00
Carl-Gerhard Lindesvärd
0d58a5bf0c improve(queue): how we handle incoming events and session ends 2025-06-03 21:19:01 +02:00
Carl-Gerhard Lindesvärd
95a30a660c fix(api): ensure we use correct date format to get chart (export) 2025-05-23 12:00:24 +02:00
Carl-Gerhard Lindesvärd
ce184b157f fix(api): filter events by profileId for export route 2025-05-21 20:52:26 +02:00
Carl-Gerhard Lindesvärd
89ab8d08de improve(api): increase limit 1000, allow both projectId and project_id 2025-04-16 21:40:22 +02:00
Carl-Gerhard Lindesvärd
34769a5d58 feat(ai): add ai chat to dashboard 2025-04-15 14:30:21 +02:00
Carl-Gerhard Lindesvärd
e9133aa5a8 trigger(build) 2025-03-28 09:37:24 +01:00
Carl-Gerhard Lindesvärd
1ce8ab8fc8 trigger build 2025-03-24 19:17:44 +01:00
Carl-Gerhard Lindesvärd
563551992d trigger(build) 2025-03-20 09:47:48 +01:00
Carl-Gerhard Lindesvärd
a1eb4a296f feature(dashboard): refactor overview
fix(lint)
2025-03-20 09:40:01 +01:00
Carl-Gerhard Lindesvärd
08b07e42fb fix(buffer): do not update created_at for profiles since its our partition key 2025-03-06 11:07:09 +01:00
Carl-Gerhard Lindesvärd
020ed5eb04 fix(api): send empty response 2025-02-28 11:17:48 +01:00
Carl-Gerhard Lindesvärd
5c6ad93ff5 improve(api): how we check duplicate requests 2025-02-28 10:03:28 +01:00
Carl-Gerhard Lindesvärd
7750ca117f improve(api): update api to fastify v5 2025-02-28 09:19:27 +01:00
Carl-Gerhard Lindesvärd
44721f84da fix(buffer): ensure we don't have duplicate events 2025-02-27 12:48:43 +01:00
Carl-Gerhard Lindesvärd
d6f5bb7833 fix(public): remove db dependencies and use traditional api call to get stats 2025-02-27 00:07:25 +01:00
Carl-Gerhard Lindesvärd
168ebc3430 feat(subscriptions): added polar as payment provider for subscriptions
* feature(dashboard): add polar / subscription

* wip(payments): manage subscription

* wip(payments): add free product, faq and some other improvements

* fix(root): change node to bundler in tsconfig

* wip(payments): display current subscription

* feat(dashboard): schedule project for deletion

* wip(payments): support custom products/subscriptions

* wip(payments): fix polar scripts

* wip(payments): add json package to dockerfiles
2025-02-26 11:24:00 +01:00
Carl-Gerhard Lindesvärd
86bf9dd064 remove(api): profile alias are no gone since not used 2025-02-24 23:24:25 +01:00
Carl-Gerhard Lindesvärd
6ad47c8bd1 improve(api): ensure we do 3 attempts to add events to the queue 2025-02-19 10:34:52 +01:00
Carl-Gerhard Lindesvärd
59012526e2 fix(worker): add reqId to logger for better traceability 2025-02-19 10:33:42 +01:00
André Brito
acc675bd36 style: formatted and added example env 2025-02-17 21:27:18 +01:00