SShortSingh.
Back to feed

TinyNpm VS Code Extension Shields Apps from npm Supply Chain Attacks

0
·1 views

TinyNpm is a newly released Visual Studio Code extension designed to help developers guard against npm supply chain attacks and dependency risks. The tool recommends package versions that are a specified number of days old, reducing exposure to malicious or compromised recent releases. It also removes the caret symbol from version entries, giving developers tighter control over which package versions their applications use. When hovering over packages, users receive warnings about stale packages, high dependency counts, and low download numbers. The extension pulls its data from the npm API and is available for download on the VS Code Marketplace.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

ByteDance Seedance Video Generator Can Now Be Used Inside Claude.ai via MCP

Developers can now generate short AI videos directly within Claude.ai by connecting a Seedance MCP connector from Ace Data Cloud using a single remote URL. Seedance is ByteDance's Doubao-based video generation platform, and the integration uses OAuth authorization rather than manual API token entry. Once connected, Claude gains access to several tools that let it list available models and resolutions, submit video generation tasks, and poll for results without the user leaving the conversation. The workflow supports both text-to-video and image-to-video generation, with Claude autonomously selecting valid model parameters before submitting a task. The connector is added via Claude.ai's custom connector settings using the URL https://seedance.mcp.acedata.cloud/mcp.

0
ProgrammingDEV Community ·

Angular Library Maintainer Explains Why npm Package Testing Beats Source Code Checks

A developer maintaining an open-source Angular library discovered that validating compatibility against local workspace files and dist/ folders does not reflect what users actually install from npm. This insight prompted a redesign of the CI pipeline to test the published package artifact across multiple Angular versions, from version 17 through 22. The author highlights that testing dist/ alone is insufficient due to Angular's partial compilation and linker behavior, and that type-checking can miss real compatibility issues. The recommended approach involves using npm pack to validate the packaged artifact before release. The developer shared these findings in a detailed article and is inviting other library maintainers to discuss their own compatibility testing strategies.

0
ProgrammingDEV Community ·

Developer Shares Single-Script Solution to Automate Ubuntu Server Security Hardening

A developer has published an open-source bash script on GitHub that automates the full security hardening process for fresh Ubuntu 22.04 cloud servers. The script addresses common default vulnerabilities such as open root login, password-based SSH authentication, and the absence of a firewall. Running as a single command, it creates a non-root user, reconfigures SSH to a custom port, enables UFW firewall rules, installs Nginx, and obtains a free Let's Encrypt SSL certificate. The script is built to be idempotent, meaning it can be safely re-run after interruptions without causing errors or duplicate configurations. The author noted the project was motivated by discovering hundreds of failed login attempts on a newly launched server within just a few hours.

0
ProgrammingDEV Community ·

PIVOT technique cuts long-context AI inference latency without retraining models

Researchers have developed PIVOT, a training-free method that addresses a core inefficiency in Dynamic Sparse Attention (DSA) used by large language models during long-context inference. Although DSA reduces attention computation, its indexer still performs a full token scan per query, keeping overall complexity at O(L²) and dominating latency at sequence lengths like 100K tokens. PIVOT exploits the observation that adjacent queries share roughly 90% of their top-k token selections, allowing a single proxy scan per group of queries instead of one scan per query. This reduces indexer cost from O(L²) to O(L²/g), delivering a reported 4× indexer speedup and 1.6× end-to-end latency reduction on models including DeepSeek-V3.2 and GLM-5.1. The method offers two modes — PIVOT-Reuse for maximum speed and PIVOT-Refine for accuracy closer to a dense indexer — and can be plugged into existing DSA models at inference time.

TinyNpm VS Code Extension Shields Apps from npm Supply Chain Attacks · ShortSingh