@habboapi/common
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

HabboAPI Logo

a modern restapi server written in typescript for interacting with Arcturus Emulator

Description

HabboAPI is a collection of packages that once put together, create secure restapi endpoints designed to interact with Arctrus Emulator.

Under the hood, HabboAPI is using the NestJS framework to easily create manageable, modular code. The system is designed around an Angular like dependency injection system. This allows for great code seperation, while easily injecting data from a seperate module.

HabboAPI has 4 main modules designed to be used together

@habboapi/common
@habboapi/emulator
@habboapi/habbo
@habboapi/security

Each module has different dependencies while also relying on eachother.

@habboapi/common

@habboapi/common is our main module, it has no dependencies of other modules, but other modules may depend it.

The following is handled by this module

  • BackupService
    • Provides the ability to backup specified MySQL tables and save the data to a file.
  • ConfigService
    • Provides the ability for modules to interact with the global configuration and use its values.
  • LogService
    • Provides the ability to write to the built in logger which can save outputted data.
  • Database Initialization
    • Initalizes the TypeORM system and registers all entities across the system.

@habboapi/emulator

@habboapi/emulator handles any direct connection to Arcturus Emulator as well as managing any of its settings.

The following is handled by this module

  • EmulatorService
    • Provides the ability to connect to Arcturus over a peristant connection that can watch and immediately notify if the server goes down.
  • RconService
    • Provides the ability to send and recieve data from Arcturus Rcon.

Dependencies (5)

Dev Dependencies (5)

Package Sidebar

Install

npm i @habboapi/common

Weekly Downloads

10

Version

1.2.0

License

none

Unpacked Size

30.2 kB

Total Files

32

Last publish

Collaborators

  • habboapi