New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ziko

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ziko

a versatile JavaScript library offering a rich set of UI components, advanced mathematical utilities,Reactivity,animations,client side routing and graphics capabilities

0.0.18
Source
npm
Version published
Weekly downloads
9
-90%
Maintainers
0
Weekly downloads
 
Created
Source
zikojs logo

💡 Zikojs a versatile JavaScript library offering a rich set of UI components, advanced mathematical utilities,Reactivity,animations,client side routing and graphics capabilities

Install

npm install ziko

🎬 Demos

  • Windows entanglement using zikojs and ziko-three

Features :

🔰 Seamlessly operates in both browser and Node.js environments

🔰 Mathematical Utilities & Tips

  • Flexible Math Functions :

ZikoJS offers flexible math utilities, such as the mapfun function, which allows mapping standard mathematical operations to complex and nested data structures. For example, the cos function in ZikoJS is built on top of mapfun, enabling it to handle multiple arguments with diverse types (numbers, arrays, objects).

import { cos, PI } from "ziko";
const result = cos(PI, PI / 2, PI / 4, [PI / 6, PI / 3], {
  x: PI / 2,
  y: PI / 4,
  z: [0, PI / 12],
}
);
/*
result =>
[
  -1,
  0,
  0.707106781186548,
  [0.866025403784439, 0.5],
  {
    x: 0,
    y: 0.707106781186548,
    z: [1, 0.965925826289068],
  },
];
*/
// console.log(result)

You can also built your own flexible Math function using this mapfun util :

import { mapfun } from "ziko";
const parabolic_func = (a, b, c, x) => a * x ** 2 + b * x + c;
const map_parabolic_func =
  (a, b, c) =>
  (...X) =>
    mapfun((n) => parabolic_func(a, b, c, n), ...X);
const a = -1.5,
  b = 2,
  c = 3;
const X = [0, 1, 2, 3];
console.log(parabolic_func(a, b, c)(X));
// [3,3,1,3]

  • Built in Matrix, Complex, Random ... classes

🔰 No Template Engines :

zikojs UI module adopts a distinctive approach to building and updating user interfaces. It doesn't rely on predefined markup templates. Instead, it leverages a hyperscript-like syntax to dynamically create and update user interfaces.

🔰 Built in File-Based Routing with Single Page Application

ZikoJS provides an intuitive file-based routing mechanism that simplifies the development of single-page applications. By organizing your page components into a directory structure, you can automatically generate routes based on the file paths. This approach enhances the maintainability of your code by allowing you to easily manage and navigate between different views in your application.

To implement file-based routing, simply use the following code:

import { FileBasedRouting } from "ziko";
FileBasedRouting(import.meta.glob("./src/pages/**/*.js"))

In this example, the import.meta.glob function dynamically imports all JavaScript files from the specified directory (./src/pages/**). Each file represents a separate route in your application, allowing you to create a clean and organized routing structure without the need for manual route configuration.

ZikoJS is designed to seamlessly integrate into other frameworks and libraries. By installing the ziko-wrapper package, you can easily use ZikoJS within your favorite frontend ecosystems.

Currently supported frameworks:

  • REACT
  • Solid
  • Preact
  • Svelte
  • Vue

🔰 Custom Markdown Parser

Mdzjs allowing you to write markdown content alongside Zikojs Elements

---
 module : 
  - import InteractiveBlock from "./InteractiveBlock"
 title : Article 1
---

# Hello World this is markdown heading 

<InteractiveBlock data = "Hello" />

🔰 Growing Add-On Ecosystem

AddonPurposeDependenciesRepository
ziko-glthreejs
ziko-codecodeMirror
ziko-chartchartjs
ziko-pdfjsPdf.js
ziko-xlsxls.js
ziko-lottieLottie-web
ziko-roughrough.js
ziko-iconsfontawesome
ziko-tippytippy.js

🔰 Rich UI elements

🔰 Reactivity

🔰 Time loop and animations support

⭐️ Show your support

If you appreciate the library, kindly demonstrate your support by giving it a star!
Star

License

This projet is licensed under the terms of MIT License

Keywords

Zikojs

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts