secondlayer · self-hosted Stacks data runtime

Decoded chain data,
on your own infra.

Any serious app needs data a general-purpose API can’t serve, and shouldn’t have to. This is the layer underneath, so you can shape it yourself.

From zero to a live table, with your agent driving.

The docs ship as a skill. Install it once and your harness knows every command; you describe the table, it does the setup. No account. One token from secondlayer init.

  1. One script. Picked up on the next session.

    terminal
    curl -fsSL https://secondlayer.tools/skill.sh | bash
  2. /secondlayer index sBTC deposits and withdrawals into a table called sbtc-flows
  3. terminal
    curl http://127.0.0.1:3800/v1/subgraphs/sbtc-flows?limit=3

Your node. Your database.

One container beside your node. Every row lands in Postgres you operate, checkable against the signed archive.