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
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0