Abstract: This paper introduces Prompt2Extension, that allows users to create functional, installable browser extensions using natural language prompting. Even though the power of the large language models (LLMs) has shown a tremendous effect on the software development process, designing user-specific browser extensions in an automated manner is not an easy task. The sophisticated, prompt-centric architecture of our system can convert high-level user requirements into multi file browser extensions with massive scale and using the Gemini 1.5 Pro API of Google. We rely on a complex Chain-of-Thought system prompt that forces the LLM to strategize the required files and permissions, judge the request and explain the logic prior to creating the final code. The formatted JSON object created by this one-shot generation process contains all required files (manifest.json, JavaScript, HTML and CSS) and is bundled into a downloadable .zip file. One of the features of our React-based user interface is the ability of the user to look at the generated code before installation. Experiments have shown that this prompt-driven method can effectively create a broad spectrum of extensions, including simple style manipulators as well as more complex, event-driven extensions that need background scripts. This piece shows how advanced prompt engineering can become in order to turn a specialized field of software development into a far more accessible field by allowing non-programmers to build their own original web tools.

Keywords: Prompt Engineering, Code Generation, Browser Extensions, Natural Language Processing, Gemini, Large Language Models, Fast-API, React, Chain-of-Thought


Downloads: PDF | DOI: 10.17148/IJARCCE.2026.15145

How to Cite:

[1] Sanyam Jain, Mayank Mishra, Aditya Palan, Devendra Bodkhe, "Prompt2Extension: A System for Generating Functional Browser Extensions from Natural Language Prompts," International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2026.15145

Open chat
Chat with IJARCCE