SShortSingh.
Back to feed

pnpm Workspaces Can Shrink Lambda Deploy Packages for Claude-Powered AI Agents

0
·3 views

A guide published on DEV Community explains how switching to pnpm workspaces can reduce the size of AWS Lambda deployment packages used by Claude-based AI agents. Large zip files slow cold starts because Lambda must download the package before a function can respond, and Claude SDK dependencies, utility libraries, and duplicated native binaries add to that bloat. The article describes how pnpm stores each package once and links it into projects, deduplicating files and sharing a single lockfile across a workspace. It also outlines key terms such as workspace and the hidden .pnpm directory, and presents a sample project layout. The overall message is that a leaner package improves startup speed and lowers running costs.

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
ProgrammingHacker News ·

Sava Trust, a YC F25 company, seeks a founding engineer in New York City

Sava Trust, a startup from Y Combinator's Fall 2025 batch, is recruiting a founding engineer based in New York City. The listing appears on Y Combinator's company jobs page. The source material provides only the job posting link and a Hacker News discussion thread, with no details on the role's responsibilities, compensation, or the company's product. It is therefore unclear what the position entails beyond its founding-level scope.

0
ProgrammingDEV Community ·

Developer seeks guidance on starting open source contributions and joining GSoC

A developer on DEV Community asked how to begin contributing to open source projects, including through pull requests and other forms of participation. They also said they plan to pursue Google Summer of Code (GSoC) and requested beginner advice. The post invites community guidance on where and how to start. No specific projects, resources, or answers are included in the original text.

0
ProgrammingDEV Community ·

Polecat Brings Document Storage and Wolverine Messaging to SQL Server 2025

A .NET team documented a production spike migrating to Polecat, a document database library that runs on Microsoft SQL Server 2025. Native binary JSON support in SQL Server 2025 made it practical to run a high-performance document store on the platform, which many enterprises require. The spike found the Aspire host and Wolverine outbox worked with minimal friction, while LINQ predicates, FastEndpoints scope disposal, and batch queries needed refactoring. Polecat's LINQ parser is stricter than Marten's, requiring direct member-to-constant comparisons, and it supports only asynchronous enumeration and disposal. The authors provide workarounds, such as switching to async scopes and avoiding interface-constrained filters.

0
ProgrammingDEV Community ·

Opening hours component in React handles time zones correctly

A developer's first 'Open now' badge showed the wrong status because the date was computed in the wrong time zone, with the salon in Zurich and the site hosted on US servers. Relying on the visitor's or server's local clock causes mismatches for out-of-town users and between server and browser rendering. The recommended fix is to store one IANA time zone per business and compare all times in that zone, using Intl.DateTimeFormat's formatToParts without a date library. The article also proposes a weekly hours data structure that supports split shifts and closed days as arrays of time ranges. This approach keeps the status logic consistent across the page and in structured data.