Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
direct-connect-chat
Advanced tools
A chat application with real-time messaging and email notifications
Readme
Direct Connect Chat Package is a Node.js library that allows users to engage in one-on-one chats. It includes functionality to send chat requests, accept requests, and chat once connected. Additionally, the application uses Nodemailer to notify the receiver of a chat request. A cron job is implemented to delete messages older than 7 days. The application also features message encryption and decryption, as well as a block feature, and filter out messages with inappropriate language.
You can install the package using npm:
npm i direct-connect-chat
To run this library, create a .env
file in your project and configure the following environment variables:
DATABASE_HOST
: [Your database host]DATABASE_PORT
: [Your database port]DATABASE_NAME
: [Your database name]DATABASE_USER
: [Your database username]DATABASE_PASSWORD
: [Your database password]CHAT_SECRET_KEY
: [Your secret key]CRON_TIME
: 0 0 * * *NOTIFICATION_CRON_TIME
: 30 11,13,15 * * *EMAIL_HOST
: [Your email host]EMAIL_PORT
: [Your email port]EMAIL_FROM
: [Your email from]EMAIL_USER
: [Your email username]EMAIL_PASS
: [Your email password]NAVIGATE_URL
: [Your navigate URL]PORT
: 3000${url}/api/send-chat
Content-Type: application/json
{
"sender_id": "321",
"receiver_id": "123",
"message": "Hello"
}
${url}/api/accept-invitation
Content-Type: application/json
{
"sender_id": "321",
"receiver_id": "123"
}
${url}/api/get-chats?sender_id=321&receiver_id=123&is_accepted=false
${url}/api/block-user
{
"sender_id": "2",
"receiver_id": "123"
}
${url}/api/generate-token
{
"user_id": "10"
}
FAQs
A chat application with real-time messaging and email notifications
We found that direct-connect-chat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.