174 Commits

Author SHA1 Message Date
Carl-Gerhard Lindesvärd
113ab0a28d chore: update bots and referrers 2025-07-02 12:16:01 +02:00
Carl-Gerhard Lindesvärd
92d62c3e5c improve: prepare for coolify and general self-hosting improvements (#175)
* fix(self-hosting): improve docker compose, add healthchecks, rename env SELF_HOSTED

* improve(db): improve initial migration when no data exists

* fix(db): misstakes were made

* improve(dashboard): better curl preview depending on project type

* fix(db): fix migrations

* fix(onboarding): ensure we publish event correctly

* wip

* fix: curl preview

* add coolify template

* fix(dashboard): page -> route

* fix

* fix env
2025-06-23 22:21:11 +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
0d58a5bf0c improve(queue): how we handle incoming events and session ends 2025-06-03 21:19:01 +02:00
Carl-Gerhard Lindesvärd
d38ccb4717 fix(worker): better deletion of project 2025-04-01 10:40:59 +02:00
Carl-Gerhard Lindesvärd
a9c664dcfb feat(email): send trial ending soon mails 2025-03-30 20:58:17 +02:00
Carl-Gerhard Lindesvärd
e9133aa5a8 trigger(build) 2025-03-28 09:37:24 +01:00
Carl-Gerhard Lindesvärd
8a21fadc0d feature(dashboard): add conversion rate graph 2025-03-28 09:21:10 +01:00
Carl-Gerhard Lindesvärd
7c1d36a9f3 fix(worker): add validation to worker dockerfile 2025-03-20 10:13:47 +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
75846f0f90 fix(worker): return any thing so cachable cache the request 2025-02-26 13:20:32 +01:00
Carl-Gerhard Lindesvärd
906a0d0bca fix(worker): remove clear cache for events count 2025-02-26 11:53:08 +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
bc311e35f7 chore(worker): add prom-client collectDefaultMetrics 2025-02-22 12:14:59 +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
Carl-Gerhard Lindesvärd
8e94ce5877 fix(buffer): merge events in queue and get last screen view from buffer instead of cache 2025-02-18 23:08:38 +01:00
Carl-Gerhard Lindesvärd
3fd4382c76 debug(buffer): log more and disable deletion of cache 2025-02-18 21:17:02 +01:00
Carl-Gerhard Lindesvärd
344bfd1687 fix(buffer): debug stalled events 2025-02-18 10:32:27 +01:00
Carl-Gerhard Lindesvärd
0cf73e299a chore(root): clean up unused stuff 2025-02-11 12:07:57 +01:00
Carl-Gerhard Lindesvärd
af0f9717a8 improve(worker): handle sessions with unknown state 2025-02-09 20:39:52 +01:00
Carl-Gerhard Lindesvärd
ec8aaf24fb fix(buffer): move to redis again 😅 but better 2025-02-08 21:38:27 +01:00
Carl-Gerhard Lindesvärd
e3131ed72a improve(api): cache salts 2025-02-04 14:21:37 +01:00
Carl-Gerhard Lindesvärd
be83b484bc improve(buffer): better clean up 2025-02-03 21:50:35 +01:00
Carl-Gerhard Lindesvärd
10f648fa51 fix(ci): pnpm broken 2025-02-03 09:38:46 +01:00
Carl-Gerhard Lindesvärd
ff2dca42f6 improve(buffer): prep postgres buffer 2025-02-03 09:19:00 +01:00
Carl-Gerhard Lindesvärd
71bf22af51 feature(queue): use postgres instead of redis for buffer
* wip(buffer): initial implementation of psql buffer

* wip(buffer): add both profile and bots buffer
2025-01-30 22:50:57 +00:00
Carl-Gerhard Lindesvärd
ee0f7e7d75 fix(api,worker): general improvements for workers, debugging and logging 2024-12-03 13:25:05 +01:00
Carl-Gerhard Lindesvärd
a72ac97f93 chore(worker): disable bullboard as an option 2024-12-02 20:05:04 +01:00
Carl-Gerhard Lindesvärd
9ffa213fc2 improve(worker): add env variable to disable workers 2024-11-27 12:54:36 +01:00
Carl-Gerhard Lindesvärd
0221948aab fix(worker): minor improvements of graceful shutdown 2024-11-20 14:02:31 +01:00
Carl-Gerhard Lindesvärd
60525f8905 feature(api): override user-agent information 2024-11-19 11:13:24 +01:00
Carl-Gerhard Lindesvärd
a022cb4831 feature(public,docs): new public website and docs 2024-11-13 21:15:46 +01:00
Carl-Gerhard Lindesvärd
4fe338c628 feature(api,worker): Override default timestamp with a date from the past (#76)
* feature(worker,api): refactor incoming events and support custom timestamps from the past

* fix(queue): add retry logic to events queue

* fix(worker): remove properties when merging server events
2024-10-22 10:25:21 +02:00
Carl-Gerhard Lindesvärd
2a9f7bbe4f fix(worker): get correct profile id for session end 2024-10-06 21:07:56 +02:00
Carl-Gerhard Lindesvärd
f9a0025c72 chore(api): update bots and referrers 2024-10-05 23:49:03 +02:00
Carl-Gerhard Lindesvärd
301d86aa71 fix(common): move ua parser to common and import isServer flag 2024-10-05 23:44:56 +02:00
Carl-Gerhard Lindesvärd
153faab878 fix(worker): minor improvements for incoming events 2024-10-05 22:36:02 +02:00
Carl-Gerhard Lindesvärd
f65a633403 feature(dashboard): add integrations and notifications 2024-10-02 22:41:35 +02:00
Carl-Gerhard Lindesvärd
0167d9a761 fix(worker): try wait 10 times before failing 2024-09-25 10:01:26 +02:00
Carl-Gerhard Lindesvärd
ea141e99a2 fix(worker): handle edge cases when jobs are not delayed 2024-09-25 09:11:54 +02:00
Carl-Gerhard Lindesvärd
66a49c53cf fix(worker): avoid creating new loggers 2024-09-24 22:13:15 +02:00
Carl-Gerhard Lindesvärd
25a7365569 perf(worker): try to improve perf of worker 2024-09-24 09:19:30 +02:00
Carl-Gerhard Lindesvärd
a1278ca371 fix(worker): try speed up 2024-09-23 20:06:30 +02:00
Carl-Gerhard Lindesvärd
88440c46f3 fix(worker): try improve speed 2024-09-23 20:00:40 +02:00
Carl-Gerhard Lindesvärd
dce974512f perf(worker): minor improvements to worker 2024-09-22 22:31:28 +02:00
Carl-Gerhard Lindesvärd
25f329a4cd chore(buffer): iron out the buffer issues 2024-09-19 21:38:40 +02:00
Carl-Gerhard Lindesvärd
dfe00040de chore(buffer): final adjustments to buffer before deploy 2024-09-18 23:46:38 +02:00