{
  "id": "task_libraries:message-queue/javascript",
  "path": "/exapedia/javascript-message-queue-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript message queue libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript message queue libraries connect an application to a message broker or managed queue service. A producer publishes each message to a topic or queue before a consumer reads and acknowledges it on its own schedule. These libraries let backend services and agent workers hand off jobs, events, and device data without waiting on each other."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript message queue libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#ioredis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-sqs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-pubsub",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kafkajs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#amqplib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mqtt-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nats-node-transport",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-service-bus",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F254"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#ioredis",
          "label": [
            {
              "t": "text",
              "text": "ioredis"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F130"
        },
        {
          "t": "text",
          "text": ", a count that covers every Redis operation rather than messaging alone."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Publish batching",
            "Browser client"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#ioredis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-sqs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-pubsub",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kafkajs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#amqplib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mqtt-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#nats-node-transport",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-service-bus",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F254"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "ioredis",
          "name": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/redis/ioredis"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/ioredis"
            },
            {
              "label": "Docs",
              "href": "https://github.com/redis/ioredis/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/redis/ioredis/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "public async bindEvents(subClient: Redis, pubClient: Redis): Promise<void> {\n  subClient.on(\n    this.options?.wildcards ? 'pmessage' : 'message',\n    this.getMessageHandler(pubClient).bind(this),\n  );\n  const subscribePatterns = [...this.messageHandlers.keys()];\n  // Awaited so that a rejected subscription (e.g., an ACL without access to\n  // the channel) fails `listen()` instead of going unhandled.\n  await Promise.all(\n    subscribePatterns.map(pattern => {\n      const { isEventHandler } = this.messageHandlers.get(pattern)!;\n\n      const channel = isEventHandler\n        ? pattern\n        : this.getRequestPattern(pattern);\n\n      return this.options?.wildcards\n        ? subClient.psubscribe(channel)\n        : subClient.subscribe(channel);\n    }),\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest/blob/f5a561a6de90fdb2954b8072d256f03b5a082af2/packages/microservices/server/server-redis.ts#L89-L110",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ioredis%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Redis from 'ioredis';\n\nconst redis = new Redis('redis://localhost:6379');\nawait redis.publish('events', 'Hello world!');\nredis.disconnect();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/redis/ioredis/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aws-sdk-client-sqs",
          "name": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aws/aws-sdk-js-v3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@aws-sdk/client-sqs"
            },
            {
              "label": "Docs",
              "href": "https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-sqs/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-sqs/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Helicone/helicone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async getQueueSize(): Promise<number | null> {\n  const command = new GetQueueAttributesCommand({\n    QueueUrl: this.queueUrl,\n    AttributeNames: [\"ApproximateNumberOfMessages\"],\n  });\n  const response = await this.sqs.send(command);\n  return response.Attributes?.ApproximateNumberOfMessages\n    ? Number(response.Attributes.ApproximateNumberOfMessages)\n    : null;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Helicone/helicone/blob/9254d10e5f11af76912f050e6198f274abc2f005/helicone-heartbeat/src/clients/SqsClient.ts#L42-L51",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40aws-sdk/client-sqs%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { SQSClient, GetQueueAttributesCommand } from '@aws-sdk/client-sqs';\n\nconst client = new SQSClient({ region: process.env.AWS_REGION });\nconst result = await client.send(new GetQueueAttributesCommand({\n  QueueUrl: process.env.SQS_QUEUE_URL,\n  AttributeNames: ['ApproximateNumberOfMessages'],\n}));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-sqs/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "google-cloud-pubsub",
          "name": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/googleapis/nodejs-pubsub"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@google-cloud/pubsub"
            },
            {
              "label": "Docs",
              "href": "https://googleapis.dev/nodejs/pubsub/6.4.1/PubSub.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://googleapis.dev/nodejs/pubsub/6.4.1/PubSub.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/googleworkspace/google-chat-samples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const messageHandler = message => {\n  console.log(`Id : ${message.id}`);\n  const event = JSON.parse(message.data);\n  console.log(`Data : ${JSON.stringify(event)}`);\n\n  // Post the response to Google Chat.\n  const request = formatRequest(event);\n  if (request != null) {\n    chat.createMessage(request);\n  }\n\n  // Ack the message.\n  message.ack();\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/googleworkspace/google-chat-samples/blob/62dd4336fb4062caedfb3d35bd9f8c19b07f7506/node/pub-sub-app/index.js#L37-L50",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40google-cloud/pubsub%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { PubSub } from '@google-cloud/pubsub';\n\nconst pubsub = new PubSub();\nconst topic = pubsub.topic(process.env.PUBSUB_TOPIC);\nconst messageId = await topic.publishMessage({ data: Buffer.from('Hello world!') });\nawait pubsub.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://googleapis.dev/nodejs/pubsub/6.4.1/PubSub.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "Topic.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "kafkajs",
          "name": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tulios/kafkajs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/kafkajs"
            },
            {
              "label": "Docs",
              "href": "https://kafka.js.org/docs/consuming"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://kafka.js.org/docs/consuming",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "public async bindEvents(consumer: Consumer) {\n  const registeredPatterns = [...this.messageHandlers.keys()];\n  const consumerSubscribeOptions = this.options.subscribe || {};\n\n  if (registeredPatterns.length > 0) {\n    await this.consumer!.subscribe({\n      ...consumerSubscribeOptions,\n      topics: registeredPatterns,\n    });\n  }\n\n  const consumerRunOptions = {\n    ...(this.options.run || {}),\n    eachMessage: this.getMessageHandler(),\n  };\n  await consumer.run(consumerRunOptions);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest/blob/085f83a168e9edbedfe9560428dcfd270073ae00/packages/microservices/server/server-kafka.ts#L253-L269",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Established%20public%20JavaScript%20TypeScript%20applications%20using%20kafkajs%20native%20broker%20client%20message%20publishing%20consuming%20acknowledgement%20backpressure%20routing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Kafka } from 'kafkajs';\n\nconst kafka = new Kafka({ clientId: 'example', brokers: ['localhost:9092'] });\nconst producer = kafka.producer();\nawait producer.connect();\nawait producer.send({ topic: 'events', messages: [{ value: 'Hello world!' }] });\nawait producer.disconnect();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://kafka.js.org/docs/producing",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "amqplib",
          "name": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/amqp-node/amqplib"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/amqplib"
            },
            {
              "label": "Docs",
              "href": "https://amqp-node.github.io/amqplib/channel_api.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://amqp-node.github.io/amqplib/channel_api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/moleculerjs/moleculer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "send(topic, data, { balanced, packet }) {\n\t/* istanbul ignore next*/\n\tif (!this.channel) return this.broker.Promise.resolve();\n\n\tif (packet.target != null || balanced) {\n\t\tthis.channel.sendToQueue(topic, data, this.opts.messageOptions);\n\t} else {\n\t\tthis.channel.publish(topic, \"\", data, this.opts.messageOptions);\n\t}\n\n\treturn this.broker.Promise.resolve();\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/moleculerjs/moleculer/blob/008129c32eebc1911b640b40e2da86e5c0bd936a/src/transporters/amqp.js#L488-L499",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Established%20public%20JavaScript%20TypeScript%20applications%20using%20amqplib%20native%20broker%20client%20message%20publishing%20consuming%20acknowledgement%20backpressure%20routing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import amqp from 'amqplib';\n\nconst connection = await amqp.connect('amqp://localhost');\nconst channel = await connection.createChannel();\nawait channel.assertQueue('jobs');\nchannel.sendToQueue('jobs', Buffer.from('Hello world!'));\nawait channel.close();\nawait connection.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://amqp-node.github.io/amqplib/channel_api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mqtt-js",
          "name": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mqttjs/MQTT.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/mqtt"
            },
            {
              "label": "Docs",
              "href": "https://github.com/mqttjs/MQTT.js/blob/v5.16.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mqttjs/MQTT.js/blob/v5.16.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/moleculerjs/moleculer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F235"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "subscribe(cmd, nodeID) {\n\treturn new this.broker.Promise((resolve, reject) => {\n\t\tconst topic = this.getTopicName(cmd, nodeID);\n\t\tthis.client.subscribe(topic, { qos: this.qos }, (err, granted) => {\n\t\t\tif (err) return reject(err);\n\n\t\t\tthis.logger.debug(\"MQTT server granted\", granted);\n\n\t\t\tresolve();\n\t\t});\n\t});\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/moleculerjs/moleculer/blob/008129c32eebc1911b640b40e2da86e5c0bd936a/src/transporters/mqtt.js#L153-L164",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Established%20public%20JavaScript%20TypeScript%20applications%20using%20mqtt%20native%20broker%20client%20message%20publishing%20consuming%20acknowledgement%20backpressure%20routing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import mqtt from 'mqtt';\n\nconst client = await mqtt.connectAsync('mqtt://localhost');\nawait client.publishAsync('events', 'Hello world!');\nawait client.endAsync();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mqttjs/MQTT.js/blob/v5.16.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F225"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "nats-node-transport",
          "name": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nats-io/nats.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@nats-io/transport-node"
            },
            {
              "label": "Docs",
              "href": "https://github.com/nats-io/nats.js/blob/v3.5.0/transport-node/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F90"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/nats-io/nats.js/blob/v3.5.0/transport-node/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F98"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F252"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "public getPublisher(natsMsg: NatsMsg, id: string, ctx: NatsContext) {\n  if (natsMsg.reply) {\n    return (response: any) => {\n      Object.assign(response, { id });\n      const outgoingResponse: NatsRecord =\n        this.serializer.serialize(response);\n\n      return natsMsg.respond(outgoingResponse.data, {\n        headers: outgoingResponse.headers,\n      });\n    };\n  }\n\n  // In case the \"reply\" topic is not provided, there's no need for a reply.\n  // Method returns a noop function instead\n\n  return () => {};\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/nestjs/nest/blob/f5a561a6de90fdb2954b8072d256f03b5a082af2/packages/microservices/server/server-nats.ts#L277-L294",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F251"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Established%20public%20JavaScript%20TypeScript%20applications%20using%20%40nats-io/transport-node%20native%20broker%20client%20message%20publishing%20consuming%20acknowledgement%20backpressure%20routing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { connect } from '@nats-io/transport-node';\n\nconst connection = await connect({ servers: 'nats://localhost:4222' });\nconnection.publish('events', new TextEncoder().encode('Hello world!'));\nawait connection.drain();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/nats-io/nats.js/blob/v3.5.0/transport-node/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "runtimes.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "azure-service-bus",
          "name": [
            {
              "t": "fact",
              "fact": "F254"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Azure/azure-sdk-for-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@azure/service-bus"
            },
            {
              "label": "Docs",
              "href": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicebus/service-bus/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F261"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicebus/service-bus/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F254"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/opensource-management-portal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F271"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async deleteMessage(message: IQueueMessage): Promise<void> {\n  if (!this.#initialized) {\n    throw new Error('Provider not initialized');\n  }\n  if (this.#options.immediatelyDeleteMessages) {\n    console.log(\n      `In immediate delete mode, not deleting message ${message.identifier} (it was already handled)`\n    );\n    return;\n  }\n  const assumedType = message as ServiceBusMessage;\n  const lockedMessage = assumedType.lockedMessage();\n  try {\n    await this.#receiver.completeMessage(lockedMessage);\n  } catch (deleteError) {\n    console.warn(`Delete error: ${deleteError}`);\n    throw deleteError;\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/opensource-management-portal/blob/a1c7f6e691e271936bf14557435b94f78857fe96/lib/queues/servicebus.ts#L133-L151",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F270"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40azure/service-bus%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F254"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { ServiceBusClient } from '@azure/service-bus';\n\nconst client = new ServiceBusClient(process.env.SERVICE_BUS_CONNECTION_STRING);\nconst sender = client.createSender(process.env.SERVICE_BUS_QUEUE);\nawait sender.sendMessages({ body: 'Hello world!' });\nawait sender.close();\nawait client.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicebus/service-bus/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F259"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript message queue library should I use?",
      "a": [
        {
          "t": "text",
          "text": "The broker decides the library. "
        },
        {
          "t": "link",
          "href": "#kafkajs",
          "label": [
            {
              "t": "text",
              "text": "KafkaJS"
            }
          ]
        },
        {
          "t": "text",
          "text": " connects to Apache Kafka, "
        },
        {
          "t": "link",
          "href": "#amqplib",
          "label": [
            {
              "t": "text",
              "text": "amqplib"
            }
          ]
        },
        {
          "t": "text",
          "text": " to RabbitMQ and other AMQP brokers, and "
        },
        {
          "t": "link",
          "href": "#mqtt-js",
          "label": [
            {
              "t": "text",
              "text": "MQTT.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " to MQTT brokers. Managed services have their own SDKs, such as the "
        },
        {
          "t": "link",
          "href": "#aws-sdk-client-sqs",
          "label": [
            {
              "t": "text",
              "text": "AWS SDK SQS client"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#google-cloud-pubsub",
          "label": [
            {
              "t": "text",
              "text": "Google Cloud Pub/Sub"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "RabbitMQ vs Kafka: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "RabbitMQ routes messages through exchanges and queues with per-message acknowledgement, through "
        },
        {
          "t": "link",
          "href": "#amqplib",
          "label": [
            {
              "t": "text",
              "text": "amqplib"
            }
          ]
        },
        {
          "t": "text",
          "text": " in Node.js. Kafka keeps messages in partitioned logs that consumer groups read by offset, through "
        },
        {
          "t": "link",
          "href": "#kafkajs",
          "label": [
            {
              "t": "text",
              "text": "KafkaJS"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "What is ioredis?",
      "a": [
        {
          "t": "link",
          "href": "#ioredis",
          "label": [
            {
              "t": "text",
              "text": "ioredis"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Redis client for Node.js with Pub/Sub and Streams commands. Redis Pub/Sub delivers messages without per-message acknowledgement."
        }
      ]
    },
    {
      "q": "What is KafkaJS?",
      "a": [
        {
          "t": "link",
          "href": "#kafkajs",
          "label": [
            {
              "t": "text",
              "text": "KafkaJS"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an Apache Kafka client for Node.js with producers, consumers, and consumer groups. Consumers track their progress through committed offsets."
        }
      ]
    },
    {
      "q": "What is amqplib?",
      "a": [
        {
          "t": "link",
          "href": "#amqplib",
          "label": [
            {
              "t": "text",
              "text": "amqplib"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Node.js client for AMQP brokers such as RabbitMQ. It works with channels, exchanges, queues, routing keys, and optional publisher confirms."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, kafkajs",
      "display": "KafkaJS",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, kafkajs",
      "display": "19.3M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, kafkajs",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, kafkajs",
      "display": "2.2.4",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, kafkajs",
      "display": "v2.2.4",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, kafkajs",
      "display": "4.0K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Publish messages, kafkajs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Subscribe to messages, kafkajs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "TLS connections, kafkajs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Automatic reconnect, kafkajs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, kafkajs",
      "display": "npm install kafkajs",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, kafkajs",
      "display": "Produces and consumes Apache Kafka messages from Node.js applications.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, kafkajs",
      "display": "Consumes whole message batches",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, kafkajs",
      "display": "Use eachBatch to process batches and control offset resolution.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, kafkajs",
      "display": "Pauses individual topic partitions",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, kafkajs",
      "display": "Use pause to stop a topic-partition and resume it later.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, kafkajs",
      "display": "Long handlers need heartbeats",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, kafkajs",
      "display": "Increase sessionTimeout or send heartbeats during slow message processing.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, kafkajs",
      "display": "Fatal errors stop consumer restarts",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, kafkajs",
      "display": "Handle non-retriable errors outside restartOnFailure.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, kafkajs",
      "display": "const { Kafka } = require('kafkajs')\n\nconst kafka = new Kafka({\n  clientId: 'my-app',\n  brokers: ['kafka1:9092', 'kafka2:9092']\n})\n\nconst producer = kafka.producer()\nconst consumer = kafka.consumer({ groupId: 'test-group' })\n\nconst run = async () => {\n  // Producing\n  await producer.connect()\n  await producer.send({\n    topic: 'test-topic',\n    messages: [\n      { value: 'Hello KafkaJS user!' },\n    ],\n  })\n\n  // Consuming\n  await consumer.connect()\n  await consumer.subscribe({ topic: 'test-topic', fromBeginning: true })\n\n  await consumer.run({\n    eachMessage: async ({ topic, partition, message }) => {\n      console.log({\n        partition,\n        offset: message.offset,\n        value: message.value.toString(),\n      })\n    },\n  })\n}\n\nrun().catch(console.error)\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, kafkajs",
      "display": "public async bindEvents(consumer: Consumer) {\n    const registeredPatterns = [...this.messageHandlers.keys()];\n    const consumerSubscribeOptions = this.options.subscribe || {};\n\n    if (registeredPatterns.length > 0) {\n      await this.consumer!.subscribe({\n        ...consumerSubscribeOptions,\n        topics: registeredPatterns,\n      });\n    }\n\n    const consumerRunOptions = {\n      ...(this.options.run || {}),\n      eachMessage: this.getMessageHandler(),\n    };\n    await consumer.run(consumerRunOptions);\n  }\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, kafkajs",
      "display": "server-kafka.ts · bindEvents()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, kafkajs",
      "display": "nestjs/nest",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, nestjs/nest",
      "display": "77.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, nestjs/nest",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Library name, amqplib",
      "display": "amqplib",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, amqplib",
      "display": "16.5M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, amqplib",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, amqplib",
      "display": "2.4.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, amqplib",
      "display": "v2.4.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, amqplib",
      "display": "3.8K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Publish messages, amqplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Subscribe to messages, amqplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "TLS connections, amqplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Automatic reconnect, amqplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, amqplib",
      "display": "npm install amqplib",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, amqplib",
      "display": "Connects Node.js applications to AMQP brokers using channels, exchanges, and queues.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, amqplib",
      "display": "Offers broker confirmation callbacks",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, amqplib",
      "display": "Use ConfirmChannel callbacks to track server confirmations.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, amqplib",
      "display": "Recovers connections when enabled",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, amqplib",
      "display": "Configure recovery and recreate channels inside its setup callback.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, amqplib",
      "display": "Publishing needs backpressure handling",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, amqplib",
      "display": "Pause writes after false and resume on drain.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, amqplib",
      "display": "Supports AMQP 0-9-1 only",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, amqplib",
      "display": "Use another client for AMQP 1.0 brokers.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, amqplib",
      "display": "const amqplib = require('amqplib');\n\n(async () => {\n  const queue = 'tasks';\n  const conn = await amqplib.connect('amqp://localhost');\n  conn.on('error', (err) => { console.error('Connection error:', err); });\n  conn.on('handler-error', (err, event) => { console.error(`Uncaught exception in connection ${event} listener:`, err); });\n\n  const ch1 = await conn.createChannel();\n  ch1.on('error', (err) => { console.error('Channel error:', err); });\n  ch1.on('handler-error', (err, event) => { console.error(`Uncaught exception in channel ${event} listener:`, err); });\n  await ch1.assertQueue(queue);\n\n  // Listener\n  ch1.consume(queue, (msg) => {\n    if (msg !== null) {\n      console.log('Received:', msg.content.toString());\n      ch1.ack(msg);\n    } else {\n      console.log('Consumer cancelled by server');\n    }\n  });\n\n  // Sender\n  const ch2 = await conn.createChannel();\n  ch2.on('error', (err) => { console.error('Channel error:', err); });\n  ch2.on('handler-error', (err, event) => { console.error(`Uncaught exception in channel ${event} listener:`, err); });\n\n  setInterval(() => {\n    ch2.sendToQueue(queue, Buffer.from('something to do'));\n  }, 1000);\n})();\n\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, amqplib",
      "display": "_consumeCB(cmd, needAck = false) {\n\t\treturn msg => {\n\t\t\tconst result = this.receive(cmd, msg.content);\n\n\t\t\t// If a promise is returned, acknowledge the message after it has resolved.\n\t\t\t// This means that if a worker dies after receiving a message but before responding, the\n\t\t\t// message won't be lost and it can be retried.\n\t\t\tif (needAck) {\n\t\t\t\tif (isPromise(result)) {\n\t\t\t\t\treturn result\n\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\tif (this.channel) this.channel.ack(msg);\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tthis.logger.error(\"Message handling error.\", err);\n\t\t\t\t\t\t\tif (this.channel) this.channel.nack(msg);\n\t\t\t\t\t\t});\n\t\t\t\t} else if (this.channel) {\n\t\t\t\t\tthis.channel.ack(msg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t};\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, amqplib",
      "display": "amqp.js · _consumeCB()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, amqplib",
      "display": "moleculerjs/moleculer",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, moleculerjs/moleculer",
      "display": "6.4K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, moleculerjs/moleculer",
      "display": "Sep 2026",
      "asOf": "2026-09-07"
    },
    "F53": {
      "label": "Library name, mqtt",
      "display": "MQTT.js",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, mqtt",
      "display": "14.6M",
      "asOf": "2026-11-16"
    },
    "F55": {
      "label": "License, mqtt",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, mqtt",
      "display": "5.16.1",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, mqtt",
      "display": "v5.16.1",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, mqtt",
      "display": "9.1K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Publish messages, mqtt",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Subscribe to messages, mqtt",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "TLS connections, mqtt",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Automatic reconnect, mqtt",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, mqtt",
      "display": "npm install mqtt",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, mqtt",
      "display": "Publishes and subscribes to MQTT topics from Node.js and browsers.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, mqtt",
      "display": "Runs in browsers",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, mqtt",
      "display": "Use the same MQTT library in Node.js and browser applications.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, mqtt",
      "display": "Processes messages with backpressure",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, mqtt",
      "display": "Override handleMessage to process messages one at a time.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, mqtt",
      "display": "Backpressure handlers must call back",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, mqtt",
      "display": "Call callback after handling a message to keep the client moving.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, mqtt",
      "display": "Refused connections need retry opt-in",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, mqtt",
      "display": "Enable reconnectOnConnackError to retry connections the broker actively denies.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, mqtt",
      "display": "const mqtt = require(\"mqtt\");\nconst client = mqtt.connect(\"mqtt://test.mosquitto.org\");\n\nclient.on(\"connect\", () => {\n  client.subscribe(\"presence\", (err) => {\n    if (!err) {\n      client.publish(\"presence\", \"Hello mqtt\");\n    }\n  });\n});\n\nclient.on(\"message\", (topic, message) => {\n  // message is Buffer\n  console.log(message.toString());\n  client.end();\n});\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, mqtt",
      "display": "subscribe(cmd, nodeID) {\n\t\treturn new this.broker.Promise((resolve, reject) => {\n\t\t\tconst topic = this.getTopicName(cmd, nodeID);\n\t\t\tthis.client.subscribe(topic, { qos: this.qos }, (err, granted) => {\n\t\t\t\tif (err) return reject(err);\n\n\t\t\t\tthis.logger.debug(\"MQTT server granted\", granted);\n\n\t\t\t\tresolve();\n\t\t\t});\n\t\t});\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, mqtt",
      "display": "mqtt.js · subscribe()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, mqtt",
      "display": "moleculerjs/moleculer",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, moleculerjs/moleculer",
      "display": "6.4K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, moleculerjs/moleculer",
      "display": "Sep 2026",
      "asOf": "2026-09-07"
    },
    "F79": {
      "label": "Library name, @nats-io/transport-node",
      "display": "NATS Node transport",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, @nats-io/transport-node",
      "display": "3.8M",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "License, @nats-io/transport-node",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, @nats-io/transport-node",
      "display": "3.5.0",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, @nats-io/transport-node",
      "display": "v3.5.0",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, @nats-io/transport-node",
      "display": "455",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Publish messages, @nats-io/transport-node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Subscribe to messages, @nats-io/transport-node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "TLS connections, @nats-io/transport-node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Automatic reconnect, @nats-io/transport-node",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Install, @nats-io/transport-node",
      "display": "npm install @nats-io/transport-node",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "What it does, @nats-io/transport-node",
      "display": "Provides Node.js NATS connections and re-exports the core messaging APIs.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, @nats-io/transport-node",
      "display": "Distributes messages within queue groups",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, @nats-io/transport-node",
      "display": "Use a queue group to distribute messages among subscribers.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, @nats-io/transport-node",
      "display": "Drains messages before closing",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, @nats-io/transport-node",
      "display": "Drain the connection to finish subscriptions and send outbound messages.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, @nats-io/transport-node",
      "display": "JetStream needs another package",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, @nats-io/transport-node",
      "display": "Install and import the JetStream module for its additional APIs.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, @nats-io/transport-node",
      "display": "Callbacks cannot await message handling",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, @nats-io/transport-node",
      "display": "Use an async iterator or handle asynchronous work outside the callback.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Quickstart, @nats-io/transport-node",
      "display": "import { connect, deferred, nuid } from \"@nats-io/transport-node\";\n// import { connect, deferred, nuid } from \"@nats-io/transport-deno\";\n\nconst nc = await connect({ servers: \"demo.nats.io\" });\nconsole.log(`connected`);\n\nconst subj = nuid.next();\n\nnc.subscribe(subj, {\n  callback: (err, msg) => {\n    console.log(msg.subject, msg.json());\n  },\n});\n\nlet i = 0;\nconst d = deferred();\nconst timer = setInterval(() => {\n  i++;\n  nc.publish(subj, JSON.stringify({ ts: new Date().toISOString(), i }));\n  if (i === 10) {\n    clearInterval(timer);\n    d.resolve();\n  }\n}, 1000);\n\nawait d;\nawait nc.drain();\n",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "AMQP channels and broker confirmations",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose amqplib",
      "display": "server confirmation callbacks",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "AMQP channels and broker confirmations",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider kafkajs",
      "display": "the chosen broker is Kafka",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Batch processing in Kafka consumers",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose kafkajs",
      "display": "batch and offset controls",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "batch processing in Kafka consumers",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider amqplib",
      "display": "AMQP channels match the infrastructure",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "MQTT in browser applications",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose mqtt",
      "display": "Node and browser clients",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "MQTT in browser applications",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider @nats-io/transport-node",
      "display": "the chosen messaging service is NATS",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Queue-group subscriptions in NATS",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose @nats-io/transport-node",
      "display": "queue-group subscriber distribution",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "queue-group subscriptions in NATS",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "When to consider mqtt",
      "display": "MQTT browser integration matches the service",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Page introduction",
      "display": "JavaScript message queue libraries let backend developers send and receive messages through brokers.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does awaiting amqplib publish wait for a broker confirmation?",
      "display": "publish returns a backpressure boolean; use a ConfirmChannel callback for a server confirmation.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: What should an amqplib sender do after false?",
      "display": "Wait for drain before sending more messages.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does amqplib reconnect automatically?",
      "display": "Recovery is opt-in through connect options; setup recreates channels after reconnecting.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: When should KafkaJS use eachBatch?",
      "display": "Use eachBatch when the handler needs direct batch and offset-resolution controls.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can slow KafkaJS handlers lose group membership?",
      "display": "Processing longer than sessionTimeout needs an increased timeout or periodic heartbeats.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Does KafkaJS restart every consumer failure?",
      "display": "Non-retriable errors do not invoke restartOnFailure or restart the consumer.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Why did an MQTT connection refusal stop retries?",
      "display": "Enable reconnectOnConnackError when actively denied connections should also be retried.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Why did a custom MQTT message handler stop receiving?",
      "display": "An overridden handleMessage must call callback or the client hangs.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can MQTT.js subscribe to several topics?",
      "display": "subscribe accepts a topic, topic array, or topic object.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does installing the NATS transport include JetStream?",
      "display": "Install and import the separate JetStream module for JetStream APIs.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: How does NATS drain differ from unsubscribe?",
      "display": "Drain processes inflight messages before canceling subscriptions; immediate unsubscribe can stop earlier.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can old nats imports be exchanged for current modular imports?",
      "display": "The Node transport re-exports core APIs; JetStream, KV, and other modules need separate imports.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Library name, ioredis",
      "display": "ioredis",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Monthly downloads, ioredis",
      "display": "165.9M",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "License, ioredis",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release, ioredis",
      "display": "6.0.0",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release date, ioredis",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Install, ioredis",
      "display": "npm install ioredis",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart, ioredis",
      "display": "import Redis from 'ioredis';\n\nconst redis = new Redis('redis://localhost:6379');\nawait redis.publish('events', 'Hello world!');\nredis.disconnect();\n",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Official description, ioredis",
      "display": "Provides a full-featured Redis client for Node.js.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart source file, ioredis",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, ioredis",
      "display": "15.4K",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Publish batching, ioredis",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Browser client, ioredis",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Protocol and role, ioredis",
      "display": "Redis — Independent Redis client with native Pub/Sub and Streams commands; SDK-wide counter includes caching and every other Redis operation.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Checkpoint model, ioredis",
      "display": "Selected example is ephemeral Pub/Sub with no per-message acknowledgement. Redis Streams is a separate data model; consumer-group/XACK guarantees cannot be inferred from this Pub/Sub example.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Host requirements, ioredis",
      "display": "Supported Node ESM/top-level-await host and reachable Redis. Pub/Sub is ephemeral and requires an active subscriber for receipt; this is not Redis Streams or a processing acknowledgement.",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project function, ioredis",
      "display": "public async bindEvents(subClient: Redis, pubClient: Redis): Promise<void> {\n  subClient.on(\n    this.options?.wildcards ? 'pmessage' : 'message',\n    this.getMessageHandler(pubClient).bind(this),\n  );\n  const subscribePatterns = [...this.messageHandlers.keys()];\n  // Awaited so that a rejected subscription (e.g., an ACL without access to\n  // the channel) fails `listen()` instead of going unhandled.\n  await Promise.all(\n    subscribePatterns.map(pattern => {\n      const { isEventHandler } = this.messageHandlers.get(pattern)!;\n\n      const channel = isEventHandler\n        ? pattern\n        : this.getRequestPattern(pattern);\n\n      return this.options?.wildcards\n        ? subClient.psubscribe(channel)\n        : subClient.subscribe(channel);\n    }),\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project source file, ioredis",
      "display": "packages/microservices/server/server-redis.ts",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project full_name, ioredis",
      "display": "nestjs/nest",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project stargazers_count, ioredis",
      "display": "77.3K",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Library name, @aws-sdk/client-sqs",
      "display": "@aws-sdk/client-sqs",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Monthly downloads, @aws-sdk/client-sqs",
      "display": "77.0M",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "License, @aws-sdk/client-sqs",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release, @aws-sdk/client-sqs",
      "display": "3.1172.0",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release date, @aws-sdk/client-sqs",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Install, @aws-sdk/client-sqs",
      "display": "npm install @aws-sdk/client-sqs",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart, @aws-sdk/client-sqs",
      "display": "import { SQSClient, GetQueueAttributesCommand } from '@aws-sdk/client-sqs';\n\nconst client = new SQSClient({ region: process.env.AWS_REGION });\nconst result = await client.send(new GetQueueAttributesCommand({\n  QueueUrl: process.env.SQS_QUEUE_URL,\n  AttributeNames: ['ApproximateNumberOfMessages'],\n}));\n",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Official description, @aws-sdk/client-sqs",
      "display": "Provides the AWS SDK client for Amazon SQS in Node.js, browsers, and React Native.",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Quickstart source file, @aws-sdk/client-sqs",
      "display": "clients/client-sqs/README.md",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Repository stars, @aws-sdk/client-sqs",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Publish batching, @aws-sdk/client-sqs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Browser client, @aws-sdk/client-sqs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Protocol and role, @aws-sdk/client-sqs",
      "display": "SQS managed queue API — Dedicated SDKv3 client for managed SQS queue APIs; command/send and queue attributes are distinct from a consumer polling framework.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Checkpoint model, @aws-sdk/client-sqs",
      "display": "Queue depth in example is approximate Attributes text, not a receipt or processing checkpoint. Consumer receive/delete/visibility lifecycle is a separate service workflow.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Host requirements, @aws-sdk/client-sqs",
      "display": "Supported ESM/top-level-await host, explicit valid AWS_REGION/SQS_QUEUE_URL, authorized existing queue, and configured SDK credential provider. No actual env/credential read or service request ran.",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project function, @aws-sdk/client-sqs",
      "display": "async getQueueSize(): Promise<number | null> {\n  const command = new GetQueueAttributesCommand({\n    QueueUrl: this.queueUrl,\n    AttributeNames: [\"ApproximateNumberOfMessages\"],\n  });\n  const response = await this.sqs.send(command);\n  return response.Attributes?.ApproximateNumberOfMessages\n    ? Number(response.Attributes.ApproximateNumberOfMessages)\n    : null;\n}\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project source file, @aws-sdk/client-sqs",
      "display": "helicone-heartbeat/src/clients/SqsClient.ts",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project full_name, @aws-sdk/client-sqs",
      "display": "Helicone/helicone",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project stargazers_count, @aws-sdk/client-sqs",
      "display": "6.3K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Library name, @google-cloud/pubsub",
      "display": "@google-cloud/pubsub",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Monthly downloads, @google-cloud/pubsub",
      "display": "41.2M",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "License, @google-cloud/pubsub",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release, @google-cloud/pubsub",
      "display": "6.4.1",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release date, @google-cloud/pubsub",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Install, @google-cloud/pubsub",
      "display": "npm install @google-cloud/pubsub",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart, @google-cloud/pubsub",
      "display": "import { PubSub } from '@google-cloud/pubsub';\n\nconst pubsub = new PubSub();\nconst topic = pubsub.topic(process.env.PUBSUB_TOPIC);\nconst messageId = await topic.publishMessage({ data: Buffer.from('Hello world!') });\nawait pubsub.close();\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Official description, @google-cloud/pubsub",
      "display": "Provides the Cloud Pub/Sub client library for Node.js.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Quickstart source file, @google-cloud/pubsub",
      "display": "Topic.html",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Repository stars, @google-cloud/pubsub",
      "display": "551",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Publish batching, @google-cloud/pubsub",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Browser client, @google-cloud/pubsub",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Protocol and role, @google-cloud/pubsub",
      "display": "Google Pub/Sub topic/subscription API — Node client for managed topic/subscription messaging with byte payloads, publisher batching, and Message acknowledgement APIs.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Checkpoint model, @google-cloud/pubsub",
      "display": "Exact6 Message.ack acknowledges receipt; ackWithResponse is a distinct API for response-aware exactly-once-subscription use. Example dispatches unawaited Chat request then immediately ack; no completed-processing claim.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Host requirements, @google-cloud/pubsub",
      "display": "Supported Node ESM/top-level-await interop host, configured ADC/project and existing PUBSUB_TOPIC with publisher permission. Message is bytes; returned publication id is not subscriber processing completion.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project function, @google-cloud/pubsub",
      "display": "const messageHandler = message => {\n  console.log(`Id : ${message.id}`);\n  const event = JSON.parse(message.data);\n  console.log(`Data : ${JSON.stringify(event)}`);\n\n  // Post the response to Google Chat.\n  const request = formatRequest(event);\n  if (request != null) {\n    chat.createMessage(request);\n  }\n\n  // Ack the message.\n  message.ack();\n}\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project source file, @google-cloud/pubsub",
      "display": "node/pub-sub-app/index.js",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project full_name, @google-cloud/pubsub",
      "display": "googleworkspace/google-chat-samples",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project stargazers_count, @google-cloud/pubsub",
      "display": "609",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Library name, kafkajs",
      "display": "KafkaJS",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Monthly downloads, kafkajs",
      "display": "19.3M",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "License, kafkajs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release, kafkajs",
      "display": "2.2.4",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release date, kafkajs",
      "display": "Feb 2023",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Install, kafkajs",
      "display": "npm install kafkajs",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart, kafkajs",
      "display": "import { Kafka } from 'kafkajs';\n\nconst kafka = new Kafka({ clientId: 'example', brokers: ['localhost:9092'] });\nconst producer = kafka.producer();\nawait producer.connect();\nawait producer.send({ topic: 'events', messages: [{ value: 'Hello world!' }] });\nawait producer.disconnect();\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Repository stars, kafkajs",
      "display": "4.0K",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Publish batching, kafkajs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Browser client, kafkajs",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Protocol and role, kafkajs",
      "display": "Kafka — Node Kafka producer/consumer interfaces with message batches, consumer groups, and offset-based consumption.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Checkpoint model, kafkajs",
      "display": "Consumer groups and committed offsets are the checkpoint model; eachMessage/run is not an end-to-end exactly-once business transaction.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Host requirements, kafkajs",
      "display": "Supported Node ESM/top-level-await host and reachable authorized Kafka broker with events topic. Broker security/topic policy must be configured; no broker process was started.",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project function, kafkajs",
      "display": "public async bindEvents(consumer: Consumer) {\n  const registeredPatterns = [...this.messageHandlers.keys()];\n  const consumerSubscribeOptions = this.options.subscribe || {};\n\n  if (registeredPatterns.length > 0) {\n    await this.consumer!.subscribe({\n      ...consumerSubscribeOptions,\n      topics: registeredPatterns,\n    });\n  }\n\n  const consumerRunOptions = {\n    ...(this.options.run || {}),\n    eachMessage: this.getMessageHandler(),\n  };\n  await consumer.run(consumerRunOptions);\n}\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project source file, kafkajs",
      "display": "packages/microservices/server/server-kafka.ts",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project full_name, kafkajs",
      "display": "nestjs/nest",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project stargazers_count, kafkajs",
      "display": "77.3K",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Library name, amqplib",
      "display": "amqplib",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Monthly downloads, amqplib",
      "display": "16.5M",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "License, amqplib",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release, amqplib",
      "display": "2.4.0",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release date, amqplib",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Install, amqplib",
      "display": "npm install amqplib",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart, amqplib",
      "display": "import amqp from 'amqplib';\n\nconst connection = await amqp.connect('amqp://localhost');\nconst channel = await connection.createChannel();\nawait channel.assertQueue('jobs');\nchannel.sendToQueue('jobs', Buffer.from('Hello world!'));\nawait channel.close();\nawait connection.close();\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Repository stars, amqplib",
      "display": "3.8K",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Publish batching, amqplib",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Browser client, amqplib",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Protocol and role, amqplib",
      "display": "AMQP0-9-1 — Node AMQP0-9-1 channels, queues, exchanges, routing keys, and optional publisher confirms.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Checkpoint model, amqplib",
      "display": "A basic channel send Boolean is writable/backpressure status. Publisher confirms and consumer ack/nack are separate APIs; original send example does not wait for confirms.",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Host requirements, amqplib",
      "display": "Supported Node ESM/CommonJS interop/top-level-await host and reachable AMQP0-9-1 broker with appropriate queue permissions. Basic channel send is not a publisher-confirm or end-consumer acknowledgement.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Project function, amqplib",
      "display": "send(topic, data, { balanced, packet }) {\n\t/* istanbul ignore next*/\n\tif (!this.channel) return this.broker.Promise.resolve();\n\n\tif (packet.target != null || balanced) {\n\t\tthis.channel.sendToQueue(topic, data, this.opts.messageOptions);\n\t} else {\n\t\tthis.channel.publish(topic, \"\", data, this.opts.messageOptions);\n\t}\n\n\treturn this.broker.Promise.resolve();\n}\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project source file, amqplib",
      "display": "src/transporters/amqp.js",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project full_name, amqplib",
      "display": "moleculerjs/moleculer",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project stargazers_count, amqplib",
      "display": "6.4K",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Library name, mqtt",
      "display": "MQTT.js",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Monthly downloads, mqtt",
      "display": "14.6M",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "License, mqtt",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release, mqtt",
      "display": "5.16.1",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release date, mqtt",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Install, mqtt",
      "display": "npm install mqtt",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Quickstart, mqtt",
      "display": "import mqtt from 'mqtt';\n\nconst client = await mqtt.connectAsync('mqtt://localhost');\nawait client.publishAsync('events', 'Hello world!');\nawait client.endAsync();\n",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Repository stars, mqtt",
      "display": "9.1K",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Publish batching, mqtt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Browser client, mqtt",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Protocol and role, mqtt",
      "display": "MQTT — MQTT publish/subscribe client for Node and browser WebSocket hosts, with QoS-dependent protocol acknowledgement.",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Checkpoint model, mqtt",
      "display": "QoS0/1/2 and subscription/publish callbacks are protocol-level behaviors; neither implies a separate app processed a message successfully.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Host requirements, mqtt",
      "display": "Supported Node ESM/top-level-await host, reachable authorized MQTT broker, and active subscriber for receipt. Browser transport requires supported ws/wss URL/bundle; this Node starter uses default QoS0.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project function, mqtt",
      "display": "subscribe(cmd, nodeID) {\n\treturn new this.broker.Promise((resolve, reject) => {\n\t\tconst topic = this.getTopicName(cmd, nodeID);\n\t\tthis.client.subscribe(topic, { qos: this.qos }, (err, granted) => {\n\t\t\tif (err) return reject(err);\n\n\t\t\tthis.logger.debug(\"MQTT server granted\", granted);\n\n\t\t\tresolve();\n\t\t});\n\t});\n}\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project source file, mqtt",
      "display": "src/transporters/mqtt.js",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project full_name, mqtt",
      "display": "moleculerjs/moleculer",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project stargazers_count, mqtt",
      "display": "6.4K",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Library name, @nats-io/transport-node",
      "display": "@nats-io/transport-node",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Monthly downloads, @nats-io/transport-node",
      "display": "3.8M",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "License, @nats-io/transport-node",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release, @nats-io/transport-node",
      "display": "3.5.0",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release date, @nats-io/transport-node",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Install, @nats-io/transport-node",
      "display": "npm install @nats-io/transport-node",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Quickstart, @nats-io/transport-node",
      "display": "import { connect } from '@nats-io/transport-node';\n\nconst connection = await connect({ servers: 'nats://localhost:4222' });\nconnection.publish('events', new TextEncoder().encode('Hello world!'));\nawait connection.drain();\n",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Repository stars, @nats-io/transport-node",
      "display": "455",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Publish batching, @nats-io/transport-node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Browser client, @nats-io/transport-node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Protocol and role, @nats-io/transport-node",
      "display": "NATS core over Node TCP — Current Node/Bun native TCP transport and core NATS APIs, including Pub/Sub and request-reply; JetStream is a separate module surface.",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Checkpoint model, @nats-io/transport-node",
      "display": "Core request-reply respond returns Boolean; this is not durable consumer acknowledgement. Separate JetStream modules provide a different consumer/persistence model.",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Host requirements, @nats-io/transport-node",
      "display": "Supported Node/Bun ESM/top-level-await host and authorized reachable NATS server. Active core subscriber required for receipt; persistence/consumer acknowledgements need separate JetStream modules.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Project function, @nats-io/transport-node",
      "display": "public getPublisher(natsMsg: NatsMsg, id: string, ctx: NatsContext) {\n  if (natsMsg.reply) {\n    return (response: any) => {\n      Object.assign(response, { id });\n      const outgoingResponse: NatsRecord =\n        this.serializer.serialize(response);\n\n      return natsMsg.respond(outgoingResponse.data, {\n        headers: outgoingResponse.headers,\n      });\n    };\n  }\n\n  // In case the \"reply\" topic is not provided, there's no need for a reply.\n  // Method returns a noop function instead\n\n  return () => {};\n}\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Project source file, @nats-io/transport-node",
      "display": "packages/microservices/server/server-nats.ts",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Project full_name, @nats-io/transport-node",
      "display": "nestjs/nest",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Project stargazers_count, @nats-io/transport-node",
      "display": "77.3K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Library name, @azure/service-bus",
      "display": "Azure Service Bus",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Monthly downloads, @azure/service-bus",
      "display": "3.6M",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "License, @azure/service-bus",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Package release, @azure/service-bus",
      "display": "7.10.0",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Package release date, @azure/service-bus",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Install, @azure/service-bus",
      "display": "npm install @azure/service-bus",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Quickstart, @azure/service-bus",
      "display": "import { ServiceBusClient } from '@azure/service-bus';\n\nconst client = new ServiceBusClient(process.env.SERVICE_BUS_CONNECTION_STRING);\nconst sender = client.createSender(process.env.SERVICE_BUS_QUEUE);\nawait sender.sendMessages({ body: 'Hello world!' });\nawait sender.close();\nawait client.close();\n",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Official description, @azure/service-bus",
      "display": "Provides the Azure Service Bus SDK for JavaScript.",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Quickstart source file, @azure/service-bus",
      "display": "sdk/servicebus/service-bus/README.md",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Repository stars, @azure/service-bus",
      "display": "2.3K",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Publish batching, @azure/service-bus",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Browser client, @azure/service-bus",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Protocol and role, @azure/service-bus",
      "display": "Azure Service Bus / AMQP — Managed queue/topic/subscription client with sending batches and explicit lock-mode settlement; browser bundling has extra polyfills.",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Checkpoint model, @azure/service-bus",
      "display": "PeekLock requires settlement such as completeMessage while lock is valid; receiveAndDelete deletes on receive and the original app skips explicit completion in that mode.",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Host requirements, @azure/service-bus",
      "display": "Supported Node ESM/top-level-await host, configured authorized SERVICE_BUS_CONNECTION_STRING, and existing SERVICE_BUS_QUEUE. No credentials were read here; receive settlement is a separate workflow.",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Project function, @azure/service-bus",
      "display": "async deleteMessage(message: IQueueMessage): Promise<void> {\n  if (!this.#initialized) {\n    throw new Error('Provider not initialized');\n  }\n  if (this.#options.immediatelyDeleteMessages) {\n    console.log(\n      `In immediate delete mode, not deleting message ${message.identifier} (it was already handled)`\n    );\n    return;\n  }\n  const assumedType = message as ServiceBusMessage;\n  const lockedMessage = assumedType.lockedMessage();\n  try {\n    await this.#receiver.completeMessage(lockedMessage);\n  } catch (deleteError) {\n    console.warn(`Delete error: ${deleteError}`);\n    throw deleteError;\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Project source file, @azure/service-bus",
      "display": "lib/queues/servicebus.ts",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Project full_name, @azure/service-bus",
      "display": "microsoft/opensource-management-portal",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project stargazers_count, @azure/service-bus",
      "display": "537",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript message queue client libraries amqplib KafkaJS MQTT NATS code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
