Mahendra Kumar Agrawal

I am an Associate Technical Lead at To The New with over 9 years of experience in web development and frontend development.

JS

Understanding npm vs. npx: Which One Should We Use?

Introduction If we have ever started a project using React or Next.js, we would have noticed two commands that look almost the same: npm and npx. Although they look similar, their uses are totally different in the web development world.In this blog, we will understand the differences between the two in simple terms with examples that...

10-Feb-2026

Data Science

LangGraph vs LangChain: Choosing the Right Framework for AI Workflows

Introduction As AI developers, we're constantly deciding which tools best serve our projects—whether we're building chatbots, automated reports, or document analysis platforms. Two frameworks have emerged as frontrunners: LangChain and LangGraph. While they complement each other, they solve fundamentally different problems.This guide...

09-Feb-2026

Data Science

Understanding Model Context Protocol (MCP): Incorporation of AI tools

Introduction This is a world of fast-changing AI development, one of our significant pain points is tool and service integration with our AI assistants. If we have had any experience with tools of this nature like LangChain or LangGraph, chances are we have had to suffer this pain of having had to write custom code with every new tool...

28-Jul-2025

Python

Step-by-Step Guide to Building a RAG Application with Python and LangChain

In the evolving landscape of artificial intelligence, creating AI applications that provide accurate, contextual, and reliable responses has become increasingly crucial. Retrieval-augmented generation (RAG) emerges as a powerful framework that addresses this challenge by combining the strengths of information retrieval with generative AI...

05-Feb-2025

Data Science

Understanding Prompt Attacks in AI

Have you ever performed with GenAI chatbots like ChatGPT or Claude? They're first-rate equipment that can help us write, clear up issues, and create content. But just like any generation, they can be susceptible to certain hints or manipulations. One such vulnerability is referred to as a "prompt assault." Let's smash down what this means...

16-Jan-2025

AngularJS, Front End Development

Enhancing JavaScript Coding with AI: Using Visual Studio Code

In the rapidly evolving software development landscape, technologies like Artificial Intelligence (AI) are revolutionizing traditional workflows, making them more efficient and productive. For JavaScript programmers, integrating AI tools into their preferred development environment, such as Visual Studio Code (VS Code), can significantly...

28-Apr-2024

Software development

Exploring BFF (Backend for Frontend) Architecture: A Closer Look

In the dynamic world of software development, crafting efficient and scalable architectures is key to delivering exceptional user experiences. One such architectural pattern gaining traction, especially in microservices and frontend development, is the Backend for Frontend (BFF) architecture. Let's delve deeper into what BFF is about, its...

16-Apr-2024

AngularJS, Front End Development

JavaScript Frameworks: Choosing the Right One for Your Projects

Choosing the right JavaScript framework or library for your web development projects can be crucial. React, Angular, and Vue.js are three of the most popular choices in this domain, each with its own strengths and use cases. Let's delve into a comparison of React, Angular, and Vue.js to help you understand their differences and make an...

16-Apr-2024

AngularJS, Node.js

JavaScript Programming using ChatGPT

JavaScript programming takes a lot of development time because it's always changing, and its unique features make learning and managing code a challenge. But ChatGPT can help you become more productive. Here are the different ways to use ChatGPT for JavaScript development. 1. Understand the given code. Due to the changing nature of...

24-Mar-2024

AngularJS, MEAN

Concept of Angular FormArray

In the world of web development, creating forms is a common task. Forms allow users to interact with a website by inputting data, submitting requests, and more. Angular, a popular JavaScript framework, provides a robust solution for building dynamic forms with the FormArray feature. FormArray allows developers to handle dynamic form...

28-Feb-2024