Socket
Socket
Sign inDemoInstall

chat-bridge

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chat-bridge

Chat Bridge simplifies the integration of Facebook Messenger webhook handling into your Node.js applications.


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.2.1

Patch Changes

Chat Bridge v1.2.1 is here, resolving a critical module resolution issue that led to the 'Cannot find module @fastify/static' error during execution. This release streamlines dependencies, removes unnecessary imports and code related to fastifyStatic, ensuring a smoother development experience.

Bug Fix:
  • Module Resolution Issue:
    • Fixes the 'Cannot find module @fastify/static' error that occurred during execution, providing a seamless development environment.
Code Cleanup:
  • Removal of Unnecessary Imports:
    • Cleans up the codebase by removing unnecessary imports and code related to fastifyStatic, contributing to a more concise and maintainable code structure.
Version Update:
  • Version Bump to 1.2.1:
    • Updates the version to 1.2.1 to reflect the bug fix and code adjustments included in this release.
Upgrading Instructions:

To incorporate the fixes and improvements from Chat Bridge v1.2.1 into your project, follow these steps:

  1. Update Dependencies:

    • Ensure that your project's dependencies are updated to the latest versions.
  2. Verify Import Statements:

    • Confirm that import statements related to @fastify/static are correctly resolved.
  3. Remove Unnecessary Code:

    • Check for and remove any unnecessary imports or code related to fastifyStatic.
  4. Update to Version 1.2.1:

    • Upgrade your Chat Bridge package to version 1.2.1 to benefit from the bug fix and code cleanup.

With these steps, you'll enjoy a more stable and error-free Chat Bridge experience. Upgrade to Chat Bridge v1.2.1 today and keep your development journey smooth and hassle-free!

Readme

Source
Chat Bridge Logo

Chat Bridge

NPM Version NPM Downloads hits License Code of Conduct

Chat Bridge is an npm package that simplifies the integration of Facebook Messenger webhook handling into your Node.js applications. It offers a convenient way to interact with the Messenger Platform, handling incoming messages, postbacks, quick replies, and more. 🚀

Table of Contents

Features

  • Easy to use — Chat Bridge is designed to be easy to use, with a simple API that allows you to get started quickly.
  • Fast — Chat Bridge is built on top of undici, a fast HTTP/1.1 client, and fastify, a fast web framework for Node.js.
  • Powerful — Chat Bridge supports all the features of the Messenger Platform, including quick replies, postbacks, and more.
  • Open source — Chat Bridge is open source, and is licensed under the MIT License.

Installation

Ready to get started? Install Chat Bridge using npm:

npm install chat-bridge

⚠️ Warning: Chat Bridge is currently in alpha, and is not yet ready for production use. We recommend that you do not use it in production until it reaches a stable release.

Usage

// Import the Client class
const { Client } = require("chat-bridge");

// Create a new client instance
const client = new Client({ 
    accessToken: 'YOUR_ACCESS_TOKEN',
    verifyToken: 'YOUR_VERIFY_TOKEN'
});

// Listen for incoming messages events
client.on("message", (event) => {
    const { sender, message } = event;

    // Send a text message back to the sender
    client.sendTextMessage(sender.id, `You wrote: ${message.text}`);
});

// Start the client
client.start(async () => {
    console.log(`Listening on ${client.page.name} (${client.page.id})`);
});

Documentation

You can read additional documents at Chat Bridge

Contributing

We welcome contributions!

Fixing a bug, adding a new feature, or improving the documentation — we're always happy to see your work.

Read up on our contributing guidelines and then check out one of our issues.

Acknowledgments

  • fastify — Fast and low overhead web framework, for Node.js
  • undici — HTTP/1.1 client, written from scratch for Node.js

License

Chat Bridge is licensed under the MIT License unless otherwise specified.


Keywords

FAQs

Last updated on 12 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc