Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

2.3 KB
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script>
      // the app leaves this cookie on the shared domain while someone is signed in (frontend/src/lib/signedInCookie.ts),
      // so the home page opens the dashboard before it paints; docs and other pages stay readable
      if (location.pathname === '/' && /(?:^|;\s*)twiligent_signed_in=1(?:;|$)/.test(document.cookie)) {
        location.replace('https://app.twiligent.ujjwal.fyi/');
      }
    </script>
    <title>Twiligent: YouTube and Instagram analytics in one dashboard</title>
    <meta name="description" content="Twiligent puts your YouTube and Instagram numbers side by side, publishes and schedules your Instagram posts, answers Instagram comments with a private reply, and runs on accounts you own." />
    <link rel="icon" href="/brand/twiligent-favicon.svg" type="image/svg+xml" />
    <link rel="icon" href="/brand/twiligent-favicon-32.png" type="image/png" sizes="32x32" />
    <link rel="apple-touch-icon" href="/brand/twiligent-app-icon-dusk-180.png" />
    <meta name="theme-color" content="#140E10" media="(prefers-color-scheme: dark)" />
    <meta name="theme-color" content="#F7F3EF" media="(prefers-color-scheme: light)" />
    <link rel="preload" href="/fonts/sora-latin-600-normal.woff2" as="font" type="font/woff2" crossorigin />
    <link rel="preload" href="/fonts/manrope-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin />
    <!-- the ribbon crop on the hero panel is the largest thing on a phone screen, so it is fetched before the script asks for it -->
    <link rel="preload" href="/brand/twiligent-mark-white.svg" as="image" fetchpriority="high" />
    <script>
      // the saved choice, or the system setting, before the first paint so the page never flashes the other theme
      try {
        var saved = localStorage.getItem('twiligent-theme');
        var dark = saved ? saved === 'dark' : !window.matchMedia('(prefers-color-scheme: light)').matches;
        document.documentElement.dataset.theme = dark ? 'dark' : 'light';
      } catch (e) {
        document.documentElement.dataset.theme = 'dark';
      }
    </script>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>