npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

irctc-connect

v3.3.2

Published

⚠️ DEPRECATED: This package has been renamed to `railkit`. It still works for now but will not receive updates. Please migrate to `railkit` as soon as possible.

Downloads

363

Readme

⚠️ DEPRECATION NOTICE

irctc-connect has been renamed to railkit.

This package will continue to work for now, but it will not receive new features, bug fixes, or security updates. Please migrate to railkit as soon as possible.

🔄 Migrate in 3 steps

# 1. Remove the old package
npm uninstall irctc-connect

# 2. Install the new package
npm install railkit
- import { configure, checkPNRStatus } from "irctc-connect";
+ import { configure, checkPNRStatus } from "railkit";

📖 New documentation: https://railkit.rajivdubey.dev 📦 New repository: github.com/RAJIV81205/RailKit 🚀 npm page: npmjs.com/package/railkit


IRCTC Connect (DEPRECATED)

npm version Downloads License: ISC Status: Deprecated

Heads up: This is the legacy irctc-connect package. It still works, but the actively maintained successor is railkit. New users should install railkit directly.

A comprehensive Node.js SDK for Indian Railways. Get real-time PNR status, train information, live tracking, station updates, train search, and seat availability — all through a single, clean API.


✨ Features

  • 🎫 PNR Status — Real-time PNR status with full passenger details
  • 🚂 Train Information — Complete train details with station-by-station route
  • 📍 Live Train Tracking — Real-time position and delay info for any train
  • 🚉 Live Station Board — Upcoming trains at any station right now
  • 🔍 Train Search — Find all direct trains between two stations
  • 💺 Seat Availability — Check availability and fare for any class and quota
  • 💰 Fare Lookup — Full fare breakdown for any train, class, and quota
  • Fast & Reliable — Built-in timeout handling, input validation, and caching

📦 Installation (NEW package — recommended)

npm install railkit

Legacy installation (this package)

If you specifically need the legacy irctc-connect package — for example to keep an existing project running while you migrate — you can still install it, but a deprecation warning will be shown on every install/update:

npm install irctc-connect@^3.3.1

🔑 Getting an API Key

  1. Visit railkit.rajivdubey.dev
  2. Sign up and navigate to your Dashboard
  3. Generate an API key from the API Keys section
  4. Copy the key — you'll use it in the next step

🚀 Quick Start

Step 1 — Add your API key to .env

# .env
IRCTC_API_KEY=your_api_key_here

Step 2 — Use the SDK

With the new railkit package (recommended):

import { configure, checkPNRStatus } from "railkit";

configure(process.env.IRCTC_API_KEY);

const result = await checkPNRStatus("1234567890");
console.log(result);

With the legacy irctc-connect package (still works):

import { configure, checkPNRStatus } from "irctc-connect";

configure(process.env.IRCTC_API_KEY);

const result = await checkPNRStatus("1234567890");
console.log(result);

The API surface is identical — once you've swapped the import, you're done.


🧭 Migration Checklist

  • [ ] Run npm uninstall irctc-connect
  • [ ] Run npm install railkit
  • [ ] Replace every from "irctc-connect" with from "railkit"
  • [ ] Re-test your application
  • [ ] Deploy 🚀

The configure(apiKey) call and all function names/signatures remain the same, so no other code changes are required.


📚 Documentation

| Resource | Link | | ----------------- | ------------------------------------------------------------------------------------- | | New docs site | https://railkit.rajivdubey.dev | | npm (new package) | https://www.npmjs.com/package/railkit | | GitHub repository | https://github.com/RAJIV81205/RailKit | | Issues | https://github.com/RAJIV81205/RailKit/issues |


📜 License

ISC © Rajiv81205