npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@byte-fw/byte

v0.5.0

Published

<p align="center"> <img width="460" src="https://github.com/user-attachments/assets/62a88d31-c0a9-4140-bc98-571dee3cb733"> </p>

Downloads

231

Readme

Byte

Byte is a framework for the Cfx.re plattform FiveM. It is written in TypeScript and transpiled to lua using a fork of tstl. The whole framework is stiched together using the jade build tool.

Discord server

Building

Once you have jade installed, simply navigate to the framework's root directory and execute jade .. Make sure to have bun installed. By default the build is performed using bun, if you don't want to use bun simply replace the package_manager key in every build step inside the jade.json file with your preferred node package manager, e.g. pnpm.

Docs

Client reference Server reference

[!NOTE] All docs for shared are replicated in both references.

Dependencies

  • Byte-pg: Minimal PostgreSQL wrapper

Code guidelines

  • All the config files are written in the xml format and are stored under the assets/ folder.
  • Some native lua modules, such as the XML parser, are stored in the lua/ folder.
  • The type definition for the object exported by the framework to other resources can be found in client/events/export.ts & server/events/export.ts.
  • When building the framework, the exported type definitions can be found inside build/client/byte-client.d.ts & build/server/byte-server.d.ts.

Batteries included framework

The Byte framework aims to satisfy all the needs of a developper by providing all the helper classes and utilities that one could ever need. Some of the classes included are:

  • Logger client/utils/logger.ts server/utils/logger.ts: Logger class that features different log tracing levels and module tracing.
  • EnvManager client/utils/env.ts server/utils/env.ts: Static class that provides the code with the env vars that the user defines inside the server.cfg config file.
  • ConfigController shared/classes/configController.ts: Parses the framework's config.xml file and provides the code with parsed values.
  • Translator shared/classes/translator.ts: Parses the locales.xml file and provides the translations for the selected language.
  • XML shared/classes/xml.ts: Utility class to help with the navigation of xml documents.