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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zbyteio/zbyte-common

v1.1.6

Published

The zbyte-common package is an essential part of the zbyte SDKs ecosystem, providing a centralized repository of configurations, types/interfaces, utility functions, and more. Its purpose is to ensure consistency and reusability across the various zbyte S

Downloads

146

Readme

zbyte-common

The zbyte-common package is an essential part of the zbyte SDKs ecosystem, providing a centralized repository of configurations, types/interfaces, utility functions, and more. Its purpose is to ensure consistency and reusability across the various zbyte SDKs, streamlining the development process and enhancing maintainability.

Overview

zbyte-common is designed to house elements that are universally applicable across multiple SDK components, facilitating a DRY (Don't Repeat Yourself) approach to SDK development. By centralizing common elements, the package simplifies updates and modifications, ensuring that changes are uniformly propagated across all dependent SDKs.

Directory Structure

The structure of zbyte-common is intentionally organized to promote ease of navigation and scalability. As of the current version, the package includes three primary directories, each serving a specific purpose:

constants

Purpose: This directory contains constant values that are used throughout the SDKs. Naming Convention: All constants adhere to an UPPER CASE naming convention, utilizing snake_case for readability and consistency. Example: API_ENDPOINT, DEFAULT_TIMEOUT_MS

types

Purpose: This directory is dedicated to TypeScript types and interfaces, providing a centralized definition of data structures used across the SDKs. Naming Convention: Types and interfaces begin with an uppercase letter, following the PascalCase convention. This practice helps differentiate types/interfaces from standard variables and functions. Example: UserResponse, ApiOptions

###utils Purpose: Contains utility functions that offer common functionality needed by various parts of the SDKs. These functions range from data manipulation to more complex operations that are reused across different contexts. Characteristics: Utility functions should be designed to be as generic and reusable as possible, minimizing dependencies on specific SDK implementations.

Contribution Guidelines

Contributors are encouraged to expand the zbyte-common package by adding new directories and files that enhance the SDK's common functionalities. When contributing:

Naming Conventions: Adhere to established naming conventions for consistency and clarity. Documentation: Update documentation to reflect changes or additions to the package structure. Clear documentation is crucial for maintaining the usability of the package for all developers. Testing: Ensure that new additions are thoroughly tested, demonstrating reliability and compatibility with existing components.

CI-workflow

  • The package will automatically create whenever any branch will merge into the master.
  • For development check create branch in feature/example-name or bugfix/example-name format.

Installation

  • Before installing the lib user need to add .npmrc file in home directory which will contain the below details

    @zbyteio:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken={PAT}
  • You can install the library using npm package manager

    npm install @zbyteio/[email protected]
  • Install via package.json

    "@zbyteio/zbyte-common": "1.1.0"
  • 1.1.0 is the example version.