Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/gagan-jasuja/youtube-api
This is a simple Go application that interacts with the YouTube API to fetch and store video data in MongoDB. The application provides a RESTful API to retrieve videos and perform searches based on titles and descriptions.
Clone the repository:
git clone https://github.com/gagan-jasuja/youtube-api.git
cd your-repo-name
Set up your environment variables in a .env
file:
MONGODB_URI=your_mongodb_uri
Install the necessary dependencies:
go mod init youtube-api
go mod tidy
Start the application:
go run ./cmd/main.go
The application will run on http://localhost:8080
.
/videos?page=1&limit=10
GET
/search?query=your_search_query
GET
You can test the API using Postman by following these steps:
Fetch Videos:
GET http://localhost:8080/videos?page=1&limit=10
Search Videos:
GET http://localhost:8080/search?query=Movies
Primary_Owner - Gagan Jasuja
FAQs
Unknown package
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.