Deploy atproto-tap-example

Template for backfilling on atproto

Deploy atproto-tap-example

/var/lib/postgresql/data

Deploy and Host atproto-tap-example on Railway

Backfill atproto records made easy

About Hosting atproto-tap-example

Set configs and deploy your atproto-tap-example backfiller on Railway.

Common Use Cases

  • Backfilling atproto records
  • Listening for new atproto records

Dependencies for atproto-tap-example Hosting

  • tap
  • postgresql

Deployment Dependencies

Implementation Details

Example consuming tap

import { Tap, SimpleIndexer } from '@atproto/tap'

const tap = new Tap('https://{your tap service public domain}', {adminPassword: 'topsecret'})

const indexer = new SimpleIndexer()

indexer.identity(async (evt) => {
    console.log(`${evt.did} updated identity: ${evt.handle} (${evt.status})`)
})


indexer.record(async (evt, opts) => {

    const uri = `at://${evt.did}/${evt.collection}/${evt.rkey}`
    if (evt.action === 'create' || evt.action === 'update') {
        console.log(`${evt.action}: ${uri}`)
    } else {
        console.log(`deleted: ${uri}`)
    }
    //Uncomment to NOT acknowledge the event from the tap server so you can re run the script during development
    // opts.ack = () => console.log('"acknowledged"')
})


indexer.error((err) => console.error(err))

const channel = tap.channel(indexer)
channel.start()

Why Deploy atproto-tap-example on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying atproto-tap-example on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

View Template
peppermint
Docker-compose port for peppermint.sh