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.

570 B
Raw Blame
-- creates youtube_quota_usage, the YouTube Data API units the instance's Google project used per Pacific day and bucket
create table public.youtube_quota_usage (
    day date not null,
    -- uploads: videos.insert calls, 100 a day; default: every other call, 10,000 units a day
    bucket text not null,
    units integer not null default 0,
    constraint youtube_quota_usage_pkey primary key (day, bucket),
    constraint youtube_quota_usage_bucket_check check (bucket in ('uploads', 'default')),
    constraint youtube_quota_usage_units_check check (units >= 0)
);