<commit_before>```javascript
// create a new Brinkbit instance
const brinkbit = new Brinkbit({
    base: '/api', // the route of your application on which the server-side sdk is listening
    appId: 'xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx', // your unique app id (can be retrieved from brinkbit console)
});
```

```javascript
// create a new user
const user = new brinkbit.User({
    username: 'Violet',
    email: '<EMAIL>',
    password: '<PASSWORD>',
});
user.save()
.then(() => {
    // user has been created on server
});
```

```javascript
brinkbit.on( 'login', ( event ) => {
    console.log( event.user );
});

// login a user
brinkbit.login({
    username: 'Violet', // can also be email
    password: '<PASSWORD>',
})
.then(( user ) => {
    // user is an authenticated user object
});
```

## Low level requests

```javascript
brinkbit.get( '/users/12345/' );
```

```javascript
brinkbit.put({
    uri: '/users/12345/',
    data: {
        email: '<EMAIL>',
    },
});
```<commit_msg>Update documentation<commit_after>```javascript
// create a new Brinkbit instance
const brinkbit = new Brinkbit({
    base: '/api', // the route of your application on which the server-side sdk is listening
    gameId: 'xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx', // your unique game id (can be retrieved from brinkbit console)
});
```

```javascript
// create a new player
const player = new brinkbit.Player({
    username: 'Violet',
    email: '<EMAIL>',
    password: '<PASSWORD>',
});
player.save()
.then(() => {
    // player has been created on server
});
```

```javascript
brinkbit.on( 'login', ( event ) => {
    console.log( event.player );
});

// login a player
brinkbit.login({
    username: 'Violet', // can also be email
    password: '<PASSWORD>',
})
.then(( player ) => {
    // player is an authenticated player object
});
```

## Low level requests

```javascript
brinkbit.get( '/players/12345/' );
```

```javascript
brinkbit.put({
    uri: '/players/12345/',
    data: {
        email: '<EMAIL>',
    },
});
```
{'fraction_non_alphanumeric': 0.18208807521029194, 'fraction_numerical': 0.009896091044037604, 'mean_word_length': 3.2478991596638656, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451151', 'n_tokens_mistral': 694, 'n_tokens_neox': 645, 'n_words': 197}