PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.79k stars 1.3k forks source link

Is it possible to run the frontend in a standalone way #12236

Closed vmutafov closed 1 week ago

vmutafov commented 2 years ago

Hi! I'm trying to run a modified version of the Posthog frontend and have successfully run Posthog using the Hobby deployment scripts. However, this solution is really heavy for my use case so I'm wondering if it is possible to run the frontend alone on my machine and make it connect to the cloud-hosted Posthog API?

Thanks in advance!

benjackwhite commented 2 years ago

It isn't really possible as the frontend is partly rendered by the backend. What is your use case here?

vmutafov commented 2 years ago

@benjackwhite my use case is to strip some of the functionalities from the posthog-foss repository and add some custom pages. There are no changes that I have to make in the backend so in theory running only the frontend would be enough for me. The main reason to try to run only the frontend is that running the whole stack on DigitalOcean quickly becomes costly. I'm open to other options if there is a way to some sort of white-label the Posthog but I haven't seen anything on this topic.

benjackwhite commented 2 years ago

I think this use case isn't something we want to / can support for security reasons to say the least.

Can you elaborate anymore on the goal of whitelabelling / custom pages? We have a concept of Apps that we are working actively on to allow people to expand PostHog with extra functions. Conversely if you are doing this for an internal product, you could simply build your own frontend and talk to our API using a personal API Key that would be able to access all projects you have access to.

Or is this a use case where you want to sell PostHog as part of your platform offering (B2B2C?) - if so this would be a good thing to discuss with our customer success team.

posthog-bot commented 3 weeks ago

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

posthog-bot commented 1 week ago

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.