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.

527 B
Raw Blame
import { Hono } from 'hono';
import {
    getChannelAnalytics, getChannelVideos, getInstagramAnalytics, getInstagramMedia,
} from '../controllers/analyticsController.ts';
import type { AppEnv } from '../types/app.ts';

const router = new Hono<AppEnv>();

router.get('/accounts/:id/analytics', ...getChannelAnalytics);
router.get('/accounts/:id/videos', ...getChannelVideos);
router.get('/accounts/:id/ig-analytics', ...getInstagramAnalytics);
router.get('/accounts/:id/ig-media', ...getInstagramMedia);

export default router;