npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@logtura/driver-supabase-edge-logs

v0.2.11

Published

Logtura provider driver for Supabase Edge Functions — polls /v1/projects/{ref}/analytics/endpoints/logs.all via Vector's http_client source.

Readme

@logtura/driver-supabase-edge-logs

Logtura provider driver for Supabase Edge Functions and the project HTTP gateway. Polls the Management API's analytics endpoint (GET /v1/projects/<ref>/analytics/endpoints/logs.all) over Vector's http_client source. Same SQL family the Supabase dashboard runs under the hood.

The driver exposes two selectable surfaces:

  • one source per Edge Function runtime log stream (function_edge_logs)
  • one synthetic Project HTTP gateway source for inbound HTTP (edge_logs)

Function runtime logs are multiplexed through one poller per connection, then split into per-function metric rows after normalization. Gateway logs use a separate poller because they come from a different table.

npm install @logtura/driver-supabase-edge-logs @logtura/core

Credentials

A Supabase Personal Access Token, issued at supabase.com/dashboard/account/tokens. These are full-account scope. Supabase does not offer per-project PATs yet, so treat the token like a password and revoke it from the dashboard when you are done.

Usage

import { generateBundle } from "@logtura/core";
import { supabaseEdgeLogsDriver } from "@logtura/driver-supabase-edge-logs";

const projects = await supabaseEdgeLogsDriver.verifyCredentials({
  pat: process.env.SUPABASE_PAT!,
});
const sources = await supabaseEdgeLogsDriver.discoverSources({
  credentials: { pat: process.env.SUPABASE_PAT! },
  accountId: projects[0].id, // project ref
});

const bundle = generateBundle({
  providers: [supabaseEdgeLogsDriver],
  destinations: [/* ... */],
  connections: [{
    connection: {
      id: "con_a", provider: "supabase-edge-logs",
      displayName: "askthe prod", externalAccountId: projects[0].id,
    },
    selectedSources: sources,
    credentials: { pat: process.env.SUPABASE_PAT! },
  }],
  monitors: [/* ... */],
});

Runtime requirements

None beyond Vector itself. The http_client source is built in.

What It Emits

For function runtime logs:

  • one http_client or refresh-sidecar exec source per connection
  • one normalize transform mapping function_id UUIDs to selected slugs
  • per-function filter transforms so Vector metrics can show throughput per selected function

For project gateway logs:

  • one http_client or refresh-sidecar exec source
  • one normalize transform that derives surface from the HTTP path (rest, auth, storage, functions, etc.)

The normalize remaps unwrap Supabase's real { result: [...] } envelope and:

  • Drop unselected function events in list mode.
  • In all-selection mode, tag unknown function IDs with the UUID.
  • For function runtime logs, infer .level from event_message text because function_edge_logs does not expose HTTP status.
  • For gateway logs, infer .level from status_code (>=500 error, >=400 warn, else info).
  • Converts the microsecond timestamp to milliseconds.
  • Prefixes .message with [<script>] so non-rollup monitors still ship tagged events.

License

Apache 2.0.