SShortSingh.
Back to feed

Check the package.json your AI builder wrote before you ship it

0
·3 views

AI website builders often add dependencies such as duplicate icon libraries, animation packages, and date utilities while generating a page, leaving unused or overlapping packages behind. The article recommends a quick review using npm ls, depcheck, npm audit, and license checks before merging generated code. It also advises searching the codebase for exposed API keys and rotating any that were ever pasted into a chat. The author suggests requiring the tool to list every package it adds and to prefer built-in browser features over libraries. The piece is written by a contributor to a paid prompt library, which is disclosed in the text.

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 ·

PixKit: open-source MIT toolkit builds and validates Brazilian Pix BR Code payloads locally

PixKit is a small MIT-licensed toolkit that builds, parses, and validates Brazil's Pix BR Code payloads on a user's own machine. It is offered as a TypeScript library, a command-line tool, a stdio MCP server for coding agents, and an agent skill. The project does not process payments, does not contact banks or Banco Central systems, and cannot create dynamic charges, which require a payment service provider. Its library is ESM-only and will publish to npm as pixkit-br, since the name pixkit is taken, with installation from GitHub available in the meantime and Node.js 20 or later required.

0
ProgrammingDEV Community ·

Property Platforms Should Verify Tenant Consent and Log Audits Before Exporting Records

The article argues that a social login only establishes who is signed in, not whether that person may export tenant records. It proposes an export path that loads a current consent category, binds the decision to the authenticated subject and requested fields, and writes an audit event before any data is sent. The author models this as seven gates covering session, subject, category, purpose, scope, audit, and delivery, each failing closed if unmet. Authentication and authorization are kept separate so that a replayed callback, stale session, or revoked consent cannot release data. The export worker is described as rechecking the decision immediately before reading sensitive rows.

0
ProgrammingDEV Community ·

Free AI coding agents worth using, and the habits to avoid

A DEV Community guide argues that many AI coding assistant lists are disguised advertisements and offers a shorter, more candid selection limited to tools usable without payment. It highlights options such as Freebuff, the scriptable Hermes Agent, and free tiers of major models. To choose one, the author suggests running the same small task through each agent and checking whether it works in your environment, asks before changing files, and allows changes to be undone. The piece also warns against sharing secrets or private data with any agent, letting agents run unsupervised early on, and collecting many tools instead of mastering one.

0
ProgrammingDEV Community ·

Building an MCP Server for a Fictional Language Dictionary

A developer team created a structured JSON dictionary of over 400 attested High Valyrian words, each with a stable ID, form, part of speech, and English glosses. The data is served through a WordPress REST endpoint, with a Model Context Protocol server built on top of it. The server offers three tools: initialize for describing capabilities, lookup_word for single-word entries, and lookup_phrase for breaking down short phrases. The design separates headwords from inflected forms, keeps glosses concise, and treats missing words as explicit results rather than errors or invented translations. The authors argue that clean structured data and explicit responses reduce hallucination by AI clients and make behaviour testable, and the server code is open source on GitHub.