Skip to content

Repository files navigation

Tag2AJIO

Tag2AJIO is a mobile-first React PWA and Capacitor Android wrapper for scanning Reliance Trends clothing tags and opening the matching AJIO search page.

It detects the preferred ART number from tag text, falls back to the barcode, and never stores scanned data.

What It Does

Flow Result
Scan barcode Opens AJIO search for the detected barcode
Capture ART with OCR Extracts ART: 443017579005 style numbers
Detect color from tag text Suggests AJIO direct product URL format
Manual entry Lets the user type ART or barcode when scanning is unclear

AJIO URL Logic

Safe fallback search:

https://www.ajio.com/search/?text=<detected_value>

Smart direct product suggestion when both ART and color are detected:

https://www.ajio.com/p/<first_9_digits_of_ART>_<color_lowercase>?query=:relevance&classifier=intent

Example:

ART: 443017579005
Color: OLIVE
Direct URL: https://www.ajio.com/p/443017579_olive?query=:relevance&classifier=intent

The direct product page is only a suggestion. AJIO search remains the reliable fallback.

Privacy

Tag2AJIO is intentionally local-first:

  • No backend database
  • No login
  • No saved scan history
  • No analytics
  • No server-side storage
  • No AJIO scraping

Barcode scanning and OCR run in the browser or Android WebView on the user's device.

Tech Stack

  • React
  • Vite
  • @zxing/browser for barcode scanning
  • tesseract.js for on-device OCR
  • PWA manifest and service worker
  • Capacitor Android wrapper

Local Development

npm install
npm run dev

Open:

http://127.0.0.1:5173/

Camera access works on localhost/127.0.0.1 during development. For a remote web deployment, HTTPS is required.

Build

npm run build

The production web build is generated in dist/.

Android APK

Create or refresh the Capacitor Android project:

npm install
npm run build
npx cap add android
npx cap sync android
npx cap open android

If the android/ project already exists:

npm run build
npx cap sync android
npx cap open android

In Android Studio, build the APK from:

Build > Build Bundle(s) / APK(s) > Build APK(s)

The Android build requires Java 11 or newer.

Project Structure

.
├── android/                 Capacitor Android wrapper
├── public/                  PWA manifest, service worker, icon
├── src/                     React app
├── capacitor.config.json    Capacitor app configuration
├── package.json             Scripts and dependencies
└── vite.config.js           Vite configuration

Disclaimer

Tag2AJIO is an independent utility. It is not affiliated with, endorsed by, or sponsored by AJIO, Reliance Trends, or Reliance Retail.

License

MIT

About

Mobile-first PWA and Android wrapper for scanning Reliance Trends tags and opening AJIO search results.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages