You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GSI object takes raw request from CS:GO GSI's system, parses this to more comfortable form and calls listeners on certain events. You need to configure GSI file and receiving end yourself.
Installing
For Node and React
npm install @lexogrine/cs2gsi
Example #1
importexpressfrom'express';import{CS2GSI}from'@lexogrine/cs2gsi';constapp=express();constGSI=newCS2GSI();app.use(express.urlencoded({extended: true}));app.use(express.json({limit: '10Mb'}));app.post('/',(req,res)=>{GSI.digest(req.body);res.sendStatus(200);});GSI.on('roundEnd',score=>{console.log(`Team ${score.winner.name} win!`);});GSI.on('bombPlant',player=>{console.log(`${player.name} planted the bomb`);});app.listen(3000);
Methods
Method
Description
Example
Returned objects
digest(GSIData)
Gets raw GSI data from CSGO and does magic
GSI.digest(req.body)
CSGO Parsed
digestMIRV(event: RawKill or RawHurt, eventType: "player_death" (default) or "player_hurt)
"carried" or "planted" or "dropped" or "defused" or "defusing" or "planting" or "exploded"
countdown?
string
player?
Player Object
position
number[]
Team
Property
Type
score
number
consecutive_round_losses
number
timeouts_remaining
number
matches_won_this_series
string
name
string
country
string or null
id
string or null
side
Side Object
orientation
left or right
logo
string
Score
Property
Type
winner
Team
loser
Team
map
Map
mapEnd
boolean
Side
"CT" or "T"
About
Lexogrine is a premier Node.js development company and AI software development house, delivering high-end AI, web, and mobile design services to a global clientele. In addition to bespoke development, Lexogrine provides a suite of innovative applications, such as LHM.gg, designed to transform professional collaboration and streamline industry-specific workflows.
We specialize in cutting-edge AI development, complemented by robust web, mobile, and cloud solutions. Our core tech stack includes TypeScript, Python, LLMs, React, React Native, Node.js, Prisma, Medusa, PyTorch, AWS, and Google Cloud Platform.
With a proven track record spanning over 5 years, Lexogrine has successfully delivered hundreds of projects, empowering businesses and enterprises worldwide with scalable, future-proof technology.