TypeScript icon, indicating that this package has built-in type declarations

    1.6.0 • Public • Published

    RuneJS Discord Server



    Core logging, networking, compression, encryption, and additional buffer functionality for RuneJS applications.


    • logger is exported as a singleton Pino logging wrapper, offering the following functions:
      • logger.info(...messages)
      • logger.debug(...messages)
      • logger.warn(...messages)
      • logger.error(...messages)
      • logger.fatal(...messages)
      • logger.trace(...messages)
    • Ability to set the Pino logging date/time formatting function via setLoggerTimeFn(Pino.TimeFn)
    • Ability to set the Pino logging pretty print config value via setLoggerPrettyPrint(boolean)
    • Setting of all Pino logging options via setLoggerOptions(Pino.LoggerOptions)


    • ByteBuffer is the main export.
      • Node Uint8Array wrapper with additional utility functions.
      • Unified configurable get and put methods to easily move bytes within the buffer.
      • Int24, Smart, Long and String type support.
      • Big endian, little endian, and mixed endian support.
      • Bit access through openBitBuffer(), putBits(), and closeBitBuffer()


    • SocketServer
      • Handles connections made to a RuneJS socket server.
    • SocketServer.launch(serverName, hostName, port, connectionHandlerFactory)
      • Spins up a new Node Socket server with the specified host and port.
    • ServerConfigOptions
      • Options for a configured Socket server, imported using the parseServerConfig() function.


    • Exported class Gzip handles Gzip compression and decompression.
    • Exported class Bzip2 handles Bzip2 compression and decompression.


    Provides XTEA encryption and decryption functionality, as well as a key file loader.

    • Exported as class Xtea


    npm i @runejs/core

    DownloadsWeekly Downloads






    Unpacked Size

    104 kB

    Total Files


    Last publish


    • schauwem
    • kikorono
    • tynarus