Nitelite is an Epic Games Launcher and a Fortnite automation tool. This is the ideal way to send any, for example, friend requests since those HTTP endpoints are encrypted by epic games. What this api lets you do is control your profile programatically so that you can make those requests as once intended. It makes use of Tesseract-OCR and robotjs to control the epic games launcher and feedsback what it traces. Nitelite is also a callback based api which means it'll work with most other apis you decide to use it with.
Setup is extremley simple! First install the library by using
Once the installation is done, close everything and open the epic games launcher. Signout and youre good to go! (The epic games launcher has to be completley visible and on the signin screen for nitelite to work properly.) Note: If you move a window or resize something signout, close the epic games launcher and open it again. Everything will be configured to the new window sizes now.
///Example
const Nitelite = require('Nitelite')
const launcher = new Nitelite();
///This will sign you in to epic games
launcher.signin('your-email','your-password', function(e){
if (!e.state){
e.authenticationWindow.insertCode('your-auth-code-if-prompted', function(e){
if (e.state){console.log("signed in")}
})
}else{
console.log("signed in")
}
});
stateObj.state: (Boolean) returns if the operation was completed sucessfully or not
stateObj.whatever-window-it-opened: returns the window object from what it opened
signin(email, password, callback)
- email: (String) your epic games email
- password: (String) your epic games password
- callback:(Function) returns state object ->
if stateObj.state is true the second key will return a mainWindowLauncher object which you can access by stateObj.mainWindowLauncher
if stateObj.state is false the second key will return a authenticationWindow object which you can access stateObj.authenticationWindow
signin(email, password, callback)
- email: (String) your epic games email
- password: (String) your epic games password
- callback:(Function) returns state object ->
if stateObj.state is true the second key will return a mainWindowLauncher object which you can access by stateObj.mainWindowLauncher
if stateObj.state is false the second key will return a authenticationWindow object which you can access stateObj.authenticationWindow
insertCode(code, callback)
- code: (String) your epic games auth code (its up to you to get this if you use 2fa)
- callback:(Function) returns state object ->
if stateObj.state is true the second key will return a mainWindowLauncher object which you can access by stateObj.mainWindowLauncher
if stateObj.state is false there will be no second key
close(callback)
- callback:(Function) returns state object ->
stateObj.state will always be true and second key will always be a signInWindow object
openFriendsWindow(callback)
- callback:(Function) returns state object ->
stateObj.state will always be true and second key will always be a friendsWindow object
signout(callback)
- callback:(Function) returns state object ->
if stateObj.state is true the second key will return a signInWindow object which you can access by stateObj.signInWindow
if stateObj.state is false there will be no second key
openAddFriendsWindow(callback)
- callback:(Function) returns state object ->
if stateObj.state is true the second key will return a addFriendsWindow object which you can access by stateObj.addFriends
if stateObj.state is false there will be no second key
close(callback)
- callback:(Function) returns state object ->
stateObj.state will always be true and second key will always be a mainWindowLauncher object
addFriend(friend, callback)
- friend: (string) sends a friend request
- callback:(Function) returns state object ->
stateObj.state will always be true and there will be no second key
close(callback)
- callback:(Function) returns state object ->
stateObj.state will always be true and second key will always be a friendsWindow object