Skip to content

gittrend-dev/code-origin

Repository files navigation

🚀 Code Origin

Track and visualize where your code comes from — directly inside your project.


🧠 Why Code Origin?

Modern developers often copy code from:

  • 🤖 AI tools (ChatGPT, Copilot, Cursor)
  • 🌐 StackOverflow / Blogs
  • 📦 GitHub repositories

But later…

👉 You forget where it came from 👉 You can’t trace logic 👉 You lose context

Code Origin solves this.


✨ Features

🏷️ Add Source Metadata

Easily tag any code block with its origin:

Code-Origin
Source: ChatGPT
Prompt: create login API
Creator: Codebro
Date: 2026-03-16

📊 View Source Summary

Instantly see where your code came from:

Code Origin Source Map
----------------------

Line 13 → ChatGPT  
Line 27 → Gemini  
Line 51 → StackOverflow  

Total Marked Blocks: 3

⚡ Quick Navigation

  • Click any source → jump to that line instantly

🎯 Works Everywhere

Supports multiple languages automatically:

  • JavaScript / TypeScript
  • Python
  • HTML / CSS
  • Shell scripts
  • YAML

⌨️ Easy Access

  • Command Palette
  • Right-click menu
  • Shortcut: Ctrl + Shift + 8

📸 Demo

(Add GIF here later for better engagement)


🛠️ Installation

🔹 Option 1 — Install from VSIX

  1. Open Visual Studio Code
  2. Go to Extensions
  3. Click ...Install from VSIX
  4. Select your .vsix file

🔹 Option 2 — CLI

code --install-extension code-origin-0.0.1.vsix

🚀 Usage

1️⃣ Add Source

Ctrl + Shift + P → Code Origin: Add Source

Fill:

  • Source (ChatGPT, Copilot, etc)
  • Prompt
  • Creator

2️⃣ View Summary

Ctrl + Shift + P → Code Origin: View Summary

🧩 Example

// Code-Origin
// Source: ChatGPT
// Prompt: debounce function
// Creator: Codebro
// Date: 2026-03-16

function debounce(fn, delay) {
  let timeout;
  return (...args) => {
    clearTimeout(timeout);
    timeout = setTimeout(() => fn(...args), delay);
  };
}

🎯 Use Cases

  • Track AI-generated code
  • Maintain clean documentation
  • Improve team collaboration
  • Debug faster with context
  • Learn from past prompts

🛣️ Roadmap

  • 🔥 Auto-detect pasted code (AI / Web)
  • 🧠 Smart source recognition
  • 📈 Analytics dashboard
  • 🌐 GitHub integration

🤝 Contributing

Pull requests are welcome!

If you have ideas to improve Code Origin, feel free to open an issue.


📄 License

MIT License


⭐ Support

If you like this project:

👉 Star the repo 👉 Share with developers 👉 Give feedback


👨‍💻 Author

Built with ❤️ by Anilkumar Chaurasiya

About

Track and visualize where your code comes from (AI, StackOverflow, Copilot), This is a Vscode extension, which is Track where your code comes from if you have copy and paste the code of Ai generated, Like ChatGPT, Gemini, Copilot, and other Ai..

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors