mika-ffstalk
v1.0.0
Published
A modern CLI and TypeScript library to inspect Free Fire player accounts using public API data.
Maintainers
Readme
🔍 FreeFire Stalker
A blazing-fast, fully typed, and CLI-ready toolkit to fetch and inspect Garena Free Fire player profiles using public community APIs.
Designed for Node.js, TypeScript, and modern development workflows.
✨ Features
- 🧠 TypeScript-first with full typings
- ⚡️ Supports ESM, CJS, and CLI
- 🔍 Fetches detailed player metadata, pet, profile, and credit score
- 📷 Built-in URLs for banner and outfit images
- 🧪 Battle-tested with Vitest
- 💡 Ideal for: bots, dashboards, analytics, gamer tools
📦 Installation
# Using npm
npm install mika-ffstalk
# Or using yarn
yarn add mika-ffstalk🚀 Programmatic Usage
import { fetchFreeFireAccountDetails } from "mika-ffstalk";
(async () => {
const data = await fetchFreeFireAccountDetails("470699855");
console.log(data.metadata.nickname); // e.g., "Mika ST"
})();🔧 CLI Usage
npx mika-ffstalk 470699855
# or
npm link
mika-stalk 470699855Optional flags:
--json # Output raw JSON
--table # Output in table formatExample:
npx mika-ffstalk 470699855 --table📂 Output Format (Simplified)
type FreeFireAccountData = {
metadata: {
nickname: string;
accountId: string;
region: string;
level: string;
rank: string;
exp: string;
lastLoginAt: string;
diamondCost: string;
};
pet: {
name: string;
level: string;
exp: string;
};
profile: {
avatarId: string;
clothes: string[];
equippedSkills: string[];
};
social: {
battleTags: { tag: string; count: number }[];
language: string;
signature: string;
};
credit: {
score: string;
rewardState: string;
};
assets: {
bannerImageUrl: string;
outfitImageUrl: string;
};
};🧾 Sample Output
{
"metadata": {
"nickname": "PontaSensei",
"accountId": "470699855",
"region": "ID",
"level": "57",
"rank": "Diamond IV"
},
"assets": {
"bannerImageUrl": "https://discordbot.freefirecommunity.com/banner_image_api?uid=470699855®ion=id",
"outfitImageUrl": "https://discordbot.freefirecommunity.com/outfit_image_api?uid=470699855®ion=id"
}
}📚 API Reference
fetchFreeFireAccountDetails(uid: string): Promise<FreeFireAccountData>
| Parameter | Type | Required | Description |
| --------- | ------ | -------- | ---------------------------- |
| uid | string | ✅ | The Free Fire UID to inspect |
Returns a structured object with all account details, suitable for UIs or APIs.
🖼️ UI-Ready Assets
- ✅
bannerImageUrl - ✅
outfitImageUrl
Embed them directly into dashboards or profile cards.
🧑💻 Local Development
Clone and install:
git clone https://github.com/MikaYelovich/mika-ffstalk
cd mika-ffstalk
npm install
npm run devRun tests:
npm run test🤝 Contributing
Contributions are welcome!
If you'd like to fix a bug or add a feature, please open an issue or submit a PR.
📄 License
MIT © 2025 Mika Yelovich
