Description
ng-origin is a specialized development-mode tool built specifically for Angular applications to streamline the workflow between developers and their AI coding agents. When working on complex Angular codebases, finding the exact template line, component, or translation key corresponding to a rendered page element can be time-consuming. ng-origin solves this friction by letting developers press Alt+Click on Windows and Linux, or Option+Click on macOS, directly on any element within an Angular dev app. The element under the pointer receives an outline and an informative label, while the click event is intercepted so it never actually reaches the underlying application.
Read More
Upon clicking an element, ng-origin captures the complete origin block and copies it directly to your clipboard. This copied context includes the active route, the specific component that declares the element, its exact template file, the library it sits within, and relevant translation keys. This enables your coding agent to instantly open the correct file with the precise context needed, eliminating the need to manually search through the codebase for file paths and component structures. Furthermore, developers can append additional blocks to the last one using Alt+Shift+Click on Windows and Linux, or Option+Shift+Click on Mac, allowing you to gather context on multiple elements sequentially.
To use ng-origin effectively, the tool relies on Angular 22.1.4 or higher with enableTemplateSourceLocations configured in your development tsconfig file. For NgModule applications, integration involves adding the provider to your root module's providers array. The README file contains additional configuration options for customizing library prefixes, custom breakpoints, and translation keys to fit your specific project setup. The modifier key can also be adjusted to Ctrl+Shift on Windows or Linux if preferred.
Designed strictly for development environments, ng-origin serves as an indispensable utility for developers relying on AI coding agents and automated bug reporting workflows. By providing exact component origins and file locations instantly, it bridges the gap between the rendered browser DOM and the underlying source code, significantly reducing context-gathering overhead during software development and debugging sessions.
- CategoryAI Coding Assistants
- Pricing ModelOpen source
- DeploymentDevelopment Mode
- PlatformsAngular
ng-origin's Core Features
Alt+Click element inspection for Angular development apps
Copies component origin, route, and template file to clipboard
Captures library location and associated translation keys
Intercepts click events to prevent unwanted app navigation during inspection
Visual outline and label display for elements under the pointer
Support for appending multiple element blocks using Shift modifier
Configurable modifier keys including Ctrl+Shift on Windows and Linux
Compatible with Angular 22.1.4+ and enableTemplateSourceLocations
How to use ng-origin?
Configure project: Enable template source locations in your development tsconfig file and add the provider to your root module
Run application: Start your Angular application in development mode
Inspect element: Hold the Alt key on Windows/Linux or Option on Mac and click any element in your app
Copy origin: Receive the element's outline, label, and origin block automatically copied to your clipboard
Provide context: Paste the copied route, component, and file details directly into your coding agent
ng-origin's Use Cases
- AI Coding Agent Context
- Bug Reporting
- Template Debugging
- Translation Key Lookup
- Codebase Navigation





