@rterizz23/peyek-core
v2.1.1
Published
Core utilities and modal system for P.E.Y.E.K
Readme
P.E.Y.E.K Core
The central engine for the Platform Extensible Yielding Engineering Kit (P.E.Y.E.K).
This package contains the foundational singleton peyek object, including the API layers, automatic CSRF detection for Laravel/Yii, zero-dependency Modal generation, and access to premium UI components like Theme Builder and 3D Toastr.
Installation
npm install @rterizz23/coreFeatures
- Framework Agnostic: Seamlessly auto-detects CSRF tokens from Laravel or Yii.
- API Manager: Powerful built-in HTTP fetch wrapper.
- Modal Engine: Generate stunning glassmorphism modals purely via JavaScript.
- Premium Upgrades: Built-in connection to
@rterizz23/peyek-theme-builderand@rterizz23/peyek-toastr.
Usage
import { peyek } from '@rterizz23/core';
// Initialize the core system
peyek.init();
// Use the API
peyek.API.get('/api/data').then(data => console.log(data));
// Show a modal
peyek.Modal.show({ title: 'Welcome', content: 'Core engine online.' });