
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This library provides a simple layer between Grepolis's world data files and your NodeJS project. The purpose is to provide a quick and minimal library that turns the CSV (and some JSON) data into objects that can easily be worked with in Javascript.
This library is intentionally created with zero external runtime dependencies.
npm i grepolis
Every function in the Grepolis library is named after the file which it reads (list below) to make things simple for developers working with the library. Each function returns a Promise containing the data that was read. In most cases this data is a really large array of objects. Every endpoint requires a server variable which is just an object that contains the language and world number as seen in the example code.
As of 0.2.0 the functions have been divided between World and Statistics modules which can be imported individually with named imports or can be referenced via a single require as shown below. Here is the new structure of the library:
- World
- units
- researches
- buildings
- Statistics
- towns
- islands
- conquers
- players
- playersKills
- playersKillsAttack
- playersKillsDefend
- alliances
- alliancesKills
- alliancesKillsAttack
- alliancesKillsDefend
Here is an example of reading towns data:
const Grepolis = require('grepolis');
/*
* Read all towns data from en110 (Leontini)
*/
const server = { lang: 'en', world: '45' };
Grepolis.Statistics.towns(server).then((data) => {
// data = array of towns
// this is a huge object list
console.log('Town Data: ', data);
});
Town
{
"id": "4775",
"playerId": "2182242",
"name": "cash+money",
"islandX": "496",
"islandY": "448",
"numberOnIsland": "5",
"points": "12090"
}
Island
{
"id": "117977",
"x": "5",
"y": "17",
"islandType": "40",
"availableTowns": "20",
"resourcePlus": "wood",
"resourceMinus": "stone"
}
Player
{
"id": "259495",
"name": "Thaylas",
"allianceId": "",
"points": "0",
"rank": "3100",
"towns": "0"
}
Alliance
{
"id": "124",
"name": "Terra+Nostrum",
"points": "6681",
"towns": "1",
"members": "1",
"rank": "146"
}
Conquer
{
"townId": "248",
"time": "1537879813",
"newPlayerId": "5037454",
"oldPlayerId": "",
"newAllyId": "28",
"oldAllyId": "",
"points": "4656"
}
Kills (player, alliance)
{
"rank": "278",
"id": "1847",
"points": "18"
}
FAQs
Grepolis Data Utility for NodeJS
We found that grepolis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.