Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

1.6 KB
Raw Blame
import { CtaBanner } from './_sections/cta-banner';
import { Faq } from './_sections/faq';
import { FeaturesBento } from './_sections/features-bento';
import { Hero } from './_sections/hero';
import { Pillars } from './_sections/pillars';
import { SocialProof } from './_sections/social-proof';
import { Trust } from './_sections/trust';
import {
  OPENPANEL_BASE_URL,
  OPENPANEL_DESCRIPTION,
  OPENPANEL_NAME,
  OPENPANEL_SITE_NAME,
} from '@/lib/openpanel-brand';

const jsonLd = {
  '@context': 'https://schema.org',
  '@graph': [
    {
      '@type': 'WebSite',
      name: OPENPANEL_SITE_NAME,
      alternateName: ['OpenPanel', 'OpenPanel.dev'],
      url: OPENPANEL_BASE_URL,
    },
    {
      '@type': 'Organization',
      name: OPENPANEL_SITE_NAME,
      url: OPENPANEL_BASE_URL,
      sameAs: [
        'https://github.com/Openpanel-dev/openpanel',
        'https://x.com/OpenPanelDev',
      ],
      description: OPENPANEL_DESCRIPTION,
      keywords:
        'openpanel, product analytics, web analytics, mixpanel alternative, open source analytics',
    },
    {
      '@type': 'SoftwareApplication',
      name: OPENPANEL_NAME,
      applicationCategory: 'AnalyticsApplication',
      operatingSystem: 'Web',
      url: OPENPANEL_BASE_URL,
      description: OPENPANEL_DESCRIPTION,
    },
  ],
};

export default function HomePage() {
  return (
    <>
      <script
        dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
        type="application/ld+json"
      />
      <Hero />
      <SocialProof />
      <Pillars />
      <FeaturesBento />
      <Trust />
      <Faq />
      <CtaBanner />
    </>
  );
}