Skip to content

secondlayer

Self-hosted Stacks blockchain data service whose Slack gate and fault-triage paths reportedly run on Jev decisions.

ServiceproductionMIT

Overview

Secondlayer is a runtime for Stacks blockchain data: decoded chain data in your own database, backfilled from genesis, reorg-safe and kept current. It provides tables and a REST API out of the box, or streams rows into your own Postgres or SQLite schema, with subgraphs that index a contract into typed tables, webhooks on raw chain events, TypeScript SDKs, a CLI and an MCP server. It can be used hosted (with a free monthly row allowance) or self-hosted with Postgres plus one container.

The Jev connection comes from the directory listing, which says the service's Slack gate and fault-triage paths both run on Jev decisions; the fetched README does not describe them. The likely role is classifying operational faults and deciding which events or alerts reach Slack.

What the decision model decides

TypeQuestionAnswers
ChoiceHow should this operational fault be triaged?(inferred)—
Yes / noShould this event pass the Slack gate?(inferred)—

How it works

  1. Index chain data and monitor the service
  2. On a fault or event, ask Jev a typed triage question
  3. Route to Slack or handle automatically based on the answer

Strengths

  • Self-hostable data service with Jev-based triage

Caveats

  • Jev usage described only in the list summary
  • Jev is a minor part of a larger data platform

Getting started

bun add -g @secondlayer/cli && secondlayer init --network mainnet && cd docker/oss && docker compose up -d

At a glance

Type
Service
Status
production
Language
TypeScript
Runtime
Self-hosted service (Postgres + container), CLI, MCP
Has code
yes
License
MIT

Use cases and integrations

How curated lists describe it

  • Fault triage: self-hosted Stacks data service whose Slack gate and fault-triage paths both run on Jev decisions.

    yibie/awesome-jev

Frequently asked questions

What does Jev decide in Secondlayer?

Per the list summary, Slack gating and fault triage.

What is Secondlayer?

A runtime that indexes Stacks chain data into your own database with APIs and webhooks.

Can I self-host it?

Yes, with Postgres and one container.

Related projects

  • DeepSeek Harness plugin that classifies each user message's emotion, urgency and department with Jev and injects it as context.

    PluginbetaTypeScript
  • Home Assistant integration that runs weekly checks with Jev judgments and turns confident findings into Repairs cards for you to confirm.

    ProjectbetaPython
  • Scores OpenTelemetry logs with Jev for diagnostic value, priority and routing before any expensive LLM analysis.

    ProjectbetaTypeScript
  • Python CLI that analyses JSON, NDJSON and JSONC logs and artifacts with Jev question packs, anchoring each answer to source lines.

    CLIbetaPython
  • Splunk search command that asks Jev typed questions about events and adds probabilities, choices and scores as fields.

    AppbetaPython
  • One Jev call per log batch answers noise and severity questions; code maps answers to suppress, watch, review, notify or page.

    ProjectbetaPython