Socket
Socket
Sign inDemoInstall

chat-bridge

Package Overview
Dependencies
62
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
1
decreased by-90.91%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.3.0

Minor Changes

Chat Bridge v1.3.0 is here, packed with enhancements to fortify security, streamline workflows, and enrich your development experience. Dive into the details of this exciting release:

Security Improvements:
  • Enhanced Security Measures:
    • Introduces SECURITY.md with contact information for Chat Bridge, ensuring clear communication channels for addressing security concerns.
Workflow Enhancements:
  • Workflow Optimization:
    • Adds CodeQL workflow to bolster code quality assessment and ensure robustness across the codebase.
    • Updates npm ecosystem directory to source for improved dependency management.
Documentation Updates:
  • Feature and Benefit Enhancements:

    • Updates features and benefits documentation to reflect the latest capabilities of Chat Bridge.
  • API Reference and Guides:

    • Enhances API reference and guides documentation for clearer understanding and seamless integration.
Project Structure Refinements:
  • Dependency Management:

    • Removes unused dependency @fastify/static to streamline project dependencies.
  • Restructuring:

    • Restructures the project for improved organization and maintainability.
New Features and Functionality:
  • Client Class Enhancements:

    • Empowers the Client class with enhanced functionality:
      • Retrieves page information automatically upon startup for streamlined configuration.
  • Template and Element Additions:

    • Introduces new elements and templates to enrich messaging capabilities and enhance user interaction.
  • TypeScript Support:

    • Adds TypeScript support with the inclusion of various button types and templates for seamless integration and improved type safety.
Upgrading Instructions:

Upgrade to Chat Bridge v1.3.0 today to benefit from strengthened security measures, optimized workflows, and enhanced documentation. Stay ahead of the curve with the latest features and improvements in Chat Bridge!

As always, we welcome your feedback and contributions to make Chat Bridge even better. Happy coding!

Full Changelog: https://github.com/BadEnd777/Chat-Bridge/compare/v1.2.1...v1.3.0

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 Integration: Simplifies the integration of Facebook Messenger webhook handling into your Node.js applications.
  • Incoming Events Handling: Provides a convenient way to handle incoming events from users.
  • Customizable: Offers flexibility for customization according to specific application needs.
  • Event Driven: Built on an event-driven architecture, making it easy to listen for and respond to various events.
  • Simple API: Provides a straightforward API for sending messages and interacting with users.
  • Scalable: Designed to scale with your application, handling high volumes of incoming messages efficiently.
  • Open Source: Licensed under the MIT License, Chat Bridge is open source and free to use.

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 Feb 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