Market dataOpen sourceLive app

    India Commodity Price Tracker.

    See what 33 commodities would cost to import into India, in rupees and Indian units, after customs duty.

    Rohit Singh | Mr. ChartistAuthor and builder
    Dashboard
    Landed price breakdown
    Runs on
    Your computer
    Setup
    About 2 minutes
    Licence
    MIT
    Updated
    Built with
    • Vanilla JavaScript
    • CSS
    • GitHub Actions
    • Lightweight Charts
    01Overview

    What you get.

    1. One headline rupee price per commodity, in the unit Indian buyers use: per gram, per kg, per quintal or per barrel.

    2. The full breakdown behind a Details toggle: gold in 24K, 22K and 18K, per 10 g and per kg, plus contract-lot equivalents.

    3. Customs duty applied per commodity (BCD, AIDC and SWS), with date-based changes such as cotton.

    4. Candlestick charts from one month to the full history, with a volume histogram and weekly CFTC positioning.

    5. Honest labels on every price: Live, Cached, Stale or Indicative, with its real age.

    6. A watchlist, share links, light and dark themes, and offline use as an installed app.

    03How it works

    From start to finish.

    1. Fetch

      Scheduled GitHub Actions fetch Yahoo Finance futures, USD/INR and spot prices. A slower job fetches chart history and CFTC open interest.

    2. Publish

      The scripts write prices.json and chart files to an orphan data branch. The site itself stays fully static on GitHub Pages.

    3. Read

      Your browser loads the snapshot, reads gold, silver, platinum and palladium spot directly about every minute, and falls back to saved data when offline.

    4. Calculate

      app.js applies the unit divisor, the USD/INR rate and the duty from its COMMODITIES table. The calculation happens on your device.

    5. Label

      Each price is tagged Live, Cached, Stale or Indicative with its real age, so an old number is never shown as fresh.

    04Run it

    Run it on your computer.

    You need

    • Node.js 18 or higher
    • Git
    • About 2 minutes
    • Internet, to fetch live prices
    Open a terminal and run
    git clone https://github.com/MrChartist/commodity-price-tracker.git
    cd commodity-price-tracker
    npm run dev
    Then open http://localhost:3000 in your browser.
    Prefer step by step?Show
    1. 1Install Node.js 18 or higher (nodejs.org). There are no packages to install.
    2. 2Clone: git clone https://github.com/MrChartist/commodity-price-tracker.git && cd commodity-price-tracker
    3. 3Start the local server: npm run dev, then open http://localhost:3000.
    4. 4The local server creates the same price, chart and open-interest files that the GitHub Action publishes, so it works with no extra setup. It needs internet to reach the data providers.
    5. 5Open a card, press Details, and compare the landed price with the formula on the Docs page.
    6. 6To change a duty rate, unit or source, edit the COMMODITIES table in app.js, then update docs.html and README.md in the same change.
    7. 7To publish your own copy: fork the repository, allow workflows, run Update prices and Update chart history once, set Pages to GitHub Actions, then point dataBase in config.js at your fork.
    8. 8Do not present the numbers as NSE or MCX data. They are estimates from international benchmarks.

    Just want to look first? Open the hosted version

    05Install with AI

    Let an AI install it for you.

    Claude

    Best when you want architecture explanation, codebase understanding, and a clean implementation plan before edits.

    You need

    • Repo access
    • README context
    • Terminal if using Claude Code

    How to use: Paste the prompt with the GitHub link. Ask Claude to read the README, map modules, list risks, and produce a practical plan before using Claude Code or another agent to implement.

    You are my setup assistant. Install and run "India Commodity Price Tracker" on my computer, then confirm it works. I am not a developer, so explain every step in simple English.
    
    Repository: https://github.com/MrChartist/commodity-price-tracker
    What it is: See what 33 commodities would cost to import into India, in rupees and Indian units, after customs duty.
    Built with: Vanilla JavaScript + CSS + GitHub Actions + Lightweight Charts
    
    Rules
    1. Ask which operating system I use (Windows, macOS or Linux) and give commands for that system only.
    2. Check what is already installed (Git, Node.js or Python versions) before installing anything. If something is missing, tell me where to download it and wait.
    3. Ask me before installing anything globally or changing system settings.
    4. Never ask me to paste passwords or API keys into this chat. If a key is needed, tell me which file to put it in.
    5. Do not edit the project's source code unless I ask.
    6. Read the README first. If it disagrees with the steps below, follow the README and tell me why.
    
    Steps from the guide
    1. Install Node.js 18 or higher (nodejs.org). There are no packages to install.
    2. Clone: git clone https://github.com/MrChartist/commodity-price-tracker.git && cd commodity-price-tracker
    3. Start the local server: npm run dev, then open http://localhost:3000.
    4. The local server creates the same price, chart and open-interest files that the GitHub Action publishes, so it works with no extra setup. It needs internet to reach the data providers.
    5. Open a card, press Details, and compare the landed price with the formula on the Docs page.
    6. To change a duty rate, unit or source, edit the COMMODITIES table in app.js, then update docs.html and README.md in the same change.
    7. To publish your own copy: fork the repository, allow workflows, run Update prices and Update chart history once, set Pages to GitHub Actions, then point dataBase in config.js at your fork.
    8. Do not present the numbers as NSE or MCX data. They are estimates from international benchmarks.
    
    When the steps are done
    - Start the app and tell me the exact address to open. Expected address: http://localhost:3000
    - If an error appears, read it, fix the cause and retry. After three failed attempts, stop and explain the problem simply.
    - Finish with five short lines: what the app does, how to start it again, how to stop it, where its data is stored, and one thing I can try first.
    - This is an information tool. It is not investment advice.
    
    If you can run a terminal (Claude Code), do it yourself. If you are chat only, give me one command block at a time and wait for me to reply before the next.
    06For developers

    Under the hood.

    07FAQ

    Questions about India Commodity Price Tracker.

    Best next step

    Run it, then read the code.

    Run npm run dev, open the Gold card, press Details, and check the landed price by hand with the formula on the Docs page before changing any duty rate.

    Your privacy, your choice

    Essential storage keeps sign-in and preferences working. Optional analytics helps improve the website. Read our Privacy Policy.

    Privacy settings

    Essential sign-in storage and your saved preferences stay enabled. Analytics is optional, and you can change your choice anytime.

    Turning analytics off clears our analytics cookies and local assistant metrics. The page reloads to stop a previously loaded analytics service. Your account and learning progress stay saved.

    Read the Privacy Policy