Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
spin-up-ping
Advanced tools
Keep your server awake and prevent it from spinning down due to inactivity! Perfect for free-tier hosting platforms like Render, Heroku, etc.
Keep your server awake and prevent it from spinning down due to inactivity! Perfect for free-tier hosting platforms like Render, Heroku, etc.
Free-tier hosting services often spin down your server after a period of inactivity (usually 15-30 minutes). This can lead to slow response times when the server needs to spin up again. spin-up-ping
solves this by sending periodic pings to keep your server alive.
# Using npm
npm install spin-up-ping
# Using yarn
yarn add spin-up-ping
# Using pnpm
pnpm add spin-up-ping
import {ServerPingKeeper} from "spin-up-ping";
const keeper = new ServerPingKeeper({
url: "https://your-server.com", // Your server URL
intervalMinutes: 5, // Minimum 5 minutes
onSuccess: (response) => {
// Optional success callback
console.log("Ping successful:", response);
},
onError: (error) => {
// Optional error callback
console.error("Ping failed:", error);
},
});
// Start pinging
keeper.start();
// Stop pinging (if needed)
keeper.stop();
interface PingKeeperOptions {
url: string; // URL to ping
intervalMinutes: number; // Interval between pings (min: 5)
onSuccess?: (response: any) => void; // Success callback
onError?: (error: Error) => void; // Error callback
}
start()
: Start the ping servicestop()
: Stop the ping serviceFree Hosting Services
Development & Testing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)ISC © Muhsin Abdul Nissar
If you found this package helpful, please consider giving it a star on GitHub!
FAQs
Keep your server awake and prevent it from spinning down due to inactivity! Perfect for free-tier hosting platforms like Render, Heroku, etc.
The npm package spin-up-ping receives a total of 28 weekly downloads. As such, spin-up-ping popularity was classified as not popular.
We found that spin-up-ping demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.