← Back to Prototype Directory

Website repost

I want to repost posts when someone links to my website.

Author:
@ngerakines.me
Created:
2025-09-18
Updated:
2025-09-18

Placeholders

Website

The base URL of your website, including https://

Key:
WEBSITE
Type:
url
Required:
Yes

Node Configuration

[
  {
    "configuration": {
      "collection": [
        "app.bsky.feed.post"
      ]
    },
    "node_type": "jetstream_entry",
    "payload": {
      "and": [
        {
          "==": [
            {
              "val": [
                "kind"
              ]
            },
            "commit"
          ]
        },
        {
          "==": [
            {
              "val": [
                "commit",
                "operation"
              ]
            },
            "create"
          ]
        },
        {
          "or": [
            {
              "and": [
                {
                  "==": [
                    {
                      "val": [
                        "commit",
                        "record",
                        "embed",
                        "$type"
                      ]
                    },
                    "app.bsky.embed.external"
                  ]
                },
                {
                  "starts_with": [
                    {
                      "val": [
                        "commit",
                        "record",
                        "embed",
                        "external",
                        "uri"
                      ]
                    },
                    "$[WEBSITE]"
                  ]
                }
              ]
            },
            {
              "some": [
                {
                  "val": [
                    "commit",
                    "record",
                    "facets"
                  ]
                },
                {
                  "some": [
                    {
                      "val": [
                        "features"
                      ]
                    },
                    {
                      "and": [
                        {
                          "==": [
                            {
                              "val": [
                                "$type"
                              ]
                            },
                            "app.bsky.richtext.facet#link"
                          ]
                        },
                        {
                          "starts_with": [
                            {
                              "val": [
                                "uri"
                              ]
                            },
                            "$[WEBSITE]"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  },
  {
    "configuration": {},
    "node_type": "transform",
    "payload": {
      "record": {
        "$type": "app.bsky.feed.repost",
        "createdAt": {
          "now": []
        },
        "subject": {
          "cid": {
            "val": [
              "commit",
              "cid"
            ]
          },
          "uri": {
            "cat": [
              "at://",
              {
                "val": [
                  "did"
                ]
              },
              "/app.bsky.feed.post/",
              {
                "val": [
                  "commit",
                  "rkey"
                ]
              }
            ]
          }
        }
      }
    }
  },
  {
    "configuration": {},
    "node_type": "publish_record",
    "payload": {
      "val": [
        "record"
      ]
    }
  }
]