SShortSingh.
Back to feed

Laravel package Laranon offers reversible PII anonymization for LLM pipelines

0
·5 views

A developer building a legal-tech AI product has released Laranon, an open-source Laravel package that anonymizes personally identifiable information before it is sent to a large language model. The tool replaces sensitive data such as names, national IDs, IBANs, and phone numbers with stable placeholder tokens, then restores the original values in the model's response. Unlike simple regex-based redaction, Laranon validates identifiers using checksum algorithms and tokenizes names at the word level to reduce both false positives and false negatives. By default, the token map is held in memory and discarded at the end of each request, meaning no sensitive data is written to a database unless an optional vault is configured. The package is installable via a single Composer command and is designed to work across full chat sessions, including streamed responses.

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 ·

Developer Shares Mixed Impressions After Months of Using Claude as Primary AI Tool

A developer who switched from ChatGPT to Claude as their primary AI tool in spring 2026 has shared updated observations after several months of use. While the combination of Claude's memory feature and MCP still reduces explanation overhead, the author notes that memory sometimes forces irrelevant connections, adding noise to interactions. The author also reports a perceived increase in hallucinations and excessive agreement, even in top-tier models, though acknowledges this could reflect personal usage patterns rather than a definitive model flaw. On the ChatGPT side, the author downgraded from a paid Plus subscription to the free plan, finding that image generation limits have not yet posed a problem for their current workload. The author intends to continue monitoring both tools before drawing firmer conclusions.

0
ProgrammingDEV Community ·

LangChain Essentials You Need to Know Before Moving to LangGraph

A July 2026 tutorial on LangChain 0.3.x identifies the four core building blocks developers must understand before adopting LangGraph, the framework's newer orchestration layer. The essentials are LLM setup, Prompt Templates with LangChain Expression Language (LCEL), structured output using Pydantic models, and tool calling. The author notes that many older LangChain abstractions — such as chains, memory, and output parsers — are now deprecated, making it practical to focus only on these fundamentals. Structured output via Pydantic and the with_structured_output method has replaced the older ResponseSchema and StructuredOutputParser approach, simplifying how LLMs return typed data. Tool calling, enabled by the @tool decorator and bind_tools method, is highlighted as the most critical concept since LangGraph agents are built around the tool-calling loop.

0
ProgrammingDEV Community ·

How AI Agents Are Tackling Shadow DOMs, Canvas Elements, and iFrames

Modern web applications increasingly rely on encapsulated architectures such as Shadow DOM, HTML5 Canvas, and nested iFrames, which render traditional browser automation tools ineffective. These technologies isolate internal DOM structures, making elements invisible to standard query selectors used by conventional scripts. AI agents driven by computer vision and behavioral goals offer a new approach, perceiving web interfaces spatially rather than relying on rigid programmatic locators. Frameworks like Model Context Protocol (MCP) are being explored to help autonomous agents parse and interact with these otherwise opaque execution contexts. The shift represents a fundamental rethinking of how automated systems understand and navigate the modern web.

0
ProgrammingDEV Community ·

Developer builds privacy-first browser toolbox with JWT decoder, JSON formatter and more

A developer has launched tools.merrt.com.tr, a collection of over 20 developer utilities that run entirely in the browser with no backend or data collection. The platform includes tools such as a JWT decoder with signature verification, a JSON formatter, diff checker, hash generator, and several data converters. Because nothing is sent to a server, users can work with sensitive tokens or API responses without privacy concerns, and the site also functions offline as a Progressive Web App. Built as a React single-page application, the project required a custom prerender step to generate static HTML per route, solving common SEO limitations of SPAs. The source code is publicly available on GitHub, and the developer is inviting feedback on additional tools or bugs.