Gathering detailed insights and metrics for try-zee
Gathering detailed insights and metrics for try-zee
Gathering detailed insights and metrics for try-zee
Gathering detailed insights and metrics for try-zee
npm install try-zee
Typescript
Module System
Min. Node Version
Node Version
NPM Version
73.7
Supply Chain
98.5
Quality
87.3
Maintenance
100
Vulnerability
88
License
JavaScript (100%)
Total Downloads
619
Last Day
1
Last Week
27
Last Month
619
Last Year
619
NOASSERTION License
15 Commits
1 Watchers
1 Branches
1 Contributors
Updated on May 16, 2025
Minified
Minified + Gzipped
Latest Version
0.105.125
Package Id
try-zee@0.105.125
Unpacked Size
72.34 kB
Size
22.04 kB
File Count
16
NPM Version
10.9.0
Node Version
22.12.0
Published on
May 16, 2025
Cumulative downloads
Total Downloads
🏷 |𝖹𝖾𝖾
| 𝗂𝗌 𝖺 𝗅𝗂𝗀𝗁𝗍𝗐𝖾𝗂𝗀𝗁𝗍, 𝗁𝗂𝗀𝗁-𝗉𝖾𝗋𝖿𝗈𝗋𝗆𝖺𝗇𝖼𝖾 𝖩𝖺𝗏𝖺𝖲𝖼𝗋𝗂𝗉𝗍 𝗅𝗂𝖻𝗋𝖺𝗋𝗒 𝖿𝗈𝗋 𝖻𝗎𝗂𝗅𝖽𝗂𝗇𝗀 𝗆𝗈𝖽𝖾𝗋𝗇 𝗐𝖾𝖻 𝖺𝗉𝗉𝗅𝗂𝖼𝖺𝗍𝗂𝗈𝗇𝗌. 𝖨𝗍 𝖼𝗈𝗆𝖻𝗂𝗇𝖾𝗌 |𝗌𝖾𝗋𝗏𝖾𝗋-𝗌𝗂𝖽𝖾 𝗋𝖾𝗇𝖽𝖾𝗋𝗂𝗇𝗀
| 𝖼𝖺𝗉𝖺𝖻𝗂𝗅𝗂𝗍𝗂𝖾𝗌 𝗐𝗂𝗍𝗁 𝖺 |𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍-𝖻𝖺𝗌𝖾𝖽
|*𝖺𝗋𝖼𝗁𝗂𝗍𝖾𝖼𝗍𝗎𝗋𝖾, 𝗈𝖿𝖿𝖾𝗋𝗂𝗇𝗀 𝖽𝖾𝗏𝖾𝗅𝗈𝗉𝖾𝗋𝗌 𝖺 𝗌𝗍𝗋𝖾𝖺𝗆𝗅𝗂𝗇𝖾𝖽 𝗐𝖺𝗒 𝗍𝗈 𝖼𝗋𝖾𝖺𝗍𝖾 𝖿𝖺𝗌𝗍, 𝖲𝖤𝖮-𝖿𝗋𝗂𝖾𝗇𝖽𝗅𝗒 𝗐𝖾𝖻𝗌𝗂𝗍𝖾𝗌.
🏷 |زی
| یک کتابخانه سبک و پرسرعت جاوااسکریپت برای ساخت برنامههای وب مدرن است. این کتابخانه با ترکیب قابلیتهای |رندر سمت سرور
| و معماری مبتنی بر |کامپوننت
|، راهی ساده و کارآمد برای ایجاد وبسایتهای سریع و بهینهشده برای موتورهای جستجو ارائه میدهد.
1npm install try-zee
Create a zee.config.js
file / فایل zee.config.js
را ایجاد کنید:
1import RootCollection from "try-zee/root"; 2 3export default new RootCollection(() => ({ 4 maxRenderLoop: 20, 5 essentialComponent: ["header", "footer"], 6 configCache: { 7 images: { 8 extensions: ["png", "jpg", "webp"], 9 policy: "public, max-age=31536000, immutable" 10 } 11 }, 12 component: { 13 home: "./src/views/home.view.js", 14 header: "./src/views/header.view.js" 15 } 16}));
try-zee
| and type the following command to automatically generate the zee.config.js file:1npx zee config
1// header.view.js-------------------------Component----------------------------- 2export default ` 3 <meta charset="UTF-8"> 4 <meta name="robots" content="max-snippet:-1, max-image-preview:large,max-video-preview:-1, index, follow" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta http-equiv="X-UA-Compatible" content="ie=edge, chrome=1"> 7`; 8 9// home.view.js---------------------------Component----------------------------- 10export default (data) => ` 11 <!DOCTYPE html> 12 <html> 13 <head><title>${data.title}</title></head> 14 <body> 15 <@header/> 16 <main>Welcome to Zee! / به زی خوش آمدید!</main> 17 </body> 18 </html> 19`; 20 21// server.js---------------------------------App-------------------------------- 22import zee from 'try-zee/view'; 23import http from 'http'; 24 25await zee.Roots(); 26 27http.createServer(async (req, res) => { 28 await zee.Render('home', 29 html => res.end(html), 30 { title: 'My App / برنامه من' } 31 ); 32}).listen(3000);
1<@componentName/>--------------------<!-- Component / کامپوننت --> 2<@repeater/5>------------------------<!-- Repeat 5 or .. times / تکرار 5 بار --> 3<js@ 4 let isTrue = true; 5 let title = data.title; 6 if(isTrue) return "title: " + title; 7 ... 8/js>---------------------------------<!-- JS expression / عبارت جاوااسکریپت -->
Framework / فریمورک | Avg. Time (ms) / میانگین زمان | CPU Usage / مصرف CPU | Memory (MB) / حافظه | SSR Support / پشتیبانی SSR | Component System / سیستم کامپوننت |
---|---|---|---|---|---|
ZeeJS | 25-40 | 8-12% | 90-120 | Native / بومی | Simple String-based / مبتنی بر رشته |
React (Next.js 13) | 45-60 | 12-18% | 120-150 | Automatic / خودکار | JSX Virtual DOM |
Vue (Nuxt 3) | 40-55 | 10-16% | 110-140 | Hybrid / ترکیبی | SFC Templates |
Svelte (SvelteKit) | 20-35 | 8-12% | 80-100 | Optimized / بهینهشده | Compiled Components |
Astro | 15-30 | 6-10% | 70-90 | Islands / جزیرهای | Framework-agnostic |
EJS | 10-20 | 5-8% | 50-70 | Manual / دستی | Template Literals |
Pug | 12-25 | 5-9% | 55-75 | Manual / دستی | Indentation-based |
Qwik | 18-30 | 7-11% | 75-95 | Resumable / قابل ادامه | Fine-grained Reactivity |
SolidJS | 25-40 | 9-13% | 90-110 | Partial / جزئی | Reactive Primitives |
1// header.view.js 2const header = `<header>...</header>`; 3export default header; 4 5// footer.view.js 6const footer = `<footer>...</footer>`; 7export default footer; 8 9// style.view.js 10const css = `<style>:root {...}</style>`; 11export default css; 12 13// home.view.js 14export default () => ` 15<@header/> 16<body> 17<@main/> 18<@footer/> 19</body> 20<@css/> 21`;
No Virtual DOM overhead / عدم وجود سربار دام مجازی
Smart multi-layer caching / سیستم کش چندلایه هوشمند
Gradual rendering / رندر تدریجی
Zee Performance / عملکرد زی:
No Virtual DOM / عدم وجود Virtual DOM:
Zero Hydration / عدم نیاز به Hydration:
Smart Caching / کش هوشمند:
Lightweight / سبکوزن:
5KB avg. per component cache / میانگین 5 کیلوبایت حافظه به ازای هر کامپوننت
100 components ≈ 500KB cache / ۱۰۰ کامپوننت ≈ ۵۰۰KB کش
Non-blocking I/O operations / عملیات I/O غیرمسدودکننده
Gradual streaming support / پشتیبانی از استریمینگ تدریجی
Pre-compiled templates / قالبهای از پیش کامپایل شده
Isolated evaluation context / محیط اجرای ایزوله
Zee
demonstrates superior scalability for complex applications with many nested components and high traffic
loads, maintaining performance advantages even in extreme scenarios.
Speed: 3-6x faster than mainstream frameworks
Memory usage: 10-20x more efficient than competitors
Runnability: even on cheap 1GB servers
زی
مقیاسپذیری برتر خود را برای برنامههای پیچیده با کامپوننتهای تو در تو و ترافیک بالا
نشان میدهد و مزایای عملکردی خود را حتی در سناریوهای شدید نیز حفظ میکند.
سرعت: ۳-۶ برابر سریعتر از فریمورکهای اصلی
مصرف حافظه: ۱۰-۲۰ برابر بهینهتر از رقبا
قابلیت اجرا: حتی روی سرورهای ارزانقیمت ۱ گیگابایتی
Contributions are welcome! Please refer to the contribution guidelines. / مشارکتها مورد استقبال هستند! لطفاً به راهنمای مشارکت مراجعه کنید.
Apache License 2.0 © Amir Hussein Muhammadi Fard
No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
-30.8%
27
Compared to previous week
Last Month
0%
619
Compared to previous month
Last Year
0%
619
Compared to previous year