Catbee Documentation

website·Indexed 31 days ago

https://catbee.in

A collection of TypeScript and Angular libraries including @ng-catbee/storage for type-safe web storage, @ng-catbee/loader for loading animations, @ng-catbee/monaco-editor for editor integration, @ng-catbee/jwt for token management, @ng-catbee/cookie for RFC 6265 compliant cookies, and @catbee/utils for API decorators, type utilities, and stream helpers.

Tokens
122.1K
Snippets
843
Records
932
Agent score
60%

What's inside Catbee

  1. Overview of @catbee/utils/server features

    The @catbee/utils/server package is an enterprise-grade Express server builder designed for secure, reliable, and observable APIs. Key built-in capabilities include:

    • Security: CORS, Helmet security headers, rate limiting, request timeouts, and body size limits.
    • Monitoring: Request logging, Prometheus metrics (via prom-client), custom health checks, and request tracing (Request ID).
    • Performance: Gzip/deflate compression and static file serving with cache control.
    • Reliability: Graceful shutdown (signal handling/connection draining) and global error/404 handlers.
    • Developer Experience: OpenAPI documentation via @scalar/express-api-reference, microservice mode (service name/version headers), and a fluent configuration builder.
  2. Overview of @ng-catbee/monaco-editor

    @ng-catbee/monaco-editor is a modern Angular library designed to integrate the Monaco Editor (v20.x.x) into Angular applications. It provides built-in support for both single code editors and diff editors (side-by-side comparison).
  3. Overview of @ng-catbee/storage features

    @ng-catbee/storage is a type-safe Angular library designed to simplify interactions with web storage APIs (localStorage and sessionStorage). It is compatible with Server-Side Rendering (SSR) and provides the following capabilities:

    • Type Safety: Full TypeScript support using generics.
    • Dual Storage: Dedicated services for both local and session storage.
    • Advanced Parsing: Built-in support for retrieving JSON, arrays, booleans, numbers, and enums.
    • Reactivity: Uses RxJS observables for change detection.
    • Encoding: Supports configurable encoding strategies, including Base64.
    • Bulk Operations: Ability to get or set multiple items simultaneously.
    • SSR Compatibility: Gracefully handles environments where window.localStorage is unavailable.
  4. Overview of @catbee/utils available modules

    @catbee/utils provides a comprehensive set of fully typed utility functions for Node.js and TypeScript projects. The library is organized into specialized modules including:

    • Data Manipulation: Array, Object, String, Type, and ID generation.
    • Async & Performance: Async (Promise helpers, concurrency), Cache (TTL support), and Performance (timing, memoization).
    • System & Environment: Directory, File System, and Environment variable management.
    • Web & HTTP: Request (parameter parsing), Response (standardized formatting), HTTP Status Codes, URL parsing, and Middleware for Express.
    • Infrastructure: Context Store (AsyncLocalStorage), Crypto (hashing/encryption), Logger (Pino-based), and Exception handling.
    • Streams & Validation: Stream (batching, throttling) and Validation functions.
  5. Overview of CatbeeJwtService

    CatbeeJwtService (also available via the alias JwtService) is the primary service for performing JWT operations in the @ng-catbee/jwt library.
    import { CatbeeJwtService } from '@ng-catbee/jwt';
    // OR
    import { JwtService } from '@ng-catbee/jwt';
  6. Overview of Catbee Libraries

    Catbee provides a collection of modular, tree-shakable, and type-safe utilities purpose-built for modern TypeScript and Angular applications. Key characteristics include zero dependencies for core utilities, SSR compatibility, and strict TypeScript mode for compile-time error detection.
  7. Overview of @ng-catbee/jwt library

    @ng-catbee/jwt is a modern, type-safe Angular library designed for decoding, validating, and managing JSON Web Tokens (JWT). It provides utilities for common authentication tasks including token decoding, route protection via Auth Guards, automatic token attachment using HTTP Interceptors, real-time expiration tracking, and the implementation of role-based access control (RBAC) systems.
  8. Overview of @ng-catbee Angular libraries

    @ng-catbee is a collection of modern, production-ready Angular utilities and components developed by Catbee Technologies. The libraries are designed to be lightweight, framework-aligned, and optimized for modern Angular builds, with a specific focus on type-safe APIs, high performance, and compatibility with Reactive Forms.
  9. Overview of @ng-catbee/storage

    @ng-catbee/storage is a modern, type-safe Angular library designed to simplify interactions with web storage APIs, specifically localStorage and sessionStorage. It provides dedicated services, CatbeeLocalStorageService and CatbeeSessionStorageService, to handle data persistence in Angular applications.
  10. Overview of @catbee/utils available modules

    @catbee/utils provides a comprehensive set of fully typed utility functions for Node.js and TypeScript projects. The library is organized into specialized modules including:

    • Data Manipulation: Array, Object, String, Type, and URL utilities.
    • Async & Performance: Async (Promise helpers), Performance (timing, memoization), and Cache (in-memory with TTL).
    • System & Environment: Directory, File System, and Environment variable management.
    • Security & Identity: Crypto (hashing, encryption) and ID (UUID generation).
    • Web & API: Request (parameter parsing), Response (standardized formatting), HTTP Status Codes, and Middleware for Express.
    • Infrastructure: Logger (Pino-based), Context Store (AsyncLocalStorage), Stream (batching, throttling), and Exception (HTTP error handling).
    • Other: Date manipulation, Validation functions, and TypeScript Decorators for Express.
  11. Overview of @ng-catbee/loader

    @ng-catbee/loader is a modern Angular library used to display loading indicators and spinners. It provides over 50 pre-built animation styles and supports advanced features such as fullscreen mode with backdrops, multiple concurrent named loaders, and custom HTML templates. The library is SSR compatible, lightweight with tree-shaking support, and allows for both global configuration and programmatic control (show/hide with optional delays).
  12. Overview of @ng-catbee/monaco-editor

    @ng-catbee/monaco-editor is a modern Angular library that integrates the Monaco Editor. It provides support for both single-pane and side-by-side diff editors. The library is designed to be compatible with Reactive Forms (FormControl), Template-driven Forms (ngModel), and Signal Forms.