repo
stringlengths
8
123
branch
stringclasses
178 values
readme
stringlengths
1
441k
description
stringlengths
1
350
topics
stringlengths
10
237
createdAt
stringlengths
20
20
lastCommitDate
stringlengths
20
20
lastReleaseDate
stringlengths
20
20
contributors
int64
0
10k
pulls
int64
0
3.84k
commits
int64
1
58.7k
issues
int64
0
826
forks
int64
0
13.1k
stars
int64
2
49.2k
diskUsage
float64
license
stringclasses
24 values
language
stringclasses
80 values
Felipe-Perez-Ferraro/math-magicians
main
<a name="readme-top"></a> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - 💻 [Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Deployment](#deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 Math Magicians<a name="about-project"></a> **Math Magicians** is a project made in React.js. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JS</a></li> <li><a href="https://react.dev/">REACT</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Informative** - **Beautyfull** - **Easy to read** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> - Link[https://math-magicians-3jh3.onrender.com/] <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> ### Setup Clone this repository to your desired folder: cd my-folder git clone https://github.com/Feliperto/math-magicians.git ### Prerequisites In order to run this project you need: A computer or mobile phone ### Install Install this project with: Following the SETUP steps ### Usage To run the project, execute the following command: npm run test . ### Deployment You can deploy this project using: Using the link of the code to clone it <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Author1** - GitHub: [@githubhandle](https://github.com/Felipe-Perez-Ferraro) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/felipe-perez-ferraro-6b9358218/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] **Adding more sections** - [ ] **Adding more stylings** - [ ] **Implement Javascript** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project please share with your friends and family! <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse for teach me and support me to do this <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
An online calculator made it in React. For the navigation Links i used react router dom and for the famous quotes i fetched an online Api
css,fetch-api,javascript,react-router,reactjs
2023-08-07T21:17:29Z
2023-08-16T21:43:57Z
null
1
7
63
0
0
2
null
NOASSERTION
JavaScript
Kei-K23/password-generator
main
# Password Generator A web application to generate strong passwords and manage saved passwords. ## Table of Contents - [Description](#description) - [Features](#features) - [Usage](#usage) - [Installation](#installation) - [Contributing](#contributing) - [Contact](#contact) ## Description This web application allows users to generate strong passwords with customizable options for length and character types. Users can include lowercase characters, uppercase characters, numbers, and symbols in their generated passwords. Additionally, users can save passwords with custom names for future reference. ## Features - Generate strong passwords with various options. - Save passwords with custom names for easy management. - View and manage saved passwords in a dedicated section. - Information about the importance of having strong passwords. ## Usage To use the password generator, simply visit the live [Password Generator Web App](https://your-password-generator-app-url.com) and follow these steps: 1. Select the desired password length from the drop-down menu. 2. Choose whether to include lowercase characters, uppercase characters, numbers, and symbols by checking the corresponding checkboxes. 3. Click on the "Generate Password" button to generate your strong password. 4. Optionally, you can save your password by checking the "Save password" checkbox and providing a custom name. 5. You can view and manage your saved passwords in the dedicated section below the password generator. ## Installation There is no installation required for this web application, as it is accessible through a live web URL. ## Contributing Contributions are welcome! If you have any suggestions or improvements, please feel free to create a pull request or open an issue. ## Contact For any inquiries or questions, you can reach out to the project creator: - Name: Kei-K - GitHub: [Kei-K23](https://github.com/Kei-K23) - Email: [keiksl2301@gmail.com](mailto:keiksl2301@gmail.com)
A web application to generate strong passwords and manage saved passwords using JavaScript and Tailwind
javascript,tailwind
2023-07-22T14:55:09Z
2023-07-22T14:57:11Z
null
1
0
1
0
0
2
null
null
HTML
JavierAybar/Leaderboard
develop
# Leaderboard <a name="readme-top"></a> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠️ Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 🎯 Leaderboard <a name="about-project"></a> Leaderboard is an engaging web application designed to showcase and rank the top performers in a specific game. The application allows users to submit their scores, which are stored and managed through a powerful API, and view the current rankings in real-time. ## 🛠️ Built With <a name="built-with"> ### Tech Stack <a name="tech-stack"></a> - HTML - CSS - JAVASCRIPT </a> <!-- Features --> ## Key Features <a name="key-features"></a> 🏆 Score Submission: Users can submit their scores for the game, and the application communicates with the API to securely store and display the scores in real-time. 📈 Dynamic Ranking: The leaderboard dynamically updates as new scores are submitted through the API, ensuring the rankings always reflect the latest standings. 🔄 Refresh Functionality: Users can easily refresh the leaderboard with the click of a button to see the most up-to-date scores and rankings fetched from the API. ## 🚀 Live Demo <a name="live-demo"></a> - You can visit the live demo [here](https://javieraybar.github.io/Leaderboard/dist/) <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need the following tools: - A modern web browser (Chrome, Firefox, Safari, Edge). - An IDE (e.g.: Vscode, Sublime Text,...). - A terminal (Git Bash). ### Setup Clone this repository to your desired folder by running the following commands in your terminal: ```sh cd your-prefered-folder-name git clone git@github.com:JavierAybar/Leaderboard.git ``` ### Install - Install this project with: ```sh cd Leaderboard npm init -y npm install --save-dev hint@7.x npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x ``` ### Usage To run the project, execute the following command: ```sh Open the project in live server (VS Code) or Open the index.html file on your browser. ``` ### Run Linters tests To run tests, run the following command: ```sh npx hint . --fix npx stylelint "**/*.{css,scss}" --fix npx eslint . --fix ``` <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Javier Aybar** - GitHub: [@JavierAybar](https://github.com/JavierAybar) - LinkedIn: [@JavierAybar](https://www.linkedin.com/in/javier-aybar-932376274/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - **Improve the UI/UX with more visually appealing styles and animations.** - <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> All contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐ Show your support <a name="support"></a> If you like this project, please support me with a like or a star. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> Thanks to my learning partners and the staff at Microverse. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed.
Leaderboard is an engaging web application designed to showcase and rank the top performers in a specific game. The application allows users to submit their scores, which are stored and managed through a powerful API, and view the current rankings in real-time.
api,css,html,javascript
2023-07-24T20:12:32Z
2023-07-27T13:49:33Z
null
1
4
13
1
0
2
null
MIT
JavaScript
JoeanAmier/XHS-Downloader
master
<div align="center"> <img src="static/XHS-Downloader.png" alt="" height="256" width="256"><br> <h1>XHS-Downloader</h1> <p>简体中文 | <a href="README_EN.md">English</a></p> <img alt="GitHub" src="https://img.shields.io/github/license/JoeanAmier/XHS-Downloader?style=for-the-badge&color=ff7a45"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/JoeanAmier/XHS-Downloader?style=for-the-badge&color=9254de"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/JoeanAmier/XHS-Downloader?style=for-the-badge&color=ff7875"> <img alt="Static Badge" src="https://img.shields.io/badge/UserScript-ffec3d?style=for-the-badge&logo=tampermonkey&logoColor=%2300485B"> <br> <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/JoeanAmier/XHS-Downloader?style=for-the-badge&color=73d13d"> <img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/JoeanAmier/XHS-Downloader?style=for-the-badge&color=40a9ff"> <img alt="GitHub all releases" src="https://img.shields.io/github/downloads/JoeanAmier/XHS-Downloader/total?style=for-the-badge&color=f759ab"> </div> <br> <p>🔥 <b>小红书链接提取/作品采集工具</b>:提取账号发布、收藏、点赞作品链接;提取搜索结果作品链接、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!</p> <h1>📑 项目功能</h1> <ul><b>程序功能</b> <li>✅ 采集小红书作品信息</li> <li>✅ 提取小红书作品下载地址</li> <li>✅ 下载小红书无水印作品文件</li> <li>✅ 自动跳过已下载的作品文件</li> <li>✅ 作品文件完整性处理机制</li> <li>✅ 自定义图文作品文件下载格式</li> <li>✅ 持久化储存作品信息至文件</li> <li>✅ 作品文件储存至单独文件夹</li> <li>✅ 后台监听剪贴板下载作品</li> <li>✅ 记录已下载作品 ID</li> <li>✅ 支持命令行下载作品文件</li> <li>✅ 从浏览器读取 Cookie</li> <li>✅ 自定义文件名称格式</li> <li>☑️ 支持 API 调用功能</li> </ul> <ul><b>脚本功能</b> <li>✅ 下载小红书无水印作品文件</li> <li>✅ 提取发现页面作品链接</li> <li>✅ 提取账号发布作品链接</li> <li>✅ 提取账号收藏作品链接</li> <li>✅ 提取账号点赞作品链接</li> <li>✅ 提取搜索结果作品链接</li> <li>✅ 提取搜索结果用户链接</li> </ul> <h1>📸 程序截图</h1> <p><b>🎥 点击图片观看演示视频</b></p> <a href="https://www.bilibili.com/video/BV1PJ4m1Y7Jt/"><img src="static/screenshot/程序运行截图CN1.png" alt=""></a> <hr> <a href="https://www.bilibili.com/video/BV1PJ4m1Y7Jt/"><img src="static/screenshot/程序运行截图CN2.png" alt=""></a> <hr> <a href="https://www.bilibili.com/video/BV1PJ4m1Y7Jt/"><img src="static/screenshot/程序运行截图CN3.png" alt=""></a> <h1>🔗 支持链接</h1> <ul> <li><code>https://www.xiaohongshu.com/explore/作品ID</code></li> <li><code>https://www.xiaohongshu.com/discovery/item/作品ID</code></li> <li><code>https://xhslink.com/分享码</code></li> <br/> <p><b>支持单次输入多个作品链接,链接之间使用空格分隔。</b></p> </ul> <h1>🪟 关于终端</h1> <p>⭐ 推荐使用 <a href="https://learn.microsoft.com/zh-cn/windows/terminal/install">Windows 终端</a> (Windows 11 默认终端)运行程序以便获得最佳显示效果!</p> <h1>🥣 使用方法</h1> <p>如果仅需下载无水印作品文件,建议选择 <b>程序运行</b>;如果有其他需求,建议选择 <b>源码运行</b>!</p> <p>建议自行设置 <code>cookie</code> 参数,若不设置该参数,程序功能可能无法正常使用!</p> <h2>🖱 程序运行</h2> <p>Windows 10 及以上用户可前往 <a href="https://github.com/JoeanAmier/XHS-Downloader/releases/latest">Releases</a> 下载程序压缩包,解压后打开程序文件夹,双击运行 <code>main.exe</code> 即可使用。</p> <p>若通过此方式使用程序,文件默认下载路径为:<code>.\_internal\Download</code>;配置文件路径为:<code>.\_internal\settings.json</code></p> <h2>⌨️ 源码运行</h2> <ol> <li>安装版本号不低于 <code>3.12</code> 的 Python 解释器</li> <li>运行 <code>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt</code> 命令安装程序所需模块</li> <li>下载本项目最新的源码或 <a href="https://github.com/JoeanAmier/XHS-Downloader/releases/latest">Releases</a> 发布的源码至本地</li> <li>运行 <code>main.py</code> 即可使用</li> </ol> <h1>🛠 命令行模式</h1> <p>项目支持命令行运行模式,若想要下载图文作品的部分图片,可以使用此模式传入需要下载的图片序号!</p> <p>可以使用命令行从浏览器读取 Cookie 并写入配置文件!注意需要关闭对应浏览器才能读取数据!</p> <p><code>bool</code> 类型参数支持使用 <code>true</code>、<code>false</code>、<code>1</code>、<code>0</code>、<code>yes</code>、<code>no</code>、<code>on</code> 或 <code>off</code>(不区分大小写)来设置。</p> <p>命令示例:<code>python .\main.py --browser_cookie Chrome --update_settings</code></p> <hr> <img src="static/screenshot/命令行模式截图1.png" alt=""> <hr> <img src="static/screenshot/命令行模式截图2.png" alt=""> <h1>🕹 用户脚本</h1> <img src="static/screenshot/用户脚本截图1.png" alt=""> <hr> <img src="static/screenshot/用户脚本截图2.png" alt=""> <p>如果您的浏览器安装了 <a href="https://www.tampermonkey.net/">Tampermonkey</a> 浏览器扩展程序,可以添加 <a href="https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js">用户脚本</a>,无需下载安装即可体验项目功能!</p> <p>提示:使用 XHS-Downloader 用户脚本批量提取作品链接,搭配 XHS-Downloader 程序可以实现批量下载无水印作品文件!</p> <h1>💻 二次开发</h1> <p>如果有其他需求,可以根据 <code>main.py</code> 的注释提示进行代码调用或修改!</p> <pre> async def example(): """通过代码设置参数,适合二次开发""" # 示例链接 error_link = "https://github.com/JoeanAmier/XHS_Downloader" demo_link = "https://www.xiaohongshu.com/explore/xxxxxxxxxx" multiple_links = f"{demo_link} {demo_link} {demo_link}" # 实例对象 work_path = "D:\\" # 作品数据/文件保存根路径,默认值:项目根路径 folder_name = "Download" # 作品文件储存文件夹名称(自动创建),默认值:Download user_agent = "" # 请求头 User-Agent,可选参数 cookie = "" # 小红书网页版 Cookie,无需登录,必需参数 proxy = None # 网络代理 timeout = 5 # 请求数据超时限制,单位:秒,默认值:10 chunk = 1024 * 1024 * 10 # 下载文件时,每次从服务器获取的数据块大小,单位:字节 max_retry = 2 # 请求数据失败时,重试的最大次数,单位:秒,默认值:5 record_data = False # 是否保存作品数据至文件 image_format = "WEBP" # 图文作品文件下载格式,支持:PNG、WEBP folder_mode = False # 是否将每个作品的文件储存至单独的文件夹 async with XHS() as xhs: pass # 使用默认参数 async with XHS(work_path=work_path, folder_name=folder_name, user_agent=user_agent, cookie=cookie, proxy=proxy, timeout=timeout, chunk=chunk, max_retry=max_retry, record_data=record_data, image_format=image_format, folder_mode=folder_mode, ) as xhs: # 使用自定义参数 download = True # 是否下载作品文件,默认值:False # 返回作品详细信息,包括下载地址 # 获取数据失败时返回空字典 print(await xhs.extract(error_link, download, )) print(await xhs.extract(demo_link, download, )) # 支持传入多个作品链接 print(await xhs.extract(multiple_links, download, )) </pre> <h1>⚙️ 配置文件</h1> <p>项目根目录下的 <code>settings.json</code> 文件,首次运行自动生成,可以自定义部分运行参数。</p> <p>如果设置了无效的参数值,程序将会使用参数默认值!</p> <table> <thead> <tr> <th align="center">参数</th> <th align="center">类型</th> <th align="center">含义</th> <th align="center">默认值</th> </tr> </thead> <tbody> <tr> <td align="center">work_path</td> <td align="center">str</td> <td align="center">作品数据 / 文件保存根路径</td> <td align="center">项目根路径</td> </tr> <tr> <td align="center">folder_name</td> <td align="center">str</td> <td align="center">作品文件储存文件夹名称</td> <td align="center">Download</td> </tr> <tr> <td align="center">name_format</td> <td align="center">str</td> <td align="center">作品文件名称格式,字段之间使用空格分隔,支持字段:<code>收藏数量</code>、<code>评论数量</code>、<code>分享数量</code>、<code>点赞数量</code>、<code>作品标签</code>、<code>作品ID</code>、<code>作品标题</code>、<code>作品描述</code>、<code>作品类型</code>、<code>发布时间</code>、<code>最后更新时间</code>、<code>作者昵称</code>、<code>作者ID</code></td> <td align="center"><code>发布时间 作者昵称 作品标题</code></td> </tr> <tr> <td align="center">user_agent</td> <td align="center">str</td> <td align="center">请求头 User-Agent</td> <td align="center">默认 UA</td> </tr> <tr> <td align="center">cookie</td> <td align="center">str</td> <td align="center">小红书网页版 Cookie,<b>无需登录</b></td> <td align="center">无</td> </tr> <tr> <td align="center">proxy</td> <td align="center">str</td> <td align="center">设置程序代理</td> <td align="center">null</td> </tr> <tr> <td align="center">timeout</td> <td align="center">int</td> <td align="center">请求数据超时限制,单位:秒</td> <td align="center">10</td> </tr> <tr> <td align="center">chunk</td> <td align="center">int</td> <td align="center">下载文件时,每次从服务器获取的数据块大小,单位:字节</td> <td align="center">1048576(1 MB)</td> </tr> <tr> <td align="center">max_retry</td> <td align="center">int</td> <td align="center">请求数据失败时,重试的最大次数,单位:秒</td> <td align="center">5</td> </tr> <tr> <td align="center">record_data</td> <td align="center">bool</td> <td align="center">是否保存作品数据至文件,保存格式:<code>SQLite</code></td> <td align="center">false</td> </tr> <tr> <td align="center">image_format</td> <td align="center">str</td> <td align="center">图文作品文件下载格式,支持:<code>PNG</code>、<code>WEBP</code></td> <td align="center">PNG</td> </tr> <tr> <td align="center">image_download</td> <td align="center">bool</td> <td align="center">图文作品文件下载开关</td> <td align="center">true</td> </tr> <tr> <td align="center">video_download</td> <td align="center">bool</td> <td align="center">视频作品文件下载开关</td> <td align="center">true</td> </tr> <tr> <td align="center">folder_mode</td> <td align="center">bool</td> <td align="center">是否将每个作品的文件储存至单独的文件夹;文件夹名称与文件名称保持一致</td> <td align="center">false</td> </tr> <tr> <td align="center">language</td> <td align="center">str</td> <td align="center">设置程序语言,目前支持:<code>zh_CN</code>、<code>en_GB</code></td> <td align="center">zh_CN</td> </tr> </tbody> </table> <h1>🌐 Cookie</h1> <ol> <li>打开浏览器(可选无痕模式启动),访问 <code>https://www.xiaohongshu.com/explore</code></li> <li>按下 <code>F12</code> 打开开发人员工具</li> <li>选择 <code>网络</code> 选项卡</li> <li>勾选 <code>保留日志</code></li> <li>在 <code>过滤</code> 输入框输入 <code>cookie-name:web_session</code></li> <li>选择 <code>Fetch/XHR</code> 筛选器</li> <li>点击小红书页面任意作品</li> <li>在 <code>网络</code> 选项卡选择任意数据包(如果无数据包,重复步骤7)</li> <li>全选复制 Cookie 写入程序或配置文件</li> </ol> <br> <img src="static/screenshot/获取Cookie示意图.png" alt=""> <h1>🗳 下载记录</h1> <p>XHS-Downloader 会将下载过的作品 ID 储存至数据库,当重复下载相同的作品时,XHS-Downloader 会自动跳过该作品的文件下载(即使作品文件不存在),如果想要重新下载作品文件,请先删除数据库中对应的作品 ID,再使用 XHS-Downloader 下载作品文件!</p> <h1>♥️ 支持项目</h1> <p>如果 <b>XHS-Downloader</b> 对您有帮助,请考虑为它点个 <b>Star</b> ⭐,感谢您的支持!</p> <table> <thead> <tr> <th align="center">微信(WeChat)</th> <th align="center">支付宝(Alipay)</th> </tr> </thead> <tbody><tr> <td align="center"><img src="./static/微信赞助二维码.png" alt="微信赞助二维码" height="200" width="200"></td> <td align="center"><img src="./static/支付宝赞助二维码.png" alt="支付宝赞助二维码" height="200" width="200"></td> </tr> </tbody> </table> <p>如果您愿意,可以考虑提供资助为 <b>XHS-Downloader</b> 提供额外的支持!</p> <h1>✉️ 联系作者</h1> <ul> <li>微信(其他事务): Downloader_Tools</li> <li>微信公众号(问题解答): Downloader Tools</li> <li><b>Discord 社区</b>: <a href="https://discord.com/invite/ZYtmgKud9Y">点击加入社区</a></li> <li>QQ 群聊(使用交流): <a href="https://github.com/JoeanAmier/XHS-Downloader/blob/master/static/QQ%E7%BE%A4%E8%81%8A%E4%BA%8C%E7%BB%B4%E7%A0%81.png">扫码加入群聊</a></li> </ul> <p><b>说明:</b>QQ 群聊仅限于讨论项目使用问题,严禁发布任何广告,严禁讨论任何账号交易、账号流量、流量变现、灰色产业等相关的内容!</p> <p>✨ <b>作者的其他开源项目:</b></p> <ul> <li><b>TikTokDownloader(抖音 / TikTok)</b>:<a href="https://github.com/JoeanAmier/TikTokDownloader">https://github.com/JoeanAmier/TikTokDownloader</a></li> <li><b>KS-Downloader(快手)</b>:<a href="https://github.com/JoeanAmier/KS-Downloader">https://github.com/JoeanAmier/KS-Downloader</a></li> </ul> <h1>⚠️ 免责声明</h1> <ul> <li>使用者对本项目的使用由使用者自行决定,并自行承担风险。作者对使用者使用本项目所产生的任何损失、责任、或风险概不负责。</li> <li>本项目的作者提供的代码和功能是基于现有知识和技术的开发成果。作者尽力确保代码的正确性和安全性,但不保证代码完全没有错误或缺陷。</li> <li>使用者在使用本项目时必须严格遵守 <a href="https://github.com/JoeanAmier/XHS-Downloader/blob/master/LICENSE">GNU General Public License v3.0</a> 的要求,并在适当的地方注明使用了 <a href="https://github.com/JoeanAmier/XHS-Downloader/blob/master/LICENSE">GNU General Public License v3.0</a> 的代码。 </li> <li>使用者在任何情况下均不得将本项目的作者、贡献者或其他相关方与使用者的使用行为联系起来,或要求其对使用者使用本项目所产生的任何损失或损害负责。</li> <li>使用者在使用本项目的代码和功能时,必须自行研究相关法律法规,并确保其使用行为合法合规。任何因违反法律法规而导致的法律责任和风险,均由使用者自行承担。</li> <li>本项目的作者不会提供 XHS-Downloader 项目的付费版本,也不会提供与 XHS-Downloader 项目相关的任何商业服务。</li> <li>基于本项目进行的任何二次开发、修改或编译的程序与原创作者无关,原创作者不承担与二次开发行为或其结果相关的任何责任,使用者应自行对因二次开发可能带来的各种情况负全部责任。</li> </ul> <b>在使用本项目的代码和功能之前,请您认真考虑并接受以上免责声明。如果您对上述声明有任何疑问或不同意,请不要使用本项目的代码和功能。如果您使用了本项目的代码和功能,则视为您已完全理解并接受上述免责声明,并自愿承担使用本项目的一切风险和后果。</b> # 💡 代码参考 * https://docs.aiohttp.org/en/stable/ * https://textual.textualize.io/ * https://aiosqlite.omnilib.dev/en/stable/ * https://click.palletsprojects.com/en/8.1.x/ * https://github.com/borisbabic/browser_cookie3
小红书链接提取/作品采集工具:提取账号发布、收藏、点赞作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!
python,xhs,json,exe,linux,macos,windows,tui,aiohttp,textual
2023-08-16T11:03:36Z
2024-04-27T15:00:51Z
2024-03-30T05:50:13Z
4
10
143
64
581
4,023
null
GPL-3.0
Python
dnakov/little-rat
main
# <img src="assets/little-rat-128x128.png" width="24" /> little-rat 🐀 Small chrome extension to monitor (and optionally block) other extensions' network calls <a href="https://chrome.google.com/webstore/detail/little-rat/oiopkpalpilladnibecobcecijffaflf"> <img src="assets/chrome-store.png" alt="Get Little Rat for Chrome" width="124"/> </a> ### Chrome Web Store (Lite version) The published extension lacks the ability to track the number of requests and notify you, but you can still use it for blocking requests. The reason is that the extension uses the `declarativeNetRequest.onRuleMatchedDebug` API which is not available for publishing in the Chrome Web Store. Get it [here](https://chrome.google.com/webstore/detail/little-rat/oiopkpalpilladnibecobcecijffaflf) <img src="assets/screen-gh-store1.png" alt="Screenshot for Chrome Store" width="640"/> ### Manual Installation (Full Version) - Download the [ZIP](https://github.com/dnakov/little-rat/archive/refs/heads/main.zip) of this repo. - Unzip - Go to chromium/chrome *Extensions*. - Click to check *Developer mode*. - Click *Load unpacked extension...*. - In the file selector dialog: - Select the directory `little-rat-main` which was created above. - Click *Open*. ### Screenshots <img src="assets/screen-gh-local2.png" alt="Screenshot2 for Manual" width="1280"/> ### Open-Source Libraries <3 - Icons from [feathericons.com](https://feathericons.com/) ### Author https://twitter.com/dnak0v
🐀 Small chrome extension to monitor (and optionally block) other extensions' network calls
chrome-extension,javascript,security-audit,browser,chromium
2023-08-14T11:24:08Z
2023-11-06T16:25:36Z
null
4
6
31
8
61
2,000
null
MIT
JavaScript
ishtms/learn-nodejs-hard-way
master
null
Learn and master NodeJS and backend development by creating a backend framework with 0 dependencies.
api,backend,book,javascript,learning,learning-by-doing,node,nodejs,programming,backend-development
2023-08-12T15:40:42Z
2024-01-28T06:59:59Z
2023-09-17T01:46:29Z
10
28
248
1
67
1,205
null
NOASSERTION
JavaScript
prabathLK/PRABATH-MD
main
<br> ## PRABATH-MD 👨‍💻 🇱🇰 - A Javascript WhatsApp User Bot <br> 🔮 `The main goal of creating this bot is to fully leverage WhatsApp and simplify its functionality.` <br> <p align="center"> <a href="https://telegra.ph/file/1743544c222ffd613c219.jpg"> <img alt="prabath-md" height="300" src="https://telegra.ph/file/1743544c222ffd613c219.jpg"> </a> </p> <br> <br> 💡 This bot is created to download and find various things quickly, logo, photo edit and many other features. This bot is created using **[Baileys](https://github.com/WhiskeySockets/Baileys)** <br> <br> ![repo views](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FprabathLK%2FPRABATH-MD&count_bg=%2379C83D&title_bg=%23555555&icon=gitpod.svg&icon_color=%23E7E7E7&title=Views&edge_flat=false) ![forks](https://img.shields.io/github/forks/prabathLK/PRABATH-MD?label=Forks&style=social) ![stars](https://img.shields.io/github/stars/prabathLK/PRABATH-MD?style=social) <br> <br> <a href="https://whatsapp.com/channel/0029Va5dJKyJpe8oqDXUjI3x"><img src="https://img.shields.io/badge/%F0%9F%8E%89%20Join%20Our%20WhatsApp%20Channel-black" alt="🎉 Join Our WhatsApp Channel" width="300"></a> <br> <a href="https://prabath--md-official.vercel.app/"><img src="https://img.shields.io/badge/Our%20Official%20Website-blue" alt="🌐 Our Official Website" width="300"></a> <br> <br> **`DEPLOYMENT METHODS`** --- <br> <br> <a href="https://prabath--md-official.vercel.app/"><img src="https://img.shields.io/badge/LOGIN%20WITH-PAIR%20CODE-blue" alt="LOGIN WITH PAIR CODE" width="250"></a> <a href="https://prabath--md-official.vercel.app/"><img src="https://img.shields.io/badge/LOGIN%20WITH-QR%20CODE-black" alt="LOGIN WITH QR CODE" width="250"></a> <br> <br> [![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/apps/deploy?type=git&repository=github.com/prabathLK/PRABATH-MD&branch=main&env[BOT_NUMBER]&env[SESSION_ID]&env[PASSWORD]&env[GITHUB_USERNAME]&env[GITHUB_AUTH_TOKEN]&name=prabath-md) <br> [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/x93oR6) <br> [![Deploy on heroku](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?button-url=https://github.com/PrabathLK/PRABATH-MD&template=https://github.com/PrabathLK/PRABATH-MD.git) <br> [![FORK PRABATH-MD](https://img.shields.io/badge/FORK%20-PRABATH%20MD-white)](https://github.com/prabathLK/PRABATH-MD/fork) --- <a href="https://www.buymeacoffee.com/PrabathKumara" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a> # PRABATH-MD Bot Commands This is a list of commands supported by the Prabath-Md bot. The commands are organized in a table with the following structure: | CMD | DESCRIPTION | AVAILABLE OR NOT | ALIAS | |:---:|:-----------:|:-----------------:|:-------------------------:| | gitclone | download github reposity | ✔️ | gitdb,gd | | tiktok | download tiktok videos,audios and images | ✔️ | ttdl,tt | | fb | download facebook videos,audios | ✔️ | facebook,fbdl | | ig | download instagram images and videos | ✔️ | igdl | | apk | download applicatios | ✔️ | app | | fmmod | download found mods | ✔️ | mod,wamod | | gdrive | download google drive files | ✔️ |googledrive | | mediafire | download mediafire files | ✔️ | mfire,mf | | ss | take screen shot given website url | ✔️ | screenshot | | video | download youtube videos | ✔️ | වීඩියෝ,mp4 | | song | download youtube songs | ✔️ | audio,mp3,music | | spotify | download spotify audio files | ✔️ | sp,spfy,spoti | | img | search images from google and download | ✔️ | image | | download | download any file(fb,tiktok,gdrive,mfire,youtube,images,githubrepo,twitter,instagram & more files) | ✔️ | dl | | threads | download threads | ✔️ | - | | twitter | download twitter videos | ✔️ | - | | pinterest | download images from pinterest | ✔️ | - | | movie | download movies | ✔️ | - | | sisub | download sisubs | ✔️ | - | | fb2 | download fb videos | ✔️ | fbdl2 | | capcut | download capcut templates | ✔️ | - | | xvdl | download x-videos | ✔️ | - | | imagine | genarate ai images | ✔️ | - | | gpt | chat with CHATGPT ai | ✔️ | ai,chatgpt | | bard | chat with GOOGLE-BARD ai | ✔️ | gai | | device | check device(android,ios or web) | ✔️ | - | | tempmail | create tempmail | ✔️ | - | | newgroup | create new group | ✔️ | - | | delgroup | delete group | ✔️ | delgroup | | save | save whatsapp status | ✔️ | - | | block | block user | ✔️ | - | | unblock | unblock user | ✔️ | - | | help | You can get an understanding of the bot's command. | ✔️ | - | | id | check message id | ✔️ | - | | settings | change bot settings | ✔️ | setting | | apply | change bot settings(database) | ✔️ | setup | | defaultimg | reset bot logo | ✔️ | - | | defaultsudo | reset sudo | ✔️ | dsn | | news | get hiru,esana,derana news | ✔️ | - | | logo | create beautiful logo | ✔️ | - | | script | get bot information and github | ✔️ | sc | | alive | check bot offline or online | ✔️ | - | | jid | get jid address | ✔️ | - | | system | check bot status runtime and more | ✔️ | status | | restart | restart bot | ✔️ | - | | join | join some group using invitelink | ✔️ |joingroup | | ping | check bot speed | ✔️ | speed | | list | get bot commands in list | ✔️ | menulist | | menu | get bot all commands | ✔️ | panel,මෙනු | | bingen | genarate fake credit card (bin) | ✔️ | - | | dictionary | search something dictionary | ✔️ | dic | | readmore | create readmore text messages | ✔️ | - | | qr | genarate qr code using text | ✔️ | - | | ip |search ip.address and get information | ✔️ | - | | cric | get cricket information | ✔️ | cricinfo | | find | find audios and videos(identify) | ✔️ | - | | yts | search word on youtube | ✔️ | - | | npm | search npm from npmjs.com | ✔️ | - | | wabeta | get whatsapp beta information and new future's | ✔️ | wbi,wbeta | | movieinfo | get movie information | ✔️ | - | | weather | get weather information given place | ✔️ | - | | lyrics | get something audio lyrics | ✔️ | - | | cmd | find any command | ✔️ | - | | git | get github information given github username | ✔️ | - | | findapk | find some applications(apk) | ✔️ | - | | repostatus | check prabath-md repo status | ✔️ | - | | report | report any poblem | ✔️ | - | | quote | - | ✔️ | - | | alljid | get all jid address | ✔️ | - | | about | chnage whatsapp about | ✔️ | - | | name | change whatsapp account name | ✔️ | - | | resetvoice | reset prabath-md custom voicereply pannel | ✔️ | - | | removevoice | remove someone word from prabath-md voicereply pannel | ✔️ | - | | getvoice | get all your customized voicereply's | ✔️ | - | | addvoice | add new voice | ✔️ | - | | replacereply | edit someone word from prabath-md replypannel | ✔️ | - | | removereply | remove someone reply | ✔️ | - | | getreply | get all your customized reply's | ✔️ | - | | resetreply | reset prabath-md custom reply pannel | ✔️ | - | | addreply | add new auto reply | ✔️ | - | | eval | run javascript codes from node.js server | ✔️ | - | | dp | change whatsapp dp | ✔️ | - | | sendaudio | send random audios given jid address | ✔️ | - | | sendtag | send tags | ✔️ | - | | sendmsg | send message using jid address | ✔️ | - | | remove | chnage and remove settings | ✔️ | - | | surl | long link to short link | ✔️ | shorturl | | tts | google tts api(voice) | ✔️ | - | | wame | genarate wame link | ✔️ | - | | img2url | create url given image | ✔️ | imgurl | | fancy | genarate fancy text | ✔️ | - | | trt | translate given text | ✔️ | - | | toimg | sticker to image | ✔️ | - | | pdf | create pdf given image urls | ✔️ | - | | edit | image editor | ✔️ | - | | emoji | create emojis | ✔️ | - | | tovideo | sticker to video | ✔️ | - | | toaudio | ptt to audio | ✔️ | - | | toptt | audio to ptt | ✔️ | - | | remini | ai image clear tool | ✔️ | - | | img2qr | image to qr | ✔️ | imgqr | | removebg | remove brackgraund given image | ✔️ | rmbg | | toqr | create qr given text | ✔️ | - | | emomix | mix some two emoji's | ✔️ | emix,emojimix | | ban | ban user | ✔️ | - | | unban | unban user | ✔️ | - | | invite | get group invite link | ✔️ | gurl,glink | | mute | mute group | ✔️ | - | | unmute | unmute group | ✔️ | - | | promote | promote user | ✔️ | - | | demote | demote user | ✔️ | - | | kick | kick user | ✔️ | බායි | | hidetag | tag all group members | ✔️ | htag | | add | add new user | ✔️ | - | | gdesc | change group desc | ✔️ | - | | gname | change group name | ✔️ | - | | left | left someone group | ✔️ | - | | antispam | send antispams | ✔️ | - | | del | delete quoted message | ✔️ | delete | | gdp | change group dp | ✔️ | - | | automute | auto mute group | ✔️ | amute | | autounmute | auto unmute group | ✔️ | aunmute | | attp | create sticker given text | ✔️ | - | | ttp | create sticker given text | ✔️ | - | | searchsticker | search sticker given text | ✔️ | ssticker | | sticker | create sticker given text | ✔️ | s | | steal | change sticker packname | ✔️ | take | | delxo | delete running xo game | ✔️ | - | | xo | play xo game | ✔️ | - | | slot | play slot game | ✔️ | - | | trivia | play trivia game | ✔️ | - | | mathstep | slove maths | ✔️ | - | | math | slove math's | ✔️ | - | | cal | calculate math's(calculator) | ✔️ | - | | | | | | ## Additional Features - **Antidelete:** Get deleted messages | ✔️ - **Antiviewonce:** Get viewonce image and video files | ✔️ - **Autovoice:** Send auto voices | ✔️ - **Autosticker:** Send auto stickers | ✔️ - **Antibad:** Antibad | ✔️ - **Antilink:** Antilink | ✔️ - **Antibot:** Antibot | ✔️ - **Autoreact:** Autoreact | ✔️ - **custom-voice:** custom-voice | ✔️ - **custom-sticker:** custom-sticker | ✔️ - **custom-replys:** custom-replys | ✔️ ✨ Feel free to explore and use these commands! ## 👑 **`PRABATH-MD BOT OWNERS,`** 👑 <a href="https://github.com/prabathLK/"><img src="https://avatars.githubusercontent.com/u/106251140?v=4" width=80 height=80></a> |**[`Prabath Kumara`](https://github.com/prabathLK)**| --- <a href="https://github.com/SACHIBOT"><img src="https://avatars.githubusercontent.com/u/91013948?v=4" width=80 height=80></a> |**[`Sachintha Rashan`](https://github.com/SACHIBOT)**| --- ## ❤️‍🩹 Special Thanks to * [`vihangayt0`](https://github.com/vihangayt0/) <br> <br> <br> <br> <br> ![license](https://img.shields.io/github/license/prabathLK/PRABATH-MD?color=green&label=License&style=plastic) `Release date:- 2023.08.24` <br> `latest updated date:- 2024.02.16`
🇱🇰 Multi-device whatsapp bot 🎉
whatsapp-bot,simple-whatsapp-bot,multi-device-whatsapp-bot,prabath-md,sachibot,multidevice,javascript,whatsapp-bot-md,prabathlk
2023-08-23T11:27:54Z
2024-05-21T16:37:37Z
null
2
64
266
1
3,108
779
null
GPL-3.0
JavaScript
nalgeon/codapi-js
main
# Interactive code examples _for documentation, education and fun_ 🎉 Embed interactive code snippets directly into your product documentation, online course or blog post. ``` ┌───────────────────────────────┐ │ def greet(name): │ │ print(f"Hello, {name}!") │ │ │ │ greet("World") │ └───────────────────────────────┘ Run ► Edit ✓ Done ┌───────────────────────────────┐ │ Hello, World! │ └───────────────────────────────┘ ``` Highlights: - Automatically converts static code examples into mini-playgrounds. - Lightweight and easy to integrate. - Sandboxes for any programming language, database, or software. - Open source. Uses the permissive Apache-2.0 license. For an introduction to Codapi, see this post: [Interactive code examples for fun and profit](https://antonz.org/code-examples/). ## Installation Install with `npm`: ``` npm install @antonz/codapi ``` Or use a CDN: ```html <script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script> ``` Optional styles: ```html <link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" /> ``` ## Usage See the guide that best fits your use case: - [HTML/Markdown](docs/html.md) - [Docusaurus](docs/docusaurus.md) - [Docsify](docs/docsify.md) - [WordPress](docs/wordpress.md) - [Notion](docs/notion.md) - [Dev.to/Medium/Substack/Newsletter](docs/code-links.md) (or other platforms that do not support JavaScript embeds) You'll also need a working Codapi server, either cloud-based at [codapi.org](https://codapi.org/) or [self-hosted](https://github.com/nalgeon/codapi). Unless you are using an in-browser playground (see below). ## Advanced features Codapi offers a number of features that go beyond simple code playgrounds: - [Output modes](docs/output-modes.md) for displaying images, HTML fragments and interactive DOM. - [Templates](docs/templates.md) for hiding parts of the code behind the scenes. - [Multi-file](docs/files.md) playgrounds. - [Custom actions](docs/custom-actions.md). - [Code cells](docs/code-cells.md) for a Jupyter notebook-like experience. ## In-browser playgrounds Most playgrounds (like Go or MongoDB) run code on the Codapi server. But there are some playgrounds that work completely in the browser, no Codapi server required: - [JavaScript](docs/browser-only.md#javascript) - [Fetch](docs/browser-only.md#fetch) - [Lua](docs/browser-only.md#lua) - [PHP](docs/browser-only.md#php) - [PostgreSQL](docs/browser-only.md#postgresql) - [Python](docs/browser-only.md#python) - [Ruby](docs/browser-only.md#ruby) - [SQLite](docs/browser-only.md#sqlite) ## Styling The widget is unstyled by default. Use `snippet.css` for some basic styling or add your own instead. Here is the widget structure: ```html <codapi-snippet sandbox="python" editor="basic"> <codapi-toolbar> <button>Run</button> <a href="#edit">Edit</a> <codapi-status> ✓ Done </codapi-status> </codapi-toolbar> <codapi-output> <pre><code>Hello, World!</code></pre> </codapi-output> </codapi-snippet> ``` `codapi-snippet` is the top-level element. It contains the the toolbar (`codapi-toolbar`) and the code execution output (`codapi-output`). The toolbar contains a Run `button`, one or more action buttons (`a`) and a status bar (`codapi-status`). ## License Copyright 2023-2024 [Anton Zhiyanov](https://antonz.org/). The software is available under the MIT License. ## Stay tuned ★ [**Subscribe**](https://antonz.org/subscribe/) to stay on top of new features.
Interactive code examples for documentation, education and fun.
playground,sandbox,snippets,code-playground,interactive-code,interactive-snippets,javascript,wasi
2023-08-16T17:31:51Z
2024-05-16T09:39:12Z
2024-05-16T09:39:12Z
5
7
183
0
21
438
null
MIT
JavaScript
HuXn-WebDev/Zero-To-FullStack-JS-Course
main
# From Zero To Full Stack JavaScript Course 👇 # [Complete JavaScript Monsters Class](https://www.youtube.com/playlist?list=PLSDeUiTMfxW4zCLgOQgz4PWSN0QRmUUFR) 🤘🥂. ![Course Thumbnail](/thumb.png)
Everything you need to become a Full Stack JavaScript MONSTER 💛
es6,es6-javascript,expressjs,fullstack,fullstack-javascript-guild,javascript,javascript-es6,javascript-framework,javascript-vanilla,js
2023-08-10T19:13:44Z
2024-02-15T12:06:49Z
null
1
4
163
0
118
340
null
null
JavaScript
liyupi/ceshiya
master
# 测试鸭 - 交互式网络安全自学网 > 纯前端实现的交互式网络安全自学网,助你成为网络安全达人! > > By [程序员鱼皮](https://yuyuanweb.feishu.cn/wiki/Abldw5WkjidySxkKxU2cQdAtnah) 在线体验:http://ceshiya.yupi.icu 演示视频:https://www.bilibili.com/video/BV1y14y1175y/ ## 项目介绍 测试鸭(测逝鸭),一个完全免费的交互式网络安全自学教程网站,它的前身是已经被攻击到倒闭的 [面试刷题网(面试鸭)](https://github.com/liyupi/mianshiya-public) 。 和传统的教学网站不同,鱼皮结合自己遭受网站攻击的经历和教训,给网站设置了 30 多个漏洞!大家需要通过自由探索和种种提示,发现这些漏洞并对网站造成攻击 🦖,从而在实战中学习到网络安全知识,轻松愉快~ ![](./doc/image-20230823160407630.png) ### 为什么做这样一个网站? 初学网站开发的同学很容易因为各种小的问题导致网站被攻击,造成心理和经济上的损失。 通过这个网站,希望大家都能意识到网络安全的重要性,在开发网站时提升安全防护意识。 > 学习这些知识是为了更好地防范,而不要利用技术去违法作恶! ## 20 秒学会使用 1)第一次进入主页时,会自动弹出新手引导,教你如何攻击本网站,跟着引导点击下一步即可 ![](./doc/image-20230823160342554.png) 2)页面上的任何一个按钮、任何一个输入框都有可能暗藏玄机。比如疯狂地点击 “收藏” 按钮,不给系统反应的机会,然后 Bug 就出现了。 每当你找到一个 Bug,站长鱼皮的血鸭值都会极速上升,并且你还可以看到鱼皮给出的小知识点,以及一张鱼皮的高清无码发飙图,据说总共有 5 张,集齐之后也许不能召唤神龙,但鱼皮会请你喝茶。 ![](./doc/image-20230823161415988.png) 3)可以通过右下角的工具包帮助自己攻击网站: ![image-20230823161558892](./doc/image-20230823161558892.png) 比如上图的请求工具,可以帮助你绕过前端界面,直接从网站后台获取数据 🐓。 4)点击右下角的 Bug 图标弹出游戏面板,可以查看得分情况、已发现的 Bug、获取提示、查看自己的排名等等。 ![](./doc/image-20230823161933802.png) ## 1 分钟本地启动 由于项目采用纯前端实现,本地启动项目非常简单! > 在线访问人数较多,可能会卡顿,所以更推荐大家自己在本地使用~ 1)下载本项目代码 2)进入项目根目录,执行 `npm install` 安装项目依赖 3)执行 `npm run dev` 本地启动即可 ## 功能和特性 - 完整的面试刷题网站前端 - 搜索题目 - 创建题目 - 用户登录注册 - 个人页面 - 题目选取 - 题目分类 - 遇到题目 - 收藏点赞 - 30+ 交互式 Bug 关卡 - 游戏工具箱 - 游戏面板 ## 技术选型 本项目采用纯前端实现,不需要任何后端的前置知识~ > Q:为什么采用纯前端实现? > > A:该网站更侧重前端交互,无需后台存储;同时也能减少攻击风险 + 省钱 - 开发框架:React、Umi - 脚手架:Ant Design Pro - 组件库:Ant Design、Ant Design Components - 语法扩展:TypeScript、Less - 打包工具:Webpack - 代码规范:ESLint、StyleLint、Prettier - 工具库:Intro.js(引导提示) ## 核心设计 ### 1、网站改造流程 本网站是由一个完整前后端项目 [面试鸭](https://github.com/liyupi/mianshiya-public) 改造而成的纯前端网站,这里分享下通用的网站改造流程,大家可以尝试把自己做的项目也变成交互式教学网站。 步骤如下: 1)完整前端页面开发(已有项目的话这一步默认已完成) 2)页面数据静态化:创建 mock 目录,存放人为编写的假数据;然后将和后端交互的 service 层代码全部改造为操作和获取 mock 目录中的假数据。 ![](./doc/image-20230823163057976.png) 3)创建游戏机制:具体实现方式见下 ### 2、游戏机制实现 首先遵循组件化的思想,把所有和游戏相关的代码封装到 `games` 目录中,并且提供一个 `GameBox` 组件供前端页面引入,而不是直接侵入现有的业务代码: ![](./doc/image-20230823163219925.png) 怎么实现在用户执行了某个操作后,触发完成对应的关卡呢? 这里采用的实现思想类似于前端监控业务中的 “埋点”。 首先我们在 `gameUnit.ts` 中定义游戏的关卡(此处称为 unit 单元),示例代码如下: ```ts /** * 游戏单元类型 */ export type GameUnitType = { key: string; desc: string; type: string; score: number; knowledge: string; no?: number; // 题号 href?: string; // 更多知识的链接 }; /** * 游戏单元列表 */ const GAME_UNIT_LIST: GameUnitType[] = [ { key: 'favourInfinite', desc: '收藏按钮可以无限点击', type: '逻辑漏洞', score: 1, knowledge: '网页前端和后端都要对收藏状态进行控制,防止收藏数异常', }, { key: 'thumbUpInfinite', desc: '点赞可以无限点击', type: '逻辑漏洞', score: 1, knowledge: '网页前端和后端都要对点赞状态进行控制,防止点赞数异常', }, ]; ``` 然后我们编写一个全局游戏状态存储文件 `gameState.tsx` ,用于记录用户已经完成的关卡、分数、游戏配置等信息: ```ts /** * 游戏全局状态类型 * @author https://yuyuanweb.feishu.cn/wiki/Abldw5WkjidySxkKxU2cQdAtnah yupi */ export type GameStateType = { init: boolean; // 是否为初始化 score: number; // 当前分数 gameTip: boolean; // 是否开启提示 succeedUnitList: string[]; // 已通过的关卡 }; ``` 并且提供一个上报过关通知的函数 `doGameUnitSucceed` ,参数为上面定义的关卡单元的 key,在该函数中改变当前用户的过关状态,并给出过关弹窗提示。 示例代码如下: ```ts /** * 完成游戏 * @param key */ const doGameUnitSucceed = (key: string) => { // 已经完成 if (gameState.succeedUnitList.includes(key)) { return; } gameState.succeedUnitList.push(key); const unit = GAME_UNIT_MAP[key]; gameState.score += unit.score; setTimeout(() => { Modal.success({ title: `太棒了,鱼皮的血鸭又高了!😡 ${gameState.score - unit.score} +${unit.score}`, content: ..., okText: '继续加油!', }); }, 1000); updateGameState(gameState); }; ``` 之后,我们只需要在对应的页面和功能代码中,增加一段过关逻辑,符合条件的话就调用 `doGameUnitSucceed(关卡key)` 过关通知函数,就能实现过关状态的更新和通知了。 比如下面的代码,是在点赞功能中添加过关判断逻辑: ```ts const doThumbUp = async (id: string) => { setThumbLoading(true); const res = await thumbUpComment(id); if (res === 1 || res === -1) { comment.thumbNum = (comment.thumbNum ?? 0) + res; // 点赞数 > 9 则过关 if (comment.thumbNum > 9) { // 注意这行代码是关键,触发过关 doGameUnitSucceed('thumbUpInfinite'); } } }; ``` ### 3、新手指引 引入 `Intro.js` 库,在 `GameBox` 游戏组建中定义引导阶段,然后通过 LocalStorage 判断是否首次进入游戏需要展示引导即可。 示例引导阶段代码如下: ```ts const [steps] = useState([ { title: '欢迎来到测逝鸭 🦆', intro: '这是一个锻炼你网络安全能力的破站,准备好旅程了么?🧑🏻‍🦲', position: 'top', }, { title: '目标 🎯', intro: '你要做的就是运用你的智慧和强大的洞察力,尽可能多地发现并利用该网站的 Bug、对网站造成破坏!🦖', nextLabel: '应该的应该的', }, ... ] ``` ### 4、工具箱实现 工具箱(`ToolBox.tsx` )本质上就是集成了特定过关方法的页面,算是一种定制化开发。每种工具都作为单独的页面,存放在 `tools` 目录下。 ## 目录结构 - public:公共静态资源 - config:项目配置文件 - routes.ts:路由 - doc:文档相关资源 - src - assets:静态资源 - components:组件 - constant:常量 - games:游戏逻辑 - GameBox.tsx:游戏盒子组件(引入后开启游戏) - gameState.tsx:游戏状态管理 - gameUnit.tsx:游戏单元定义 - ToolBox.tsx:游戏工具箱 - tools:具体的游戏工具 - layouts:页面布局 - mock:模拟数据 - models:数据模型定义 - pages:页面 - services:业务逻辑 - plugins:第三方依赖 - app.tsx:项目入口文件 - access.ts:项目权限管理 - wrappers:路由功能增强 - auth.tsx:自定义权限管理 - global.less:全局样式文件 - .eslintrc.js:代码规范 - .gitignore:提交忽略文件 - .prettierrc.js:代码美化配置 - .stylelintrc.js:样式代码美化配置 - package.json:项目管理 - tsconfig.json:TS 配置 ## 贡献指南 欢迎各路好汉参与贡献,利人利己~ 推荐的贡献方式:增加新的游戏单元(官卡)、修复系统 Bug、补充网络安全知识点,感谢您的贡献。 --- 感谢阅读,也欢迎加入 [作者的编程学习圈](https://yupi.icu),学习更多原创项目~
免费的交互式网络安全自学网,助你成为网络安全达人!纯前端实现,简单易学~
ant-design,ant-design-pro,css,frontend,html,javascript,network,programmer,security,typescript
2023-08-23T08:58:21Z
2023-08-24T11:23:09Z
null
1
0
3
1
53
314
null
null
TypeScript
ahsan-chy/React-JS-Advance-Folder-Structure
master
# React JS Advance-Level Folder Structure How to run the project ```javascript npm i ``` and ```javascript npm start ``` Before using This project install latest versions of following packages - [Axios](https://www.npmjs.com/package/axios) - Bootstrap - React Strap - MUI - AntD - Tailwind - [React Icons](https://react-icons.github.io/react-icons/) - React Router Dom [Latest React Router v6](https://reactrouter.com/en/dev/upgrading/reach#install-react-router-v6) - Other Required packages In the project I have just set Up most used folder structure: ```javascript React JS Advanced Folder Structure . ├── public | └── index.html ├── src ├── assets | ├── audios | ├── icons | ├── images | └── videos ├── components | ├── Button | | ├── index.jsx | | └── button.module.css | ├── inputs | | ├── index.jsx | | └── inputs.module.css | ├── Modal | | ├── index.jsx | | └── modal.module.css | └── Tooltip | ├── index.jsx | └── tooltip.module.css | └── index.js ├── db | ├── productsData.js | └── userData.js ├── layout | ├── Header | | ├── index.jsx | | └── header.module.css | ├── Navbar.jsx | | ├── index.jsx | | └── navbar.module.css | ├── Breadcrumbs.jsx | | ├── index.jsx | | └── breadcrumbs.module.css | └── Footer.jsx | ├── index.jsx | └── footer.module.css | └── index.js ├── pages | ├── Home | | ├── index.jsx | | └── home.module.css | ├── Login | | ├── index.jsx | | └── login.module.css | ├── Signup | | ├── index.jsx | | └── signup.module.css | └── About | ├── index.jsx | └── about.module.css | └── index.js ├── Routers | └── Routers.js ├── store | ├── action.js | ├── reducers.js | └── store.js ├── services | ├── api.js // API request functions | └── dataUtils.js // Data manipulation functions ├── utils | ├── constants | | ├── Strapi.js | | └── Firebase.js | ├── helpers | | ├── arrays.js | | └── helpers.js | └── hooks | └── useIsMobile.js ├── .env ├── app.js ├── index.css ├── index.js | ├── .gitignore ├── package-lock.json ├── package.json └── README.md ``` ## Folders include - `Public` - `Assests` - `Components` - `db` - `layout` - `Pages` - `Routes` - `services` - `store` - `utils` - `Constants` - `helpers` - `hooks` - `.env.example` / `.env.development` - `.eslintrc.cjs` - `.prettierrc.cjs` - `.jsonconfig.json` - `.gitignore` - `package.json` - `.vite.config.js` ### Public Public mainly contain root file **`index.html`** which help to run react project. ### Assests In Assets folder you can put following things. - Images - Video - Icons - CSS ### Components Component will have all the components which are reuseable anywhere in website. Like - Button - Cards - DropDownBtn - inputs - Modal - Popups - Toast - Tooltip - Text/Heading/Title - Skeleton - Spiner/Loader ### Constants Constants folder have **Tokens,** logins, and those details which we don't want to share with public. Like **Env** files are used to store sensitive credentials such as **API keys.** An environment variable supports storing the API link at one location so that we do not need to change the Link in each file manually. ```javascript const API_BASE_URL = 'https://api.example.com'; const MAX_ITEMS_PER_PAGE = 10; ``` ### db Here we provide JSON Formate of data in frontend in React APP. - products data - users data ### Helpers Helpers used to store utility functions and modules that provide various helper functionalities. These functions are usually small, reusable, and not directly tied to the main business logic of your application. - Array to Object - Object to Array - Date Formatting - Number Formatting - Validation - Api Request [Helper Functions Details](https://chat.openai.com/share/32e7459b-dd5a-495a-a418-db2453361370) ### Layout This is just a special folder for **placing any layout based components.** - Header - Footer - Breadcrumbs - Navbar - Sidebar ### Pages Pages will have all the pages which we will use in website. ### Routes Router will have all the Routes in website. Where we are going and where we want to go. ### Services In Services we put configuration file, like when you are using google firebase then your firebase config file will be in services folder. The **"services"** folder is often used to contain code related to making **\*`API`** requests and managing data from external sources. This folder helps separate the concerns of your application by isolating data fetching and manipulation logic from the components that render the UI. ```javascript // services/apiService.js import axios from 'axios'; export function fetchUserData(userId) { return axios.get(`/api/users/${userId}`); } ``` ### Store "store" folder in a React application typically refers to a directory where you manage your application's state using state management libraries like - Redux - Redux Toolkit - Zustand - Context Api - Mobx ```javascript |-- store/ | |-- actions.js // Redux action creators | |-- reducers.js // Redux reducers | |-- store.js // Redux store configuration ``` ### Utils **`Utils`** folder is a common convention in many software projects, including React applications, for storing utility functions and helper modules that provide general-purpose functionality across different parts of the application. - constants - helpers - hooks Example: ```javascript // utils/stringUtils.js export function capitalizeFirstLetter(str) { return str.charAt(0).toUpperCase() + str.slice(1); } // utils/dateUtils.js export function formatDate(date) { const options = { year: 'numeric', month: 'long', day: 'numeric' }; return new Date(date).toLocaleDateString(undefined, options); } ``` ### .env.development Env files are used to store sensitive credentials such as API keys. ```javascript REACT_APP_API_URL=http://localhost:3001 REACT_APP_DEBUG_MODE=true ``` ### .env.example Env files are used to store sensitive credentials such as API keys. ```javascript REACT_APP_API_KEY= REACT_APP_API_URL= ``` ### .eslintrc.cjs ESLint, which is a popular tool for linting and enforcing coding style and best practices in JavaScript code. The .eslintrc.cjs file is written in CommonJS module format and is used to configure ESLint for your project. ### .gitignore .gitignore file contain all those files,folders name which user want to skip to push online. If you don't want to push any specific file/folder then you should put their name in .gitignore ### .prettierrc.cjs `.prettierrc.cjs` file is a configuration file used for Prettier, which is a widely used code formatting tool. Prettier helps ensure consistent and automatic code formatting across your codebase. The `.prettierrc.cjs` file is written in CommonJS module format and is used to configure Prettier's behavior for your project. - File Format & Naming - Configuration Setup - Export Configuration ```javascript module.exports = { printWidth: 80, tabWidth: 2, singleQuote: true, trailingComma: 'es5', }; ``` ### jscongig.json - File Purpose - Configuration Setup: - JSON Format ```javascript { "compilerOptions": { "baseUrl": "./", "paths": { "@/*": ["src/*"] } } } ``` ### package.json package.json file is core to the Nodejs ecosystem and is a fundamental part of understanding and working with Node. js , npm , and even modern JavaScript . This file is used as a manifest, storing information about applications, modules, packages, and more. ### vite.config.js - File Purpose: The vite.config.js file allows you to customize various aspects of your Vite project, including configuration options for the development server, build process, and plugin settings. - Configuration Setup: Inside the vite.config.js file, you export an object containing the configuration options for your Vite project. This object can include settings related to the development server, build process, plugins, and more. - JavaScript Format: The vite.config.js file is written in JavaScript, and it's named vite.config.js. It should be placed in the root directory of your Vite project. ```javascript // vite.config.js export default { server: { port: 3000 }, build: { minify: true }, plugins: [/* your plugins here */] }; ``` @import ```javascript export default defineConfig({ resolve: { alias: { '@': '/src', '@page': '/src/page' } }, plugins: [react()], }) ``` **2nd Method** ```javascript import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { resolve } from 'path'; const alias = { // eslint-disable-next-line no-undef '@': resolve(__dirname, './src'), }; export default defineConfig({ plugins: [react()], resolve: { alias, }, }) ```
React JS Advanced Folder Structure - Boilerplate
boilderplate,client,context-api,folder-structure,frontend,javascript,react-router,reactjs,rect,redux
2023-08-23T02:58:57Z
2024-02-13T12:56:49Z
null
1
0
7
0
111
294
null
null
JavaScript
Blazity/nextjs-roadmap
main
![Frame 1000002342](https://github.com/Blazity/nextjs-roadmap/assets/28964599/216e8a13-12ec-45f9-8e59-1145f8d7db48) <p align="center"> <h2 align="center">Next.js Product Engineer Roadmap</h2> <p align="center">Roadmap to becoming a Next.js Product Engineer in 2023</p> <p align="center"> <a href="https://twitter.com/intent/tweet?text=https://github.com/Blazity/nextjs-roadmap Roadmap to becoming a Next.js Product Engineer in 2023" target="_blank"><img src="https://img.shields.io/badge/tweet-blue.svg?logo=twitter&logoColor=white" style="display: inherit;"/></a> <a href="https://www.linkedin.com/sharing/share-offsite/?url=https://github.com/Blazity/nextjs-roadmap&mini=true&title=Roadmap%20to%20becoming%20Next.js%20Product%20Engineer%20in%202023" target="_blank"><img src="https://img.shields.io/badge/post-blue.svg?logo=linkedin&logoColor=white" style="display: inherit;"/></a> <a href="https://blazity.com/?utm_source=nexjsroadmap&utm_medium=github"><img src="https://img.shields.io/badge/Next.js-Experts-yellowgreen.svg" style="display: inherit;"/></a> <a href="https://blazity.com/?utm_source=nexjsroadmap&utm_medium=github" target="_blank"><img alt="Blazity" src="https://img.shields.io/badge/Author-Blazity-green.svg" style="display: inherit;"/></a> <a href="https://opensource.org/licenses/MIT/" target="_blank"><img alt="MIT License" src="https://img.shields.io/badge/License-MIT-blue.svg" style="display: inherit;"/></a> </p> <br> </p> Below you'll find a comprehensive roadmap showcasing the journey to becoming a proficient Next.js Product Engineer in 2023. Initially designed for our team members at Blazity, we're thrilled to share this roadmap with the community to aid aspiring and seasoned developers alike. Stay in the loop! Give a [star :star:](https://github.com/Blazity/nextjs-roadmap/stargazers) and watch :eyes: the [GitHub Repo](https://github.com/Blazity/nextjs-roadmap) to get notified about fresh content and updates. If you're looking to [hire a Next.js specialist](https://blazity.com/?utm_source=nexjsroadmap&utm_medium=github), drop us a message at [contact@blazity.com](mailto:contact@blazity.com). ## What does Product Engineer mean? Product Engineers emphasize the entire user experience, blending frontend, backend, and design. Unlike "fullstack" developers, they have a broad, not deep, grasp of technologies, applying them to craft seamless products. They prioritize rapid deployment and user feedback. In the engineering spectrum, they focus on user-centric features. The industry is transitioning from the title "Fullstack Engineer" to "Product Engineer", highlighting a broader role than just coding. ## Disclaimer > The purpose of this roadmap is to give you an idea about the landscape. The road map will guide you if you are confused about what to learn next, rather than encouraging you to pick what is hip and trendy. You should grow some understanding of why one tool would be better suited for some cases than the other and remember hip and trendy does not always mean best suited for the job ## Roadmap ![Next js Roadmap - Frame 1 (1)](https://github.com/Blazity/nextjs-roadmap/assets/28964599/57797647-ba1f-4c5f-921b-717b6b1e8304) ## Resources 1. Fundamentals: 1. **React** 2. **Typescript** 1. [ts-reset](https://github.com/total-typescript/ts-reset) - a CSS reset for TypeScript, improving types for common JavaScript API's 4. **Next.js** (similar frameworks: [Hydrogen](https://hydrogen.shopify.dev/), [Gatsby](https://www.gatsbyjs.com/), [Remix](https://remix.run/)) 2. Rendering Techniques: 1. **[Streaming](https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming)** 2. **[SSG](https://nextjs.org/docs/pages/building-your-application/rendering/static-site-generation)** (Static Site Generation) 3. **[SPR](https://vercel.com/blog/serverless-pre-rendering)** (Serverless Pre-rendering) 4. **[ISR](https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration)** (Incremental Static Regeneration) 1. Fixed 2. [On-demand](https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration#using-on-demand-revalidation) 6. **[CSR](https://nextjs.org/docs/pages/building-your-application/rendering/client-side-rendering)** (Client-Side Rendering) 7. **[SSR](https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering)** (Server-Side Rendering) 8. **[Preview Mode](https://nextjs.org/docs/pages/building-your-application/configuring/preview-mode)** 3. Styling & UI: 1. Preprocessors: 1. [Sass](https://sass-lang.com/) 2. [PostCSS](https://postcss.org/) 3. [Less](https://lesscss.org/) 3. CSS in JS: 1. [Emotion](https://emotion.sh/docs/introduction) 2. [Styled Components](https://styled-components.com/) 3. [Styled System](https://github.com/styled-system/styled-system) 4. [Vanilla Extract](https://vanilla-extract.style/) 5. [Linaria](https://github.com/callstack/linaria) 6. [CSS Modules](https://github.com/css-modules/css-modules) 7. [TailwindCSS](https://tailwindcss.com/) 5. Component Libraries: 1. [radix-ui](https://www.radix-ui.com/) 2. [antd](https://ant.design/) 3. [nextui](https://nextui.org/) 4. [ariakit](https://ariakit.org/) 5. [react-spectrum](https://react-spectrum.adobe.com/react-spectrum/) 6. [mui](https://mui.com/) 7. [daisyui](https://daisyui.com/) 8. [chakra](https://chakra-ui.com/) 9. [fluentui](https://developer.microsoft.com/en-us/fluentui#/) 10. [mantine](https://mantine.dev/) 11. [headlessui](https://headlessui.com/) 4. Routers: 1. [App Router](https://nextjs.org/docs/app) 1. [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components) 2. [Client Components](https://nextjs.org/docs/app/building-your-application/rendering/client-components) 3. [Layouts](https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts) 3. [Pages Router](https://nextjs.org/docs/pages) 5. Performance 1. Hydration 1. [Progressive Hydration](https://www.patterns.dev/posts/progressive-hydration) 2. [Selective Hydration](https://www.patterns.dev/posts/react-selective-hydration) 3. [Resumability](https://qwik.builder.io/docs/concepts/resumable/) 2. [next/image](https://nextjs.org/docs/pages/api-reference/components/image) 3. [next/script](https://nextjs.org/docs/pages/api-reference/components/script) 4. [next/font](https://nextjs.org/docs/pages/api-reference/components/font) 5. [BundleAnalyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) 6. [Partytown](https://partytown.builder.io/) 6. Deployment 1. Hosting 1. [Vercel](https://vercel.com/) 2. [GCP](https://blog.logrocket.com/how-to-deploy-next-js-on-google-cloud-run/) 3. [AWS](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html) 4. [Netlify](https://www.netlify.com/) 5. [Azure](https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-hybrid) 6. [Cloudflare](https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/) 7. [Railway](https://docs.railway.app/getting-started) 8. [Render](https://render.com/docs/deploy-nextjs-app) 9. [Fly.io](https://fly.io/docs/js/frameworks/nextjs/) 10. [Digital Ocean ](https://docs.digitalocean.com/developer-center/deploy-a-next.js-app-to-app-platform/) 2. CDN 1. [Cloudflare](https://www.cloudflare.com/application-services/products/cdn/) 2. [CloudFront](https://aws.amazon.com/cloudfront/) 3. [KeyCDN](https://www.keycdn.com/) 4. [AzureCDN](https://azure.microsoft.com/en-us/products/cdn/) 5. [CloudCDN](https://cloud.google.com/cdn) 6. [Fastly](https://www.fastly.com/products/cdn) 7. [Akamai](https://www.akamai.com/solutions/content-delivery-network) 3. [MultiZones](https://nextjs.org/docs/pages/building-your-application/deploying/multi-zones) 4. IaC 1. [SST.dev](https://sst.dev/) 2. [Pulumi](https://www.pulumi.com/) 3. [Terraform](https://www.terraform.io/) 7. State Management 1. [Zustand](https://github.com/pmndrs/zustand) 2. [Context API](https://react.dev/reference/react/createContext) 3. [Jotai](https://jotai.org/) 4. [Redux Toolkit](https://redux-toolkit.js.org/) 5. [Recoil](https://recoiljs.org/) 6. [XState](https://xstate.js.org/) 7. [MobX](https://mobx.js.org/README.html) 8. Bundlers 1. [Webpack](https://webpack.js.org/) 2. [Turbopack](https://turbo.build/pack) 9. Testing 1. E2E 1. [Playwright](https://playwright.dev/) 2. [Cypress](https://www.cypress.io/) 3. [TestCafe](https://testcafe.io/) 2. Unit 1. [Jest](https://jestjs.io/) 2. [Vitest](https://vitest.dev/) 3. Integration 1. [React Testing Library ](https://testing-library.com/docs/react-testing-library/intro/) 4. Visual 1. [StoryBook](https://storybook.js.org/) 2. [Docz](https://www.docz.site/) 3. [React Styleguidist](https://react-styleguidist.js.org/) 4. [React Cosmos](https://reactcosmos.org/) 10. API Communication 1. REST 1. [TanStack Query](https://tanstack.com/query/latest)(works with GraphQL too) 2. [SWR](https://swr.vercel.app/) (works with GraphQL too) 2. GraphQL 1. [Apollo](https://www.apollographql.com/) 2. [Relay](https://relay.dev/) 3. [URQL](https://formidable.com/open-source/urql/) 4. [Graphql-request](https://www.npmjs.com/package/graphql-request) 3. Web Sockets 1. [Socket.io](https://socket.io/) 2. [Ably](https://ably.com/) 3. [Convex](https://www.convex.dev/) 4. [Pusher](https://vercel.com/guides/deploying-pusher-channels-with-vercel) 5. [PubNub](https://www.pubnub.com/) 6. [Firebase Realtime Database](https://firebase.google.com/docs/database) 7. [Supabase](https://supabase.com/realtime) 4. [Api Routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) / [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) 5. gRPC 6. [tRPC](https://trpc.io/docs/client/nextjs/setup) 11. i18n 1. [next-translate](https://github.com/aralroca/next-translate) 2. [lingui](https://lingui.dev/) 3. [i18next](https://react.i18next.com/) 4. [react-intl](https://github.com/formatjs/formatjs) 12. Architecture 1. Modular 2. [Feature-Sliced Design](https://feature-sliced.design/) 3. Monorepo 1. [Turborepo](https://turbo.build/) 2. [NX](https://nx.dev/) 3. [Lerna](https://lerna.js.org/) 4. Monolith 13. SEO 1. [next-seo](https://github.com/garmeeh/next-seo) 2. [@vercel/og](https://vercel.com/docs/functions/edge-functions/og-image-generation) 14. Auth 1. [NextAuth](https://next-auth.js.org/) 2. [IronSession](https://github.com/vvo/iron-session) 3. [Passport](https://www.passportjs.org/) 15. Observability 1. [OpenTelemetry](https://opentelemetry.io/) 2. [DataDog](https://vercel.com/integrations/datadog) 3. [New Relic](https://github.com/newrelic/newrelic-node-nextjs) 4. [Sentry](https://docs.sentry.io/platforms/javascript/guides/nextjs/) ## 🚦 Wrap Up Feel there's room for enhancement in any sections of the roadmap? Please consider opening a PR with your suggestions or flag any concerns via issues. We're committed to continuous improvement, so you might want to watch/star this repository for future updates. ## 🙌 Contribution Contributions are always welcome! To contribute, please follow these steps: 1. Fork the repository. 2. Create a new branch with a descriptive name. 3. Make your changes, and commit them. 4. Push your changes to the forked repository. 5. Create a pull request, and we'll review your changes. ## 📡 Community If you're looking for help or simply want to share your thoughts about the project, we encourage you to join our Discord community. Here's the link: [https://blazity.com/discord](https://blazity.com/discord). It's a space where we exchange ideas and help one another. Everyone's input is appreciated, and we look forward to welcoming you. <br /> <a href="https://blazity.com/discord" style="width: 100%; display: flex; justify-content: center;"> <img src="https://discordapp.com/api/guilds/1111676875782234175/widget.png?style=banner2" alt="Blazity Discord Banner"/> </a> <br />
🤓 Roadmap showcasing the journey to becoming a proficient Next.js Product Engineer in 2023
javascript,nextjs,nextjs13,productengineering,react,reactjs,roadmap,roadmap-frontend,roadmap-javascript,vercel
2023-09-06T14:30:18Z
2023-09-08T13:39:32Z
null
4
1
14
0
18
217
null
MIT
null
fireproof-storage/fireproof
main
# <img src="https://fireproof.storage/static/img/flame.svg" alt="Fireproof logo" width="25"> [Fireproof](https://fireproof.storage) realtime database <p align="right"> <img src="https://img.shields.io/bundlephobia/minzip/%40fireproof%2Fcore" alt="Package size"> <a href="https://github.com/fireproof-storage/fireproof/actions/workflows/ci.yaml"> <img src="https://github.com/fireproof-storage/fireproof/actions/workflows/ci.yaml/badge.svg" alt="Build status"> </a> </p> ### No setup: write features first, access your data anywhere Add collaboration to any app with Fireproof. Access data from JavaScript servers and edge functions. Use live queries to update your UI automatically when the database changes. [Connect realtime sync](https://www.npmjs.com/package/@fireproof/connect) and those changes will sync between browsers and backend functions. Apps built this way are multi-player by default. ### JavaScript quick start The document database API will feel familiar. Queries use dynamic indexes, and the database can refresh your UI, as seen in the `db.subscribe` call below, as well as the React liveQuery hook. ```js import { fireproof } from '@fireproof/core' const db = fireproof('music-app') await db.put({ _id: 'beyonce', name: 'Beyoncé', hitSingles: 29 }) db.subscribe(async () => { const topArtists = await db.query("hitSingles", { range: [30, Infinity] }) // redraw the UI with the new topArtists }) const beyonceDoc = await db.get('beyonce') beyonceDoc.hitSingles += 1 await db.put(beyonceDoc) ``` Jump to the docs site [for JavaScript API basics.](https://use-fireproof.com/docs/database-api/basics) ### Live data hooks for React Fireproof [React hooks for live data](https://use-fireproof.com/docs/category/react-hooks) avoid boilerplate and make building collaborative apps a breeze. ```js import { useLiveQuery, useDocument } from 'use-fireproof' function App() { const completedTodos = useLiveQuery('completed', { limit: 10 }) const [newTodo, setNewTodoData, saveNewTodo] = useDocument({type: 'todo', text: '', completed: false, created: Date.now() }) ``` Read the [step-by-step React tutorial](https://use-fireproof.com/docs/react-tutorial) to get started. ## Why choose Fireproof Compared to other embedded databases, Fireproof: - is network aware, encrypted, and multi-writer safe - is designed for real-time collaboration with CRDTs - offers cryptographic causal integrity for all operations - is built for the web, with a small package size and no wasm Deliver interactive experiences without waiting on the backend. Fireproof runs in any cloud, browser, or edge environment, so your application can access data anywhere. [Get the latest roadmap updates on our blog](https://fireproof.storage/blog/) or join our [Discord](https://discord.gg/cCryrNHePH) to collaborate. Read the docs to learn more about the database [architecture](https://use-fireproof.com/docs/architecture). ### Use cases Fireproof allows web developers to build full-stack apps. It's especially useful for: - Rapid prototyping - AI copilot safety - Collaborative editing - Personalization and configuration - Offline and local-first apps With Fireproof, you **build first** and sync via your cloud of choice when you are ready, so it's as easy to add to existing apps as it is to build something new. Drop Fireproof in your page with a script tag and start sharing interactive data. Fireproof is a great fit for code sandboxes and online IDEs, as you can get started without any configuration. This also makes it [easy for AI to write Fireproof apps](https://use-fireproof.com/docs/chatgpt-quick-start). ### Install Get started with the React hooks: ```sh npm install use-fireproof ``` or install the database in any JavaScript environment: ```sh npm install @fireproof/core ``` The default build is optimized for browsers, to load the node build add `/node`: ```js import { fireproof } from '@fireproof/core/node' ``` Add the database to any web page via HTML script tag (global is `Fireproof`): ```html <script src="https://cdn.jsdelivr.net/npm/@fireproof/core/dist/browser/fireproof.global.js"></script> ``` Go ahead and write features, then [connect to any cloud backend](https://www.npmjs.com/package/@fireproof/connect) later. ## Thanks 🙏 Fireproof is a synthesis of work done by people in the web community over the years. I couldn't even begin to name all the folks who made pivotal contributions. Without npm, React, and VS Code all this would have taken so much longer. Thanks to everyone who supported me getting into database development via Apache CouchDB, one of the original document databases. The distinguishing work on immutable data-structures comes from the years of consideration [IPFS](https://ipfs.tech), [IPLD](https://ipld.io), and the [Filecoin APIs](https://docs.filecoin.io) have enjoyed. Thanks to Alan Shaw and Mikeal Rogers without whom this project would have never got started. The core Merkle hash-tree clock is based on [Alan's Pail](https://github.com/alanshaw/pail), and you can see the repository history goes all the way back to work begun as a branch of that repo. Mikeal wrote [the prolly trees implementation](https://github.com/mikeal/prolly-trees). ## Contributing We love contributions. Feel free to [join in the conversation on Discord. All welcome.](https://discord.gg/cCryrNHePH) # License Dual-licensed under [MIT or Apache 2.0](https://github.com/fireproof-storage/fireproof/blob/main/LICENSE.md)
Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
crdt,database,javascript,npm,react,immutable,ipfs,json,edge,local-first
2023-08-17T21:13:44Z
2024-05-08T16:18:42Z
null
7
55
1,458
39
12
196
null
NOASSERTION
TypeScript
elrebelde21/NovaBot-MD
main
> <b> 🚀 Version 1.1.0 </b> <p align="center"> <a href="#"><img title="NovaBot-MD" src="https://telegra.ph/file/343e60521da533ea8a2d3.jpg/badge/a -purple?colorA=%cc33ff&colorB=%cc33ff&style=for-the-badge"></a> </p> <p align="center"> <a href="#"><img title="The-LoliBot-MD" src="https://img.shields.io/badge/SI TE AGRADA EL REPOSITORIO APOYAME CON UNA 🌟 ¡GRACIAS! -red?colorA=%255ff0000&colorB=%23017e40&style=for-the-badge"></a> <a href="#"><img title="LoliBot-MD" src="https://img.shields.io/badge/COMPATIBLE CON LA VERSIÓN MULTI DISPOSITIVOS DE WHATSAPP-red?colorA=%F77F48FF&colorB=%F77F48FF&style=for-the-badge"> <div align="center"> <a href="https://facebook.com/groups/872989990425789/"> <img src="https://img.shields.io/badge/Facebook-1877F2?style=for-the-badge&logo=facebook&logoColor=white" alt="Facebook"> </a> <a href="https://www.youtube.com/@elrebelde.21"> <img src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white" alt="YouTube"> </a> <a href="https://www.tiktok.com/@lolibot_?_t=8ge2zeRZ04r&_r=1" target="_blank"> <img src="https://img.shields.io/badge/-TikTok-%23E4405F?style=for-the-badge&logo=tiktok&logoColor=black" target="_blank"></a> <img src="https://github.com/siegrin/siegrin/blob/main/Assets/Handshake.gif" height="30px"> </a> <a href="https://paypal.me/OfcGB" target="_blank"> <img src="https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white" target="_blank"></a> <img src="https://github.com/siegrin/siegrin/blob/main/Assets/Handshake.gif" height="30px"> </a> [![Enlaces](https://img.shields.io/badge/Encontra_todos_los_enlace_en_un_único_lugar-000000%7D?style=for-the-badge&logo=biolink&logoColor=white)](https://atom.bio/lolibot) </div> ### `👑 DUDAS SOBRE EL BOT?, CONTACTAME 👑` <p align="center"> <a href="https://github.com/elrebelde21"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=14&duration=3000&color=ABF7BB&center=verdadero&vCenter=verdadero&lines=Solo+escr%C3%ADba+si+tiene+dudas." height="40px" </p> <a href="wa.me/573183650526" target="blank"><img src="https://img.shields.io/badge/Creador-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" /></a> ### Quieres probar la funciones del bot, antes de instalar, probar el bot aquí [![Grupos](https://img.shields.io/badge/Grupos-25D366?style=for-the-badge&logo=whatsapp&logoColor=white)](https://chat.whatsapp.com/Em4Byf4w5VgHObPvZQlfnM) ------------------ ### `🟢 𝙰𝙲𝚃𝙸𝚅𝙰𝚁 𝙴𝙽 𝚁𝙴𝙿𝙻𝙸𝚃` [![blog](https://img.shields.io/badge/Replit-Tutorial-FF0000?style=for-the-badge&logo=youtube&logoColor=white) ](https://youtu.be/SMjCcfuyWQE) [![Run on Repl.it](https://repl.it/badge/github/elrebelde21/NovaBot-MD)](https://repl.it/github/elrebelde21/NovaBot-MD) ------------------ ## 𝙰𝙲𝚃𝙸𝚅𝙰 𝙴𝙻 𝚃𝙴𝚁𝙼𝚄𝚇 👇 Pasos para instalar el bot via termux 👇 [![blog](https://img.shields.io/badge/Video-Tutorial-FF0000?style=for-the-badge&logo=youtube&logoColor=white) ](https://youtu.be/OhbJjp0L2QA?si=LUTw6tIkQmP7XOhp) [`💫 Instalar termux clic aqui`](https://www.mediafire.com/file/3hsvi3xkpq3a64o/termux_118.apk/file) ```bash termux-setup-storage ``` ```bash apt update && apt upgrade && pkg update && pkg upgrade && pkg install bash && pkg install libwebp && pkg install git -y && pkg install nodejs -y && pkg install ffmpeg -y && pkg install wget && pkg install imagemagick -y && pkg install yarn ``` ```bash git clone https://github.com/elrebelde21/NovaBot-MD && cd NovaBot-MD && yarn && npm install ``` ```bash npm start ``` ### `🟢 𝙰𝙲𝚃𝙸𝚅𝙰𝚁 𝙴𝙽 𝙲𝙰𝚂𝙾 𝙳𝙴 𝙳𝙴𝚃𝙴𝙽𝙴𝚁𝚂𝙴 𝙴𝙽 𝚃𝙴𝚁𝙼𝚄𝚇` Si despues que ya instalastes tu bot y termux te salta en blanco, se fue tu internet o reiniciaste tu celular, solo realizaras estos pasos ```bash > cd NovaBot-MD > npm start ``` ### `🟢 𝙾𝙱𝚃𝙴𝙽𝙴𝚁 𝙾𝚃𝚁𝙾 𝙲𝙾𝙳𝙸𝙶𝙾 𝚀𝚁 𝙴𝙽 𝚃𝙴𝚁𝙼𝚄𝚇` Detener el bot apretado CTRL y aplastas Z en tu teclado, darle enter y escribe: ```bash > cd > cd NovaBot-MD > rm -rf sessions > npm start ``` - ### 🟢 𝙰𝙲𝚃𝚄𝙰𝙻𝙸𝚉𝙰𝚁 𝙽𝙾𝚅𝙰𝙱𝙾𝚃-𝙼𝙳 > Note Comandos para actualizar NovaBot-MD de forma automática ```bash grep -q 'bash\|wget' <(dpkg -l) || apt install -y bash wget && wget -O - https://raw.githubusercontent.com/elrebelde21/NovaBot-MD/master/update.sh | bash ``` Para que no pierda su progreso en NovaBot-MD, estos comandos realizarán un respaldo de su `database.json` y se agregará a la versión más reciente. > Warning Estos comandos solo funcionan para TERMUX, REPLIT, LINUX ### `🤖 𝙿𝙰𝚁𝙰 𝙰𝙲𝚃𝙸𝚅𝙰𝚁 𝟸𝟺/𝟽 (𝚃𝙴𝚁𝙼𝚄𝚇)` ```bash npm i -g pm2 && pm2 start index.js && pm2 save && pm2 logs ``` ------------------ ### 🟢 INFINITY HOST [![blog](https://img.shields.io/badge/infinity-NovaBot-FF0000?style=for-the-badge&logo=youtube&logoColor=white) ](https://youtu.be/o6ZSpMOsvHs?si=fzwZIDN5LPE1w0pI) > Activar NovaBot-MD 24/7 en infinity-host <a href="https://dashboard.infinitywa.xyz"><img src="https://qu.ax/TPhh.jpg" height="125px"></a> ### Información del Host - **Página:** [`Click aqui`](https://dashboard.infinitywa.xyz) - **Dashboard:** [`Aquí`](https://dashboard.infinitywa.xyz) - **Panel:** [`Aquí`](https://live.panel-infinitywa.store) - **Grupo de WhatsApp:** [`Aquí`](https://chat.whatsapp.com/GQ82mPnSYnm0XL2hLPk7FV) - **Canal de WhatsApp:** [`Aquí`](https://whatsapp.com/channel/0029Va4QjH7DeON0ePwzjS1A) - **Support:** [`Bot exclusivo`](https://wa.me/message/FETBF7YBO37CG1) - [x] **Configuración** <details><summary>**Ajustes del Servidor - NovaBot-MD**</summary><img src="https://qu.ax/oBeS.jpg"></details> ------------------ ### 🚀 VORTEXUSCLOUD HOST [![blog](https://img.shields.io/badge/Vortexuscloud-NovaBotMD-FF0000?style=for-the-badge&logo=youtube&logoColor=white) ](https://youtu.be/Xp2jRbG_v8o?si=nSAj4vUdz9tS31pO) > Activar NovaBot-MD 24/7 en Vortexuscloud Host <a href="https://vortexuscloud.com"><img src="https://telegra.ph/file/4bd3d8d14e5683073d4f3.jpg" height="125px"></a> ### vortexus cloud - **Pagina Oficial:** [`Vortexuscloud`](https://vortexuscloud.com) - **Crear cuenta en la Dashboard:** [`Dashboard`](https://youtu.be/JUg7DWUY6_Y?si=DHwk9dwjvWdPEIBJ) - **Dashboard:** [`Dash`](https://dash.vortexuscloud.com) - **Panel:** [`Aquí`](https://panel.vortexuscloud.com) - **Contacto:** [`Aquí`](https://wa.me/258858119033) - **Canal de WhatsApp:** [`Aquí`](https://whatsapp.com/channel/0029Va8ZD6O3mFXxTPl1m13A) - [x] **Configuración** <details><summary>**Ajustes del Servidor - NovaBot-MD**</summary><img src="https://telegra.ph/file/5f7ea409a01756d76568f.jpg"></details> ------------------ ### 📌 CAFIREXOS HOST [![blog](https://img.shields.io/badge/Cafirexos-NovaBotMD-FF0000?style=for-the-badge&logo=youtube&logoColor=white) ]() > Activar NovaBot-MD 24/7 en cafirexos Host <a href="https://www.cafirexos.com/"><img src="https://telegra.ph/file/f400ffe819ad3c0fc87b9.jpg" height="125px"></a> ### Información del Host - **Página:** [`Cafirexos`](https://www.cafirexos.com) - **Dashboard:** [`Aquí`](https://dash.cafirexos.com) - **Panel:** [`Aquí`](https://panel.cafirexos.com/) - **Canal de WhatsApp:** [`Aquí`](https://whatsapp.com/channel/0029VaFVSkRCMY0KFmCMDX2q) - **Grupo de WhatsApp:** [`Aquí`](https://chat.whatsapp.com/FBtyc8Q5w2iJXVl5zGJdFJ) - **Correo:** [`Aquí`](mailto:contacto@cafirexos.com) - **Contacto:** [`Diego Flores`](https://wa.me/50497150165) - [x] **Configuración** <details><summary>**Ajustes del Servidor - NovaBot-MD**</summary><img src="https://telegra.ph/file/38d1458d37957d7323e7b.jpg"></details> ------------------ ### 📦⛏️ BOXMINE HOST [![YouTube](https://img.shields.io/badge/BoxMine_Host-World-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@boxminehost) > Boxmine host <a href="https://boxmineworld.com"><img src="https://i.imgur.com/allAyd4.png" height="125px"></a> ### BoxMine World - **Pagina Oficial:** [`Boxmineworld`](https://boxmineworld.com) - **Tutorial - Crear cuenta en la Dashboard:** [`Dashboard`](https://www.youtube.com/watch?v=ZAwBLuNmIlI) - **Dashboard:** [`Dash`](https://dash.boxmineworld.com) - **Panel:** [`Aquí`](https://panel.boxmineworld.com) - **Dudas sobre el Host:** [`Discord`](https://discord.gg/84qsr4v) _(Preguntar por Vicemi)_ - **Canal de WhatsApp:** [`Aquí`](https://whatsapp.com/channel/0029Va71C1q2UPBOICnxu83r) - [x] **Configuración** <details><summary>**Ajustes del Servidor - NovaBot-MD**</summary><img src="https://qu.ax/GVSq.jpg"></details> ------------------ ### 🟢 ACTIVAR EN CODES SPACES [`CREAR SERVIDOR`](https://github.com/codespaces/new?skip_quickstart=true&machine=basicLinux32gb&repo=elrebelde21/NovaBot-MD&ref=main&geo=UsEast) ------------------ ## `𝙴𝙳𝙸𝚃𝙾𝚁 𝚈 𝙿𝚁𝙾𝙿𝙸𝙴𝚃𝙰𝚁𝙸𝙾 𝙳𝙴𝙻 𝙱𝙾𝚃` <a href="https://github.com/elrebelde21"><img src="https://github.com/elrebelde21.png" width="250" height="250" alt="elrebelde21"/></a> ## `👑 𝙲𝙾𝙻𝙰𝙱𝙾𝚁𝙰𝙳𝙾𝚁𝙴𝚂 👑` [![GataNina-Li](https://github.com/GataNina-Li.png?size=100)](https://github.com/GataNina-Li) [![Skidy89](https://github.com/Skidy89.png?size=100)](https://github.com/Skidy89) [![AzamiJs](https://github.com/AzamiJs.png?size=100)](https://github.com/AzamiJs) [![KatashiFukushima](https://github.com/KatashiFukushima.png?size=100)](https://github.com/KatashiFukushima) [![sensei-ofc](https://github.com/sensei-ofc.png?size=100)](https://github.com/sensei-ofc) [![Diego-YL-177](https://github.com/Diego-YL-177.png?size=100)](https://github.com/Diego-YL-177) ## `𝙰𝙶𝚁𝙰𝙳𝙴𝙲𝙸𝙼𝙸𝙴𝙽𝚃𝙾𝚂 & 𝙲𝚁𝙴𝙳𝙸𝚃𝙾𝚂` <a href="https://github.com/ferhacks"><img src="https://github.com/ferhacks.png" width="150" height="150" alt="ferhacks"/></a> <a href="https://github.com/WhiskeySockets/Baileys"><img src="https://github.com/WhiskeySockets.png" width="150" height="150" alt="adiwajshing"/></a>
ʜᴏʟᴀ 👋 ʙɪᴇɴᴠᴇɴɪᴅᴏ 💫 ᴀʟ ʀᴇᴘᴏsɪᴛᴏʀɪᴏ ᴏғɪᴄɪᴀʟ ᴅᴇʟ ɴᴏᴠᴀʙᴏᴛ-ᴍᴅ, ᴇs ᴜɴ ʙᴏᴛ ᴅᴇ ᴡʜᴀᴛsᴀᴘᴘ ғᴜɴᴄɪᴏɴᴀʟ ᴄᴏɴ ʟᴀ ᴠᴇʀsɪᴏɴ ᴍᴜʟᴛɪ-ᴅᴇᴠɪᴄᴇ, ᴀǫᴜɪ sᴇ ʀᴇᴀʟɪᴢᴀʀᴀɴ ᴀᴄᴛᴜʟɪᴢᴀᴄɪᴏɴᴇs, sɪ ᴛᴇ ᴀɢʀᴀᴅᴀ ᴇʟ ʙᴏᴛ ᴍᴇ ᴘᴜᴇᴅᴇ ʀᴇɢᴀʟᴀs ᴜɴᴀ 🌟?, ᴇsᴘᴇʀᴏ ᴛᴇ ɢᴜsᴛᴇ 🤗
api,bot,javascript,md,nodejs,pagina,termux,whatsapp-bot,superbot,botdewhatsapp
2023-08-19T19:45:39Z
2024-05-23T15:11:43Z
2024-01-05T00:21:34Z
16
15
944
5
76
149
null
MIT
JavaScript
akira-cn/http-modular
main
# HTTP-Modular A universal library for converting server-side functions into ES Modules. <img src="https://aircode-yvo.b-cdn.net/resource/modules-9sfv4swzvco.svg" width="200"> **HTTP-Modular is a compact RPC library that unlocks the full potential of BFF (Back end for FrontEnd) capabilities.** Gone are the days of cumbersome code like this: ```js // server-side app.post('/save', async (context) => { ...... const data = await getData(context); const result = await db.save(data); context.body = result; }); ``` ```js // in browser ... const res = await fetch('https://<server.url>:<port>/save', { method: 'POST', body: JSON.stringify(data), headers: { ... } ); const result = await res.json(); ... ``` Embrace the future of coding with modular capabilities: ```js // server-side ... async function save(data) { ...... return await db.save(data); } app.all('/action', modular({save, list, delete}, config.koa)); ``` ```js // in browser import {save, list, delete} from 'https://<server.url>:<port>/action'; ... const result = await save(data); // done! ... ``` ### Explore the Online Demo Server: Check out [the GitHub repository](https://github.com/AirCodeLabs/aircode/tree/main/examples/modular-demo ) Client: Experiment with the library on [CodePen](https://codepen.io/akira-cn/pen/mdQYvmz) ## Features - 🧸 Lightweight and user-friendly design. - 🌎 Compatible everywhere: Supports a wide range of Node.js HTTP servers and cloud environments. HTTP-Modular seamlessly integrates with various environments using dedicated configurations for: - [x] [Koa](https://koajs.com/) - [Integrating with Koa](#1-integrating-with-koa) - [x] [Express](https://expressjs.com/) - [Integrating with Express](#2-integrating-with-express) - [x] [Fastify](https://fastify.dev/) - [Integrating with Fastify](#3-integrating-with-fastify) - [x] [Nitro](https://nitro.unjs.io/) - [Integrating with Nitro](#4-integrating-with-nitro) - [x] [Vercel](https://vercel.com/) - [Integrating with Vercel](#5-integrating-with-vercel-api-functions) - [x] [AirCode](https://aircode.io/) - [Integrating with AirCode](#6-integrating-with-aircode-cloud-functions) - 🧩 Effortless extensibility. Extend HTTP-Modular to other environments like Deno, Edge Runtime, or Ben by crafting custom configurations. ## Quick Started ### 1. Integrating with Koa: ```js import Koa from "koa"; import { bodyParser } from "@koa/bodyparser"; import { modular, context, config } from 'http-modular'; function add(x, y) { return x + y; } const getHost = context(ctx => ctx.request.hostname); const app = new Koa(); app.use(bodyParser()); // response app.use(modular({ add, getHost }, config.koa)); app.listen(3000); ``` ### 2. Integrating with Express: ```js import express from "express"; import bodyParser from 'body-parser'; import { modular, context, config } from 'http-modular'; const app = express(); app.use(bodyParser.json({ limit: '4.5mb', type: '*/*', })); function add(x, y) { return x + y; } const getHost = context(ctx => ctx.request.hostname); function getMessage() { return {hi: 'there'}; } app.all('/', modular({ add, getHost, getMessage }, config.express)); app.listen(3000); ``` ### 3. Integrating with Fastify: ```js import Fastify from 'fastify'; import { modular, context, config } from 'http-modular'; const fastify = Fastify({ logger: true }); function add(x, y) { return x + y; } const getHost = context(ctx => ctx.request.hostname); function getMessage() { return {hi: 'there'}; } // Declare a route fastify.all('/', modular({add, getHost, getMessage}, config.fastify)); // Run the server! fastify.listen({ port: 3000 }, function (err, address) { if (err) { fastify.log.error(err); process.exit(1); } // Server is now listening on ${address} }); ``` ### 4. Integrating with Nitro ```js import { modular, context, config } from 'http-modular'; function add(x, y) { return x + y; } const echo = context(async (ctx) => { return await readBody(ctx); }) function getMessage() { return {hi: 'there'}; } export default eventHandler( modular({add, echo, getMessage}, config.nitro) ); ``` ### 5. Integrating with Vercel API Functions: ```js import { modular, context, config } from 'http-modular'; function add(x, y) { return x + y; } const echo = context(ctx => ctx.request.body); function getMessage() { return {hi: 'there'}; } export default modular({add, echo, getMessage}, config.vercel); ``` ### 6. Integrating with AirCode Cloud Functions: ```js import {config, context, modular} from 'http-modular'; function add(x, y) { return x + y; } const getUrl = context(ctx => ctx.url); export default modular({ add, getUrl, }, config.aircode); ```
A universal library for converting server-side functions into ES Modules.
esmodules,http-server,javascript,nodejs,bff,rpc,rpc-library
2023-08-10T07:43:20Z
2023-08-13T01:32:40Z
null
2
1
37
1
7
143
null
MIT
JavaScript
saif-o99/react-native-best-packages
main
### react-native-best-packages # React Native Packages Guide 🚀 Hey there, React Native devs! Need awesome packages? We've got you! Explore our curated list of React Native gems. No fluff, just what you need. Dive in and level up your app game! </br> ## Rating Criteria -🚀 **Reputation** -🌟 **Popularity** -🛠️ **Maintainability** </br> ## Table of Contents </br> 1. 🔗 [**UI Components Packages**](./sections/ui-components.md) 2. 🔗 [**State Management Packages**](./sections/state-management.md) 3. 🔗 [**Navigation Packages**](./sections/navigation.md) 4. 🔗 [**Networking Packages**](./sections/networking.md) 5. 🔗 [**Database and Storage Packages**](./sections/database-and-storage.md) 6. 🔗 [**Authentication Packages**](./sections/authentication.md) 7. 🔗 [**Animations Packages**](./sections/animations.md) 8. 🔗 [**Notifications Packages**](./sections/notifications.md) 9. 🔗 [**Testing Packages**](./sections/testing.md) 10. 🔗 [**Analytics and Logging Packages**](./sections/analytics-and-logging.md) 11. 🔗 [**Internationalization Packages**](./sections/internationalization.md) 12. 🔗 [**Development Tools Packages**](./sections/development-tools.md) 13. 🔗 [**Forms Packages**](./sections/forms.md) 14. 🔗 [**Camera Packages**](./sections/camera-related.md) 15. 🔗 [**Location Packages**](./sections/location.md) 16. 🔗 [**Device Sensors Packages**](./sections/device-sensors.md) 17. 🔗 [**Files System Packages**](./sections/file-system.md) 18. 🔗 [**Audio/Video Packages**](./sections/audio-video.md) 19. 🔗 [**Real-Time Communication Packages**](./sections/real-time-communication.md) 20. 🔗 [**Payment Packages**](./sections/payment.md) 21. 🔗 [**WebView Packages**](./sections/webview.md) 22. 🔗 [**Accessibility Packages**](./sections/accessibility.md) 23. 🔗 [**Date Packages**](./sections/date.md) 24. 🔗 [**Dialogs / Sheets / Toasts / Alerts Packages**](./sections/dialogs-sheets-toasts.md) 25. 🔗 [**QR Code Packages**](./sections/qr-code.md) 26. 🔗 [**Social Sharing Packages**](./sections/social-sharing.md) 27. 🔗 [**Encryption Packages**](./sections/encryption.md) 28. 🔗 [**Contacts / SMS Packages**](./sections/contacts-sms.md) 30. 🔗 [**App Store Related Packages**](./sections/app-store.md) 31. 🔗 [**Images / Caching / Editing Packages**](./sections/images-caching-editing.md) 32. 🔗 [**Miscellaneous Packages**](./sections/miscellaneous.md) </br> ## Contribution Feel free to add packages you think it should be in the list. </br> Also you can open an issue if you notice something wrong 👍. </br>
React native packages guide
javascript,react-native
2023-08-20T20:57:22Z
2023-09-22T08:51:32Z
null
2
1
49
0
12
143
null
Apache-2.0
null
bin-zhi/vue2-visualization-LargeScreen
main
# vue2-visualization-LargeScreen 基于vue2+vuex+router+echarts的数据可视化大屏,使用缩放进行了屏幕的适配 用于vue2+Datv+echarts,内部图标以进行封装,可以直接传入数据使用 在线地址 `https://my-bin.github.io/vue2-visualization-LargeScreen/dist` ![image](https://github.com/My-bin/vue2-visualization-LargeScreen/assets/112331060/208ac88e-72ef-4d96-bbe7-b746e433cfab) 配备话大屏自适应,利用与缩放比例进行计算,可试用用不同屏幕,解决了适配问题
基于vue2+vuex+router+echarts的数据可视化大屏,使用缩放进行了屏幕的适配
echarts,javascript,vue2,vuex
2023-08-29T15:14:55Z
2023-08-31T07:38:29Z
null
1
0
5
0
7
135
null
null
Vue
Eltik/Anify
main
# Anify Robust anime, manga, and light novel web-app. ## Installation **NOTE:** This project utilizes [Bun](https://bun.sh). Please install it before attempting to run Anify. 1. Clone this repository and `cd` into the directory. ```bash git clone https://github.com/Eltik/Anify.git ``` 2. Run `bun i`. This will install the `node_modules` dependencies for all sub-repos. 3. Run `bun run lint` and `bun run build` to build all directories. 4. View each directory's `README.MD` file for additional installation/requirements. 5. Run `bun start` to startup all services using pm2 via the `/anify-startup` directory. If you wish to individually startup a specific service, you can `cd` into a directory and run `bun start` or `bun dev`. ## How it Works Anify's core components are the backend and frontend. Using custom mappings without the use of external API's such as [Simkl](https://simkl.com) and [MALSync](https://malsync.moe), the backend maps all types of Japanese media and gathers information before storing the mappings in a database. For creating a full-stack website, the frontend then requests data on the server-side to fetch episodes/chapters and sources/pages from the backend allowing for a smooth and secure experience watching anime and reading manga/light novels. Additionally, there is an authentication server for tracking your favorite shows and series on a preferred website. ## Basic Pre-Requisites ### Bun As you may expect, Anify requires NodeJS. However, for performance sake, Anify utilizes [Bun](https://bun.sh) for the fastest response times possible. ```bash curl -fsSL https://bun.sh/install | bash ``` ### Redis For caching purposes, Anify uses Redis to store data temporarily (usually for about an hour). ```bash # Prerequisites sudo apt install lsb-release # Signing and packages and stuff curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list # Installation sudo apt-get update sudo apt-get install redis # Start sudo redis-server # Flushes the database redis-cli flushall ``` ## Conclusion That's it! For more detailed information on starting up individual sources, take a look at the respected directories.
Advanced scraping, mapping, and full-stack anime/manga/light novel application.
anime,api,backend,discord-bot,express,frontend,fullstack,javascript,lightnovels,manga
2023-08-26T14:34:10Z
2024-04-29T05:32:25Z
2023-12-31T09:36:03Z
6
30
306
3
44
134
null
null
TypeScript
watermark-design/watermark
main
<p align="center"> <a href="https://watermark-design.github.io/watermark/" target="_blank" rel="noopener noreferrer"> <img height="100" src="https://watermark-design.github.io/watermark/full-logo.png" alt="watermark design"> </a> </p> <p align="center"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/watermark-design/watermark/deploy.yml?branch=main"> <img alt="GitHub" src="https://img.shields.io/github/license/watermark-design/watermark"> <a href="https://discord.gg/V5msNXCE"><img src="https://img.shields.io/discord/1170204572254474300" alt="Join the chat"></a> </p> # Watermark Works with both Vue 2 , Vue 3 And React. ## Translations - [中文文档](README_zh.md) ## Usage ### Vue <a href="https://npmjs.com/package/@watermark-design/vue"><img src="https://badgen.net/npm/v/@watermark-design/vue" alt="npm package"></a> <img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@watermark-design/vue"> <img alt="npm download week" src="https://img.shields.io/npm/dw/@watermark-design/vue"> ```ts import WatermarkDesign from '@watermark-design/vue'; app.use(WatermarkDesign); ``` ```vue <Watermark content="hello watermark" :width="200" :height="200"> <div style="height: 400px"></div> </Watermark> ``` ### React <a href="https://npmjs.com/package/@watermark-design/react"><img src="https://badgen.net/npm/v/@watermark-design/react" alt="npm package"></a> <img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@watermark-design/react"> <img alt="npm download week" src="https://img.shields.io/npm/dw/@watermark-design/react"> ```ts import { Watermark } from '@watermark-design/react'; ``` ```jsx <Watermark width={200} height={200} content={inputValue}> <div style={{ height: 400 }}></div> </Watermark> ``` ### Dom <a href="https://npmjs.com/package/@watermark-design/dom"><img src="https://badgen.net/npm/v/@watermark-design/dom" alt="npm package"></a> <img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@watermark-design/dom"> <img alt="npm download week" src="https://img.shields.io/npm/dw/@watermark-design/dom"> ```ts import { Watermark } from '@watermark-design/dom'; const watermark = new Watermark({ content: 'hello my watermark', width: 200, height: 200, }); watermark.create(); ``` ## Documentation To learn more, check [its documentation](https://watermark-design.github.io/watermark/). ## Maintainers [@zhensherlock](https://github.com/zhensherlock). ## Contributing Feel free to dive in! [Open an issue](https://github.com/watermark-design/watermark/issues/new/choose) or submit PRs. Standard Readme follows the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) Code of Conduct. ### Contributors This project exists thanks to all the people who contribute. <a href="https://github.com/watermark-design/watermark/graphs/contributors"> <img src="https://contrib.rocks/image?repo=watermark-design/watermark" /> </a> ## License [MIT](LICENSE) © MichaelSun
watermark for the browser
canvas,javascript,typescript,watermark,watermark-design
2023-09-07T02:16:02Z
2024-05-22T06:11:04Z
2024-05-22T06:11:11Z
1
186
954
1
3
129
null
MIT
TypeScript
tinijs/tinijs
main
# TiniJS Framework The TiniJS Framework is a family of tools for building modern web applications based on the [Lit library](https://lit.dev). For more detail and usage, please visit <https://tinijs.dev> > The experimetal packages (0.16.0 and below) were archived. Moving forward, this repo will be the new home of the TiniJS Framework. ## Introduction The TiniJS Framework (meta-framework) is a collection of tools for building web applications from start to finish comparable to other frameworks like Next.js, Nuxt.js, SvelteKit, ... The difference is that it is based on the [Lit library](https://lit.dev) and aims to provide a native, lightweight, interoperable platform for building web applications. I started the project as an experimental pet project back in December 2022, I worked for about a month mainly on the [Core](https://github.com/tinijs/core) package. But then have to pause for a while due to a tight work schedule. I resumed the experiment in July 2023, and I have worked on the project in my free time since. Adding packages: [CLI](https://github.com/tinijs/cli), [UI](https://github.com/tinijs/ui), [Router](https://github.com/tinijs/router), [State management](https://github.com/tinijs/store), [PWA](https://github.com/tinijs/pwa), ... I wrapped up the experiment in March 2024 and headed for the 1.0 version in 2024. ## Roadmap & Plan I have many ideas for the project, but as a solo developer, there are limitations. So besides working on my own, I am also looking for sponsors, **adopters** or **part-time employers** who allow me to continue work on the project. If you are interested in the project, please consider contributing. Get in touch with me on [Discord](https://discord.gg/EABbZVbPAb) or [Email](hello@tinijs.dev), I am happy to discuss the project with you. ### V1.0 I hope that I can reach some candidate versions in 2024 and release the 1.0 version by 2025. The following is the plan for the first version: - Core: - Homepage, documentation and examples - Core functionalities & unit test [@tinijs/core](https://github.com/tinijs/tinijs/tree/main/packages/core) - Verify implementation of [@tinijs/router](https://github.com/tinijs/tinijs/tree/main/packages/router), [@tinijs/store](https://github.com/tinijs/tinijs/tree/main/packages/store) and [@tinijs/meta](https://github.com/tinijs/tinijs/tree/main/packages/meta) - Re-implement the [@tinijs/pwa](https://github.com/tinijs/tinijs/tree/main/packages/pwa) module - UI: - Optimize the [@tinijs/ui](https://github.com/tinijs/tinijs/tree/main/packages/ui) implementation - Implement the UI and Icons builder - Add some components: code, embed, table, image, figure, ... - Add Material V3 theme family - Add Fluent theme family (hopefully) - Server & modules: - Implement [@tinijs/server](https://github.com/tinijs/tinijs/tree/main/packages/server) - Implement [@tinijs/content](https://github.com/tinijs/tinijs/tree/main/packages/content) module - Recipes for adding different server solutions: Firebase, Strapi, tRPC, Nest, Tauri, Axum, ... - CLI & tools - New [@tinijs/cli](https://github.com/tinijs/tinijs/tree/main/packages/cli) architecture supports expandable commands - Better `new` command - Implement [@tinijs/default-compiler](https://github.com/tinijs/tinijs/tree/main/packages/default-compiler) - Implement [@tinijs/parcel-builder](https://github.com/tinijs/tinijs/tree/main/packages/parcel-builder) - Implement [@tinijs/vite-builder](https://github.com/tinijs/tinijs/tree/main/packages/vite-builder) - Implement [@tinijs/webpack-builder](https://github.com/tinijs/tinijs/tree/main/packages/webpack-builder) - Unit test the CLI, compilers and builders - Others: - Setup the monorepo - CI/CD pipeline - Release & Changelog ### Future versions? If version 1.0 turns out to be useful, I will continue to work on the project and add more features and tools to the framework. Something may be considered: - UI components and theme families - More useful components and blocks - More theme families: Fluent, iOS, Ant, Spectrum, Shoelace, PrimeNG, Element Plus, ... - Supports server-side rendering - Admin dashboard for managing content and other aspects of the application - More modules for other purposes to extend the framework - A collection of templates for different types of applications (similar to WordPress themes) - A visual editor where we can drag and drop components, blocks, design skins, ... ## Development - Fork the repository - Install the dependencies: `npm i`. Install new dependencies for a specific package: `npm i <name> -w @tinijs/<package-name>` - Format: `npm run fix` - Lint: `npm run lint` - Test: `npm run test` - Build: - All: `npm run build` - Specific: `npm run build -- --scope @tinijs/<package-name>` ## Release The `npm run release` script does the following: 1. Release the main packages inside `./packages` using Lerna (**MUST** run first) 2. Release the `@tinijs/ui-*` packages inside `./packages/ui/build` using a custom script ### Prebuilt UI packages Prebuilt UI packages are released using the `release-ui` script. ```bash npx tsx ./scripts/release-ui.mts ``` | Option | Description | | --- | --- | | `--dir <path>` | The path to the UI build dir, default `./packages/ui/build` | | `--pick <names>` | Pick certain packages to release, provide dir names in comma-separated | | `--version <value>` | Provide a version, default to field `version` in lerna.json | ## License **The TiniJS Framework** is released under the [MIT](./LICENSE) license.
The TiniJS Framework 🥚
angular,javascript,lit,react,svelte,vue,webcomponents
2023-08-27T12:33:24Z
2024-05-18T07:06:45Z
2024-05-16T09:21:35Z
1
20
22
2
4
121
null
MIT
TypeScript
basehub-ai/basehub
main
./packages/basehub/README.md
SDK for BaseHub—Fast, Collaborative, AI-Native Content Management.
cms,graphql,javascript,typescript,basehub,content
2023-08-16T23:32:22Z
2024-05-21T15:16:31Z
2024-05-21T15:17:09Z
5
93
416
3
8
117
null
MIT
TypeScript
jsbenchmark/jsbenchmark
main
# JS Benchmark Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. ## Setup Make sure to install the dependencies: ```bash pnpm install ``` ## Development Server Start the development server on `http://localhost:3000`: ```bash pnpm run dev ``` ## Production Build the application for production: ```bash pnpm run build ``` Locally preview production build: ```bash pnpm run preview ``` Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
A straightforward JavaScript benchmarking tool and REPL with support for ES modules and libraries.
benchmark,javascript,nuxt,typescript
2023-08-23T20:39:32Z
2024-05-22T22:11:28Z
null
2
3
74
0
1
112
null
MIT
Vue
meysamhadeli/booking-microservices-expressjs
main
<div align="center" style="margin-bottom:20px"> <img src="assets/logo.png" alt="booking-microservices-express-js" /> <div align="center"> <a href="https://github.com/meysamhadeli/booking-microservices-expressjs/actions/workflows/ci.yml"><img src="https://github.com/meysamhadeli/booking-microservices-expressjs/actions/workflows/ci.yml/badge.svg?branch=main&style=flat-square"/></a> <a href="https://github.com/meysamhadeli/booking-microservices-express-js/blob/main/LICENSE"><img src="https://img.shields.io/github/license/meysamhadeli/booking-microservices-express-js?color=%234275f5&style=flat-square"/></a> </div> </div> > **A practical and imaginary microservices for implementing an infrastructure for up and running distributed system with the latest technology and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, Postgres, RabbitMq and Express in Node.Js.** 🚀 > 💡 **This project is not business-oriented and most of my focus was in the thechnical part for implement a distributed system with a sample project. In this project I implemented some concept in microservices like Messaging, Tracing, Event Driven Architecture, Vertical Slice Architecture, CQRS.** > **You can find `Nestjs` ported of this project in this link:** 🔗 [booking-microservices-nestjs](https://github.com/meysamhadeli/booking-microservices-nestjs) <a href="https://gitpod.io/#https://github.com/meysamhadeli/booking-microservices-express"><img alt="Open in Gitpod" src="https://gitpod.io/button/open-in-gitpod.svg"/></a> # Table of Contents - [The Goals of This Project](#the-goals-of-this-project) - [Plan](#plan) - [Technologies - Libraries](#technologies---libraries) - [The Domain and Bounded Context - Service Boundary](#the-domain-and-bounded-context---service-boundary) - [Structure of Project](#structure-of-project) - [How to Use Migrations](#how-to-use-migrations) - [How to Run](#how-to-run) - [Docker-Compose](#docker-compose) - [Build](#build) - [Run](#run) - [Test](#test) - [Documentation Apis](#documentation-apis) - [Support](#support) - [Contribution](#contribution) ## The Goals of This Project - :sparkle: Using `Vertical Slice Architecture` for `architecture` level. - :sparkle: Using `Rabbitmq` on top of `amqp` for `Event Driven Architecture` between our microservices. - :sparkle: Using `Data Centric` Architecture based on CRUD in all Services. - :sparkle: Using `Rest` for `internal communication` between our microservices with `axios`. - :sparkle: Using `CQRS` implementation with `MediatrJs` internal library. - :sparkle: Using `Express` for `web framework`. - :sparkle: Using `Postgres` for database level with `typeorm`. - :sparkle: Using `tsyringe` for handling `dependency injection`. - :sparkle: Using `Passport` for `authentication` and `authorization`, base on `JWT`. - :sparkle: Using `OpenTelemetry` for distributed tracing top of `Jaeger` and `Zipkin`. - :sparkle: Using `OpenTelemetry` for monitoring top of `Prometteuse` and `Grafana`. - :sparkle: Using `Joi` for `validation` input in our handlers and endpoints. - :sparkle: Using `dotenv` for `configuration` management. - :sparkle: Using `Unit Testing` for testing `small units` and `mocking` our dependencies with `Jest`. - :sparkle: Using `End-To-End Testing` and `Integration Testing` for testing `features` with all dependencies using `testcontainers`. - :sparkle: Using `winston` and 'morgan' for `logging`. - :sparkle: Using `swagger-ui-express` and `tsoa` for generate `api documentation` automatically. - :sparkle: Using `ts-mapper` for `mapping` our objects. - :sparkle: Using `Problem Details` standard for `readable details of errors`. - :sparkle: Using `eslint` and `prettier` for `formatting` of our code. - :sparkle: Using `Docker-Compose` for our `deployment` mechanism. - :construction: Using `MongoDB` for read side with `mongoose`. - :construction: Using `Domain Driven Design` (DDD) to implement all `business` processes in microservices. - :construction: Using `Inbox Pattern` for ensuring message idempotency for receiver and `Exactly once Delivery`. - :construction: Using `Outbox Pattern` for ensuring no message is lost and there is at `At Least One Delivery`. ## Plan > 🌀This project is a work in progress, new features will be added over time.🌀 I will try to register future goals and additions in the [Issues](https://github.com/meysamhadeli/booking-microservices-express-js/issues) section of this repository. High-level plan is represented in the table | Feature | Status | | ----------------- | -------------- | | Identity Service | Completed ✔️ | | Flight Service | Completed ✔️ | | Passenger Service | Completed ✔️ | | Booking Service | Completed ✔️ | | Building Blocks | Completed ✔️ | ## Technologies - Libraries - ✔️ **[`microsoft/TypeScript`](https://github.com/microsoft/TypeScript)** - TypeScript is a language for application-scale JavaScript. - ✔️ **[`expressjs/express`](https://github.com/expressjs/express)** - Fast, unopinionated, minimalist web framework for Node.js - ✔️ **[`typeorm/typeorm`](https://github.com/typeorm/typeorm)** - TypeORM is highly influenced by other ORMs, such as Hibernate, Doctrine and Entity Framework - ✔️ **[`amqp-node/amqplib`](https://github.com/amqp-node/amqplib)** - A library for making AMQP 0-9-1 clients for Node.JS - ✔️ **[`microsoft/tsyringe`](https://github.com/microsoft/tsyringe)** - A lightweight dependency injection container for TypeScript/JavaScript for constructor injection - ✔️ **[`jaredhanson/passport`](https://github.com/jaredhanson/passport)** - Passport is Express-compatible authentication middleware for Node.js - ✔️ **[`open-telemetry/opentelemetry-js`](https://github.com/open-telemetry/opentelemetry-js)** - A framework for collecting traces, metrics, and logs from applications - ✔️ **[`siimon/prom-client`](https://github.com/siimon/prom-client)** - A prometheus client for Node.js that supports histogram, summaries, gauges and counters - ✔️ **[`scottie1984/swagger-ui-express`](https://github.com/scottie1984/swagger-ui-express)** - Serve auto-generated swagger-ui generated API docs from express - ✔️ **[`lukeautry/tsoa`](https://github.com/lukeautry/tsoa)** - OpenAPI-compliant REST APIs using TypeScript and Node - ✔️ **[`axios/axios`](https://github.com/axios/axios)** - Promise based HTTP client for the browser and node.js - ✔️ **[`motdotla/dotenv`](https://github.com/motdotla/dotenv)** - Dotenv is a zero-dependency module that loads environment variables from a .env - ✔️ **[`PDMLab/http-problem-details`](https://github.com/PDMLab/http-problem-details)** - This library implements HTTP Problem details (RFC 7807) for HTTP APIs - ✔️ **[`helmetjs/helmet`](https://github.com/helmetjs/helmet)** - Helmet helps secure Express apps by setting HTTP response headers - ✔️ **[`hapijs/joi`](https://github.com/hapijs/joi)** - The most powerful schema description language and data validator for JavaScript - ✔️ **[`expressjs/morgan`](https://github.com/expressjs/morgan)** - HTTP request logger middleware for node.js - ✔️ **[`winstonjs/winston`](https://github.com/winstonjs/winston)** - A logger for just about everything - ✔️ **[`jestjs/jest`](https://github.com/jestjs/jest)** - A javascript framework for testing - ✔️ **[`testcontainers/testcontainers-node`](https://github.com/testcontainers/testcontainers-node)** - A library to support tests with throwaway instances of Docker containers - ✔️ **[`faker-js/faker`](https://github.com/faker-js/faker)** - Generate massive amounts of fake (but realistic) data for testing and development - ✔️ **[`florinn/typemoq`](https://github.com/florinn/typemoq)** - Simple mocking library for JavaScript targeting TypeScript development - ✔️ **[`ladjs/supertest`](https://github.com/ladjs/supertest)** - High-level abstraction for testing HTTP - ✔️ **[`eslint/eslint`](https://github.com/eslint/eslint)** - ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code - ✔️ **[`prettier/prettier`](https://github.com/prettier/prettier)** - Opinionated Code Formatter - ✔️ **[`vercel/async-retry`](https://github.com/vercel/async-retry)** - Retrying made simple, easy, and async - ✔️ **[`MarluanEspiritusanto/ts-mapper`](https://github.com/MarluanEspiritusanto/ts-mapper)** - A mapper for mapping one object to another ## The Domain And Bounded Context - Service Boundary - `Identity Service`: The Identity Service is a bounded context for the authentication and authorization of users using [passport](https://github.com/jaredhanson/passport). This service is responsible for creating new users and their corresponding roles and permissions using Jwt for authentication and authorization. - `Flight Service`: The Flight Service is a bounded context `CRUD` service to handle flight related operations. - `Passenger Service`: The Passenger Service is a bounded context for managing passenger information, tracking activities and subscribing to get notification for out of stock products. - `Booking Service`: The Booking Service is a bounded context for managing all operation related to booking ticket. ![](./assets/booking-microservices.png) ## Structure of Project In this project I used a mix of [clean architecture](https://jasontaylor.dev/clean-architecture-getting-started/), [vertical slice architecture](https://jimmybogard.com/vertical-slice-architecture/) and I used [feature folder structure](http://www.kamilgrzybek.com/design/feature-folders/) to structure my files. Each microservice has its dependencies such as databases, files etc. Each microservice is decoupled from other microservices and developed and deployed separately. Microservices talk to each other with Rest or gRPC for synchronous calls and use RabbitMq or Kafka for asynchronous calls. We have a separate microservice `Identity` for authentication and authorization of each request. Once signed-in users are issued a JWT token. This token is used by other microservices to validate the user, read claims and allow access to authorized/role specific endpoints. I used [RabbitMQ](https://github.com/rabbitmq) as my MessageBroker for async communication between microservices using the eventual consistency mechanism. Each microservice uses [amqp](https://github.com/amqp-node/amqplib) to interface with [RabbitMQ](https://github.com/rabbitmq) providing, messaging, availability, reliability, etc. Microservices are `event based` which means they can publish and/or subscribe to any events occurring in the setup. By using this approach for communicating between services, each microservice does not need to know about the other services or handle errors occurred in other microservices. I treat each request as a distinct use case or slice, encapsulating and grouping all concerns from front-end to back. When adding or changing a feature in an application in n-tire architecture, we are typically touching many "layers" in an application. We are changing the user interface, adding fields to models, modifying validation, and so on. Instead of coupling across a layer, we couple vertically along a slice. We `minimize coupling` `between slices`, and `maximize coupling` `in a slice`. With this approach, each of our vertical slices can decide for itself how to best fulfill the request. New features only add code, we're not changing shared code and worrying about side effects. <div align="center"> <img src="./assets/vertical-slice-architecture.png" /> </div> Instead of grouping related action methods in one controller, as found in traditional ASP.net controllers, I used the [REPR pattern](https://deviq.com/design-patterns/repr-design-pattern). Each action gets its own small endpoint, consisting of a route, the action, and an `IMediator` instance (see [MediatR](https://github.com/jbogard/MediatR)). The request is passed to the `IMediator` instance, routed through a [`Mediatr pipeline`](https://lostechies.com/jimmybogard/2014/09/09/tackling-cross-cutting-concerns-with-a-mediator-pipeline/) where custom [middleware](https://github.com/jbogard/MediatR/wiki/Behaviors) can log, validate and intercept requests. The request is then handled by a request specific `IRequestHandler` which performs business logic before returning the result. The use of the [mediator pattern](https://dotnetcoretutorials.com/2019/04/30/the-mediator-pattern-in-net-core-part-1-whats-a-mediator/) in my controllers creates clean and [thin controllers](https://codeopinion.com/thin-controllers-cqrs-mediatr/). By separating action logic into individual handlers we support the [Single Responsibility Principle](https://en.wikipedia.org/wiki/Single_responsibility_principle) and [Don't Repeat Yourself principles](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself), this is because traditional controllers tend to become bloated with large action methods and several injected `Services` only being used by a few methods. I used CQRS to decompose my features into small parts that makes our application: - Maximize performance, scalability and simplicity. - Easy to maintain and add features to. Changes only affect one command or query, avoiding breaking changes or creating side effects. - It gives us better separation of concerns and cross-cutting concern (with help of mediatr behavior pipelines), instead of bloated service classes doing many things. Using the CQRS pattern, we cut each business functionality into vertical slices, for each of these slices we group classes (see [technical folders structure](http://www.kamilgrzybek.com/design/feature-folders)) specific to that feature together (command, handlers, infrastructure, repository, controllers, etc). In our CQRS pattern each command/query handler is a separate slice. This is where you can reduce coupling between layers. Each handler can be a separated code unit, even copy/pasted. Thanks to that, we can tune down the specific method to not follow general conventions (e.g. use custom SQL query or even different storage). In a traditional layered architecture, when we change the core generic mechanism in one layer, it can impact all methods. ## How to Use Migrations > Note: For easy using of migrations commands in typeorm, I add some scripts in `package.json` and base on these scripts we can use below commands to generate and run migrations easily. For `generating` a new migration use this command in the root of each microservice: ```bash npm run migration:generate -- src/data/migrations/new-migration-name ``` Also for `running` migration use this command in the root of each microservice: ```bash npm run migration:run ``` ## How to Run > ### Docker Compose Use the command below to run our `infrastructure` with `docker` using the [infrastructure.yaml](./deployments/docker-compose/infrastructure.yaml) file at the `root` of the app: ```bash docker-compose -f ./deployments/docker-compose/infrastructure.yaml up -d ``` ##### Todo I will add `docker-compsoe` for up and running whole app here in the next... > ### Build To `build` each microservice, run this command in the root directory of each microservice where the `package.json` file is located: ```bash npm run build ``` > ### Run To `run` each microservice, run this command in the root of the microservice where `package.json` is located: ```bash npm run dev ``` > ### Test To `test` each microservice, run this command in the root directory of the microservice where the `package.json` file is located: ```bash npm test ``` > ### Documentation Apis Each microservice has a `Swagger OpenAPI`. Browse to `/swagger` for a list of endpoints. As part of API testing, I created the [booking.rest](./booking.rest) file which can be run with the [REST Client](https://github.com/Huachao/vscode-restclient) `VSCode plugin`. # Support If you like my work, feel free to: - ⭐ this repository. And we will be happy together :) Thanks a bunch for supporting me! ## Contribution Thanks to all [contributors](https://github.com/meysamhadeli/booking-microservices-express-js/graphs/contributors), you're awesome and this wouldn't be possible without you! The goal is to build a categorized, community-driven collection of very well-known resources. Please follow this [contribution guideline](./CONTRIBUTION.md) to submit a pull request or create the issue. ## Project References & Credits - [https://github.com/jbogard/ContosoUniversityDotNetCore-Pages](https://github.com/jbogard/ContosoUniversityDotNetCore-Pages) - [https://github.com/hagopj13/node-express-boilerplate](https://github.com/hagopj13/node-express-boilerplate) ## License This project is made available under the MIT license. See [LICENSE](https://github.com/meysamhadeli/booking-microservices-express-js/blob/main/LICENSE) for details.
Practical microservices, built with Node.Js, CQRS, Vertical Slice Architecture, Event-Driven Architecture, Postgres, RabbitMq, Express and the latest technologies.
docker,rabbitmq,typeorm,vertical-slice-architecture,express,javascript,nodejs,typescript,node-js,node
2023-09-01T19:35:50Z
2024-05-13T19:03:46Z
null
1
0
145
1
10
101
null
MIT
TypeScript
milad-azami/js-products-page-files
main
null
Required files to start Products Page Project in "Javascript Full Course" - Botostart.ir
botostart,javascript,project
2023-08-24T12:02:48Z
2023-08-24T12:13:33Z
null
1
0
3
0
0
99
null
null
HTML
vnyoon/web-magic
master
## Web Magic 欢迎来到`web-magic`专栏!在这个`repo`中,我们将一起探索`HTML`、`CSS`和`JavaScript`的奇妙世界,并创作展示出各种令人惊叹的案例和创意~ * 无论你是一位 ***初学者*** 还是 ***经验丰富*** 的开发者,本`repo`都将为你带来灵感和知识。 * 本`repo`将通过很多实际案例来演示如何运用`HTML`、`CSS`和`JavaScript`创建各种互动性、生动性的触感和视觉效果等。 在`web-magic`专栏中,你将学会: * 创新的用户界面:如何使用**前端三剑客**创建引人注目的用户界面,让用户在网站上体验变得更加**交互和愉悦**。 * 酷炫特效与动画:如何使用**纯CSS**的过渡和动画特性,以及`JavaScript库`如`Animate.css`和`GreenSock`等,为网页增添**动态效果和吸引力**。 * 响应式布局技巧:如何使用CSS的弹性盒子 **(flexbox)** 和网格布局 **(grid)** 等技术,使网页在不同设备上自适应并呈现**最佳的外观**。 总而言之无论你是想提升自己的前端开发技能,还是寻找灵感和创意,`web-magic`专栏都将为你带来一系列令人惊叹的案例和教程。让我们一同探索这个`"魔幻的世界"`吧! ### 目录 01. [脉冲动画效果懒加载图片➕](./01_pulse-lazy-loading-img) 02. [使用CSS技巧实现图片与卡片交叉处的平滑效果⚪](./02_border-radius-card) 03. [文本输入/打字机动画效果⌨️](./03_typing-text-effect) 04. [`Cropper.js` - 裁剪并下载图片✂️](./04_crop-download-image) 05. [创造图片像素化动画效果💥](./05_pixel-image-animation) 06. [炫酷的"文字(字母&数字)雨"动画🌧️](./06_text-rain-animation) 07. [创意按钮交互 - 方向感知磁性悬停效果🧲](./07_direction-aware-magnetic-hover-effect/) 08. [CSS 中的疯狂杂志折叠效果🈁](./08_mad-magazine-foldin-effect-in-css) 09. [创意菜单交互 - 快捷导航悬停效果🧇](./09_menu-hover-effects) 10. [「输入框」上的占位文本动画效果🌊](./10_wavy-input-text-animation) 11. [水果风味的苏打水轮播图🍓](./11_fruit-flavor-soda-carousel) 12. [「3D视觉相册」画廊展示旋转播放走马灯🏮](./12_3d-image-gallery) 13. [「滚动绽放」实现页面滚动时逐渐展示/隐藏元素🏳️‍🌈](./13_scroll-to-reveal-animation) 14. [「登录面板」现代登录/注册页面展示®️](./14_login-register-page) 15. [「文本灯光」Text文本上的锥形探照灯动画效果🔦](./15_text-light-animation) 16. [「流光边框」CSS巧妙实现元素的流动边框动画效果💥](./16_flow-border-animation) 17. [CSS轻松实现玻璃拟态质感的卡片与:has()选择器🪟](./17_glassmorphism-cards-hover-effects) 18. [CSS简单实现3D香烟动画🚬](./18_no-smoking) 19. [「堆叠照片」张张都是焦点的轮播图片效果🥪](./19_stacked-photo-carousel) 20. [点亮网页的星星粒子动画效果🌟](./20_star-particles) 21. [CSS创建loading动画效果🦚](./21_loading-animation) 22. [CSS选择器创建从平凡到立体的3D独特视觉效果👁️](./22_css-3d-hover) 23. [一切尽在CSS制作卡牌悬停动画效果之中🎴](./23_playing-card-hover) 24. [CSS一步步制作全屏滚动进度条指示器🛬](./24_scroll-progress) 24. [创意卡片交互 - 元素发光边角/框悬停效果⬛](./25_glowing-corner-hover) 26. [无限滚动文本和图像的动画效果🎢](./26_infinite-scrolling-animation) 27. [赋予图标动感十足的悬停交互效果🏠](./27_icons-hover-effects) 28. [简单生动的屏幕预加载动画效果🐌](./28_screen-preloader) 29. [「律动之光」图形与炫彩背景的交互动画效果⚪](./29_collision-random-bg) 30. [交错旋转的漩涡背景动画效果🌀](./30_swirl-background) 31. [创意列表交互:带有焦点的排行榜悬停效果🏅](./31_list-hover) 32. [丰富的CSS Loading动画,给网页注入活力🔶](./32_simple-loading-animation) 33. [圆形文本鼠标光标动画效果🏵️](./33_circle-text-mousemove)
这个repo通过实际案例来演示如何运用HTML、CSS和JavaScript创建各种互动性、独特性、动感酷炫和视觉效果。
css3,front-end-development,html5,javascript,awesome-web-magic,frontend,animation
2023-08-29T10:33:14Z
2023-12-22T02:07:06Z
null
1
0
152
1
18
98
null
MIT
CSS
zachbutton/crystalize.js
main
![Branches](./badges/coverage-branches.svg) ![Functions](./badges/coverage-functions.svg) ![Lines](./badges/coverage-lines.svg) ![Statements](./badges/coverage-statements.svg) ![Jest coverage](./badges/coverage-jest%20coverage.svg) [![NPM version](https://img.shields.io/npm/v/crystalize.js?style=flat-square)](https://img.shields.io/npm/v/crystalize.js?style=flat-square) [![Package size](https://img.shields.io/bundlephobia/min/crystalize.js)](https://img.shields.io/bundlephobia/min/crystalize.js) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) # Crystalize.js [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=A%20reducer%20on%20steroids%2C%20but%20if%20reducers%20had%20undo%2Fredo%20and%20time-travel.&url=https://github.com/zachbutton/crystalize.js) Welcome to Crystalize.js, where state management gets a transformative twist. This isn't just another reducer; it's a game-changer that lets you retain, navigate, and selectively aggregate your data. Here, 'crystals' are your final state, 'shards' are the elements you feed in, and—here's the kicker—the 'base crystal' is your initial point, accumulating the shards you don't need immediate access to, while also maintaining your prior aggregation (or state). [What are 'Crystals' and 'Shards'? And why?](#what-are-crystals-and-shards-and-why) Basic operation is easy and intuitive, using `.with()` to add shards to your crystalizer, and `.take(N)` to take your final crystal (state), N count of shards, and your 'base crystal'. Feeling selective? Use `.without()` to filter out shards. Want to navigate through your state's history? Meet `.leave()` and .`focus()`, your time-traveling tools. Initialization is a breeze with options to sort, map, timestamp, and even set shard retention limits. So, are you ready to rewrite the rules of state management? Dive into Crystalize.js and discover the future, today! Here's how to harness the transformative power of Crystalize.js for your projects: 1. 🚀 **Enhanced State Management**: Use a Crystal as your app's core state. It's like traditional state management, but on steroids. 2. 🕰 **Journey Through Time**: Enable users to navigate the progression of your app state—whether for simple undo/redo functions or a time-travel-based gaming experience. 3. 🗺 **Chronological Data Exploration**: Like seasoned explorers mapping new territories, journey back to analyze your data at specific moments. 4. 🌊 **Event-Driven State Insights**: Like the layers of an iceberg, capture state changes influenced by events, gaining deeper insights into their impact. 5. 👁️ **Dynamic State Watcher**: Track subtle shifts and transformations, capturing the essence of your data's evolution. 6. 🎨 **Precision Data Sculpting**: Mold and refine your data landscape, crafting it to perfection. ## Table of contents <!-- toc --> - [Installation](#installation) - [API reference](#api-reference) - [Samples](#samples) - [FAQ](#faq) - [What are 'Crystals' and 'Shards'? And why?](#what-are-crystals-and-shards-and-why) - [Introduction](#introduction) - [.with() and .take()](#with-and-take) - [.without()](#without) - [Pointers (undo/redo)](#pointers-undoredo) - [.leave()](#leave) - [.focus()](#focus) - [Init options](#init-options) - [Sort](#sort) - [Map](#map) - [Timestamp](#timestamp) - [Keep](#keep) <!-- tocstop --> ## Installation ```bash npm i -D crystalize.js ``` ```typescript import Crystalizer from 'crystalize.js'; ``` ## API reference crystalize.js / [Exports](docs/modules.md) ## Samples Sample apps, as built, will be placed here and linked to `./samples`. - **TODO** React TODO app with undo/redo - **TODO** Time-based journal app - **TODO** Thin backend with seamless offline experience ## FAQ **Q**: Isn't `crystalize` spelled wrong? ![Screenshot from 2023-09-25 04-04-22](https://github.com/zachbutton/crystalize.js/assets/5890542/efe9007d-e0fa-4b1e-9d25-228657699af4) **Q**: Why are they called 'Crystals' and 'Shards' and not something more familiar? See [below](#what-are-crystals-and-shards-and-why). ## What are 'Crystals' and 'Shards'? And why? A crystalizer is, in essence, a reducer. With default settings, you get something that closely resembles state management from things like Redux. Which, of course, is just a normal reduce function used in a particular way. So, you might wonder what the names are for, and why not just use the colloquial names 'actions' and 'reducers'? I'll answer that now, and also give an introduction to Crystalize.js. ## Introduction Crystalize.js, while it _is_ essentially a reducer, serves a different purpose. A reducer simply _reduces_ a collection of elements into a single aggregate. But, what Crystalize.js sets out to do is a little bit different. What if you want to keep the collection you passed in? What if you want variable amounts of that collection aggregated, or to be able to rewind to different points of that aggregation to see what it was at that point? It's fair to think of a 'crystal' as an accumulator, and a 'shard' as an element. And that's really what they are. But that doesn't capture the goal of Crystalize.js, either. They could likewise be called 'state' and 'actions', and that's really what they are, _when Crystalize.js is used in that way_. But, Crystalize.js sets out to serve more use-cases than actions and state. Thus, the names are chosen to reflect better what Crystalize.js is doing, in verb form. Shards are _crystalized_ into an accumulated state, and the name calls that out to reflect the control and choice you have in how that process takes place. To illustrate, here's the flow of an action+reducer: ``` ┌────────────┐ ┌───────────┐ ┌───────────┐ │ │ │ │ │ │ │ state ◄───┤ reduce ◄───┤ action │ │ │ │ │ │ │ └─────▲──────┘ └───────────┘ └───────────┘ │ readable ``` You pass actions into the reducer, and then they're aggregated into the accumulator, in this case, your app state. You have your state, which is great, but your action is gone. It cannot be replayed, and timing data about that action is lost, unless you add _additional state_ to track that information. Here's the flow of Crystalize.js: ``` ┌─┬───────────────┬───┬──────────────────┬────┬────────────────┬─┐ │ │ │ │ │ │ │ │ │ │ crystal ◄───┤ N count shards ◄────┤ base crystal │ │ │ │ │ │ │ │ │ │ │ └──────────v────┘ └────────v─────────┘ └───────v────────┘ │ │ │ │ │ │ │ │ ┌───────────────┘ │ │ │ │ │ │ │ │ │ │ ┌────────────────────────────────────┘ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ Crystalizer │ └────────────┼─┼─┼────────────────────────────────────▲──────────┘ │ │ │ │ ▼ ▼ ▼ │ .take(N) .with(shards) ``` You add shards (colloquially, 'actions'), via the `.with()` method. You get the state via the `take()` method. But, you can also do more than just get the final state. You also get `N` count of the most recent shards that were added via `.with`, and the crystal that is the aggregate of the shards you did _not_ take. Putting this together, let's say you called `.with()` and added 5 shards. Then, you called `.take(3)`. You'll get: 1) The final crystal, 2) The 3 most recently added shards, 3) The crystal that is the aggregate of the 2 oldest shards. Let's bring that home with a code example: #### .with() and .take() ```typescript let crystalizer = Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), }); crystalizer = crystalizer.with([ { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, ]); const [crystal, shards, base] = crystalizer.take(3); console.log(crystal); // { total: 5 } console.log(shards); // [ { value: 1 }, { value: 1 }, { value: 1 } ] console.log(base); // { total: 2 } ``` You can call this multiple times in a row without losing any data: _(calling `take()` with no arguments is equivalent to `take(Infinity)`)_ ```typescript crystalizer = crystalizer.with([ { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, ]); function logCrystalN(n?: number) { const [crystal, shards, base] = crystalizer.take(n); console.log(crystal); console.log(shards); console.log(base); } logCrystalN(1); // { total: 5 } // [{ value: 1 }] // { total: 4 } logCrystalN(4); // { total: 5 } // [{ value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }] // { total: 1 } logCrystalN(); // { total: 5 } // [{ value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }] // { total: 0 } ``` #### .without() You can also remove shards by using `.without()`. It's just an inverse filter function, so return `true` for a shard to be removed. ```typescript crystalizer = crystalizer.with([ { value: 1 }, { value: 2 }, { value: 2 }, { value: 3 }, ]); crystalizer = crystalizer.without((shard) => shard.value == 2); const [, shards] = crystalizer.take(); console.log(shards); // [{ value: 1 }, { value: 3 }]; ``` ## Pointers (undo/redo) Crystalizer's keep an internal pointer to the L'th most recent shard that we are currently interested in. `L` is the number of shards _left_ inside the crystalizer, and not counted when calling `take()`. Ordinarily, the pointer is at `0`. To move it to the next most recent shard, we'd set it to `1`. Third most recent, `2`, and so on. The simplest way to do this is with the `.leave(L)` method, which we'll look at first. If we know a specific shard that we are interested in, we can do that via the `.focus` method, which we'll look at a little later. #### .leave() First, let's add `.leave(L)` to our above diagram: ``` .leave(L) │ │ ┌─┬───────────────┬───┬───▼──┬─────────────┬────┬────────────────┬─┐ │ │ │ │ L │ │ │ │ │ │ │ crystal ◄─┐ │shards│ N shards ◄────┤ base crystal │ │ │ │ │ │ │ │ │ │ │ │ │ └──────────v────┘ │ └──────┴────┬───v────┘ └───────v────────┘ │ │ │ │ │ │ │ │ │ │ └─────────────┘ │ │ │ │ │ │ │ │ │ │ ┌──────────────────────┘ │ │ │ │ │ │ │ │ │ │ ┌──────────────────────────────────────┘ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ Crystalizer │ └────────────┼─┼─┼──────────────────────────────────────▲──────────┘ │ │ │ │ ▼ ▼ ▼ │ .take(N) .with(shards) ``` And some code: ```typescript let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), }); crystalizer = crystalizer.with([ { id: 1, value: 1 }, { id: 2, value: 1 }, { id: 3, value: 1 }, { id: 4, value: 1 }, { id: 5, value: 1 }, ]); const [crystal, shards, base] = crystalizer.leave(2).take(1); console.log(crystal); // { total: 3 } console.log(shards); // [{ id: 3, value: 1 }] console.log(base); // { total: 2 } ``` Let's step through what`s happening here. 1. We called `.leave(2)`, so shards with id `4` and `5` are excluded from here on. 2. We called `.take(1)`, so we're only interested in keeping the next most recend shard, id `3` 3. `crystal` contains the aggregate of all the shards we didn't leave: 1, 2, and 3 4. `base` contains only the aggregate of the shards we didn't take or leave. In this case, that's 1 & 2. The value `L` is reset if you call `.with()` or `.without()`, and all shards that were left will not be part of the next crystalizer object: ```typescript let crystalizer2 = crystalizer.leave(4).with([ { id: 7, value: 1 }, { id: 8, value: 1 }, ]); const [, shards] = crystalizer2.take(); console.log(shards); // [{ id: 1, value: 1}, { id: 7, value: 1}, { id: 7, value: 1}] // the old shards aren't lost forever, they're just not part of the new crystalizer const [, oldShards] = crystalizer.take(); console.log(oldShards); // { ... ids 1, 2, 3, 4, 5 ... } ``` You can also call `.leave()` with a callback that takes the current L value and return a new one. This is useful for undo/redo behavior: ```typescript // undo crystalizer = crystalizer.leave((l) => l + 1); // redo crystalizer = crystalizer.leave((l) => l - 1); ``` #### .focus() The `.leave()` method is fine if you either know the historic index you want to backtrack to, or you simple want to increment the current one (undo/redo). But, there might be times where you want to focus on a specific shard and calculate both crystals as though that shard is the most recent shard. You can use `.focus()` to accomplish that. ```typescript crystalizer = crystalizer.with([ { id: 1, value: 1 }, { id: 2, value: 1 }, { id: 3, value: 1 }, { id: 4, value: 1 }, { id: 5, value: 1 }, ]); crystalizer = crystalizer.focus((shard) => shard.id == 3); ``` Note that unlike `.leave()`, the internal pointer is _NOT_ reset when you call `.with()` or `.without()`. Instead, the pointer is updated for each call of `.with()` or `.without()` per the seek function. You can also use `.focus()` for a chronological value, such as `T` timestamp. ```typescript crystalizer = crystalizer.focus((shard) => shard.ts >= Date.now() - WEEK); ``` However, this relies on the shards being sorted by that value. We'll get into sorting as well in the next section, but there's also builtin ways to handle timestamps in Crystalize.js (see [Timestamp](#timestamp)). ## Init options ### Sort You can initialize a crystalizer with any number of sorts. You can either sort by a property of your shards, or use a function to do something more custom. _(let's pretend values 1-10 are timestamps that make sense)_ ```typescript let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), sort: [ ['asc', 'timestamp'], ['desc', (shard) => shard.value], ], }); crystalizer = crystalizer.with([ { timestamp: 2, value: 4 }, { timestamp: 3, value: 7 }, { timestamp: 1, value: 1 }, { timestamp: 2, value: 8 }, { timestamp: 1, value: 2 }, { timestamp: 3, value: 3 }, ]); // Note that we're leaving 1 shard const [crystal, shards, base] = crystalizer.leave(1).take(); console.log(crystal); // { total: 22 } console.log(shards); // Note that { timestamp: 3, value: 3 } is missing // // [{ timestamp: 1, value: 2 }, // { timestamp: 1, value: 1 }, // { timestamp: 2, value: 8 }, // { timestamp: 2, value: 4 }, // { timestamp: 3, value: 7 }] console.log(base); // { total: 0 } ``` If you only need 1 sort, you can just pass it like so: ```typescript new Crystalizer<Crystal, Shard>({ ... sort: ['asc', 'timestamp'], }); ``` ### Map You might wish to automatically add or change certain keys to every shard. Id's are a great example of this. You can do so by specifying the `map` option, which takes a simple map function: ```typescript import { ulid } from 'ulid'; let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), map: (shard) => ({ id: ulid(), ...shard }), }); ``` Now, all your shards will have a unique id from `ulid` if they didn't already have one. ### Timestamp We have enough building blocks to ensure every shard has a timestamp, and are ordered by those timestamps. ```typescript import { ulid } from 'ulid'; let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), map: (shard) => ({ id: ulid(), ts: Date.now(), ...shard }), sort: [ ['asc', 'ts'], ['desc', 'value'], ], }); ``` But, we can do this much more simply by specifying the `tsKey` option: ```typescript import { ulid } from 'ulid'; let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), map: (shard) => ({ id: ulid(), ...shard }), sort: ['desc', 'value'], tsKey: 'ts', }); ``` Now, it's handled for us automatically. Notice that in addition to removing it from our `map` call, it's not specified as a sort either. When a timestamp key is specified, shards are automatically sorted by that key first, and then everything else after. ### Keep Remember that when we call `.take(N)`, we can pass in the value `N` which is the number of shards that are NOT collapsed into the base crystal. That's a mouthful, so let's bring back our earlier diagram: ``` ┌─┬───────────────┬───┬──────────────────┬────┬────────────────┬─┐ │ │ │ │ │ │ │ │ │ │ crystal ◄───┤ N count shards ◄────┤ base crystal │ │ │ │ │ │ │ │ │ │ │ └──────────v────┘ └────────v─────────┘ └───────v────────┘ │ │ │ │ │ │ │ │ ┌───────────────┘ │ │ │ │ │ │ │ │ │ │ ┌────────────────────────────────────┘ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ Crystalizer │ └────────────┼─┼─┼────────────────────────────────────▲──────────┘ │ │ │ │ ▼ ▼ ▼ │ .take(N) .with(shards) ``` We can set a limit on the `N` value by using the `keep` initialization option. If you recall, the default behavior of `.take()` when passed no arguments is equivalent to `.take(Infinity)`. So, setting a keep option is twofold: 1) We're setting a max value on `N`, and 2) We're setting the default `N` value when `.take()` is called without arguments. ```typescript let crystalizer = new Crystalizer<Crystal, Shard>({ initial: { total: 0 }, reduce: (crystal, shard) => ({ total: crystal.total + shard.value }), keep: ['count', 2], }); crystalizer = crystalizer.with([ { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, { value: 1 }, ]); const [crystal, shards, base] = crystalizer.take(); console.log(crystal); // { value: 5 } console.log(shards); // [{ value: 1 }, { value: 1 }] console.log(base); // { value: 3 } ``` Note that we can call `.take()` with a value _less_ than 2, but any value greater than 2 will return the same results as above. This is very useful if you're dealing with a large number of shards. You can limit it to a specific quantity of shards like the above. Or, you can limit it to a certain range of time, such that old shards are automatically collapsed into the base crystal: ```typescript const WEEK = 1000 * 60 * 60 * 24 * 7; let crystalizer = new Crystalizer<Crystal, Shard>({ ... keep: ['since', WEEK], }); ``` Maybe, you'll want to do a mix of both. The `min` and `max` options are your friend here. ```typescript const WEEK = 1000 * 60 * 60 * 24 * 7; let crystalizer = new Crystalizer<Crystal, Shard>({ ... keep: ['min', [ ['count', 5000], ['since', WEEK], ]], }); ``` This will keep, at most, 5000 shards, or the number of shards that are less than 1 week old, which ever is less. You'll never have more than 5000 shards, nor will you have shards older than 1 week. This is good if you're fine with missing some of that week's shards in some cases. Maybe you have different requirements, and instead, want to have a full week's shards no matter what, but also don't mind backfilling up to 5000 shards if there's not many that week. You could use `max` for this: ```typescript const WEEK = 1000 * 60 * 60 * 24 * 7; let crystalizer = new Crystalizer<Crystal, Shard>({ ... keep: ['max', [ ['count', 5000], ['since', WEEK], ]], }); ``` Or, maybe you still want to set a limit of 10,000 total shards: ```typescript const WEEK = 1000 * 60 * 60 * 24 * 7; let crystalizer = new Crystalizer<Crystal, Shard>({ ... keep: ['min', [ ['count', 10000], ['max', [ ['count', 5000], ['since', WEEK], ]], ]] }); ``` There is also `all`, which is the default behavior, and `none`, which will make it never keep any shards (crystal and base crystal will always be equivalent in this case). ```typescript let crystalizer = new Crystalizer<Crystal, Shard>({ ... keep: ['none'], // or keep: ['all'], }); ```
A reducer on steroids, but if reducers had undo/redo and time-travel.
front-end,frontend,javascript,node-js,nodejs,react,reducer-redux,redux,solidjs,svelte
2023-09-10T09:08:19Z
2023-09-25T11:07:34Z
2023-09-25T09:38:32Z
1
10
95
2
1
97
null
MIT
TypeScript
emmanuelnk/github-actions-workflow-ts
main
# github-actions-workflow-ts Stop writing workflows in YAML and use TypeScript instead! <p align="center"><img src="https://github.com/emmanuelnk/github-actions-workflow-ts/assets/19330930/9121bb33-cd51-41f3-830f-9b4bd1117320" alt="github-actions-workflow-ts-logo" width="400"/></p> <p align="center"> <a href="https://github.com/emmanuelnk/github-actions-workflow-ts"> <img src="https://raw.githubusercontent.com/ellerbrock/open-source-badges/master/badges/open-source-v1/open-source.png" alt="love opensource"> </a> <a href="https://github.com/emmanuelnk/github-actions-workflow-ts/blob/master/LICENSE"> <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="license"> </a> <a href="https://www.npmjs.com/package/github-actions-workflow-ts"> <img src="https://img.shields.io/npm/v/github-actions-workflow-ts.svg" alt="npm version"> </a> <a href="https://github.com/emmanuelnk/github-actions-workflow-ts/actions/workflows/test.yml"> <img src="https://github.com/emmanuelnk/github-actions-workflow-ts/actions/workflows/test.yml/badge.svg" alt="Tests"> </a> <a href="https://github.com/emmanuelnk/github-actions-workflow-ts/actions"> <img src="https://emmanuelnk.github.io/github-actions-workflow-ts/badges/coverage.svg" alt="coverage"> </a> <a href="https://github.com/emmanuelnk/github-actions-workflow-ts/issues"> <img src="https://img.shields.io/github/issues/emmanuelnk/github-actions-workflow-ts.svg" alt="issues"> </a> </p> ## Table of Contents - [github-actions-workflow-ts](#github-actions-workflow-ts) - [Table of Contents](#table-of-contents) - [Installation](#installation) - [Overview](#overview) - [Key Benefits:](#key-benefits) - [Getting Started:](#getting-started) - [Examples](#examples) - [Try it out on Replit](#try-it-out-on-replit) - [More Examples](#more-examples) - [Generating Workflow YAML](#generating-workflow-yaml) - [Using the CLI](#using-the-cli) - [Integration with Husky (recommended)](#integration-with-husky-recommended) - [Config file](#config-file) - [Workflow Classes](#workflow-classes) - [`new Step()`](#new-step) - [`.addEnvs()`](#addenvs) - [`new NormalJob()`](#new-normaljob) - [`.addEnvs()`](#addenvs-1) - [`.addStep()`](#addstep) - [`.addSteps()`](#addsteps) - [`.needs()`](#needs) - [`new ReusableWorkflowCallJob()`](#new-reusableworkflowcalljob) - [`.needs()`](#needs-1) - [`new Workflow()`](#new-workflow) - [`.addEnvs()`](#addenvs-2) - [`.addJob()`](#addjob) - [`.addJobs()`](#addjobs) - [Workflow Types](#workflow-types) - [GeneratedWorkflowTypes](#generatedworkflowtypes) - [ExtendedWorkflowTypes](#extendedworkflowtypes) - [Helpers](#helpers) - [`multilineString()`](#multilinestring) - [`expressions`](#expressions) - [`.expn()`](#expn) - [`.env()`](#env) - [`.secret()`](#secret) - [`.var()`](#var) - [`.ternary()`](#ternary) - [`echoKeyValue`](#echokeyvalue) - [`.to()`](#to) - [`.toGithubEnv()`](#togithubenv) - [`.toGithubOutput()`](#togithuboutput) - [Contributing](#contributing) - [Credits](#credits) ## Installation ``` npm install --save-dev github-actions-workflow-ts ``` ## Overview Introducing `github-actions-workflow-ts`: A seamless integration allowing developers to author GitHub Actions workflows with the power and flexibility of TypeScript. ### Key Benefits: 1. **Type Safety**: Elevate the confidence in your workflows with the robust type-checking capabilities of TypeScript. 2. **Modularity**: Efficiently package and reuse common jobs and steps across various workflows, promoting the DRY (Don't Repeat Yourself) principle. 3. **Control Flow**: Harness the inherent control flow mechanisms, like conditionals, available in imperative languages. This empowers developers to craft intricate workflows beyond the constraints of YAML. ### Getting Started: To embark on this efficient journey, create a new `*.wac.ts` file, for instance, `deploy.wac.ts`, in your project directory. Then, dive into authoring your enhanced GitHub Actions workflows! ## Examples ### Try it out on Replit Want to quickly see it in action? Explore these Replit examples (create a free account to fork and modify my examples): - [Simple Example](https://replit.com/@EmmanuelKyeyune/github-actions-workflow-ts-example#workflows/simple.example.wac.ts) - [Advanced Example](https://replit.com/@EmmanuelKyeyune/github-actions-workflow-ts-example#src/workflows/advanced.example.wac.ts) ### More Examples Check the [examples folder](./examples/) and the [workflows folder](./workflows/) for more advanced examples. Below is a simple example: ```ts // example.wac.ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) // IMPORTANT - the instance of Workflow MUST be exported with `export` export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }) // add the defined step to the defined job testJob.addStep(checkoutStep) // add the defined job to the defined workflow exampleWorkflow.addJob(testJob) ``` ## Generating Workflow YAML ### Using the CLI When you have written your `*.wac.ts` file, you use the `github-actions-workflow-ts` CLI to generate the yaml files. **Don't forget** to **export** the workflows that you want to generate in your `*.wac.ts` files i.e. ```ts // exporting `exampleWorkflow` will generate example-filename.yml export const exampleWorkflow = new Workflow('example-filename', { /***/ }) ``` Then, from project root, run: ```bash npx generate-workflow-files build # OR npx gwf build ``` ### Integration with Husky (recommended) For seamless automation and to eliminate the possibility of overlooking updates in `*.wac.ts` files, integrating with a pre-commit tool is recommended. We recommend [husky](https://github.com/typicode/husky). With Husky, each commit triggers the `npx github-actions-workflow-ts build` command, ensuring that your GitHub Actions YAML files consistently reflect the latest modifications. <details><summary>See more</summary> - Install Husky: ```bash npm install --save-dev husky npx husky-init ``` - In `package.json`, add the following script: ```json "scripts": { "build:workflows": "npx gwf build && git add .github/workflows/*.yml", } ``` - Install the `pre-commit` command to Husky and add our npm command to build the `*.wac.ts` files ```bash npx husky add .husky/pre-commit "npm run build:workflows" ``` - Now every time you make a change to `*.wac.ts`, Husky will run the `npx gwf build` command and add the generated `.github/workflows/*.yml` to your commit </details> ### Config file If you want to change how github-actions-workflow-ts generates the yaml files, you can create a `wac.config.json` file in your project root. See the [example config file](./wac.config.json) <details><summary>See config options</summary> | Property | Description | Type | Default Value | |------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | refs | If true, convert duplicate objects into references in YAML | `Boolean` | false | | headerText | Replace the header text in generated YAML files with your own text. <br>If you want the source filename and path in the text, use `<source-file-path>` in<br>the text and it will be replaced with the path to the source-file. | `Array<string>` | # ----DO-NOT-MODIFY-THIS-FILE----<br># This file was automatically generated by github-actions-workflow-ts. <br># Instead, modify `<source-file-path>`<br># ----DO-NOT-MODIFY-THIS-FILE---- | | dumpOptions | Options for the dump function of js-yaml. See [all the options here](https://github.com/nodeca/js-yaml#dump-object---options-) | Record <string, any> | Uses the default options | </details> ## Workflow Classes ### `new Step()` The building block of every `NormalJob`. Contains instructions on what to run in your Github Actions Runner in each job. <details><summary>Example</summary> ```ts import { Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) ``` </details> #### `.addEnvs()` This adds environment variables to a step. <details><summary>Example</summary> ```ts import { Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }).addEnvs({ SOME_KEY: 'some-value', SOME_OTHER_KEY: 'some-other-value' }) ``` </details> ### `new NormalJob()` The most typical job that contains steps. #### `.addEnvs()` This adds environment variables to a job. <details><summary>Example</summary> ```ts import { NormalJob } from 'github-actions-workflow-ts' const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }).addEnvs({ SOME_KEY: 'some-value', SOME_OTHER_KEY: 'some-other-value' }) ``` </details> #### `.addStep()` This adds a single step to a normal Job <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) testJob.addStep(checkoutStep) ``` </details> #### `.addSteps()` This adds multiple steps to a normal Job <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const installNodeStep = new Step({ name: 'Install Node', uses: 'actions/setup-node@v3', with: { 'node-version': 18 } }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) testJob.addSteps([ checkoutStep, installNodeStep ]) ``` </details> #### `.needs()` This adds any jobs that the current job depends on to the current job's `needs` property <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) const buildJob = new NormalJob('Build', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) testJob.addStep(checkoutStep) buildJob .needs([testJob]) .addStep(checkoutStep) export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }) exampleWorkflow.addJobs([ testJob, buildJob ]) ``` </details> ### `new ReusableWorkflowCallJob()` A job that allows you to call another workflow and use it in the same run. <details><summary>Example</summary> ```ts import { Workflow, ReusableWorkflowCallJob } from 'github-actions-workflow-ts' const releaseJob = new ReusableWorkflowCallJob('ReleaseJob', { uses: 'your-org/your-repo/.github/workflows/reusable-workflow.yml@main', secrets: 'inherit', }) export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }).addJob(releaseJob) ``` </details> #### `.needs()` Same as [NormalJob.needs()](#needs) ### `new Workflow()` #### `.addEnvs()` This adds environment variables to a workflow. <details><summary>Example</summary> ```ts import { Workflow } from 'github-actions-workflow-ts' export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }).addEnvs({ SOME_KEY: 'some-value', SOME_OTHER_KEY: 'some-other-value' }) ``` </details> #### `.addJob()` This adds a single job to a Workflow <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) testJob.addStep([checkoutStep]) export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }) exampleWorkflow.addJob(testJob) ``` </details> #### `.addJobs()` This adds multiple jobs to a Workflow <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step } from 'github-actions-workflow-ts' const checkoutStep = new Step({ name: 'Checkout', uses: 'actions/checkout@v3', }) const testJob = new NormalJob('Test', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) const buildJob = new NormalJob('Build', { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 2 }) testJob.addStep(checkoutStep) buildJob.addStep(checkoutStep) export const exampleWorkflow = new Workflow('example-filename', { name: 'Example', on: { workflow_dispatch: {} } }) exampleWorkflow.addJobs([ testJob, buildJob ]) ``` </details> ## Workflow Types You can also choose not to use the workflow helpers and just use plain old JSON. You get type safety by importing the types. The only exception is the `Workflow` class. You must export an instance of this class in order to generate your workflow files. ### GeneratedWorkflowTypes These are types generated right out of the [Github Actions Workflow JSON Schema](https://json.schemastore.org/github-workflow.json) ### ExtendedWorkflowTypes These are types that I extended myself because they weren't autogenerated from the JSON Schema. <details><summary>Example</summary> ```ts import { Workflow, NormalJob, Step, expressions as ex, ExtendedWorkflowTypes as EWT, // contains the Step and Steps types GeneratedWorkflowTypes as GWT, // contains all the other types e.g. NormalJob, ReusableWorkflowCallJob etc } from '../src' const nodeSetupStep: EWT.Step = { name: 'Setup Node', uses: 'actions/setup-node@v3', with: { 'node-version': '18.x', }, } const firstNormalJob: GWT.NormalJob = { 'runs-on': 'ubuntu-latest', 'timeout-minutes': 5, steps: [ nodeSetupStep, { name: 'Echo', run: 'echo "Hello, World!"', }, ], } export const simpleWorkflowOne = new Workflow('simple-1', { name: 'ExampleSimpleWorkflow', on: { workflow_dispatch: {}, }, jobs: { firstJob: firstNormalJob, }, }) ``` </details> ## Helpers ### `multilineString()` This is a useful function that aids in writing multiline yaml like this: ```yaml name: Run something run: |- command exec line 1 command exec line 2 ``` <details><summary>Examples</summary> Example 1 ```ts import { multilineString } from 'github-actions-workflow-ts' // multilineString(...strings) joins all strings with a newline // character '\n' which is interpreted as separate lines in YAML console.log(multilineString('This is sentence 1', 'This is sentence 2')) // 'This is sentence 1\nThis is sentence 2' // it also has the ability to escape special characters console.log( multilineString( `content="\${content//$'\n'/'%0A'}"`, `content="\${content//$'\r'/'%0D'}"` ) ) // `content="${content//$'\n'/'%0A'}"` // `content="${content//$'\r'/'%0D'}"`` ``` Example 2 - handling multiline string indentation If you want to do something like this ```yaml - name: Check for build directory run: |- #!/bin/bash ls /tmp if [ ! -d "/tmp/build" ]; then mv /tmp/build . ls fi ``` then you just add the same indentation in the string: ```ts // If you want indentation then you can do this: new Step({ name: 'Check for build directory', run: multilineString( `#!/bin/bash`, `ls /tmp`, `if [ ! -d "/tmp/build" ]; then`, ` mv /tmp/build .`, // notice the two spaces before 'mv ..' ` ls`, // notice the two spaces before 'ls ..' `fi`, ), }); ``` </details> ### `expressions` #### `.expn()` Returns the expression string `${{ <expression> }}` <details><summary>Example</summary> ```ts import { expressions } from 'github-actions-workflow-ts' console.log(expressions.expn('hashFiles("**/pnpm-lock.yaml")')) // '${{ hashFiles("**/pnpm-lock.yaml") }}' ``` </details> #### `.env()` Returns the expression string `${{ env.SOMETHING }}` <details><summary>Example</summary> ```ts import { expressions } from 'github-actions-workflow-ts' console.log(expressions.env('GITHUB_SHA')) // '${{ env.GITHUB_SHA }}' ``` </details> #### `.secret()` Returns the expression string `${{ secrets.SOMETHING }}` <details><summary>Example</summary> ```ts import { expressions } from 'github-actions-workflow-ts' console.log(expressions.secret('GITHUB_TOKEN')) // '${{ secrets.GITHUB_TOKEN }}' ``` </details> #### `.var()` Returns the expression string `${{ vars.SOMETHING }}` <details><summary>Example</summary> ```ts import { expressions } from 'github-actions-workflow-ts' console.log(expressions.var('SENTRY_APP_ID')) // '${{ vars.SENTRY_APP_ID }}' ``` </details> #### `.ternary()` <details><summary>Example</summary> ```ts import { expressions } from 'github-actions-workflow-ts' // ternary(condition, ifTrue, ifFalse) console.log(expressions.ternary("github.event_name == 'release'", 'prod', 'dev')) // '${{ github.event_name == 'release' && 'prod' || 'dev' }}' ``` </details> ### `echoKeyValue` #### `.to()` Returns the string `echo "key=value" >> <SOMETHING>` <details><summary>Example</summary> ```ts import { echoKeyValue } from 'github-actions-workflow-ts' // echoKeyValue.to(key, value, to) returns 'echo "key=value" >> <SOMETHING>' echoKeyValue.to('@your-org:registry', 'https://npm.pkg.github.com', '.npmrc') // 'echo "@your-org:registry=https://npm.pkg.github.com" >> .npmrc' ``` </details> #### `.toGithubEnv()` Returns the string `echo "key=value" >> $GITHUB_ENV` <details><summary>Example</summary> ```ts import { echoKeyValue } from 'github-actions-workflow-ts' // echoKeyValue.toGithubEnv(key, value, to) returns 'echo "key=value" >> $GITHUB_ENV' echoKeyValue.toGithubEnv('NODE_VERSION', '18') // 'echo "NODE_VERSION=18" >> $GITHUB_ENV' ``` </details> #### `.toGithubOutput()` Returns the string `echo "key=value" >> $GITHUB_OUTPUT` <details><summary>Example</summary> ```ts import { echoKeyValue } from 'github-actions-workflow-ts' // echoKeyValue.toGithubOutput(key, value, to) returns 'echo "key=value" >> $GITHUB_OUTPUT' echoKeyValue.toGithubOutput('NODE_VERSION', '18') // 'echo "NODE_VERSION=18" >> $GITHUB_OUTPUT' ``` </details> ## Contributing See the [Contributing Guide](./.github/CONTRIBUTING.md) ## Credits Inspired by [webiny/github-actions-wac](https://github.com/webiny/github-actions-wac) which is also the original source of the filename extension (`.wac.ts`) used to distinguish the Github Actions YAML workflow TypeScript files. When I hit too many limitations with `github-actions-wac`, I decided to create `github-actions-workflow-ts` to address those limitations and add a lot more functionality.
Write Github Actions workflow files in TypeScript (compiles to YAML)
actions,cicd,github-actions,javascript,typescript,yaml
2023-08-26T21:00:45Z
2023-10-17T14:12:50Z
2023-09-10T16:11:48Z
1
16
60
1
2
95
null
MIT
TypeScript
FormidableLabs/envy
main
<div align="center"> <a href="https://formidable.com/open-source/" target="_blank"> <img alt="Envy — Formidable, We build the modern web" src="./docs/images/envy-hero.png" /> </a> <strong> Zero Config Node.js Telemetry &amp; Network Viewer </strong> <br /> <br /> <a href="https://github.com/FormidableLabs/envy/actions"> <img alt="build status" src="https://github.com/FormidableLabs/envy/actions/workflows/release.yml/badge.svg"> </a> <a href="https://github.com/FormidableLabs/envy#maintenance-status"> <img alt="Maintenance Status" src="https://img.shields.io/badge/maintenance-active-green.svg" /> </a> <br /> <br /> </div> # Envy Envy will trace the network calls from every application in your stack and allow you to view them in a central place. Whether you are running a Node.js backend, Express, Apollo, or even a Next.js server, Envy will capture it all. _Note: Envy is intended for development usage only, and is not a replacement for optimized production telemetry_ <div align="center"> <img alt="Envy" src="./docs/images/envy-example.png" /> </div> Check out our [live demo](https://envy-webui.vercel.app/) app to explore the Web UI ## Contents - [Getting Started](#getting-started) - [Additional Options](#additional-options) - [Customizing](#customizing) - [Production Bundles](#production-bundles) - [Contributing](#contributing) ## Getting Started ### 1. Install the Envy Web UI to view application telemetry in your browser ```sh # npm $ npm i --save-dev @envyjs/webui # or yarn $ yarn add --dev @envyjs/webui ``` ### 2. Install a telemetry package for your application - [Node.js Application](#nodejs-application) - [Web Client Application](#web-client-application) - [Next.js Application](#nextjs-application) ### 3. Run the Web UI and start collecting telemetry Run the browser in a seperate terminal session ``` npx @envyjs/webui ``` or optionally, add it to your NPM scripts using a tool like [concurrently](https://www.npmjs.com/package/concurrently) ```json "scripts": { "start": "<your application start command>", "start:withenvy": "concurrently \"npx @envyjs/webui\" \"npm start\"" }, ``` [Additional Options](#additional-options) are also available for running the web viewer ## Available Telemetry Packages ### Node.js Application Install the `@envyjs/node` sender package in your node application: ```sh # npm $ npm i --save-dev @envyjs/node # or yarn $ yarn add --dev @envyjs/node ``` Import and invoke the `enableTracing` function to the root of your app before any other code. ```ts import { enableTracing } from '@envyjs/node'; enableTracing({ serviceName: 'your-node-app-name' }); // ... your app code ``` ### Web Client Application Install the `@envyjs/web` sender package in your website: ```sh # npm $ npm i --save-dev @envyjs/web # or yarn $ yarn add --dev @envyjs/web ``` Import the `enableTracing` function to the root of your app, and invoke it before mounting your application. For example, in a simple React application: ```ts import { enableTracing } from '@envyjs/web'; enableTracing({ serviceName: 'your-website-name' }); import { createRoot } from 'react-dom/client'; import { App } from './App'; const container = document.getElementById('app'); const root = createRoot(container); root.render(<App />); ``` ### Next.js Application Install the `@envyjs/nextjs` sender package in your node application: ```sh # npm $ npm i --save-dev @envyjs/nextjs # or yarn $ yarn add --dev @envyjs/nextjs ``` Import and wrap your Next config `next.config.js` file with Envy ```ts // next.config.js const { withEnvy } = require('@envyjs/nextjs'); /** @type {import('next').NextConfig} */ const nextConfig = {}; const envyConfig = { serviceName: 'next-app', }; module.exports = withEnvy(nextConfig, envyConfig); ``` *By default, `@envyjs/nextjs` will only inject itself into your `development` bundle.* #### Timing Data _Browsers prevent full timing data from being accessed from cross-origin requests unless the server responds with the [Timing-Allow-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin) header_. ## Additional Options Envy supports these additional options #### Filtering You can filter the requests that are traced by setting a `filter` function that returns `true` for all traces you want to keep. (The same way javascript array.filter works) ```ts enableTracing({ serviceName: 'example-nextjs', // ignores requests to google.com filter: request => request.host !== 'google.com' }); ``` #### Debug You can see the information we send to the Web UI by setting the Debug option ```ts enableTracing({ serviceName: 'example-nextjs', debug: true }); ``` #### Viewer Port You can customize the HTTP port the viewer runs on using the cli flag ```sh npx @envyjs/webui --viewerPort=65789 ``` #### Disabling Parts The webui and its collector can be individually disabled using cli flags. This is an advanced option and typically not used. ```sh # disable ui npx @envyjs/webui --no-ui # disable websocket collector npx @envyjs/webui --no-collector ``` ## Customizing Whilst Envy will run as a zero-config standalone viewer, it is also possible to run the Envy viewer locally from your application and to define your own systems to customize how traces are presented. See the [customization docs](docs/customizing.md) for more information. ## Production Bundles Envy is designed to enhance your developer experience and is not intended for production usage. Depending on your application, there are various ways to exclude it from your bundle in production. ### Dynamic Imports (Typescript) ```ts if (process.env.NODE_ENV !== 'production') { import('@envyjs/node').then(({ enableTracing }) => { enableTracing({ serviceName: 'examples/apollo' }); }); } ``` ### Dynamic Require (Javascript) ```js if (process.env.NODE_ENV !== 'production') { const { enableTracing } = require('@envyjs/node'); enableTracing({ serviceName: 'examples/apollo' }); } ``` ### Disabling Tracing This option is the simplest, but will leave the code in your output bundle. Depending on your application and its deployment and packaging method, this may be acceptable in your usage. ```ts import { enableTracing } from '@envyjs/node'; if (process.env.NODE_ENV !== 'production') { enableTracing({ serviceName: 'examples/apollo' }); } ``` ## Contributing Please see the [Contributing guide](CONTRIBUTING.md). ## Maintenance Status **Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
Node.js Telemetry & Network Viewer
graphql,javascript,networking,nextjs,nodejs,react,telemetry,tracing
2023-09-06T22:01:35Z
2024-03-20T20:16:17Z
2024-01-24T14:53:41Z
60
115
155
27
1
87
null
MIT
TypeScript
krzkaczor/ny
main
<p align="center"> <img src="assets/hero.png"> <h2 align="center">🗽 NY - Fast, Proxy Package Manager for JavaScript</h2> <h4 align="center">Chooses the right package manager and runtime based on the lockfile</h3> <p align="center"><i><strong>n</strong></i>ode • <i><strong>y</strong></i>arn • pnpm • bun</p> </p> ## Features - <strong>Universal</strong> - Picks the right package manager and runtime based on the lockfile. `npm`, `bun`, `pnpm`, `yarn` - we got you covered! - <strong>Versatile</strong> - Handles the basics like installing all your dependencies, adding new packages, and kicking off scripts. - <strong>Speedy</strong> - Crafted in Rust to give you a quick ride. When running scripts, it's actually faster than using PMs directly! - <strong>TypeScript-Ready</strong> - Adding a new dependency? Don't worry! It'll fetch any missing `@types` packages for you if needed. ## Usage ```sh ny # installs all dependencies eq. to: yarn install ``` ```sh ny add zod # installs zod package eq. to: yarn add zod ``` ```sh ny test # executes package.json's test script eq. to: yarn test ``` ```sh ny vitest # executes node_modules/.bin binary eq. to: yarn vitest ``` ## Installation ### Install script ```sh curl -fsSL https://raw.githubusercontent.com/krzkaczor/ny/main/install.sh | bash ``` ### Manually download binary for Linux / Mac Os X Get the newest release from [releases page](https://github.com/krzkaczor/ny/releases). ## CLI For full documentation run `ny --help`. - `ny install` - trigger installing all dependencies. Aliased to: `ny`. - `ny add package` - add new dependency, supports flags like `--dev` and `--workspace-root`. Will automatically install missing TypeScript `@types` packages. - `ny run task` - runs a task with a given name or resolves a JS file in `node_modules/bin`. Will use node.js to execute it by default unless bun lockfile is present. Aliased to: `ny task`. ## Dive deeper ### Motivation In the world of JavaScript, there's a fun mix of package managers - npm, yarn, pnpm. Pick your poison. With a rise of alternative runtimes like Bun or Deno the problem only gets worse. Programmers often switch between projects that use different PMs multiple times a day. Did you just typed `npm` when the project uses `bun`? Well too bad -- you've wasted couple of seconds again. With 🗽NY, there's no guesswork. Just type `ny` and it picks the right package manager and runtime for you. Handy, right? And here's the kicker: 🗽NY is faster! Especially when running package scripts (like when you type `yarn test`). It's written in Rust and it zips through tasks about ~200ms faster by avoiding spawning node processes just to parse `package.json`. Sweet, huh? Main sources of inspiration were [antfu/ni](https://github.com/antfu/ni) (but it's written in JS) and [egoist/dum](https://github.com/egoist/dum) (but it's only a task runner). ### TypeScript support If `ny` detects that it's running in TypeScript enabled package, it will attempt to install missing typings when adding new packages. Right now this behaviour can't be turned off. ### Contributing All contributions are welcomed! [Read contributing guide for more](./contributing.md). ### Logo Logo should depict a statue of liberty (a symbol of <strong>N</strong>ew <strong>Y</strong>ork ;) ) holding tools. Midjourney prompt goes something like: `simple mascot, statue of liberty holding tools, pixelart style`. Later [vectorizer.ai](https://vectorizer.ai) was used to get SVG out of bitmap. I know it's not perfect and if you figure out a better prompt let me know! ## License [Kris Kaczor](https://twitter.com/krzkaczor) | MIT
🗽 Fast, Proxy Package Manager for JavaScript
javascript,nodejs,npm,package-manager,pnpm,yarn,bun
2023-08-20T08:46:28Z
2023-11-05T10:08:28Z
2023-11-05T10:08:47Z
1
19
32
11
3
86
null
MIT
Rust
robin-thomas/serverless-aws-secrets
main
<p align="center"> <h2 align="center">Serverless AWS Secrets <span><a href="https://twitter.com/intent/tweet?text=Replace%20your%20environment%20variables%20with%20AWS%20secrets&amp;url=https://github.com/robin-thomas/serverless-aws-secrets&amp;hashtags=serverless,plugin,typescript,javascript,developers" rel="nofollow"><img src="https://camo.githubusercontent.com/90bc908826728c0e4261acfff5619fd732c7be2b2a00624fce6363c9a3623c90/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c" alt="Tweet" data-canonical-src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social" style="max-width: 100%;"></a></span></h2> <p align="center">A Serverless Plugin for the <a href="https://www.serverless.com">Serverless Framework</a>, which can replace environment variables with secrets from AWS Secrets Manager.</p> <div align="center"> <img src="https://s3.amazonaws.com/assets.github.serverless/readme-serverless-framework.gif" width="70%" /> </div> </p> <p align="center"> <a href="http://www.serverless.com"> <img src="http://public.serverless.com/badges/v3.svg" /> </a> <a href="https://www.npmjs.com/package/serverless-aws-secrets"> <img src="https://img.shields.io/npm/v/serverless-aws-secrets" /> </a> <img src="https://img.shields.io/npm/dt/serverless-aws-secrets.svg?label=Downloads" /> <img src="https://img.shields.io/bundlephobia/min/serverless-aws-secrets/latest" /> <a href="https://github.com/robin-thomas/serverless-aws-secrets/actions"> <img src="https://github.com/robin-thomas/serverless-aws-secrets/actions/workflows/post_release.yml/badge.svg" /> </a> <a href="https://codecov.io/gh/robin-thomas/serverless-aws-secrets"> <img src="https://codecov.io/gh/robin-thomas/serverless-aws-secrets/graph/badge.svg?token=I3FAWZETH9)" /> </a> <img src="https://img.shields.io/npm/l/serverless-aws-secrets" /> </p> ## Introduction If you are using a serverless plugin like [Serverless Dotenv Plugin](https://github.com/neverendingqs/serverless-dotenv-plugin), then you shall be having `.env.*` files that looks like: ``` MYSQL_USERNAME=username MYSQL_PASSWORD=password ``` Rather than storing these secrets in your `.env.*` file, you can instead store them in [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/). This plugin will then replace the environment variables (that are already loaded into Serverless framework) with the secrets from AWS Secrets Manager. You need to change your above `.env.*` files to: ``` MYSQL_USERNAME=secret:MYSQL_USERNAME MYSQL_PASSWORD=secret:MYSQL_PASSWORD ``` The plugin will then search within AWS Secrets Manager (refer to `secretId` configuration) for a secret with the name `MYSQL_USERNAME` and `MYSQL_PASSWORD` and replace the environment variables with the secret value. Secrets are recognized as environment variables whose name started with a pre-defined prefix. (refer to `secretPrefix` configuration below). ## Getting Started These instructions will help you integrate this plugin into your serverless service. ### Prerequisites You need to have the below softwares running on your system: * [Node.js v18](https://nodejs.org/en) - You can use [NVM](https://github.com/nvm-sh/nvm) to setup Node.js in your system * [Git](https://git-scm.com/) - You can download from [here](https://git-scm.com/downloads) * [Serverless](https://www.serverless.com/) - Refer [here](https://github.com/serverless/serverless/blob/main/docs/getting-started.md) on how to get started ### Installing the plugin Run below command to install the plugin: ``` $ npm install --save-dev serverless-aws-secrets ``` Add the plugin to `serverless.yml`: ``` plugins: - serverless-aws-secrets ``` This will run the plugin during the below serverless hooks: * `before:package:initialize` * `offline:start:init` ### Configuring the plugin The plugin can be configured by: ``` custom: serverless-aws-secrets: secretId: ... secretPrefix: ... ``` * `secretId`: Location of the secret in AWS Secrets Manager. Default: `${provider.stage}/${app}-${service}` * `secretPrefix`: Prefix of the secret name in AWS Secrets Manager. Default: `secret:` ## CLI commands This plugin also exposes a CLI command that can be used along with serverless. ### Display the secret values ``` $ sls aws-secrets --verbose ``` This will display the output: ``` [serverless-aws-secrets]: Running the command: sls aws-secrets [serverless-aws-secrets]: Loading secret: {secretId} in {provider.region} ✔ [serverless-aws-secrets]: Secret: {secretKey}, Value: {secretValue} ``` ## Local Development These instructions will help you to run the project in your local. ### Setup Run the below commands to setup the project: ``` $ git clone git@github.com:robin-thomas/serverless-aws-secrets.git $ cd serverless-aws-secrets $ nvm use 18 $ npm install ``` ### Running the tests You can run the unit tests written in [Jest](https://github.com/jestjs/jest) by running: ``` $ npm run test ``` ## Versioning We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/robin-thomas/serverless-aws-secrets/tags). ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
🛵 Serverless plugin that reads environment variables and replaces secrets using AWS Secrets Manager 🛵
aws,aws-lambda,aws-secrets-manager,environment-variables,serverless,security,serverless-plugin,jest,typescript,javascript
2023-09-08T05:49:32Z
2024-01-13T08:52:55Z
2023-12-10T02:26:22Z
2
106
147
12
7
85
null
MIT
TypeScript
John-Weeks-Dev/tiktok-clone-nextjs
main
# TikTok Clone NextJs 13 / (tiktok-clone-nextjs) ### Learn how to build this! If you'd like a step-by-step guide on how to build this just **CLICK THE IMAGE BELOW** [![GO TO JOHN WEEKS DEV TUTORIAL VIDEOS](https://github.com/John-Weeks-Dev/tiktok-clone-nextjs/assets/108229029/024e5a4e-a5fe-4dbb-95d1-3686c9b51053)](https://www.youtube.com/watch?v=7zLyVzItZlQ) Come and check out my YOUTUBE channel for lots more tutorials -> https://www.youtube.com/@johnweeksdev **LIKE**, **SUBSCRIBE**, and **SMASH THE NOTIFICATION BELL**!!! ## App Setup (localhost) ``` git clone https://github.com/John-Weeks-Dev/tiktok-clone-nextjs.git cp .env.example .env ``` You'll have to set up an AppWrite account, and then add all of the details into your .env file. ## AppWrite Schema ### Database Name: tiktok-clone ### Profile Collection: | Key | Type | | --- | --- | | `Document ID` | String | | `image` | String | | `bio` | String | | `user_id` | String | | `name` | String | Profile Indexes: | KEY | TYPE | ATTRIBUTE | ASC/DESC | | ------------- | ------------- | ------------- | ------------- | | user_id | key | user_id | asc | | name | fulltext | name | asc | Profile Settings (Update Permissions): | Add Role | PERMISSIONS | | ------------- | ------------- | | All guests | Read | | All users | Create, Read, Update, Delete | ### Post Collection: | Key | Type | | --- | --- | | `Document ID` | String | | `user_id` | String | | `video_url` | String | | `text` | String | | `created_at` | String | Post Indexes: | KEY | TYPE | ATTRIBUTE | ASC/DESC | | ------------- | ------------- | ------------- | ------------- | | user_id | key | user_id | asc | Profile Settings (Update Permissions): | Add Role | PERMISSIONS | | ------------- | ------------- | | All guests | Read | | All users | Create, Read, Update, Delete | ### Like Collection: | Key | Type | | --- | --- | | `Document ID` | String | | `user_id` | String | | `post_id` | String | Like Indexes: | KEY | TYPE | ATTRIBUTE | ASC/DESC | | ------------- | ------------- | ------------- | ------------- | | user_id | key | user_id | asc | | id | unique | id | asc | | post_id | key | post_id | asc | Like Settings (Update Permissions): | Add Role | PERMISSIONS | | ------------- | ------------- | | All guests | Read | | All users | Create, Read, Update, Delete | ### Comment Collection: | Key | Type | | --- | --- | | `Document ID` | String | | `user_id` | String | | `post_id` | String | | `text` | String | | `created_at` | String | Comment Indexes: | KEY | TYPE | ATTRIBUTE | ASC/DESC | | ------------- | ------------- | ------------- | ------------- | | post_id | key | post_id | asc | Comment Settings (Update Permissions): | Add Role | PERMISSIONS | | ------------- | ------------- | | All guests | Read | | All users | Create, Read, Update, Delete | Once you've connected your application to AppWrite. Run the commands. ``` npm i npm run dev ``` You should be good to go! If you need any more help, take a look at the tutorial video by clicking the image above.
Build and Deploy a Full Stack TikTok Clone with Next JS, React, Typescript, Tailwind CSS, AppWrite, and Vercel
appwrite,fullstack,html5,javascript,nextjs,nextjs13,react,reactjs,tailwind,tailwindcss
2023-08-25T16:54:42Z
2023-09-14T08:15:25Z
null
1
2
38
3
42
83
null
null
TypeScript
naruaway/quickbootjs
main
# <picture><img src="./assets/quickbootjs-logo.svg" alt="Quickboot.js" height="32"></picture> <img alt="" src="https://github.com/naruaway/quickbootjs/assets/2931577/cf3fd6e0-e520-468b-889e-054b21112acc"> Quickboot.js is an **experimental** tool to reduce JS code size beyond tree-shaking. It uses runtime tracing, eval(), and sync XHR with **non trivial trade-offs.** It's hard to use it in a reliable way at least for now. However, this strategy is already producing interesting results. As an example, Quickboot.js was able to reduce the JS needed for simple animation demo using React and framer-motion from **202 Kb to 118 Kb**, which is **42%** size reduction 🤯 See the official site for more details and demos: https://quickbootjs.nry.app ## License Quickboot.js is [MIT licensed](./LICENSE).
Quickboot.js is an experimental tool to reduce JS code size beyond tree-shaking. It uses runtime tracing, eval(), and sync XHR with non trivial trade-offs
bundle-size-optimize,javascript
2023-09-05T09:15:21Z
2023-09-06T07:01:05Z
null
1
0
2
0
1
81
null
MIT
TypeScript
vercel-community/bun
main
# bun-vercel Run [Bun](https://bun.sh) on Vercel Serverless Functions [https://bun-vercel.vercel.app/](https://bun-vercel.vercel.app/) > This is an experimental project and should not be used in production. This project is not endorsed by Vercel. ```typescript // src/main.ts import { type Server } from "bun" export default { async fetch(request: Request, server: Server) { return new Response("Hello from Bun on Vercel", { status: 200, headers: { "Content-Type": "text/plain" } }) } } ``` ## Get Started There are two ways to deploy your project to Vercel: 1. GitHub integration 2. Manually from your computer ### GitHub Integration > Note: An issue in Bun must be resolved before this method is fully operational #### 1. Update your package.json with `bun-vercel` ```json { "devDependencies": { "bun-vercel": "^1.0.0-alpha.4", } } ``` #### 2. Update the `build` script run bun-vercel ```json { "scripts": { "build": "bun-vercel ./src/main.ts" } } ``` #### 3. Add a `vercel.json` with your build command ```json { "buildCommand": "bun run build" } ``` ### Manually Before starting you should follow the same setup steps as the GitHub integration, as they will be needed regardless. > Note: To deploy from your computer you must have Docker installed so we can build for Amazon Linux 1. Install the Vercel CLI and run `vercel link` 2. Run `bun run build` 3. Run `vercel deploy --prebuilt --prod`
🐰 Bun runtime for ▲ Vercel Serverless Functions
bun,javascript,nodejs,typescript,vercel,serverless
2023-09-11T19:16:17Z
2023-10-02T20:27:42Z
null
2
0
29
4
1
77
null
null
TypeScript
vitormarcal/chatvault
master
# chatvault Chat Vault is a Kotlin Spring Boot application designed to store backups of WhatsApp conversations from various sources, such as API imports, email, and directory monitoring, and provide easy access to these conversations through a frontend that resembles a chat application, like WhatsApp. This project is still in development, and some features may not be fully implemented. ## Key Features * Directory importing: Place files exported from whatsapp in specific directories to be imported into the application. * Automated Email Backup: Set up an email in ChatVault and export your messages as attachments to that email. Chat Vault identifies this email and archives the messages and attachments automatically. * Intuitive Frontend: To facilitate access to archived messages and their attachments, Chat Vault also includes a user-friendly frontend. Easily navigate conversations, search messages, and view attachments. ## How to export via the Whatsapp app Please read the [official Whatsapp FAQ](https://faq.whatsapp.com/1180414079177245/?cms_platform=android). With the imported file, to ingest it into ChatVault you can: * map a shared folder between the ChatVault import directory and your cell phone; * send by email for automatic import into ChatVault; * zip the imported file and upload it to the ChatVault interface. ## Repository structure This repository is divided into two main modules. They are the modules: frontend (javascript, vue, nuxt) and backend (kotlin, java, spring boot, gradle) ### Run Frontend module The front end module is a Vue/Nuxt application and it serves what will be rendered by the browser: html, css, javascript and static assets. To run the conventional way, with npm commands, follow the Readme in the frontend directory. You can run it with npm: `npm run dev` The frontend application will listen on port 3000 by default, unless you ran the backend application before (the backend listens on 8080), in which case the frontend will pick up a random port. ### Run Backend module You can run the backend application without an IDE: `./gradlew run` The backend application will listen to 8080 port by default. ### Docker Note that downloading container images might require you to authenticate to the GitHub Container Registry [steps here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry). You can use compose.yml to create a database and build the frontend and backend project locally. `docker-compose -f compose.yml` There are docker image packages on github. You can download the latest image with: `docker pull ghcr.io/vitormarcal/chatvault:latest` ### Environment variables For docker, the variables must be in upper case and where is "." it must be "_": `some.environment.variable` is like `SOME_ENVIRONMENT_VARIABLE` in docker | Environment variables | obs | example | |-------------------------------------------|------------------------------|----------------------------------------------------| | Database | required | | | spring.datasource.url | required | jdbc:postgresql://database_host:5432/database_name | | spring.datasource.username | required | user | | spring.datasource.password | required | secret | | -------------------------- | -------------------------- | --------- | | Email import | feat not required | | | chatvault.email.enabled | not required | true | | chatvault.email.host | required to feat | imap.server.com | | chatvault.email.password | required to feat | secret | | chatvault.email.port | required to feat | 993 | | chatvault.email.username | required to feat | someuser | | chatvault.email.debug | not required | true | | -------------------------- | | -------------------------- | | chatvault.host | not required | https://somehost.com ,http://localhost:3000 | | spring.servlet.multipart.max-file-size | not required | 500MB | | spring.servlet.multipart.max-request-size | not required | 500MB | | chatvault.msgparser.dateformat | not required but recommended | dd/MM/yyyy HH:mm | ------ * If not defined chatvault.msgparser.dateformat, the application will not be able to resolve ambiguities in certain situations
WhatsApp convo backups.. Features directory import, auto email backup, and a user-friendly frontend. View messages effortlessly.
backup,backup-tool,java,javascript,kotlin,nuxt,nuxt3,self-hosted,springboot,vue
2023-08-21T19:11:26Z
2024-02-22T14:20:25Z
2024-01-25T02:15:45Z
1
59
106
7
0
76
null
MIT
Kotlin
TarsLab/mostly-adequate-guide-video-zh
main
> Video tutorial series on *[mostly-adequate-guide](https://github.com/MostlyAdequate/mostly-adequate-guide)*。 [函数式编程指南](https://github.com/MostlyAdequate/mostly-adequate-guide)的中文讲解系列视频,视频里面提到的代码和课件都在该项目里。 视频系列中对白的主要参考[函数式编程指北](https://github.com/llh911001/mostly-adequate-guide-chinese)。 B站视频链接: - [第1章: 我们在做什么?](https://www.bilibili.com/video/BV11j411v7ft/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第2章: 一等公民的函数](https://www.bilibili.com/video/BV1fB4y1o74C/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第3章: 纯函数的好处](https://www.bilibili.com/video/BV1QM41197sz/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第4章: 柯里化 curry](https://www.bilibili.com/video/BV1v84y1972g/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第5章: 函数组合 compose](https://www.bilibili.com/video/BV1Ng4y1R76K/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第6章: 示例应用](https://www.bilibili.com/video/BV1Yb4y1M75n/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第7章: Hindley-Milner类型签名](https://www.bilibili.com/video/BV1HN411j7Nt/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) - [第8章: Functor 函子 Maybe、Either、IO、Task](https://www.bilibili.com/video/BV1wC4y1679Q/?share_source=copy_web&vd_source=580ef492c06a7e7fa3902ed3134fd80a) # 介绍 这是我这么多年学习编程技术收获最大的一本书。我把函数式编程思维应用到自己的工作项目中,代码质量有了质的飞跃,以前难以重构的代码重新获得生命,重新迭代起来,学习的回报巨大。但是在我学习那么多技术书中,它的学习过程最为艰辛。在学习过程中,对代码一知半解,不知道如何跑起来,不知道其中逻辑如何。由于函数式编程思维的方式和常见的命令式编程很不一样,这个困难更加突出。学习编程毕竟离不开敲代码,动手做练习,但是仓库里的练习题,检查是否正确,需要跨越多个文件去检查,很耗时麻烦。 所以,我制作这个系列的视频教程,期望能够让大家减少学习中的一些不必要的麻烦。 # 更高效的学习体验 - 代码逐步演示和解读,[quokka.js插件](https://marketplace.visualstudio.com/items?itemName=WallabyJs.quokka-vscode) ![代码逐步演示和解读](./images/feature-quokkaJs.gif) - 练习易上手,把测试合到一起,实时反馈 ![把测试合到一起,实时反馈](./images/feature-exercise.gif) - 幻灯片划重点,方便复习,[marp插件](https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode) ![幻灯片划重点,方便复习](./images/feature-marp.gif)
函数式编程指南的中文讲解系列视频 Mostly Adequate Guide to Functional Programming
functional-programming,javascript,tutorial,youtube,mostly-adequate-guide
2023-09-07T16:42:33Z
2024-01-27T16:58:24Z
null
1
0
29
0
8
69
null
NOASSERTION
JavaScript
jofpin/temcrypt
main
![temcrypt](press/temcrypt-cover.png) <h3>The Next-gen Encryption</h3> <a href="https://temcrypt.io">Try temcrypt on the Web →</a> <br/> # temcrypt SDK Focused on protecting highly sensitive data, temcrypt is an advanced multi-layer data evolutionary encryption mechanism that offers scalable complexity over time, and is resistant to common brute force attacks. > You can create your own applications, scripts and automations when > deploying it. ## Knowledge Find out what **temcrypt** stands for, the features and inspiration that led me to create it and much more. [**READ THE KNOWLEDGE DOCUMENT**](KNOWLEDGE.md). This is very important to you. ## Compatibility temcrypt is compatible with both Node.js v18 or major, and modern web browsers, allowing you to use it in various environments. ## Getting Started The only dependencies that temcrypt uses are `crypto-js` for handling encryption algorithms like **AES-256**, **SHA-256** and some encoders and `fs` is used for file handling with Node.js To use temcrypt, you need to have **[Node.js](https://nodejs.org/)** installed. Then, you can install temcrypt using npm: ```shell npm install temcrypt ``` after that, import it in your code as follows: ```js const temcrypt = require("temcrypt"); ``` Includes an **auto-install** feature for its dependencies, so you don't have to worry about installing them manually. Just run the `temcrypt.js` library and the dependencies will be installed automatically and then call it in your code, this was done to be portable: ```shell node temcrypt.js ``` Alternatively, you can use temcrypt directly in the browser by including the following script tag: ```html <script src="temcrypt.js"></script> ``` or minified: ```html <script src="temcrypt.min.js"></script> ``` You can also call the library on your website or web application from a **CDN**: ```html <script src="https://cdn.jsdelivr.net/gh/jofpin/temcrypt/temcrypt.min.js"></script> ``` ## Usage #### ENCRYPT & DECRYPT temcrypt provides functions like `encrypt` and `decrypt` to securely protect and disclose your information. **Parameters** - `dataString` (**string**): The string data to encrypt. - `dataFiles` (**string**): The file path to encrypt. Provide either `dataString` or `dataFiles`. - `mainKey` (**string**): The main key (private) for encryption. - `extraBytes` (**number**, **optional**): Additional bytes to add to the encryption. Is an optional parameter used in the temcrypt encryption process. It allows you to add extra bytes to the encrypted data, increasing the complexity of the encryption, which requires more processing power to decrypt. *It also serves to make patterns lose by changing the weight of the encryption.* **Returns** - If successful: - `status` (**boolean**): `true` to indicate successful decryption. - `hash` (**string**): The unique hash generated for the legitimacy verify of the encrypted data. - `dataString` (**string**) or `dataFiles`: The decrypted string or the file path of the decrypted file, depending on the input. - `updatedEncryptedData` (**string**): The updated encrypted data after decryption. The updated encrypted data after decryption. Every time the encryption is decrypted, the output is updated, because the mainKey changes its order and the new date of last decryption is saved. - `creationDate` (**string**): The creation date of the encrypted data. - `lastDecryptionDate` (**string**): The date of the last successful decryption of the data. - If `dataString` is provided: - `hash` (**string**): The unique hash generated for the legitimacy verify of the encrypted data. - `mainKey` (**string**): The main key (private) used for encryption. - `timeKey` (**string**): The time key (private) of the encryption. - `dataString` (**string**): The encrypted string. - `extraBytes` (**number**, **optional**): The extra bytes used for encryption. - If `dataFiles` is provided: - `hash` (**string**): The unique hash generated for the legitimacy verify of the encrypted data. - `mainKey` (**string**): The main key used for encryption. - `timeKey` (**string**): The time key of the encryption. - `dataFiles` (**string**): The file path of the encrypted file. - `extraBytes` (**number**, **optional**): The extra bytes used for encryption. - If decryption fails: - `status` (**boolean**): `false` to indicate decryption failure. - `error_code` (**number**): An error code indicating the reason for decryption failure. - `message` (**string**): A descriptive error message explaining the decryption failure. Here are some examples of how to use temcrypt. Please note that when encrypting, you must enter a key and save the hour and minute that you encrypted the information. To decrypt the information, you must use the same main key at the same hour and minute on subsequent days: #### Encrypt a String ```js const dataToEncrypt = "Sensitive data"; const mainKey = "your_secret_key"; // Insert your custom key const encryptedData = temcrypt.encrypt({ dataString: dataToEncrypt, mainKey: mainKey }); console.log(encryptedData); ``` #### Decrypt a String ```js const encryptedData = "..."; // Encrypted data obtained from the encryption process const mainKey = "your_secret_key"; const decryptedData = temcrypt.decrypt({ dataString: encryptedData, mainKey: mainKey }); console.log(decryptedData); ``` **Encrypt a File:** To encrypt a file using temcrypt, you can use the `encrypt` function with the `dataFiles` parameter. Here's an example of how to encrypt a file and obtain the encryption result: ```js const temcrypt = require("temcrypt"); const filePath = "path/test.txt"; const mainKey = "your_secret_key"; const result = temcrypt.encrypt({ dataFiles: filePath, mainKey: mainKey, extraBytes: 128 // Optional: Add 128 extra bytes }); console.log(result); ``` In this example, replace `'test.txt'` with the actual path to the file you want to encrypt and set `'your_secret_key'` as the main key for the encryption. The `result` object will contain the encryption details, including the unique hash, main key, time key, and the file path of the encrypted file. **Decrypt a File:** To decrypt a file that was previously encrypted with temcrypt, you can use the `decrypt` function with the `dataFiles` parameter. Here's an example of how to decrypt a file and obtain the decryption result: ```js const temcrypt = require("temcrypt"); const filePath = "path/test.txt.trypt"; const mainKey = "your_secret_key"; const result = temcrypt.decrypt({ dataFiles: filePath, mainKey: mainKey }); console.log(result); ``` In this example, replace `'path/test.txt.trypt'` with the actual path to the encrypted file, and set `'your_secret_key'` as the main key for decryption. The result object will contain the decryption status and the decrypted data, if successful. Remember to provide the correct main key used during encryption to successfully decrypt the file, at the exact same hour and minute that it was encrypted. If the main key is wrong or the file was tampered with or the time is wrong, the decryption status will be `false` and the decrypted data will not be available. --- #### UTILS temcrypt provides `utils` functions to perform additional operations beyond encryption and decryption. These utility functions are designed to enhance the functionality and usability. **Function List:** 1. **changeKey:** Change your encryption mainKey 2. **check:** Check if the encryption belongs to temcrypt 3. **verify:** Checks if a hash matches the legitimacy of the encrypted output. Below, you can see the details and how to implement its uses. **Update MainKey:** The `changeKey` utility function allows you to change the mainKey used to encrypt the data while keeping the encrypted data intact. This is useful when you want to enhance the security of your encrypted data or update the mainKey periodically. #### Parameters - `dataFiles` (**optional)**: The path to the file that was encrypted using temcrypt. - `dataString` (**optional**): The encrypted string that was generated using temcrypt. - `mainKey` (**string**): The current mainKey used to encrypt the data. - `newKey`(**string**): The new mainKey that will replace the current mainKey. ```js const temcrypt = require("temcrypt"); const filePath = "test.txt.trypt"; const currentMainKey = "my_recent_secret_key"; const newMainKey = "new_recent_secret_key"; // Update mainKey for the encrypted file const result = temcrypt.utils({ changeKey: { dataFiles: filePath, mainKey: currentMainKey, newKey: newMainKey } }); console.log(result.message); ``` **Check Data Integrity:** The `check` utility function allows you to verify the integrity of the data encrypted using temcrypt. It checks whether a file or a string is a valid temcrypt encrypted data. #### Parameters - `dataFiles` (**optional**): The path to the file that you want to check. - `dataString` (**optional**): The encrypted string that you want to check. ```js const temcrypt = require("temcrypt"); const filePath = "test.txt.trypt"; const encryptedString = "..."; // Encrypted string generated by temcrypt // Check the integrity of the encrypted File const result = temcrypt.utils({ check: { dataFiles: filePath } }); console.log(result.message); // Check the integrity of the encrypted String const result2 = temcrypt.utils({ check: { dataString: encryptedString } }); console.log(result2.message); ``` **Verify Hash:** The `verify` utility function allows you to verify the integrity of encrypted data using its hash value. Checks if the encrypted data output matches the provided hash value. #### Parameters - `hash` (**string**): The hash value to verify against. - `dataFiles` (**optional**): The path to the file whose hash you want to verify. - `dataString` (**optional**): The encrypted string whose hash you want to verify. ```js const temcrypt = require("temcrypt"); const filePath = "test.txt.trypt"; const hashToVerify = "..."; // The hash value to verify // Verify the hash of the encrypted File const result = temcrypt.utils({ verify: { hash: hashToVerify, dataFiles: filePath } }); console.log(result.message); // Verify the hash of the encrypted String const result2 = temcrypt.utils({ verify: { hash: hashToVerify, dataString: encryptedString } }); console.log(result2.message); ``` ## Error Codes The following table presents the important error codes and their corresponding error messages used by temcrypt to indicate various error scenarios. | Code | Error Message | Description | |------------|-----------------------------------------------------|------------------------------------------------------------------| | 420 | Decryption time limit exceeded | The decryption process took longer than the allowed time limit. | | 444 | Decryption failed | The decryption process encountered an error. | | 777 | No data provided | No data was provided for the operation. | | 859 | Invalid temcrypt encrypted string | The provided string is not a valid temcrypt encrypted string. | ## Examples Check out the [examples](examples) directory for more detailed usage examples. > #### ⚠️ **RECOMMENDATION** > The encryption size of a string or file should be less than **16 KB (kilobytes)**. If > it's larger, you must have enough computational power to decrypt it. > Otherwise, your personal computer will exceed the time required to > find the correct main key combination and proper encryption formation, > and it won't be able to decrypt the information. > #### ℹ️ **TIPS** > 1. With temcrypt you can only decrypt your information in later days with the key that you entered at the same hour and minute that you encrypted. > 2. Focus on time, it is recommended to start the decryption between the first 2 to 10 seconds, so you have an advantage to generate the correct key formation. ## License The content of this project itself is licensed under the [Creative Commons Attribution 3.0 license](http://creativecommons.org/licenses/by/3.0/us/deed.en_US), and the underlying source code used to format and display that content is licensed under the [MIT license](LICENSE). Copyright (c) 2023 by [**Jose Pino**](https://x.com/jofpin)
Evolutionary encryption framework based on scalable complexity over time
cryptography,encryption,javascript,mechanism,nodejs,privacy,security,temcrypt
2023-08-15T22:36:37Z
2023-09-10T22:01:05Z
null
1
0
15
0
8
65
null
MIT
JavaScript
tramvaijs/tramvai
main
# [<img src="tools/docSite/static/img/logo/tramvai-yellow-full.svg" alt="taiga ui logo" height="32px">](https://tramvai.dev/) Modular framework for universal React applications --- ## Features - ✈️ **Universal** Creates SSR `React` applications - includes solid server with metrics, health checks and graceful degradation support - 💉 **Dependency Injection** Provides simple and powerful DI system, inspired by `Angular` and `Nest.js` best practices - 🧩 **Modular** Every application build from list of feature modules - doing one thing right! - ⚡ **Fast and lightweight** Enforces best web-performance techniques - resources preloading and inlining, lazy hydration 🚀, modern ES bundles, tree-shakable libraries - 🔗 **Chain of commands** Elegant pattern for complete control over application life-cycle - predictable flow for every HTTP request into application, running async actions in parallel, limits the duration of server-side actions - 🧱 **Micro Frontends** Heavily integrated solution for Micro Frontends with SSR and Module Federation - 🛠️ **Tooling** Functional CLI for generating, develop, analyze, and bundling `tramvai` applications - powered by `webpack@5` - 🧪 **Testing** Complete set of unit and integration testing utilites - powered by `jest` and `testing-library` - 🕊️ **Migrations** Automatic migrations with `jscodeshift` codemodes ## Get started 1. Generate new application ```sh npm init @tramvai@latest my-awesome-app ``` 2. Run development server ```bash cd my-awesome-app && npm start ``` application will be available at `http://localhost:3000/` ## Tutorials [Pokedex application](https://tramvai.dev/docs/tutorial/new-app) ## Sandboxes [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/tramvai-new-qgk90?fontsize=14&hidenavigation=1&theme=dark)
A modular framework for universal JS applications
javascript,nodejs,react,server-side-rendering,ssr,typescript
2023-08-11T09:33:11Z
2024-05-22T08:34:48Z
null
22
1
636
0
3
65
null
Apache-2.0
TypeScript
RickyDane/rdpFX
master
<h1 align="center">rdpFX</h1> <p align="center"><img width="200x" height="auto" src="https://github.com/RickyDane/rdpFX/assets/82893522/880b33d3-d749-49e8-906f-fee2abc053d9" /></p> <a href='https://ko-fi.com/F1F8OL456' target='_blank'><p align="center"><img height='36px' style='border: 0px; height: 36px;' src='https://storage.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></p></a> <p align="center"> <img src="https://img.shields.io/badge/Windows-blue" /> <img src="https://img.shields.io/badge/macOS-white" /> <img src="https://img.shields.io/badge/Linux-red" /> </p> <a href="https://github.com/RickyDane/rdpFX/actions/workflows/main.yml"><p align="center"><img src="https://github.com/RickyDane/rdpFX/actions/workflows/main.yml/badge.svg?branch=master"></p></a> <p align="center"> A simple file explorer that was born because I wanted to learn the Rust language. <br> It is operating system independent and trimmed for optimization. </p> <br><br> The performance is provided by ["rust_search"](https://crates.io/crates/rust_search) and ["Tauri"](https://tauri.app/). <br><br> rdpFX does not use path caching to access files and folders, so the performance is achieved by Rust, the speed of the disk and the power of the cpu. ⁉️ Keep in mind that this software is still work in progress and will contain bugs! ### Basic features - Navigate through directories as you know it - Copy & Paste, delete, create and rename files and folders - Switch between "big buttons"-, list and miller columns mode - Close popups with esc - Ctrl / Cmd + F for a quicksearch in the current directory - Jump to a directory with Ctrl / Cmd + G by inputting a path - Sort items in list mode by size, name or last modified ### Advanced features - Compress files and folders - zip - Unpack archives automatically into a new folder in the working directory - rar - zip - 7zip - Navigate to a directory using the shortcut LAlt + 1 / 2 / 3 | (macOS option + 1 / 2 / 3) - Configure the paths yourself in the settings - Create file with F6 - Create folder with F7 - Dual-Pane view - Search for files with F8 - Copy current selected element to other pane with F5 - Move current selected element to other pane with LShift + F5 - Drag and drop files into the explorer to copy them into the current directory - Multi rename your selection with Ctrl / Cmd + LShift + M - Run multi rename with Ctrl / Cmd + Return #### Language Support - English - Option to choose between languages coming soon ... #### ⚠️ Known issues: - Drag and drop out of the window is currently not working on linux - On windows you may have to install [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170) - Permissions on ms-windows are a little bit strange - You may have to run the program as administrator if you encounter problems to copy elements or something similar - ~~Tabs are not fully worked out yet~~ #### 📝 Todos: - Multiple languages - FTP-Integration - Favorites - Drag to select - Access network storage - Access online storage <br> ## Star History <a href="https://star-history.com/#rickydane/rdpfx&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=rickydane/rdpfx&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=rickydane/rdpfx&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=rickydane/rdpfx&type=Date" /> </picture> </a> <br/><br/> <img width="700" src="https://github.com/RickyDane/rdpFX/assets/82893522/ecb0f7a0-07c4-48a0-a573-a045b51f3150" /> <img width="700" src="https://github.com/RickyDane/rdpFX/assets/82893522/e61516a1-c3a0-48f7-a1e4-3fbd7bf3dbf1" /> <img width="700" src="https://github.com/RickyDane/rdpFX/assets/82893522/45933861-78a3-4380-b40f-0465436e99c6" /> ## Speed comparison ![2023-08-27-08-14-02](https://github.com/RickyDane/rdpFX/assets/82893522/237b28a0-d667-4bea-91a9-a43cb9277c49)
The simple fast file explorer in rust-tauri
development,file-explorer,file-manager,javascript,rust-lang,tauri,rdpfx
2023-08-13T10:40:59Z
2024-04-30T14:31:14Z
2024-04-29T11:33:34Z
1
60
465
2
1
62
null
null
JavaScript
ianshulx/React-projects-for-beginners
main
<h1>React Beginners Hacktoberfest Repository</h1> Welcome to the React Beginners Hacktoberfest Repository! This is a special place for beginners who are passionate about learning and contributing to open-source projects using React JS. <h3>NOTE: PLEASE CHECK YOUR PR0JECT CAREFULLY, IT SHOULD BE ERROR-FREE, YOUR PROJECT WILL BE REVIEWED If REVIEWER FOUND ANY ERROR YOU REQUEST WILL MARKED AS "INVALID".<h3> <h3>Description</h3> This repository serves as a platform for Hacktoberfest participants who are on their journey to mastering React JS. It's a place where you can share your mini-projects, learn from others, and contribute to the growth of the open-source community. Whether you've built a simple calculator, a to-do list, or a weather app, your contributions are welcomed here. The main goal of this repository is to encourage learning and collaboration among developers who are new to React and open-source contributions. <h3>What is Hacktoberfest?</h3> Hacktoberfest is a month-long celebration of open-source software run by DigitalOcean. It's open to everyone in our global community. Whether you’re a developer, a student learning to code, an event host, or a company of any size, you can help drive the growth of open-source and make positive contributions to an ever-growing community. All backgrounds and skill levels are encouraged to complete the challenge. ### Process of Contribution 1._Fork_ : Fork this GitHub Repo to your own github account 2._Clone_ : Clone the forked repo (the repo present on your account) to your local machine. ```terminal git clone https://github.com/ianshulx/React-projects-for-beginners ``` 3.Create a _new Branch_ ```markdown git checkout -b my-new-branch ``` 4._Changes_ : Create a new branch and commit your changes on that branch. 5._ADD_ and _COMMIT_ - Add your changes ```markdown git add . ``` - Commit your changes. ```markdown git commit -m "Relevant message" ``` 6._Push_ : After all changes are commited, push your changes to your remote repo. ```markdown git push origin my-new-branch ``` 7._PR_ : After pushing changes, raise a PR from your remote repo to this repo's dev branch By participating in this repository, you will not only be contributing to the open source, but also improving your skills in React JS. Let's make learning React fun and interactive during this Hacktoberfest! Happy Coding and Happy Hacktoberfest! <h3>Contribution Guidelines</h3> Please make sure to follow the contribution guidelines before making a pull request. Quality contributions are what make the open-source community an amazing place to learn, inspire, and create. Find the full list of guidelines in the CONTRIBUTING.md file. <h3>Code of Conduct</h3> This project adheres to the Hacktoberfest Values ↗ and the Contributor Covenant Code of Conduct ↗. By participating, you are expected to uphold this code. <h3>License</h3> This repository is licensed under the MIT License. Let's start contributing and make the open-source community a better place for everyone!
Are you a beginner eager to enhance your React JS skills? Look no further! This repository is the perfect platform for you to dive into the world of React development and contribute to open source during Hacktoberfest.
contribution,contributions-welcome,hacktoberfest,hacktoberfest-accepted,hacktoberfest2023,javascript,mini-project,opensource,opensource-projects,opensourceforgood
2023-08-29T17:11:43Z
2024-05-11T05:19:53Z
null
19
40
114
1
33
59
null
MIT
JavaScript
microsoft/genaiscript
main
![GenAIScript logo a yellow square with genai text](./docs/public/images/favicon.png) # GenAIScript Scripting environment with convenient tooling for file ingestion, prompt development and structured data extraction. ```js wrap // metadata and model configuration script({ title: "Title Extractor", model: "gpt4" }) // define the context def("FILE", env.files, { endsWith: ".pdf" }) // define the data const schema = defSchema("DATA", { type: "array", items: { type: "string" } }) // define the task $`Analyze FILE and extract titles to JSON compliant with ${schema}.` ``` - **Read the online documentation at https://microsoft.github.io/genaiscript/** ## Contributing We accept contributions! Checkout the [CONTRIBUTING](./CONTRIBUTING.md) page for details and developer setup. ## Trademarks This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Generative AI Scripting for VSCode
genai,llm,vscode-extension,chatgpt,javascript,prompt-engineering,scripting,typescript,ai,genaistack
2023-08-17T15:57:21Z
2024-05-22T20:22:27Z
2024-05-21T21:07:22Z
15
182
1,957
45
16
58
null
MIT
TypeScript
Tronic247/svelte-ripple-action
main
# Svelte Ripple Action <p> <img src="https://deno.bundlejs.com/badge?q=svelte-ripple-action" alt="" /> <img src="https://img.shields.io/github/commit-activity/t/posandu/svelte-ripple-action" /> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/posandu/svelte-ripple-action"> </p> View the [demo](https://ripple.posandu.com/). Svelte Ripple Action is a simple and customizable action for creating ripple effects on elements in a Svelte application. ## Installation Install the package from npm or your preferred package manager: ```bash npm install svelte-ripple-action ``` ## Usage 1. Import the CSS styles for the ripple effect: ```javascript import "svelte-ripple-action/ripple.css"; ``` 2. Import the `ripple` action and use it on any element you want to have a ripple effect on: ```svelte <script> import { ripple } from "svelte-ripple-action"; </script> <button use:ripple>Click me</button> ``` That's it! You now have a ripple effect on your element. ## Options You can pass options to customize the ripple effect. ### `center?: boolean` By default, the ripple effect starts from the point where the user clicks on the element. If you want the ripple effect to start from the center of the element, you can pass the `center` option. ```svelte <button use:ripple={{ center: true }}>Click me</button> ``` ### `color?: string` You can customize the color of the ripple effect by passing a valid CSS color value to the `color` option. ```svelte <button use:ripple={{ color: "rgba(255, 0, 0, 0.2)", }} >Red ripple</button> ``` ### `duration?: number` You can control the duration of the ripple effect in seconds by passing a number to the `duration` option. ```svelte <button use:ripple={{ duration: 2 }}>2 seconds</button> <button use:ripple={{ duration: 0.2 }}>0.2 seconds</button> ``` ### `maxRadius?: number` You can control the maximum radius of the ripple effect in pixels by passing a number to the `maxRadius` option. ```svelte <button use:ripple={{ maxRadius: 100 }}>100px</button> ``` ## Credits Created by [Posandu](https://posandu.com). You can find the source code on [GitHub](https://github.com/posandu/svelte-ripple-action).
Svelte Ripple Action
css,javascript,material-design,svelte,sveltekit,typescript
2023-08-12T08:10:25Z
2024-03-14T09:32:13Z
null
1
0
14
1
0
55
null
MIT
Svelte
oslabs-beta/QLutch
main
# QLutch ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/white-base.svg?raw=true) A lightweight caching solution for graphQL APIs that interfaces with Redis for high-speed data retrieval, combined with performance visualization. ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB) ![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white) ![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white) ![Redis](https://img.shields.io/badge/redis-%23DD0031.svg?&style=for-the-badge&logo=redis&logoColor=white) ![GraphQL](https://img.shields.io/badge/-GraphQL-E10098?style=for-the-badge&logo=graphql&logoColor=white) ![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB) ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=for-the-badge&logo=mongodb&logoColor=white) ____ # Features - Redis cache integration for graphQL queries and *Create* mutations. - Performance monitor. ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/data_flow_readme.png?raw=true) ## Dashboard Visualizer ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/demo.png?raw=true) # Usage Notes - Caching support for Update and Delete mutations is not yet implemented. # Installation - User creates application and installs qlutch dependency via [npm](https://www.npmjs.com/package/qlutch) (npm install qlutch) - Set up Redis database in application - Require qlutch and Redis in server file - For the dashboard visualizer, add express static path to node modules: ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/expressStatic.png?raw=true) - For the dashboard visualizer, add a dashboard endpoint with a path to the qlutch dist index file: ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/dashboard.png?raw=true) - Need two endpoints – one for qlutch and one for graphql. Install qlutch as middleware in qlutch endpoint – pass in “graphql” endpoint and redis instance as arguments. User would need to return res.locals.response: ![alt text](https://github.com/lrod8/Qlutch/blob/main/assets/endPoints.png?raw=true) - Fetch requests on frontend will need to be made to /qlutch endpoint # Authors - [@Michael-Weckop](https://github.com/Michael-Weckop) - [@lrod8](https://github.com/lrod8) - [@alroro](https://github.com/alroro) - [@Reneeto](https://github.com/Reneeto) # Acknowledgements - [Charlie Charboneau](https://github.com/CharlieCharboneau) - [Annie Blazejack](https://github.com/annieblazejack) - [Matt Severyn](https://github.com/mtseveryn) - [Erika Collins Reynolds](https://github.com/erikacollinsreynolds) - [Sam Arnold](https://github.com/sam-a723)
A lightweight caching solution for graphQL APIs
caching,graphql,javascript,metrics,react,redis,express-js,jest,mongodb
2023-08-18T01:27:36Z
2023-11-10T01:51:03Z
null
64
15
126
0
1
54
null
MIT
JavaScript
nodejsdevbr/vagas
main
<p align="center"> <img src="https://avatars3.githubusercontent.com/u/143637418?s=230&v=4" alt="NodeJsDevBR" width="230" /> </p> # Vagas (Somente vagas de Node.JS - JavaScript e/ou TypeScript) Espaço para a divulgação de vagas para desenvolvedores via _issues_ do Github. Vagas disponíveis em https://github.com/nodejsdevbr/vagas/issues ### Cadastrando uma vaga Abra uma **issue** e, no titulo desta _issue_, coloque o nome da cidade entre colchetes seguido do nome da vaga e nome da empresa. Exemplo: `[São Paulo] [NOME DA EMPRESA]` Informe quais _labels_ devemos adicionar, contendo o nível de experiência desejada e a forma de contração. **Atenção**: Não aceitaremos vagas sem o nome da empresa contratante. ## Como receber atualizações das vagas Você pode receber atualizações das vagas no seu email ou via notificações do GitHub, basta clicar em **Watch** e, em seguida, clicar em **Watching** no canto superior direito da interface do site, próximo a sua foto de perfil. #### Importante Para evitar que possíveis candidatos enviem cvs para vagas já preenchidas, dê manutenção à sua issue, a cada 14 dias (2 semanas) coloque um comentário que continua procurando para a vaga ou feche a mesma comentando se a pessoa foi contratada através do nosso grupo ou por fora. Caso a issue passe de 14 dias e não tiver manutenção, a mesma será fechada por um moderador do repositório. ### Outros repositórios de vagas #### Por área - [Vagas para desenvolvedores Back-End](https://github.com/backend-br/vagas) - [Vagas para desenvolvedores Front-End](https://github.com/frontendbr/vagas) - [Vagas para QAs](https://github.com/qa-brasil/vagas) #### Por tecnologia - [Vagas para desenvolvedores Android](https://github.com/androiddevbr/vagas) - [Vagas para desenvolvedores iOS e OSX](https://github.com/CocoaHeadsBrasil/vagas) - [Vagas para desenvolvedores PHP](https://github.com/phpdevbr/vagas) - [Vagas para desenvolvedores Python](https://github.com/pydevbr/vagas) - [Vagas para desenvolvedores Vue.js](https://github.com/vuejs-br/vagas) - [Vagas para desenvolvedores Go/Golang](https://github.com/Gommunity/vagas) - [Vagas para desenvolvedores Flutter](https://github.com/flutter-brazil/vagas) - [Vagas para desenvolvedores React/React Native](https://github.com/react-brasil/vagas) - [Vagas para desenvolvedores .NET](https://github.com/dotnetdevbr/vagas) - [Vagas para desenvolvedores Rust](https://github.com/rustdevbr/vagas) - [Vagas para desenvolvedores Elm](https://github.com/FidelisClayton/elm-jobs) - [Vagas para desenvolvedores Kotlin](https://github.com/kotlin-br/vagas) - [Vagas para desenvolvedores Node.JS](https://github.com/nodejsdevbr/vagas) - [Vagas para desenvolvedores Ruby](https://github.com/rubydevbr/vagas) #### Por localidade - [Vagas para desenvolvedores no Ceará](https://github.com/CangaceirosDevels/vagas_de_emprego) - [Vagas para desenvolvedores em Salvador](https://github.com/devssa/onde-codar-em-salvador) - [Vagas para desenvolvedores Front-end (Angola)](https://github.com/frontend-ao/vagas) - [Vagas para desenvolvedores Back-end (Angola)](https://github.com/backend-ao/vagas) - [Vagas para desenvolvedores Front-end (Portugal)](https://github.com/frontend-pt/vagas) - [Vagas para desenvolvedores Back-end (Portugal)](https://github.com/backend-pt/vagas) ## Licença [MIT](/LICENSE) &copy; NodeJSDevBR ## Agradecimento Especial para a comunidade [Front-End BR](https://github.com/frontendbr/) que nos inspirou :)
🔬 Espaço para divulgação de vagas para desenvolvedores Node.JS
javascript,js,node-js,nodejs,ts,typescript,vagas,vagas-backend,vagas-de-emprego,vagas-para-desenvolvedores
2023-08-30T16:27:27Z
2024-05-13T10:27:21Z
null
2
6
18
26
2
48
null
MIT
null
Devrax/Butlermock
master
# Butlermock [![Made with Fresh](https://fresh.deno.dev/fresh-badge-dark.svg)](https://fresh.deno.dev) <a href="https://www.buymeacoffee.com/devrafx" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 37px !important;width: 170px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a> Tool for building mocks from typescript's types/interfaces into object with actual data using Fakerjs > Documentation on develop, in the near future I will expose the endpoints for you to use it within your client application, so, stay on tune 🐒 Table of contents ================= <!--ts--> * [Web usage](#web-usage) * [API usage](#api-documentation) * [Example as package/library](#Example-as-package/library) * [FAQs](#faqs) * [Limitations](#limitations) * [Status](#status) <!--te--> # Web usage Just go to https://butlermock.online/ and in the left panel paste your interfaces or types, just be aware of the [current limitations](#status) ( I am working for supporting the others ) Wait until the monaco editor shows up and paste your interfaces to later clicking the play button and the mock shows up almost immediately. ![Butlermock's landing](doc/assets/landing.png) > ![button guide](doc/assets/buttons.png) > The "play" button mocks up, "clipboard" copies the mock created and the "X" button is for cleaning the view # API documentation Easy peasy ``` typescript fetch(new URL("/api/mock", 'https://butlermock.online').href, { method: "POST", headers: { "content-type": "application/json", }, body: JSON.stringify({ value: `interface Test { Hello: "World!"; }`, valueForAny: "null", // any parseable json value, values: "null" | "\"Whatever the text you want\"" | "{}" | "0" | "1" | ... | "9" mustReturn: "", // empty or the top-level name of the interfaces that you provided quantity: 1, // if is greater than 1, the api response will be an array of the interfaces provided }), }) .then(res => res.json()).then(console.log); // should log: //{ // "Test": { // "Hello": "World!" // } //} ``` > **Always remember to format your interfacer or type correctly, if you forget to add ";" it may result in bad parsing** ![Bad format](doc/assets/Butlemock-bad-formatting.jpeg); ### Recommedations when using the API If you are going to consume the API I suggest that you use fetch() instead of your own HTTPS calling implementation, to avoid sending credentials which I don't store, but security reasons try to use it in the way I suggest, just for privacy reasons. **REPEATING, I DO NOT STORE ANY DATA. :)**. # Example as package/library 👷🏻‍♂️🚧 [Check here](https://github.com/Devrax/Butlermock-package) > Under construction 🚧 # Guide when providing an interface or type to be mocked up ```typescript const mock = new Interface2Mock(`interface Greeting { hello: string; cursed: { damn: string; }[]; }`); // ❌ Butler mock cannot process direct objects, yet ``` ```typescript const mock = new Interface2Mock(`interface Greeting { hello: string; cursed: CursedWord[]; } type CursedWord = { damn: string; }`); // ✅ Butler Mock can format this way ``` # FAQs ### **Q: Is it using an AI?** A: No :) ### Q: How can I tell the API or website to give me a fixed value? A: You just type explicitly the value you want: ``` typescript interface ThisIsSparta { troops: 300; leader: "Leonidas"; murderedBy: true; } interface mightBeSparta { troops: 200 | 594 | 2893 | 39; leader: "Trump" | "Me" | "You?"; murderedBy: true; // fixed Booleans can not be multiples values, for that use explicitly 'boolean' } ``` ### Q: Can I copy full code snippet and it will detect the interfaces? A: Yes :) ![Can I copy full code snippet and it will detect the interfaces?](doc/assets/IlustrationQuestion.png) # Limitations This section is for known limitations that Butlermocks has, but in the future might be able to recognize and mock: |type| casting | description | |----|---------|-------------| |Array| Array<string \| boolean \| number \| any>| This casting is not supported, use (string \| boolean \| number \| any)[] instead| |fixed string | When fixed string includes ";" or ":" | When providing a fixed string value with a semicolon in it, you must use escape for that semicolon inside the string for correct json representation; Example: `interface Example { fixedString: "I am using a semicolon '\\;' so I used escaping '\\' :)"; }`| # Status - [x] *Interfaces* ```typescript interface NonMockeableInterface {} // ❌ empty interface interface MockeableInterface { somethingToMock: any; } // ✅ Mockeable export interface AnotherMockeableInterface { anotherThingToMock: any; } // ✅ Mockeable, 'export' is ignored ``` <br /> - [x] Interfaces with nested interfaces/types ```typescript type mockeableType = { name: string; } // ✅ Mockeable interface MockeableInterface { somethingToMock: any; nestedInterface: AnotherMockeableInterface; extraNestedInterface: AnotherMockeableInterface[]; } // ✅ Mockeable export interface AnotherMockeableInterface { anotherThingToMock: any; } // ✅ Mockeable, 'export' is ignored ``` <br /> - [x] Interfaces that extends from other interfaces/types ``` typescript interface That { ... } interface This extends That {} // ✅ Mockeable ``` <br /> - [ ] Generic Interfaces ``` typescript // Not mockeable yet interface This<T> { here: T; } // ❌ ``` <br /> - [ ] Generic Interfaces that extends from other interfaces/types ```Typescript // Not mockeable yet interface Evnt<T> { name: T; } interface IPropertiesToAdd<T> extends Evnt<T> { on(): void; off(): void; } // ❌ ``` <br /> - [x] Primitive Type ``` typescript // Not mockeable yet type justString = string; // ✅ Mockeable ``` <br /> - [x] Type object ``` typescript type justString = { yes: 'you can'; }; // ✅ Mockeable ``` <br /> - [x] Type with nested interfaces/types ``` typescript type mockeableType = { nestedObject: MockeableInterface; } // ✅ Mockeable interface MockeableInterface { somethingToMock: any; } // ✅ Mockeable ``` <br /> - [ ] Generic Type ``` typescript // Not mockeable yet type IPropertiesToAdd<T extends {}> = T & { on(): void off(): void }; // ❌ ```
Tool for creating mocks objects with fake data using TypeScript types/interfaces as schema and Faker as fake data source
faker,javascript,mocking-utility,typescript,web,interface,types
2023-08-15T05:27:04Z
2024-05-01T03:47:12Z
null
1
1
96
0
1
47
null
MIT
TypeScript
clutch-creator/clutch
main
# Clutch [![Discord](https://img.shields.io/discord/949340418229800990?style=for-the-badge&logo=discord&logoColor=6e56cf&label=Community&labelColor=211F26&color=6e56cf)](https://discord.gg/YhJtM8Z4Tg) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCpTtIbA7n-hfNSpDbBJv2lA?style=for-the-badge&logo=YouTube&logoColor=e5484d&labelColor=211F26&color=e5484d)](https://www.youtube.com/channel/UCpTtIbA7n-hfNSpDbBJv2lA?sub_confirmation=1) [![Twitter Follow](https://img.shields.io/twitter/follow/clutchcreator?style=for-the-badge&logo=twitter&labelColor=211F26&color=rgba(0%2C0%2C0%2C0))](https://twitter.com/intent/user?screen_name=clutchcreator) Clutch is a high-performance website builder that creates statically-generated edge-hosted sites that are fundamentally faster, more scalable, and more secure than sites created with monolithic platforms like WordPress or Drupal. ## Performance Get top [PageSpeed](https://pagespeed.web.dev) scores and improve [Web Vitals](https://web.dev/vitals/): - Powered by [Next.js](https://nextjs.org), a high-performance full-stack [React](https://react.dev) framework. - Automatic image, font, and script optimization reduces [Page Weight](https://almanac.httparchive.org/en/2022/page-weight) and improves [Largest Contentful Paint](https://almanac.httparchive.org/en/2022/page-weight). - HTML streaming improves performance by sending page content in smaller parts and progressively rendering them. - React server components reduce client-side JavaScript. - Static site generation - Pages and nested layouts (is this performance?) - Fetch data from any backend with automatic caching ## Edge Hosting - Edge vs cloud... - No servers to scale, it is all automatic - Scales down to 0, cheap to get started and cheap to scale - Serverless database too! - 1-click deploy to Clutch hostign powered by Vercel - info... - Supports continued development :) - Or export and host on any hosting platform that supports Next like Netlify, others... (list) - Withstand any traffic spike, automatic failover and global replication of assets. - Built on cutting-edge serverless technology, Vercel can withstand any traffic spike, with automatic failover and global replication of assets. - Your site, fast everywhere. Deploy content around the world and update it in 300ms. - $20 - acts as your host and your cache and everything. that’s the power of the edge - no need for WP Engine and CloudFlare (more performance for less money) - 90 cities, 99.99% uptime Gauranteed - Used by Adobe, eBay, Netflix, Wapo, HashiCorp, etc.. (link to used by page) ## Support Us - Hosting - Experts - Tweets - Stars - Other?
The Next Website Builder for High-Performance Marketing
blog,components,frontend,javascript,low-code,lowcode,nextjs,no-code,nocode,page-builder
2023-08-09T16:03:38Z
2023-08-29T17:45:21Z
null
10
7
23
10
3
44
null
MIT
null
oslabs-beta/ScanQL
main
<div align="center" width="100%"> [![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] [![LinkedIn][linkedin-shield]][linkedin-url] </div> <br /> <div align="center"> <a href="https://scanql.dev"> <img src="https://github.com/oslabs-beta/ScanQL/blob/main/src/assets/logo-horizontal-v2-darkmode.png" alt="Logo" width="550" height="auto"> </a> <br /> https://scanql.dev/ <br/> <br /> <p align="center"> ScanQL is an elegant and effective tool designed to empower developers aiming for database and query optimization to ensure their operations run smoothly and efficiently. Beyond optimization, ScanQL offers a holistic view of a database, empowering one to understand the intricate details and interrelations within their database. <br /> </p> </div> ## About The Project <div align="center" width="100%"> ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) ![Javascript](https://img.shields.io/badge/javascript-%23424242.svg?style=for-the-badge&logo=javascript&logoColor=F7DF1E) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![React Router](https://img.shields.io/badge/React_Router-CA4245?style=for-the-badge&logo=react-router&logoColor=white) ![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge&logo=postgresql&logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) ![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white) ![cypress](https://img.shields.io/badge/-cypress-%23E5E5E5?style=for-the-badge&logo=cypress&logoColor=058a5e) ![Testing Library](https://img.shields.io/badge/TestingLibrary-E33332?style=for-the-badge&logo=TestingLibrary&logoColor=black) ![Docker](https://img.shields.io/badge/docker-2496ED?style=for-the-badge&logo=docker&logoColor=white) ![Git](https://img.shields.io/badge/Git-F05032?style=for-the-badge&logo=Git&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB) ![Vite](https://img.shields.io/badge/vite-646CFF?style=for-the-badge&logo=vite&logoColor=FFD62E) ![Vitest](https://img.shields.io/badge/Vitest-6E9F18?style=for-the-badge&logo=Vitest&logoColor=FCC72B) ![HTML5](https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=HTML5&logoColor=white) ![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=CSS3&logoColor=white) ![RadixUI](https://img.shields.io/badge/radixui-E1E2E4?style=for-the-badge&logo=radixui&logoColor=161618) ![Chart.js](https://img.shields.io/badge/Chart.js-242121?style=for-the-badge&logo=chart.js&logoColor=FF6384) </div> ## Features: + Database Visualization: Get a holistic view of your entire database schema, allowing for a better understanding of relations, data distribution, and table structures. + Query Performance Analysis: With ScanQL's testing mechanism, analyze the planning and execution times of generic SELECT and UPDATE queries, pinpointing potential bottlenecks and inefficiencies. + ER Diagram: Visualize intricacies of your database structure with our enhanced ER Diagram. Experience an interactive representation of your database's relationships and dependencies, making comprehension and optimization more intuitive than ever. ## Why ScanQL? + Holistic View: Go beyond traditional data views and understand your database from a macro and micro perspective. + Empowered Decision Making: Make informed decisions about schema changes, indexing, and more based on the insights ScanQL offers. + Automated Tests: Without writing a single line of SQL, get performance metrics on commonly used SELECT and UPDATE queries as soon as you connect your database ## How ScanQL Works + Visualizing the Database: Simply connect to your database by submitting your URI connection string for your Postgres database, and our tool will automatically provide you with an overview of the composition of your database, a detailed analysis of its size through various metrics, past performance analysis of quiries run on your database (Note: limited for unpaid versions of postgres databases), and also map out the database structure in the ERD tab, providing a visual representation of tables, relations, and more. <p align="center"> <img src="https://github.com/oslabs-beta/ScanQL/blob/main/src/assets/GIFs/Dashboard_gif.gif" alt="animated" /> </p> + Performing Query Tests: ScanQL will run a series of generic SELECT and UPDATE queries on each table in your database to determine planning and execution times. This provides a baseline understanding of how optimized your current setup is. <p align="center"> <img src="https://github.com/oslabs-beta/ScanQL/blob/main/src/assets/GIFs/ERD_gif.gif" alt="animated" /> </p> + Custom Query Testing: Input any query of your choice and get a comprehensive analysis of the performance of running that query. Understand metrics such as time taken, caching details, the type of scan used, and the number of rows hit. This deep dive enables fine-tuning and precise optimization of your database queries <p align="center"> <img src="https://github.com/oslabs-beta/ScanQL/blob/main/src/assets/GIFs/CustomQuery_gif.gif" alt="animated" /> </p> \*\*Note\*\* - **PostgreSQL Database Provider Access:** Ensure you have the appropriate permissions with your PostgreSQL database provider. Some metrics might be restricted depending on the access level you have. - **pg_stats:** If you are leveraging `pg_stats` for metrics, you may need additional privileges or access rights. Check with your PostgreSQL database provider or your system administrator for assistance. If you encounter any issues or need more information, consult your PostgreSQL documentation or feel free to reach out to us! ## Privacy & Security At ScanQL, your privacy and security are paramount: + No Storage of URI Strings: We understand the significance of database URIs. ScanQL is designed to never store or cache your database URI strings, ensuring they remain confidential. + Data Privacy: Personal data and database contents remain entirely within your domain. ScanQL does not store, share, or transmit your data. + Secure Analysis: The metrics and insights provided by ScanQL are processed securely without any external sharing or storage. Our commitment is to offer optimization insights without compromising on security. ## Contributing We welcome contributions! If you find a bug or want to propose a feature, feel free to open an issue or create a pull request. ## License ScanQL is licensed under the MIT License. See LICENSE.md for more details. ## Authors | Developed By | Github | | :-: | :-: | | Daniel Kim |[![Github](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/danykdev) | Sam Heck |[![Github](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Sam-Heck) | Yahya Talab |[![Github](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/YahyaT95) | Danny Murcia |[![Github](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/dm2800) | Kurt Bulau |[![Github](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/kbulau) [contributors-shield]: https://img.shields.io/github/contributors/oslabs-beta/ScanQL.svg?style=for-the-badge [contributors-url]: https://github.com/oslabs-beta/ScanQL/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/oslabs-beta/ScanQL.svg?style=for-the-badge [forks-url]: https://github.com/oslabs-beta/ScanQL/network/members [stars-shield]: https://img.shields.io/github/stars/oslabs-beta/ScanQL.svg?style=for-the-badge [stars-url]: https://github.com/oslabs-beta/ScanQL/stargazers [issues-shield]: https://img.shields.io/github/issues/oslabs-beta/ScanQL.svg?style=for-the-badge [issues-url]: https://github.com/oslabs-beta/ScanQL/issues [license-shield]: https://img.shields.io/github/license/oslabs-beta/ScanQL.svg?style=for-the-badge [license-url]: https://github.com/oslabs-beta/ScanQLr/blob/master/LICENSE.txt [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://www.linkedin.com/company/scanql/
A Real-Time PostgreSQL Monitoring, Analysis, and Visualization Developer Tool
chartjs,cypress,docker,express,javascript,nodejs,open-source,postgresql,radix-ui,react-flow
2023-08-12T00:53:06Z
2023-09-15T01:57:43Z
null
65
88
316
0
3
41
null
MIT
TypeScript
eeg1412/wikimoeNodeJSBlog
main
# 猛男自用的【维基萌博客系统】 ![N`AG~U3E547WKDN{J P2H22](https://github.com/eeg1412/wikimoeNodeJSBlog/assets/27753071/4b5177e5-6f1b-414b-938b-336c0b7a68ed) ## 当前已知问题 1. 在 Windows 环境中运行开发版 blog 会出现图片加载失败的现象,这是因为 Nuxt.js 所使用的 Nitro 在开发模式中反代有并发问题导致的,build 之后在 Linux 下运行是不会出现这个问题的(Windows 服务器未验证)。 2. 如果不做任何设置的话,资源文件默认是通过 nuxt3 反代到 express 获取资源文件的,但是 nuxt3 不知道对流媒体的请求做了什么处理,导致苹果设备的 safari 无法查看视频,解决办法是不要通过 nuxt3 去反代资源文件,而是通过比如 nginx 去反代资源文件。 ## 说明 【维基萌博客系统】推荐 Node.js 20 版本和 mongodb 6 版本。 其他版本也许可以跑,但是没测试过。 【维基萌博客系统】的架构如下图所示: ![image](https://github.com/eeg1412/wikimoeNodeJSBlog/assets/27753071/997d9cb4-56fc-4886-b155-bb5102fd20b9) 项目目录分为三个部分 server:博客 api 部分 admin:博客管理后台部分 blog:博客部分 其中 admin 部分仅编译成 html 给 server 提供管理端的页面 三个部分需要按照顺序编译/启动 ## 1.博客 管理后台前端 ### 进入文件夹 ``` cd admin ``` ### 安装依赖 ``` yarn install ``` ### 编译 ``` yarn build ``` 编译后会在 server/front 下生成 admin 文件夹,如果服务器配置并不支持编译的话可以在本机安装 nodejs 20 的环境后,在本机编译并上传到服务器 ## 2.博客 API 部分 ### 进入文件夹 ``` cd server ``` ### 安装依赖 ``` yarn install ``` ### 配置.env 文件 可以将目录下的 sample.env 复制并更名为.env 配置内容如下: ``` PORT="填写运行端口号" DB_HOST="填写mongodb地址" JSON_LIMT="JSON格式的大小限制如(50mb)" URLENCODED_LIMT="URL编码的大小限制如(50mb)" JWT_SECRET="JWT所用的密文" IP2LOCATION="1为开启IP地址解析" IP2LOCATION_FILE_NAME="地址解析用到的BIN文件,一般为IP2LOCATION-LITE-DB3.BIN,切记一定要下载【DB3.LITE】的BIN文件" MAX_HISTORYLOGS_SIZE="日志集合的最大占用空间,单位字节默认1073741824(1GB)" ``` **关于 IP2LOCATION 文件** - 请自行在[IP2Location Lite](https://lite.ip2location.com/)网站注册下载 BIN 文件。 - 注意一定要选择【DB3.LITE】 IP-COUNTRY-REGION-CITY 的 BIN 文件,如果网站有 IPv6 需求的话可以下载 IPv6 的 BIN 文件,IPv6 的 BIN 文件已经包含 IPv4。 - 下载的 BIN 文件请放在 server/utils/ip2location 目录下 ### 运行 ``` yarn start ``` ### 创建管理员(如果需要) ``` yarn run create-user ``` 也可以通过参数的形式直接创建管理员 ``` yarn run create-user 账号 密码 昵称 ``` #### 注意 1.**用户名仅支持半角小写英文和数字** 2.**密码必须 4 位以上且包含大小写、数字和符号(!@#$%^&\*)** ## 3.博客 页面 部分 ### 进入文件夹 ``` cd blog ``` ### 安装依赖 ``` yarn install ``` ### 配置.env 文件 可以将目录下的 sample.env 复制并更名为.env 文件内容如下: ``` NUXT_API_DOMAIN="填写API的HTTP地址,如:http://localhost:3006" GOOGLE_ADSENSE_ID="如果需要设置谷歌广告,填写谷歌广告ID" GOOGLE_ADSENSE_TEST_MODE="是否启用测试模式 1 为启用,0 为不启用" GOOGLE_ADSENSE_POST_DETAIL_BT="文章底部广告,填写格式为:ad-slot,ad-format,ad-layout-key" SWR_ENABLED="设置为1时打开SWR缓存,将会消耗大量内存提升访问速度" SWR_CACHE_MAXAGE="SWR缓存时间,单位秒,默认10秒" SWR_CACHE_STALEMAXAGE="staleMaxAge的时间,单位秒,默认3600秒" CACHE_MAX_PAGE="开启SWR时的缓存页面数量,默认10个页面" CACHE_TTL="缓存的过期时间,单位毫秒,默认60000毫秒" SHOW_LOADING="是否显示进入网站时的读取动画,需要时为1" ``` ### 配置谷歌广告 ads.txt (如果需要) 在/blog/public/目录下放置 ads.txt 即可 ### 编译 ``` yarn build ``` 编译后会在 blog/build 生成编译.output 的文件夹,如果服务器配置并不支持编译的话可以在本机安装 nodejs 20 的环境后,在本机编译并上传到服务器 ### 进入编译文件夹 ``` cd build ``` ### 运行 linux ``` yarn start-linux ``` windows ``` yarn start-windows ``` ※在 blog/build/package.json 中可以修改运行端口
猛男自用博客系统,基于nodejs,mongodb
blog,mongodb,nodejs,nuxt3,express,vue,javascript
2023-09-04T03:12:29Z
2024-05-18T05:32:12Z
2024-05-18T05:32:12Z
1
0
937
0
5
40
null
MIT
Vue
OpenFrenchFries/supasveltekit
main
# SupaSvelteKit ⚡ > 🌟 Where Svelte's elegance meets Supabase's might! 🌟 SupaSvelteKit is a library designed to seamlessly integrate SvelteKit with Supabase, providing developers with a powerful toolkit to build dynamic web applications. ## 🎉 Features - **Authentication** 🔐: Easily integrate Supabase authentication with SvelteKit. - **Realtime** ⏱️: Simplified multi-user realtime updates with Svelte stores. - **Storage** 📦: Manage your Supabase storage with Svelte components. - ... and more to come! Stay tuned and feel free to suggest or contribute new features! ## 🛠 Installation ```bash npm install supasveltekit ``` ## 🚀 Quick Start 1. Initialize your Supabase client: ```src/lib/supabase.ts``` ```ts import { PUBLIC_SUPABASE_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public'; import { createClient } from '@supabase/supabase-js'; export const supabaseUrl = PUBLIC_SUPABASE_URL; export const supabaseKey = PUBLIC_SUPABASE_KEY; export const supabase = createClient(supabaseUrl, supabaseKey); ``` 2. Use SupaSvelteKit components in your SvelteKit app: ```src/routes/+page.svelte``` ```svelte <script lang="ts"> import { supabase } from '$lib/supabase'; import { SupabaseApp, Authenticated, Unauthenticated, RealtimePresence, BucketFilesList } from 'supasveltekit'; </script> <SupabaseApp {supabase}> <Authenticated let:session let:signOut> <h1>Welcome, {session?.user?.identities?.[0]?.identity_data?.email}!</h1> <button on:click={() => signOut()}>Sign Out</button> <BucketFilesList bucketName="test-bucket" path="public/" let:bucketFiles let:error> {#if error !== null} <div>{error}</div> {/if} <ul> {#each bucketFiles as file} <li> {file.name} </li> {/each} </ul> </BucketFilesList> <RealtimePresence channelName="my-channel"> <div slot="default" let:state let:error let:realtime let:channel let:updateStatus> {#if error} <p>Error: {error.message}</p> {:else if !state} <p>Loading...</p> {:else} <p>Connected to channel {channel?.name}</p> <p>Number of users: {state?.count}</p> <button on:click={() => updateStatus({ status: 'online' })}>Go online</button> <button on:click={() => updateStatus({ status: 'offline' })}>Go offline</button> {/if} </div> </RealtimePresence> </Authenticated> <Unauthenticated> <h1>Sign in to continue</h1> <button on:click={() => signIn()}>Sign In</button> </Unauthenticated> </SupabaseApp> ``` ## 📚 Documentation For detailed documentation, usage guides, and API references, dive into [our documentation site](http://SupaSvelteKit.openfrenchfries.com/). ## 📖 Examples Explore hands-on examples to get a feel for how SupaSvelteKit enhances your projects: - [Basic Todo App](https://github.com/OpenFrenchFries/supasveltekit-example-todo) - [Authentication Demo](https://github.com/orgs/OpenFrenchFries/repositories) - ... and more examples coming soon! If you've built something cool with SupaSvelteKit, let us know! ## 💪 Contributing Join the SupaSvelteKit journey! 🌍 Whether you're fixing bugs, suggesting enhancements, or enriching the documentation, every contribution counts. Dive into our [CONTRIBUTING.md](.github/CONTRIBUTING.md) to get started. ## 📜 License Freedom with responsibility! SupaSvelteKit is [MIT licensed](LICENSE), ensuring open use with acknowledgment. ## 🙌 Acknowledgements A big shoutout 📣: - To the Svelte and Supabase communities for lighting the way with invaluable resources and support. - To every coder, contributor, and coffee mug that's been part of this journey. ☕ --- Crafted with 🧡 by [OpenFrenchFries](https://github.com/OpenFrenchFries) and the amazing contributors. [Join us!](.github/CONTRIBUTING.md)
Where Svelte's elegance meets Supabase's might!
svelte,sveltekit,typescript,authentication,cloud,database,javascript,opensource,realtime,supabase
2023-08-25T22:30:49Z
2024-05-17T16:41:28Z
2024-01-26T01:41:38Z
4
35
122
1
3
35
null
MIT
TypeScript
zuavra/nginx-ip-whitelister
master
# nginx-ip-whitelister This is a Node.js server app that acts as a companion for an [Nginx](https://nginx.org/en/) install configured as reverse proxy and compiled with the [`ngx_http_auth_request_module`](https://nginx.org/en/docs/http/ngx_http_auth_request_module.html). It validates proxy requests against a list of IP addresses. In order for an IP to be added to the list a key must be presented in the query string. Once whitelisted, each IP will be valid for a configurable amount of time. This app was designed to be particularly easy to integrate with [Nginx Proxy Manager](https://github.com/NginxProxyManager/nginx-proxy-manager/) running in Docker. <!-- TOC --> - [1. Security warning](#1-security-warning) - [1.1. Don't use this](#11-dont-use-this) - [1.2. There are better ways to secure your server](#12-there-are-better-ways-to-secure-your-server) - [1.3. How do I mitigate the security risk?](#13-how-do-i-mitigate-the-security-risk) - [1.4. What to do if you suspect trouble](#14-what-to-do-if-you-suspect-trouble) - [2. Prerequisites](#2-prerequisites) - [3. How do I use it?](#3-how-do-i-use-it) - [4. How does it work under the hood?](#4-how-does-it-work-under-the-hood) - [5. How to run the whitelister](#5-how-to-run-the-whitelister) - [5.1. Running as a standalone app](#51-running-as-a-standalone-app) - [5.2. Running with Docker](#52-running-with-docker) - [5.2.1. Run a standalone Docker container](#521-run-a-standalone-docker-container) - [5.2.2. Run a Docker container alongside a Nginx Proxy Manager container](#522-run-a-docker-container-alongside-a-nginx-proxy-manager-container) - [5.2.3. Pull the pre-built Docker image](#523-pull-the-pre-built-docker-image) - [5.2.4. Build a Docker image yourself](#524-build-a-docker-image-yourself) - [6. How to integrate with Nginx](#6-how-to-integrate-with-nginx) - [6.1. Nginx proxy host configuration](#61-nginx-proxy-host-configuration) - [6.1.1. Simple configuration example](#611-simple-configuration-example) - [6.1.2. Advanced configuration example](#612-advanced-configuration-example) - [6.2. Validator URLs](#62-validator-urls) - [6.2.1. Validation endpoints](#621-validation-endpoints) - [6.2.2. Management endpoints](#622-management-endpoints) - [6.2.3. Security](#623-security) - [7. Configuring the validator](#7-configuring-the-validator) - [7.1. Environment variables](#71-environment-variables) - [7.2. Timeout headers](#72-timeout-headers) - [7.3. Condition headers](#73-condition-headers) - [8. Validation logic](#8-validation-logic) - [9. Credits](#9-credits) <!-- /TOC --> ## 1. Security warning ### 1.1. Don't use this ⚠️ **Never use this** while on public WiFi at a cafe, hotel, airport, festival, mall etc., on a cellular connection (cell tower), or at work. By granting access to your public IP in such a place you grant access to an entire building or even an entire area full of people. In such situations you MUST use a secure tunnel (VPN/SSH) or an IAM provider that uses cookies over TLS. ### 1.2. There are better ways to secure your server __*nginx-ip-whitelister*__ was designed to be a security improvement over leaving your Emby/Jellyfin completely open to the whole Internet. That's not a very high bar. **There are better methods**. If you've arrived to this page because you want to secure your server please read through the following comparisons first: 1. Ask your friends to use a VPN like OpenVPN/WireGuard/Tailscale or an SSH tunnel on their PC, laptop, phone or tablet. VPN/SSH lets you access Emby/Jellyfin in your browser or from the Emby/Jellyfin apps. * Pros: they can use Jellyfin from the browser or 3rd party Emby/Jellyfin apps; excellent security; each friend uses their own acces key; they can safely use it anywhere, even at public venues or at a hotel. * Cons: can't cast to media devices (TV, Chromecast etc.) 2. Ask friends to login to IAM provider like Authelia/Authentik or [vouch-proxy](https://github.com/vouch/vouch-proxy) in their browser. * Pros: also excellent security; can be used in public venues; easier to use than a VPN. * Cons: can't cast to media devices; can't use 3rd party Emby/Jellyfin apps (you can *only* access it in a browser). 3. Set up a VPN/SSH tunnel client on your relative/friend's *router* and let the router handle the VPN stuff. * Pros: good security; lets people use any browser or 3rd party app; all devices on their LAN can connect so you can cast to media devices. * Cons: not portable, and the router needs to be a prosumer model to support VPN/SSH. 4. Set up a VPN/SSH tunnel client on someone's phone and have them activate WiFi hotspot on the phone when they want to grant access to others. (If they don't want to share access then just see bullet 1, no need for hotspot.) * Pros: good security; can be used in public venues or at hotels; any device that connects to the hotspot can access Emby/Jellyfin from browsers or 3rd party apps, which means people can cast to media devices too. * Cons: more complicated for everybody involved; all devices need to connect to the hotspot to access Emby/Jellyfin; it will consume from the phone's cellular data plan; probably eats up the battery too. 5. Use SSH to browse the files on your server remotely. Use a mobile player that can stream from SSH or a file explorer like Solid Explorer that has the ability to relay SSH files to any player app. Use an app like BubbleUPnP as the player app if you want to also cast to a LAN renderer. * Pros: good security; can be used in public venues or at hotels; can cast to media devices. * Cons: restricted to mobile phones and a specific combination of apps. 6. nginx-ip-whitelister: * Pros: you can use it from browser or 3rd party apps; it lets you cast to media devices. * Cons: not as secure as the other options; MUST NOT be used from public venues, hotels etc. In conclusion, it's true that __*nginx-ip-whitelister*__ solves some problems, like allowing you to use Emby/Jellyfin apps or letting you cast to media devices; but granting access to whatever public IP you may be using at the time can and **will** backfire if you don't know what you're doing. ### 1.3. How do I mitigate the security risk? In case you're still foolish enough to use this: * __*nginx-ip-whitelister*__ won't work on its own. You must use it alongside Nginx acting as a reverse proxy. * **Enable HTTPS** on the reverse proxy! If you don't do this you might as well give up the whole thing right now. * Use a **long key** for validation. For example: ``` dd status=none if=/dev/urandom bs=1024 count=1|sha256sum ``` * Consider enabling **Basic Authentication** on the reverse proxy as an additional layer of protection and using a **long username and password**. * Understand that there's **no way** to prevent the access link from making its way into the world, hopping from friend to friend. ### 1.4. What to do if you suspect trouble * **Stop __*nginx-ip-whitelister*__** (kill the app or the docker container). Nginx will refuse requests if it cannot reach the validating backend. * You can **use `/?LOGOUT` as a key** (case-insensitive) and it will de-list your current IP (but only your current IP). * **Change the keys** before you start the app/container back up again. * **Check the logs** to see what went wrong. ## 2. Prerequisites In order to use __*nginx-ip-whitelister*__ you must have already accomplished the things below: * The host that runs Emby/Jellyfin has a public IP (your ISP allocates one for you, or you're using a VPS etc.) * You have a \[sub]domain A record pointing at that public IP (and you use DDNS to keep it in sync if it's dynamic etc.) * You forward a port in your firewall to an Nginx install acting as reverse proxy in front of Emby/Jellyfin. * Nginx was compiled with the [`ngx_http_auth_request_module`](https://nginx.org/en/docs/http/ngx_http_auth_request_module.html). Run `nginx -V` and check the output to see if the module is present. * You have configured TLS for your domain, so that all connections to Emby/Jellyfin are encrypted. This is crucial; again, if you don't do this then the whole setup is worthless. * Bottom line, if you connect to `https://your.domain[:PORT]/` you can see and use your Emby/Jellyfin. > It is beyond the scope of this documentation to explain how to achieve all this. For what it's worth I recommend using [Nginx Proxy Manager](https://github.com/NginxProxyManager/nginx-proxy-manager/) because it makes some of the things above a lot easier. ## 3. How do I use it? After completing the requirements and activating the whitelister in the proxy config, your Emby/Jellyfin install should show 403 errors to any visitor when accessed through the reverse proxy. To make it work you need to use a link like this: `https://your.domain[:PORT]/?ACCESS-KEY[:TOTP]` This will record your current IP and allow it normal access for a period of time. If you're using someone's WiFi all the devices using it will have access too, meaning you can cast to local media devices, TVs etc. If you want to stop allowing your IP before the timeout runs out use "LOGOUT" as a key: `https://your.domain[:PORT]/?LOGOUT` You can use the proxy host configuration to pass additional configuration options to the validator as HTTP headers. It's a good idea to configure different keys for different people, at the very least. Please read the configuration section to find out more. ## 4. How does it work under the hood? The link goes to the Nginx reverse proxy, where it runs against the Nginx proxy configuration for `your.domain`. You add the auth_request directive to the proxy configuration to cause requests to be validated against a 3rd party URL. That 3rd party URL belongs to the __*nginx-ip-whitelister*__ – which needs to be running at an address that the Nginx host can access. Whenever __*nginx-ip-whitelister*__ sees a valid access key in a request URL it adds the visitor's IP address to a whitelist. Once that happens, all requests from the IP (which usually means everybody and everything in their LAN) will be allowed through. You can optionally configure more conditions for the visitors such as IP netmasks, GeoIP, TOTP codes etc. ## 5. How to run the whitelister ### 5.1. Running as a standalone app Copy `.env.example` to `.env` and edit to your liking. Then: ``` $ npm install --omit-dev $ node index.js ``` You may want to use a tool like `supervisor` or `nodemon` that will restart the whitelister if it fails. It's also a good idea to redirect output to a log file that you can examine later if something goes wrong. ### 5.2. Running with Docker #### 5.2.1. Run a standalone Docker container You can run this app as a Docker container that listens on the host's network interface. Use this if your Nginx or Nginx Proxy Manager are able to communicate directly with the host network. Download the `docker-compose-standalone.yaml` file then run `docker-compose up -d` from the same directory. #### 5.2.2. Run a Docker container alongside a Nginx Proxy Manager container If you intend to run both Nginx Proxy Manager and **_nginx-ip-whitelister_** as Docker containers you need to define a Docker network between them so the proxy will be able to reach the validator. The file `docker-compose-proxy-manager.yaml` contains an example configuration that will deploy both NPM and this app in separate containers, but allow them to communicate through a Docker network. You will need to create the Docker network: `docker network create nginx-network` Then run `docker-compose up -d` from the same directory where you've downloaded the `.yaml` file. #### 5.2.3. Pull the pre-built Docker image You can find pre-built Docker images for this project on the GitHub Container Repository: https://github.com/users/zuavra/packages/container/package/nginx-ip-whitelister The example `.yaml` files provided with the source code already refer to the pre-built image, for your convenience. However, you can also pull the ready-made image manually, to use in Docker configurations you've written yourself, or as a layer for other Docker images, or simply when you wish to update to the latest version of the app. To do that, run: `docker pull ghcr.io/zuavra/nginx-ip-whitelister:latest` > After pulling the latest image please remember that you also have to stop, remove, and then remake any Docker containers based on it. #### 5.2.4. Build a Docker image yourself If you'd like to build a local Docker image yourself, for example if you've modified the source code, you can use the `Dockerfile` and `.dockerignore` included in the package and run the following command from the project root: ``` $ docker build --tag zuavra/nginx-ip-whitelister . ``` Yes, there's a dot at the end of the command. This will build the image and publish it to your machine's local image repository, where it's now ready for being used by Docker containers. > Please remember to change your `.yaml` files or `docker run` commands to use the name of the local image (`zuavra/nginx-ip-whitelister:latest`) rather than the GHCR pre-built image (`ghcr.io/zuavra/nginx-ip-whitelister:latest`). You will also have to stop,remove and remake containers in order to use the new image. ## 6. How to integrate with Nginx ### 6.1. Nginx proxy host configuration In order to tell Nginx to use __*nginx-ip-whitelister*__ you need to use the `auth_request` directive to validate requests against the correct verification URL, and pass to it the original URI and the remote IP address. > In order to be able to use `auth_request`, Nginx needs to include the [`ngx_http_auth_request_module`](https://nginx.org/en/docs/http/ngx_http_auth_request_module.html). Check the output of `nginx -V` for the module name. The `auth_request` directive is pretty flexible and can be used in `http`, `server` or `location` contexts. If you're using Nginx Proxy Manager, edit the proxy host that you're using for Emby/Jellyfin and add this example configuration in the "Advanced" tab. #### 6.1.1. Simple configuration example This is a very basic example that only blocks requests without the correct key. ``` auth_request /__auth; location = /__auth { internal; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://nginx-iw:3000/verify; proxy_set_header x-nipw-key "AVeryLongStringToBeUsedAsSecretKey"; } ``` If you're running the app standalone or in a non-networked container please replace `nginx-iw` with the appropriate hostname or IP address. #### 6.1.2. Advanced configuration example This is a more advanced example that shows you how to use some access headers to set up custom access conditions. These aren't all the possible headers, see the next section for a full list. ``` auth_request /__auth; location = /__auth { # common proxy settings internal; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; proxy_set_header X-Forwarded-For $remote_addr; # the next line has a parameter that makes this proxy instance use # a separate IP whitelist called "jellyfin" instead of the default whitelist proxy_pass http://nginx-iw:3000/verify?jellyfin; # specific access settings; see the next section for all possible headers proxy_set_header x-nipw-key-isolation "disabled"; proxy_set_header x-nipw-fixed-timeout "3h"; proxy_set_header x-nipw-sliding-timeout "30m"; proxy_set_header x-nipw-geoip-allow "DE"; proxy_set_header x-nipw-key "AVeryLongStringToBeUsedAsSecretKey"; } ``` ### 6.2. Validator URLs #### 6.2.1. Validation endpoints Use `/verify` from the proxy host config to call the conditional validator. This validator endpoint is subject to the conditions that you have specified using `x-nipw-*` headers. You can add an alphanumeric parameter to it (e.g. `/verify?ServiceName123`) to make it use a specific named whitelist. If the parameter is not provided it will use the default whitelist. This allows you to use different whitelists for different services. Having separated whitelists allows you to quickly reset the access whitelist for only one service from the admin interface without affecting the other services. > The parameter that gives the whitelist name is case-sensitive! `Jellyfin` and `jellyfin` will go to different whitelists. You can also use `/approve` to always unconditionally pass the check, and `/reject` to always unconditionally fail the check (for integration tests). #### 6.2.2. Management endpoints Use `/admin/whitelist` directly to see the current whitelist state. It provides links to `/admin/delete` that allow you to kick out individual addresses or wipe out a whitelist completely. Your own current IP is indicated in red if present. ![Admin overview](https://github.com/zuavra/nginx-ip-whitelister/blob/master/admin_overview.png?raw=true) #### 6.2.3. Security None of these endpoints are secured by default so do not expose them on the Internet without adding some form of protection (reverse proxy with basic authentication, IAM provider, VPN, SSH etc.) If you wrap them behind reverse proxy you *can* use the validator to whitelist access to its own management endpoints but be warned it will suffer from all the shortcomings characteristic to IP whitelisting. Ideally, validation endpoints should only be exposed on the internal Docker network between the Nginx Proxy Manager container and the validator container; and management endpoints only on the LAN, or properly tunneled. ## 7. Configuring the validator ### 7.1. Environment variables The following variables can be added to the app environment. You can defined them in an `.env` file placed near `index.js` if you're running a standalone app, or provide them in the compose configuration, or as docker command line parameters etc. * `PORT`: defines the port that the validator listens on. *Defaults to `3000`.* * `HOST`: defines the interface that the validator listens on. *Defaults to `0.0.0.0`.* * `DEBUG`: if set to `yes` it will log every request to the standard output. By default it will only log the startup messages. ### 7.2. Timeout headers The following headers can optionally be passed to the validator from Nginx to adjust the timeout policy for the whitelist. The header names are case insensitive. You can only use these headers once each – additional uses will be ignored. The timeouts are **always** enforced, whether you use these headers or not. Using the headers merely allows you to adjust the intervals. * `x-nipw-fixed-timeout`: A strictly positive integer, followed by the suffix `d`, `h`, `m` or `s` to indicate an amount of days, hours, minutes or seconds, respectively. The fixed timeout is compared against the moment when an IP was first added to the whitelist and it does not change. In other words, if you set a fixed timeout of `6h`, the IP will be de-listed 6 hours later, period. If you don't provide this header *the fixed timeout defaults to 2 hours*. * `x-nipw-sliding-timeout`: Same format as the fixed timeout. The sliding timeout is compared against the most recent access from that IP, and if successful the last access is reset to now. In other words, if you set a sliding timeout of '30m', the IP will not be de-listed unless there's no access for 30 straight minutes. If you don't provide this header *the sliding timeout defaults to 5 minutes*. > Both timeout policies are enforced in parallel – each IP has a fixed time window from when it started *as well as* a condition to not be inactive for too long. ### 7.3. Condition headers The following headers can optionally be passed to the validator from Nginx to impose additional condition upon the requests. The header names are case insensitive. Most of these headers can be used multiple times (exceptions are noted below). > Please don't use commas or semicolons inside header values, they can sometimes cause header libraries to split the value into separate ones. * `x-nipw-key`: Define an authentication key. * `x-nipw-key-isolation`: Value can be *"enabled" (default)* or "disabled" (case-insensitive). This header is only processed once (duplicates are ignored). When key isolation is enabled it prevents keys from being used by multiple IPs at the same time; once an IP has been whitelisted the key it used can't be used again until the IP exits the whitelist. * `x-nipw-netmask-allow`: Define an IP network mask to allow. An IP that doesn't match any of the allow masks will be rejected. * `x-nipw-netmask-deny`: Define an IP network masks to deny. An IP that matches any of the deny masks will be rejected. These headers will be ignored if any `-netmask-allow` header is defined. * `x-nipw-geoip-allow`: Specify a two-letter ISO-3166-1 country code to allow. An IP that doesn't match any allow countries will be rejected. Private IPs always pass this check. * `x-nipw-geoip-deny`: Define a two-letter ISO-3166-1 country code to deny. An IP that matches any of the deny countries will be rejected. Private IPs always pass this check. These headers will be ignored if any `-geoip-allow` header is defined. * `x-nipw-totp`: Define a TOTP secret. If any `-totp` header is defined, the visitor will have to append a valid TOTP code matching one of the secrets to the URL key, separated by a colon: `/?ACCESS-KEY:TOTP-CODE`. If none of the secrets have been matched the request will be rejected. > Please understand that GeoIP matching is far from perfect. This project uses a "lite" GeoIP database which is not super-accurate, but even the larger databases can make mistakes. Accept the fact that occasionally you will end up blocking (or allowing) an IP that shouldn't be. ## 8. Validation logic The logic works in the following order: * If the validation app cannot be reached by Nginx or returns any status code other than 2xx (including 500 if it malfunctions), request is rejected. * If any allow netmasks are defined and the IP doesn't match any of them, request is rejected. * If any deny netmasks are defined and the IP matches any of them, request is rejected. * If any GeoIP allow countries are defined and the IP is not private and doesn't match any of them, request is rejected. * If any GeoIP deny countries are defined and the IP is not private and matches any of them, request is rejected. * If the IP is found in the whitelist and has not expired (subject to both sliding and fixed timeout), request is approved. * If the visitor's URL key doesn't match any of the defined keys, request is rejected. * If key isolation is in effect and the visitor's key was already used by another IP in the whitelist, request is rejected. * If any TOTP secrets are defined and the visitor's URL TOTP code doesn't match any of them, request is rejected. * The IP is added to the whitelist, request is approved. > **Remember** that the whitelist is stored in RAM and will be lost every time you stop or restart the app (or its container). ## 9. Credits This project uses [IP Geolocation by DB-IP](https://db-ip.com). Please note that the `dbip-country-lite.mmdb` file is licensed under [Creative Commons Attribution 4.0 International](http://creativecommons.org/licenses/by/4.0/).
Backend for ngx_http_auth_request_module that whitelists remote IP address if a key is presented in URL.
nginx,nginx-proxy-manager,ngx-http-auth-request,connect,javascript,node,node-js,docker,docker-compose,dockerfile
2023-09-06T10:32:36Z
2024-05-22T12:18:19Z
2024-05-22T12:18:19Z
1
12
122
4
3
34
null
MIT
JavaScript
Alvalens/Alvalens-porto-2-nextJs
master
# Alvalens Porto 2 ![visitor badge](https://visitor-badge.laobi.icu/badge?page_id=aleph-discord-bot.visitor-badge) This is my debut project utilizing Next.js, a portfolio website featuring four primary sections: Home, About, Projects, and Contact. The site is brought to life with animations powered by Framer Motion, enhanced page transitions with Fullpage.js, and styled using elements of Tailwind CSS. This project also read list of project data from a JSON file. It serves as a showcase of my web development skills and represents my initial foray into web development with Next.js. ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) ## Features * **Smooth Animation:** Smooth page scroll and scroll trigger animation. * **Smooth Page Transition:** Smooth page transition with prefetching feature of next js. * **Dynamic Data:** Read the project data from JSON file instead of directly implemented the data. * **Intelliticks chat widget:** Chat with owner of the web realtime. * **Spotify realtime widget:** Show what song youre playing in this web. ## Installation 1. Ensure you have [pnpm](https://pnpm.io/) installed. If not, you can install it using: ```shell npm install -g pnpm ``` 2. Clone the repository: ```shell git clone https://github.com/Alvalens/Alvalens-porto-2-nextJs.git ``` 3. Navigate to the project directory: ```shell cd Alvalens-porto-2-nextJs ``` 4. Install dependencies: ``` pnpm install ``` 5. Start the development server ```shell pnpm next dev ``` 6. Update the Intelliticks chat widget script in components/Chat.jsx, with your own ```javascript "use client" import { useEffect } from "react"; // Component for Intelliticks chat widget const Chat = () => { useEffect(() => { // Replace the Intelliticks script here }, []); return null; }; export default Chat; ``` 7. Set env.local by copying env.example and fill the variable ``` SPOTIFY_CLIENT_ID= SPOTIFY_CLIENT_SECRET= SPOTIFY_REFRESH_TOKEN= ``` for further reference on how to setup spotify api you can check this [link ](https://leerob.io/blog/spotify-api-nextjs "leerob blog") ## Usage There are four main sections and two subpages in this portfolio website: ### Home The home page serves as an introduction to the portfolio. It provides an overview of your web development skills and passion for the field. Users can explore other sections from here. ### About The about page offers more detailed information about you as a web developer. It might include your background, education, skills, and interests in the field of web development. ### Projects The projects section showcases your work as a web developer. Users can explore the projects you've worked on, and you can provide details such as project descriptions, technologies used, and images. ### Contact The contact page allows users to get in touch with you. You can provide contact information or a contact form for inquiries. ### Subpages - **Project archive:** list all of your project that dont needed to display at main project page. - Project details: See the main project detail by clicking the project image. Feel free to customize and expand upon these sections and subpages to suit your needs and showcase your unique skills and projects. ### Intelliticks chat widget Enjoy chat realtime with ease using Intelliticks (https://app.intelliticks.com/) ## Contributing Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or submit a pull request. ## Reference (inspiration) - https://www.frans.my.id/ - https://kuon-yagi-portfolio.netlify.app/ ## License This project is licensed under the GPL-3.0 License see the [LICENSE](LICENSE) file for details.
My second portofolio website created using nextJs and animated using fullpage js and motion framer
framer-motion,fullpage-js,javascript,nextjs,portofolio-website
2023-09-05T14:39:45Z
2024-05-23T06:15:25Z
null
2
4
82
0
3
32
null
GPL-3.0
JavaScript
Kiran1689/kiran1689
main
<!--Banner--> ![Kiran1689 Banner Image](./banner.png) <!--Night Owl image--> <div> <img align="right" width="40%" src="https://owlbertsio-resized.s3.amazonaws.com/Popper.psd.full.png"> </div> <!--Header Name--> # <img src="https://emojis.slackmojis.com/emojis/images/1531849430/4246/blob-sunglasses.gif?1531849430" width="30"/> ɪ'ᴍ ᴋɪʀᴀɴ! *Digital Craftsman (Developer / Programmer)* <br /> <!--Start Intro--> <p align="left">I am a Full Stack Developer and Machine Learning Enthusiast with a huge love for Python, React.js, Node.js, Django, RDBMS, REST API and Data Visualization. </p> - ✨ Student of life :) - 🌱 I’m currently learning many things, I believe that everyday is a learning opportunity. - 💁‍♂️ Trusted member and Moderator at [DEV Community](https://dev.to) - 🏙 A lifetime insider and Mentor at [Exercism](https://exercism.org/profiles/Kiran1689). - ✍ I write technical blogs, You can visit my blog site at [DEV](https://dev.to/dev_kiran). - ❤ Contributing to Open Source. - 💻 Visit my [Portfolio](https://kiran1689.github.io) for more details about me. <!--End Intro--> <!--Profile Count Badge--> <p align="left"> <img src="https://komarev.com/ghpvc/?username=Kiran1689&label=Profile%20views&color=770677&style=for-the-badge&logo=star" alt="Kiran1689" style="padding-right:20px;" /> </p> --- <br /> <!--Languages and Tools Section--> <h2 align="center">Lᴀɴɢᴜᴀɢᴇs ᴀɴᴅ Tᴏᴏʟs</h2> <p align="center"> <img width="500px" src="https://skillicons.dev/icons?i=py,java,js,html,css,react,nodejs,express,django,md,solidity,postgres,mongo,git,vscode,docker,aws,postman,supabase,linux&perline=10" /> </p> <br /> <!--Trophies Section--> <h2 align="center">🏆 Gɪᴛʜᴜʙ Tʀᴏᴘʜɪᴇs 🏆</h2> <p align="center"> <a href="https://github.com/Kiran1689/github-profile-trophy"> <img src="https://github-profile-trophy.vercel.app/?username=Kiran1689&row=2&column=6&margin-w=20&margin-h=20" alt="GitHub Trophies"> </a> </p> <br /> <!--Github stats Table--> <h2 align="center">📊 Gɪᴛʜᴜʙ Sᴛᴀᴛs 📊</h2> <table width="100%"> <tr> <td width="50%"> <h3 align="center"><strong>Gɪᴛʜᴜʙ Sᴛᴀᴛs</strong></h3> <p align="center"> <a href="https://github.com/Kiran1689"> <img align="center" src="https://github-readme-stats.vercel.app/api?username=Kiran1689&count_private=true&show_icons=true&theme=nightowl" alt="GitHub Stats" /> </a> </p> </td> <td width="50%"> <h3 align="center"><strong>Sᴛʀᴇᴀᴋ Sᴛᴀᴛs</strong></h3> <p align="center"> <a href="https://github.com/Kiran1689"> <img align="center" src="https://streak-stats.demolab.com?user=Kiran1689&theme=nightowl" alt="Streak Stats" /> </a> </p> </td> </tr> <tr> <td width="50%"> <h3 align="center"><strong>Lᴀᴛᴇsᴛ Pʀᴏᴊᴇᴄᴛ</strong></h3> <p align="center"> <a href="https://github.com/Kiran1689/Awesome-Dev-Portfolios"> <img align="center" width="470" src="https://github-readme-stats.vercel.app/api/pin/?username=Kiran1689&repo=Awesome-Dev-Portfolios&theme=nightowl&show_owner=true" alt="Awesome-Dev-Portfolios" /> </a> </p> </td> <td width="50%"> <h3 align="center"><strong>Tᴏᴘ Cᴏɴᴛʀɪʙᴜᴛɪᴏɴs</strong></h3> <p align="center"> <a href="https://github.com/Kiran1689"> <img align="center" src="https://github-contributor-stats.vercel.app/api?username=Kiran1689&limit=3&theme=nightowl&show_owner=true&combine_all_yearly_contributions=true" alt="Top Repo" /> </a> </p> </td> </tr> </table> <br /> <!--Contribution Graph--> <h2 align="center">📈 Cᴏɴᴛʀɪʙᴜᴛɪᴏɴ Gʀᴀᴘʜ 📈</h2> <div align="center"> <img src="https://github-readme-activity-graph.vercel.app/graph?username=Kiran1689&bg_color=011627&color=79d3c3&line=c792ea&point=ffeb95&area=true&hide_border=false" border-radius="15"> </div> --- <!--Dynamic Quote card updated everyday at 12 PM--> <h2 align="center">🌟 Tʜᴏᴜɢʜᴛ ᴏғ ᴛʜᴇ Dᴀʏ 🌟</h2> <!--STARTS_HERE_QUOTE_CARD--> <p align="center"> <img src="https://readme-daily-quotes.vercel.app/api?author=George%20Bernard%20Shaw&quote=Do%20not%20fight%20with%20pigs%20-%20you%20will%20be%20smeared%20in%20mud%20but%20the%20pig%20will%20like%20it.&theme=dark&bg_color=011627&author_color=ffeb95"> </p> <!--ENDS_HERE_QUOTE_CARD--> <!--Contact Section--> <h2 align="center">🤝 Cᴏɴɴᴇᴄᴛ Wɪᴛʜ Mᴇ 🤝 </h2> <div align="center"> <a href="https://www.linkedin.com/in/kiran-a-n/" target="_blank"> <img src=https://img.shields.io/badge/linkedin-%231E77B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white alt=linkedin style="margin-bottom: 5px;" /> </a> <a href="mailto:kirannaragund197@gmail.com" target="_blank"> <img src="https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white" alt=kirannaragund197@gmail.com mail style="margin-bottom: 5px;" /> </a> <a href="https://www.instagram.com/kiran_a_n" target="_blank"> <img src=https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white alt=kiran_a_n Instagram style="margin-bottom: 5px;" /> </a> <a href="https://twitter.com/kiran__a__n" target="_blank"> <img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="kiran__a__n Twitter" style="margin-bottom: 5px;" /> </a> </div> <br/> <!--Buy me a coffee--> <div align="center"> <a href="https://www.buymeacoffee.com/Kiran1689" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 200px !important;" ></a> </div> <!--Footer--> <p align="center"> <img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=65&section=footer"/> </p>
Dynamic readme profile template. Do not just fork, Give Star too :)
awesome,awesome-readme,github,github-profile-readme,portfolio,profile,profile-readme,readme,readme-standard,readme-template
2023-08-15T07:44:12Z
2024-05-23T06:37:31Z
null
1
0
207
0
9
32
null
null
JavaScript
chrhi/abdullah-agency
main
# Abdullah Agency - Next.js, Tailwind CSS & Framer Motion ![Abdullah Agency](/public/agency.PNG) Abdullah Agency is a stunning multi-page agency website template developed using Next.js, Tailwind CSS, and Framer Motion. Designed and built by the talented Tailwind CSS team, this template offers a sleek and minimalist appearance while boasting engaging interactive elements and captivating animations powered by Framer Motion. ## Features - Beautifully designed agency website template. - Built using Tailwind CSS and Next.js for a seamless development experience. - Enhanced with delightful animations and transitions through Framer Motion. - Easy-to-update case studies and blog posts with MDX. - Production-ready and highly customizable for your agency's specific needs. - A valuable resource for learning how to build websites with Tailwind CSS and React. ## Getting Started To run the Abdullah Agency website locally, follow these steps: 1. **Clone the repository:** ```bash git clone https://github.com/your-username/abdullah-agency.git ```
Abdullah Agency is a sleek and engaging multi-page agency website template, skillfully crafted using Next.js, Tailwind CSS, and Framer Motion by the talented Tailwind CSS team. With its minimalist aesthetic and captivating animations, it's perfect for modern agencies.
framer-motion,nextjs13,react,javascript,nextjs
2023-08-19T09:54:34Z
2023-10-20T18:21:50Z
null
1
0
6
0
7
31
null
MIT
JavaScript
sableland/sable
main
# Sable Sable is a web-standards focused Javascript runtime with as much tooling built-in as possible. It is meant to be both a learning project and a sort of spiritual sibling to Deno 1.x. Sable is very ambitious and has many goals, but one of the non-goals is support for node modules in any way (outside of transpilation by CDNs). ## Goals - Support as many Web Standard API's as possible - URL Imports - Go fast ## Anti-Goals - Native support of TypeScript/TSX/JSX (maybe will be possible in the future with service workers) - Node/npm support IN ANY SHAPE OR FORM - Support for `Deno.*` APIs outside of possible shims ## Why not Deno? Sable's goal is to follow the spirit of what Deno was originally was meant to be, a good JS runtime. In many regards, this isn't true anymore. Deno supports many features that stray away from it's web-focused nature which could be considered as turning it's back away from it's original design goals. Some of the recent decisions have been controversial in the community and are some things we'd like to avoid implementing e.g.: `npm:`, `node:`, `jsr:` specifiers, `package.json` support and more. ## Why not Node? Node was a great first stab at running real JS applications on the server side but it's age really starts to show. It does have the advantage of being focused and universal, though both of those are becoming less relevant as time goes on. CommonJS continues to drag down the ESM ecosystem in a way that is really unfortunate. It's time to let go of Node. ## Why not Bun? Please check out [this repo](https://github.com/Im-Beast/bun).
JavaScript runtime Deno was meant to be.
javascript-runtime,js,runtime,v8,javascript
2023-08-26T19:14:29Z
2024-04-07T15:43:16Z
null
3
45
89
7
5
30
null
MIT
JavaScript
taqui-786/project-friendz
main
This is a [Next.js](https://nextjs.org/) project with Shadcn ui [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Best Project To Begineer to learn => ## Nextsjs ## Typescript ## Shadcn ui [https://ui.shadcn.com/] ## Editorjs [https://editorjs.io/] ## @mantine/hooks [https://www.npmjs.com/package/@mantine/hooks] ## useform-hooks ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
A Social Media Platform made with Nextjs, Redis and Authjs etc.
editorjs,javascript,mantine-hooks,nextjs,prisma,typescript,useform-hooks,zod
2023-08-16T18:13:45Z
2023-09-02T14:13:49Z
null
1
0
19
0
6
30
null
null
TypeScript
react18-tools/persist-and-sync
main
# Persist-And-Sync Zustand Store [![test](https://github.com/react18-tools/persist-and-sync/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/persist-and-sync/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/5355eb02cfedc9184e3f/maintainability)](https://codeclimate.com/github/mayank1513/persist-and-sync/maintainability) [![codecov](https://codecov.io/gh/mayank1513/persist-and-sync/graph/badge.svg)](https://codecov.io/gh/mayank1513/persist-and-sync) [![Version](https://img.shields.io/npm/v/persist-and-sync.svg?colorB=green)](https://www.npmjs.com/package/persist-and-sync) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/d18m/persist-and-sync.svg)](https://www.npmjs.com/package/persist-and-sync) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/persist-and-sync) > Zustand middleware to easily persist and sync Zustand state between tabs/windows/iframes (Same Origin) > Motivation: Recently I got caught up in several issues working with the persist middleware and syncing tabs with Zustand. This is a simple lightweight middleware to persist and instantly share state between tabs or windows - ✅ 🐙 ~ 1 kB size cross-tab state sharing + persistence for zustand - ✅ Full TypeScript Support - ✅ solid reliability in 1 writing and n reading tab scenarios (with changing writing tab) - ✅ Fire and forget approach of always using the latest state. Perfect for single-user systems - ✅ Share state between multiple browsing contexts - ✅ Additional control over which fields to `persist-and-sync` and which to ignore - ✅ Optimized for performance using memoization and closures. - ✅ Update options at runtime by setting `__persistNSyncOptions` in your store. ## Install ```bash $ pnpm add persist-and-sync ``` **or** ```bash $ npm install persist-and-sync ``` **or** ```bash $ yarn add persist-and-sync ``` ## Usage Add the middleware while creating the store and the rest will be taken care. ```ts import { create } from "zustand"; import { persistNSync } from "persist-and-sync"; type MyStore = { count: number; set: (n: number) => void; }; const useStore = create<MyStore>( persistNSync( set => ({ count: 0, set: n => set({ count: n }), }), { name: "my-example" }, ), ); ``` ⚡🎉Boom! Just a couple of lines and your state perfectly syncs between tabs/windows and it is also persisted using `localStorage`! ## Advanced Usage (Customizations) ### PersistNSyncOptions In several cases, you might want to exclude several fields from syncing. To support this scenario, we provide a mechanism to exclude fields based on a list of fields or regular expressions. ```typescript type PersistNSyncOptionsType = { name: string; /** @deprecated */ regExpToIgnore?: RegExp; include?: (string | RegExp)[]; exclude?: (string | RegExp)[]; storage?: "localStorage" | "sessionStorage" | "cookies" /** Added in v1.1.0 */; }; ``` **Example** ```typescript export const useMyStore = create<MyStoreType>()( persistNSync( set => ({ count: 0, _count: 0 /** skipped as it is included in exclude array */, setCount: count => { set(state => ({ ...state, count })); }, set_Count: _count => { set(state => ({ ...state, _count })); }, }), { name: "example", exclude: ["_count"] }, ), ); ``` > It is good to note here that each element of `include` and `exclude` array can either be a string or a regular expression. > To use regular expression, you should either use `new RegExp()` or `/your-expression/` syntax. Double or single quoted strings are not treated as regular expression. > You can specify whether to use either `"localStorage"`, `"sessionStorage"`, or `"cookies"` to persist the state - default `"localStorage"`. Please note that `"sessionStorage"` is not persisted. Hence can be used for sync only scenarios. ### Updating options at runtime Since version 1.2, you can also update the options at runTime by setting `__persistNSyncOptions` in your Zustand state. **Example** ```ts interface StoreWithOptions { count: number; _count: number; __persistNSyncOptions: PersistNSyncOptionsType; setCount: (c: number) => void; set_Count: (c: number) => void; setOptions: (__persistNSyncOptions: PersistNSyncOptionsType) => void; } const defaultOptions = { name: "example", include: [/count/], exclude: [/^_/] }; export const useStoreWithOptions = create<StoreWithOptions>( persistNSync( set => ({ count: 0, _count: 0 /** skipped as it matches the regexp provided */, __persistNSyncOptions: defaultOptions, setCount: count => set(state => ({ ...state, count })), set_Count: _count => set(state => ({ ...state, _count })), setOptions: __persistNSyncOptions => set(state => ({ ...state, __persistNSyncOptions })), }), defaultOptions, ), ); ``` ### Clear Storage Starting from version 1.2, you can also clear the persisted data by calling `clearStorage` function. It takes `name` of your store (`name` passed in `options` while creating the store), and optional `storageType` parameters. ```ts import { clearStorage } from "persist-and-sync"; ... clearStorage("my-store", "cookies"); ... ``` ## Legacy / Deprecated #### Ignore/filter out fields based on regExp In several cases, you might want to exclude several fields from syncing. To support this scenario, we provide a mechanism to exclude fields based on regExp. Just pass `regExpToIgnore` (optional - default -> undefined) in the options object. ```ts // to ignore fields containing a slug persistNSync( set => ({ count: 0, slugSomeState: 1, slugSomeState2: 1, set: n => set({ count: n }), }), { name: "my-channel", regExpToIgnore: /slug/ }, // or regExpToIgnore: new RegExp('slug') // Use full power of regExp by adding `i` and `g` flags ), ``` For more details about regExp check out - [JS RegExp](https://www.w3schools.com/jsref/jsref_obj_regexp.asp) ### Exact match For exactly matching a parameter/field use `/^your-field-name$/`. `^` forces match from the first character and similarly, `$` forces match until the last character. ### Ignore multiple fields with exact match use `regExpToIgnore: /^(field1|field2|field3)$/` ### 🤩 Don't forget to star [this repo](https://github.com/mayank1513/persist-and-sync)! Want a hands-on course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://mayank-chaudhari.vercel.app/courses/react-and-next-js-with-typescript) and [The Game of Chess with Next.js, React and TypeScrypt](https://www.udemy.com/course/game-of-chess-with-nextjs-react-and-typescrypt/?referralCode=851A28F10B254A8523FE) ## License Licensed as MIT open source. <hr /> <p align="center" style="text-align:center">with 💖 by <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a></p>
Zustand middleware to easily persist and sync Zustand state between tabs / windows / iframes (Same Origin)
javascript,mayank1513,middleware,persist-and-sync,persistent-storage,react,react-library,react18,react18-tools,typescript
2023-08-27T03:45:36Z
2024-04-18T08:41:07Z
2024-01-02T03:07:11Z
1
11
72
2
1
28
null
MIT
TypeScript
SammyLeths/witty-ai-saas
master
<h1>Witty AI SaaS</h1> Witty AI Software As A Service is an AI tool that can be used to create content 10x faster. This tool allows automatic generation of contents such as Images, Videos, Music and Code. It can also generate meaningful conversational responses via chat. Witty AI Software As A Service (SAAS) is a modern responsive, simple saas platform suitable for use by digital marketing agencies and individuals. With this project, you can easily generate marketing assets such as Images, Videos, Music, Q&A Conversations and Code Snippets. Some of the features built into this project include: <ul> <li>Clerk User Authentication</li> <li>Social Login</li> <li>Image Generation Tool (Open AI)</li> <li>Video Generation Tool (Replicate AI)</li> <li>Conversation Generation Tool (Open AI)</li> <li>Music Generation Tool (Replicate AI)</li> <li>Code Generation Tool (Open AI)</li> <li>Stripe monthly subscription</li> <li>Free tier</li> <li>Interactive modals</li> </ul> This project was developed using React, NextJS, TypeScript, Tailwind CSS, Prisma, MySql, Axios, NPM. <h2>Screenshots</h2> ![proj11-witty-ai](https://github.com/SammyLeths/witty-ai-saas/assets/64320618/c46f4556-28bf-4b20-aaf1-51f636f1498c) <h2>Links</h2> <ul> <li>Demo: <a href="https://witty-ai-saas.vercel.app/" target="_blank">https://witty-ai-saas.vercel.app/</a></li> </ul> <h2>Tech Stack</h2> <p align="left"> <img src="https://img.shields.io/badge/react-61DAFB.svg?style=for-the-badge&logo=react&logoColor=white" alt="REACT JS" /> <img src="https://img.shields.io/badge/next.js-000000.svg?style=for-the-badge&logo=nextdotjs&logoColor=white" alt="NEXT JS" /> <img src="https://img.shields.io/badge/typescript-3178C6.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="TYPESCRIPT" /> <img src="https://img.shields.io/badge/tailwindcss-06B6D4.svg?style=for-the-badge&logo=tailwindcss&logoColor=white" alt="TAILWIND CSS" /> <img src="https://img.shields.io/badge/prisma-2D3748.svg?style=for-the-badge&logo=prisma&logoColor=white" alt="PRISMA" /> <img src="https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge&logo=mysql&logoColor=white" alt="MYSQL" /> <img src="https://img.shields.io/badge/axios-5A29E4.svg?style=for-the-badge&logo=axios&logoColor=white" alt="AXIOS" /> <img src="https://img.shields.io/badge/npm-CB3837.svg?style=for-the-badge&logo=axios&logoColor=white" alt="NPM" /> <img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white" alt="HTML" /> <img src="https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white" alt="CSS3" /> <img src="https://img.shields.io/badge/sass-hotpink.svg?style=for-the-badge&logo=sass&logoColor=white" alt="SASS" /> <img src="https://img.shields.io/badge/JavaScript-black?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" alt="JAVASCRIPT" /> </p> <h2>Helpful Resources</h2> <ul> <li> <b><a href="https://react.dev/" target="_blank">REACT</a></b>: The library for web and native user interfaces. </li> <li> <b><a href="https://nextjs.org/" target="_blank">NEXTJS</a></b>: The React Framework for the Web </li> <li> <b><a href="https://www.typescriptlang.org/" target="_blank">TYPESCRIPT</a></b>: A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. </li> <li> <b><a href="https://tailwindcss.com/" target="_blank">TAILWIND CSS</a></b>: A utility-first CSS framework packed with classes that can be composed to build any design, directly in your markup. </li> <li> <b><a href="https://www.prisma.io/" target="_blank">PPRISMA</a></b>: Next-generation Node.js and TypeScript ORM. </li> <li> <b><a href="https://openai.com/" target="_blank">OPENAI</a></b>: AI-powered language model capable of generating human-like text based on context and past conversations. </li> <li> <b><a href="https://replicate.com/" target="_blank">REPLICATE AI</a></b>: run machine learning models with a few lines of code, without needing to understand how machine learning works. </li> <li> <b><a href="https://www.mysql.com/" target="_blank">MYSQL</a></b>: Open-source relational database management system. </li> <li><b>HTML5:</b> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank">MDN</a>: Mozilla Developer Network - HTML (HyperText Markup Language)</li> <li><a href="https://www.w3schools.com/html/html_intro.asp" target="_blank">W3SCHOOL</a>: HTML Introduction</li> </ul> </li> <li><b>CSS3:</b> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank">MDN</a>: Mozilla Developer Network - CSS (Cascading Style Sheets)</li> <li><a href="https://www.w3schools.com/css/css_intro.asp" target="_blank">W3SCHOOL</a>: CSS Introduction</li> </ul> </li> <li><b>JAVASCRIPT:</b> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">MDN</a>: Mozilla Developer Network - JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions</li> <li><a href="https://www.w3schools.com/js/js_intro.asp" target="_blank">W3SCHOOL</a>: JavaScript Introduction</li> </ul> </li> <li> <b><a href="https://axios-http.com/" target="_blank">AXIOS</a></b>: A promise based HTTP client for the browser and node.js </li> <li> <b><a href="https://www.npmjs.com/" target="_blank">NPM</a></b>: A package manager for the JavaScript programming language. </li> <li> <b><a href="https://mugshotbot.com/" target="_blank">MUGSHOTBOT</a></b>: Automatic beautiful link previews </li> </ul> <h2>Author's Links</h2> <ul> <li>Portfolio - <a href="https://sammyleths.com" target="_blank">@SammyLeths</a></li> <li>Linkedin - <a href="https://www.linkedin.com/in/eyiowuawi/" target="_blank">@SammyLeths</a></li> <li>Twitter - <a href="https://twitter.com/SammyLeths" target="_blank">@SammyLeths</a></li> </ul> <br /> <hr /> <br /> This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! ## Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Witty AI Software As A Service (SAAS) is a modern responsive, simple saas platform suitable for use by digital marketing agencies and individuals. With this project, you can easily generate marketing assets such as Images, Videos, Music, Q&A Conversations and Code Snippets.
ai,artificial-intelligence,clerkauth,javascript,mysql,nextjs13,openai-api,prisma,react,replicate-ai
2023-08-12T16:22:32Z
2023-09-27T11:07:07Z
null
1
0
24
0
6
28
null
MIT
TypeScript
Hakanbaban53/RealFire
main
<div align="center"> # [RealFire 🔥](https://github.com/Hakanbaban53/RealFire) **A minimalist animated oneliner theme for Firefox perfectly matching real Dark** </div> <p align="center"><img src="./assets/preview.png"></p> ## 🏞 Screenshots <details><summary>Click me 🐈</summary> <h3 align="center">Adaptive Tab Bar Extension Support</h3> <p align="center"><img src="./assets/adaptive-tab-bar-extension-support.gif"></p> <h3 align="center">Horizonal Tabs</h3> <p align="center"><img src="./assets/horizonal_tabs.gif"></p> <h3 align="center">MacOs Window Control & Fonts</h3> <p align="center" style="max-heigh:250px"><img src="./assets/mac_os_theme.gif"></p> <h3 align="center">Animated Background</h3> <p align="center" style="max-heigh:250px"><img src="./assets/navbar.gif"></p> <h3 align="center">Tab Preview</h3> <p align="center" style="max-heigh:300px"><img src="./assets/tab-preview.gif"></p> <h3 align="center">Context Menu</h3> <p align="center"><img src="./assets/context.png"></p> <h3 align="center">Auto-hide Scrollbars</h3> <p align="center" style="max-heigh:250px"><img src="./assets/hide_scroll_bar.gif"></p> <h3 align="center">Library</h3> <p align="center"><img src="./assets/library.png"></p> <h3 align="center">Adaptive Window Color With Windows & GNU/Linux</h3> <p align="center"><img src="./assets/adaptive.gif"></p> </details> ## 📃 Browser JS Files ### [`userChrome.css`](./userChrome.css) This helps to customize Firefox User Interface. ### [`userContent.css`](./userContent.css) This helps to customize web content like a specific site. ### [`aboutUserChrome.sys.mjs by aminomancer`](https://github.com/aminomancer/uc.css.js#aboutUserChrome) This script helps to enabled or disabled browser scripts. Adding new entry the application menu named UserChrome Maneger (Shortcut `Ctrl+Shift+U`). ### [`tabThumbnailTooltip.uc.js by aminomancer`](https://github.com/aminomancer/uc.css.js#tab-thumbnail-tooltip) Show a large thumbnail image to preview tab content when hovering a tab. ### [`hideScrollbar.uc.js`](./JS/hideScrollbar.uc.js) It's now possible to autohide scrollbars. ### [`verticalTabsPane.uc.js by aminomancer (Edited for RealFire)`](./JS/verticalTabsPane.uc.js) This script create a vertical pane across from the sidebar that functions like the vertical tabs pane in Microsoft Edge. Writed by [aminomancer](https://github.com/aminomancer) but I edited full compatibility for RealFire. ### [`macosTheme.uc.js`](./JS/macosTheme.uc.js) This script to convert font and window controls to macos style. #### [`You can look here to find out what other scripts do.`](https://github.com/aminomancer/uc.css.js#script-conventions) 👈 ## ❓ **But how does it work?** Custom startup-script (aka [`mozilla.cfg`](./programs/mozilla.cfg) here) is loaded using [`local-settings.js`](./programs/local-settings.js). This startup-script adds "loader" scripts from `utils` folder that loads arbitrary javascript files from the `script` folder into Firefox<br> `mozilla.cfg` also helps in setting local webpage as your homepage. Details in [Installation](#Installation) (Currently Not Working!). ## 💡 Installation <details><summary><strong><em>Curl based Installation (You can install this theme with one line command)</em></strong></summary> <details><summary>GNU/Linux & MacOS</summary><br> ```console $ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash # Standard $ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash -s -- -f ~/.var/app/org.mozilla.firefox/.mozilla/firefox # Flatpak $ curl -s -o- https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.sh | bash -s -- -f ~/snap/firefox/common/.mozilla/firefox/ # Snap ``` </details> <details><summary>Windows</summary><br> ```powershell > curl -sL "https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.bat" > %TEMP%\install-curl.bat && %TEMP%\install-curl.bat REM Standard > curl -sL "https://raw.githubusercontent.com/Hakanbaban53/RealFire/main/programs/install-curl.bat" > %TEMP%\install-curl.bat && %TEMP%\install-curl.bat -b "C:\Program Files (x86)\Mozilla Firefox" REM Custom binary folder ``` </details> This will download the master branch and run the installation script. `mozilla.cfg` can be configured after complete installation </details> <details><summary><strong><em>Script Installation</em></strong></summary> 1. Clone the repository and enter folder: ```console $ git clone https://github.com/Hakanbaban53/RealFire.git && cd RealFire ``` 2. Run installation script This script will lookup default Firefox profile location and install the theme with default configurations. <details><summary>GNU/Linux & MacOS</summary><br> ```console $ ./programs/install.sh # Standard $ ./programs/install.sh -f ~/.var/app/org.mozilla.firefox/.mozilla/firefox # Flatpak $ ./programs/install.sh -f ~/snap/firefox/common/.mozilla/firefox/ # Snap ``` </details> <details><summary>Windows</summary><br> ```powershell > programs\install.bat REM Standard > programs\install.bat -e -b "C:\Program Files (x86)\Mozilla Firefox" REM Disable fx-autoconfig and Custom binary folder ``` </details> #### Script options - `-b <binary_folder>` _optional_ - Set custom Firefox binary folder path, for example `/usr/lib32/firefox` - Default: Auto detects in linux. `C:\Program Files\Mozilla Firefox` in windows - `-f <firefox_folder>` _optional_ - Set custom Firefox folder path, for example `~/.mozilla/icecat/` - Default: `~/.mozilla/firefox/` in linux. `%APPDATA%\Mozilla\Firefox` in windows - `-p <profile_name>` _optional_ - Set custom profile name, for example `4htgy4pu.app` - Default: Profile folder name found in `profiles.ini` at -> ``` [Install4F96D1932A9F858E] Default=1yrah0xg.default-release Locked=1 ``` - `-e` _optional_ - Install [`fx-autoconfig`](https://github.com/MrOtherGuy/fx-autoconfig) - Runs sudo to copy `mozilla.cfg` and `local-settings.js` to Application Binary folder - Default: True - `-h` _optional_ - Shows help message with flags info </details> <details><summary><strong><em>Manual Installation</em></strong></summary> 1. Open `about:support` in new tab and click `Open Directory` near `Profile Directory`. 2. Open this directory in terminal and clone the repository Note: If you already have a `chrome` folder under `Profile Directory`, rename it to `chrome_bak` or anything else to preserve your old theme. ```console $ cd {Your profile directory} $ git clone https://github.com/Hakanbaban53/RealFire.git chrome $ cd chrome ``` <details><summary>MacOS</summary><br> - `about:support` > `Application Binary` > `{Installation folder}firefox`<br> Generally `Installation folder` is `/Applications/Firefox.app/Contents/MacOS/` (`Firefox Nightly` for Nightly version) For `MacOS`, our destination folder is `/Applications/Firefox.app/Contents/Resources/` ```console $ ln -s "`pwd`/programs/user.js" ../user.js $ cp ./programs/mozilla.cfg /Applications/Firefox.app/Contents/Resources/ $ cp ./programs/local-settings.js /Applications/Firefox.app/Contents/Resources/defaults/pref/ ``` </details> <details><summary>Windows</summary><br> - `about:support` > `Application Binary` > `{Installation folder}firefox.exe`<br> Generally `Installation folder` is `C:\Program Files\Mozilla Firefox\` ```powershell > mklink ..\user.js "%cd%\programs\user.js" > copy .\programs\mozilla.cfg "C:\Program Files\Mozilla Firefox\" > copy .\programs\local-settings.js "C:\Program Files\Mozilla Firefox\defaults\pref\" ``` </details> ``` </details> - 🗑️ If you want to remove the Theme: #### GNU/Linux & MacOS ./programs/uninstall.sh #### Windows Not Released Yet.... #### 🔧 Follow-up changes 1. In Firefox - Right click hamburger button > `customize toolbar` disable `Title Bar`, `Drag Space`. - Remove `Flexible Space` from urlbar. - Set Density to `Compact/Normal/Touch` and Themes to `Dark` or `Light`. 2. Open `about:support` > `Clear startup cache...` > `Restart` **_twice_** 3. ### **Voilà** ## ⚙️ Configuration 1. You can use the [ realfire-config.css ](https://github.com/Hakanbaban53/RealFire/blob/main/includes/realfire-config.css) change the a lot of variables. 2. If you run the automatic installation script, it will install all the files in the folders where they need to be installed. 3. If something breaks on your system then please raise a issue ## 📌 Known issues - Adaptive window color with windows not working on preferences page and start page (Windows only). If you want the change it use the [ realfire-config.css ](https://github.com/Hakanbaban53/RealFire/blob/main/includes/realfire-config.css) file. ## 📂 Folder structure ```css 🗃 . ├── 🖿 assets │ └── 🖻 preview images ├── 🖿 img │ └── 🖻 new tab background image ├── 🖿 icons │ ├── 🗎 animation.svg │ └── 🗐 many icons in .svg format ├── 🖿 includes │ ├── 🗎 realfire-checkbox.css │ ├── 🗎 realfire-icons.css │ ├── 🗎 realfire-config.css │ └── 🗐 other .css files ├── 🖿 JS │ ├── 🗎 aboutUserChrome.sys.mjs │ ├── 🗎 navbarToolbarButtonSlider.uc.js │ ├── 🗎 tabThumbnailTooltip.uc.js │ ├── 🗎 verticalTabsPane.uc.js │ ├── 🗎 tabThumbnailTooltip.uc.js │ ├── 🗎 macosTheme.us.js │ └── 🗐 many script in .uc.js format ├── 🖿 programs │ ├── 🗎 install-cfg.sh │ ├── 🗎 install.sh │ ├── 🗎 install-curl.sh │ ├── 🗎 install.bat │ ├── 🗎 install-curl.bat │ ├── 🗎 local-settings.js │ ├── 🗎 mozilla.cfg │ └── 🗎 user.js ├── 🖿 resources │ └── 🗐 userchrome Manager page files ├── 🖿 utils │ ├── 🗎 .editorconfig │ ├── 🗎 boot.sys.mjs │ ├── 🗎 chrome.manifest │ ├── 🗎 fs.sys.mjs │ └── 🗎 utils.sys.mjs ├── 🗎 README.md ├── 🗎 userChrome.css └── 🗎 userContent.css ``` ## Credits - I started with this amazing material theme : [Sweet_Pop!](https://github.com/PROxZIMA/Sweet-Pop) by [PROxZIMA](https://github.com/PROxZIMA) - One of the best dark theme for Firefox : [ShadowFox](https://overdodactyl.github.io/ShadowFox) by [overdodactyl](https://github.com/overdodactyl) - [Theme inspiration](https://www.reddit.com/r/FirefoxCSS/comments/ci7i69/another_oneline_theme/) by [u/SENDMEJUDES](https://www.reddit.com/user/SENDMEJUDES/) - [Installation script](https://github.com/rafaelmardojai/firefox-gnome-theme) details. --- ## Stargazers over time [![Stargazers over time](https://starchart.cc/Hakanbaban53/RealFire.svg)](https://starchart.cc/Hakanbaban53/RealFire) [Back to top](#RealFire_🔥) --- <h2 align="center">Hakan İSMAİL ❤</h2>
A minimalist animated oneliner theme for Firefox perfectly matching real Dark.
css,firefox,firefox-css,firefox-theme,javascript,userchrome,userscript,realfire
2023-09-02T17:50:53Z
2024-05-19T07:53:04Z
2023-10-11T14:42:16Z
1
3
157
0
3
28
null
MIT
JavaScript
cjannuzzi/ESW-lab-prog-web-sites
main
# 🌍 Engenharia de Software - UNIVASSOURAS 🖥️ ![Laboratório de Programação de Web Sites](https://github.com/cjannuzzi/ESW-lab-prog-web-sites/assets/95255704/4fa9aa1a-b27f-4337-b1ab-88be1f35c9f8) > "A essência da web é a simplicidade." - **Tim Berners-Lee** Bem-vindo ao repositório das aulas de *Laboratório de Programação de Web Sites*! Este espaço é dedicado a todos os alunos que estão empenhados em aprender sobre o maravilhoso mundo do desenvolvimento web. --- ## 📚 Conteúdo Neste repositório, você encontrará: - 📂 **Códigos-Fonte**: Todos os exemplos práticos das aulas. - 🧪 **Exercícios**: Práticas para aperfeiçoar o que foi aprendido. - 🌐 **Projetos**: Trabalhos desenvolvidos ao longo do semestre. --- ## 🧭 Como Navegar 1. 📖 Comece pela pasta `E-books da aula` para entender os fundamentos. 2. 🛠️ Explore os `Códigos-Fonte` para ver os exemplos em ação. 3. 🏋️‍♀️ Pratique com os `Exercícios` para aperfeiçoar suas habilidades. 4. 📌 Veja os projetos dos colegas na seção `Projetos` para inspiração. --- ## 🤔 Dúvidas? Caso tenha alguma dúvida ou sugestão, sinta-se à vontade para abrir uma `Issue` ou entrar em contato diretamente com o professor. --- ## 🛠️ Ferramentas Utilizadas - [Visual Studio Code](https://code.visualstudio.com/) - [GitHub Pages](https://pages.github.com/) - ... e muitas outras! <!-- [Bootstrap](https://getbootstrap.com/) --> --- ## 🙌 Contribuição Este repositório é para fins educativos, mas toda contribuição é bem-vinda! Se você tem algum material ou dica útil que deseja compartilhar, fique à vontade para abrir um `Pull Request`. --- ## 🎓 Autor Prof. Me. [Caio Jannuzzi](https://www.linkedin.com/in/caiojannuzzi/) <br> > "Esse tem sido um dos meus mantras – foco e simplicidade. Simples pode ser mais difícil de fazer do que complexo; você tem que trabalhar duro para clarear seu pensamento a fim de torná-lo simples." - **Steve Jobs** --- ⭐️ Lembre-se de dar uma estrela neste repositório se ele te ajudou! --- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8299360.svg)](https://doi.org/10.5281/zenodo.8299360)
code repository for the website programming laboratory course at the University of Vassouras
css,education,graduation,html5,javascript,software-engineering
2023-08-23T19:10:50Z
2024-05-20T19:01:02Z
null
1
0
51
0
5
27
null
MIT
HTML
okNeeraj/namaste-react
main
# namaste-react 🚀 Episode by episode coding practice of Namaste React Course By Akashy Saini.
🚀 Episode by episode coding practice of Namaste React Course By Akashy Saini
akshay-saini,javascript,namaste-react,namaste-react-course,react,react-hooks,reactjs
2023-08-28T15:48:50Z
2023-09-20T14:42:25Z
null
1
17
77
0
13
27
null
null
JavaScript
ikhsan3adi/sistem-perpustakaan-qr-code
main
# BukuHub - Sistem Perpustakaan QR Code [![Continuous Integration](https://github.com/ikhsan3adi/sistem-perpustakaan-qr-code/actions/workflows/ci.yml/badge.svg)](https://github.com/ikhsan3adi/sistem-perpustakaan-qr-code/actions/workflows/ci.yml) ![Preview](https://github.com/ikhsan3adi/sistem-perpustakaan-qr-code/raw/main/screenshots/home.png) ## Fitur - Login, Register & Magic login link (via Email) - Dashboard admin - QR Code anggota - QR Code peminjaman - Sistem denda - Dan lainnya. ## Framework dan Library Yang Digunakan - [CodeIgniter 4](https://codeigniter.com/) - [CodeIgniter Shield](https://codeigniter4.github.io/shield/) - [Bootstrap 5](https://getbootstrap.com/) - [Modernize Free Bootstrap 5 Admin Template](https://adminmart.com/product/modernize-free-bootstrap-5-admin-template/) - [Tabler Icons](https://tabler-icons.io/) - [Apex Charts](https://apexcharts.com/) - [Endroid QR Code Generator](https://github.com/endroid/qr-code) - [Mebjas Html5-QRCode Scanner](https://github.com/mebjas/html5-qrcode) ## Cara Penggunaan ### Persyaratan - [Composer](https://getcomposer.org/). - PHP dan MySQL atau [XAMPP](https://www.apachefriends.org/download.html) versi 8.1+ dengan mengaktifkan extension `-intl` dan `-gd`. - Pastikan perangkat memiliki kamera/webcam untuk menjalankan qr scanner. Bisa juga menggunakan kamera HP dengan bantuan software DroidCam. ### Instalasi - Unduh dan impor kode proyek ini ke dalam direktori proyek anda (htdocs). - Penting ⚠️. Ubah nama file `.env.example` menjadi `.env` - (Opsional) Konfigurasi file `.env` untuk mengatur parameter seperti koneksi database dan pengaturan lainnya sesuai dengan lingkungan pengembangan Anda. - Ubah denda per hari di file `.env` ``` # in rupiah amountFinesPerDay = 1000 ``` - Penting ⚠️. Install dependencies yang diperlukan dengan cara menjalankan perintah berikut di terminal: ```shell composer install ``` - Buat database `db_book_library` di phpMyAdmin / mysql - Penting ⚠️. Jalankan migrasi database untuk membuat struktur tabel yang diperlukan. Ketikkan perintah berikut di terminal: ```shell php spark migrate --all ``` - Penting ⚠️. Karena belum memiliki akun admin, untuk mengakses halaman admin, anda memerlukan user/akun dengan level `superadmin`. Jalankan perintah berikut untuk membuat akun `superadmin`: ```shell php spark db:seed SuperAdminSeeder ``` - (Opsional) Isi database dengan data dummy / seeder. ```shell php spark db:seed Seeder # semua seeder php spark db:seed BookSeeder # buku php spark db:seed MemberSeeder # anggota php spark db:seed LoanSeeder # peminjaman, pengembalian & denda ``` - Jalankan website ```shell php spark serve ``` - Buka http://localhost:8080 - Login dengan kredensial `superadmin` berikut: ``` username : superadmin email : superadmin@admin.com password : superadmin ``` ## Contributing Kami menerima kontribusi dari komunitas terbuka untuk meningkatkan aplikasi ini. Jika Anda menemukan masalah, bug, atau memiliki saran untuk peningkatan, silakan buat issue baru dalam repositori ini atau ajukan pull request. ## Donasi [![Donate paypal](https://img.shields.io/badge/Donate-PayPal-green.svg?style=for-the-badge)](https://paypal.me/xannxett?country.x=ID&locale.x=en_US) [![Donate saweria](https://img.shields.io/badge/Donate-Saweria-red?style=for-the-badge&link=https%3A%2F%2Fsaweria.co%2Fxiboxann)](https://saweria.co/xiboxann) ## Lisensi [![GitHub license](https://img.shields.io/github/license/ikhsan3adi/sistem-perpustakaan-qr-code?style=for-the-badge)](https://github.com/ikhsan3adi/sistem-perpustakaan-qr-code/raw/main/LICENSE) ## Authors - [@ikhsan3adi](https://www.github.com/ikhsan3adi)
📚 Sistem informasi perpustakaan menggunakan CodeIgniter 4
codeigniter,codeigniter4,javascript,mysql,perpustakaan,perpustakaan-web,php,php8,bootstrap,bootstrap4
2023-09-07T08:37:48Z
2024-04-29T09:06:23Z
null
1
4
79
2
6
26
null
GPL-3.0
PHP
Small-JS/SmallJS
main
# SmallJS README <p align="center" width="100%" style="font-size: large; font-weight: bold;"> <img src="Documentation/SmallJS.png" alt="SmallJS logo" width="300" height="300"/> <br> <label>Official website: </label> <a href="https://small-js.org" style="font-weight: bold;">small-js.org</a> </p> ## Introducing SmallJS SmallJS is a free and open source implementation of the elegant and powerful Smalltalk-80 (ST) language. It compiles to JavaScript (JS) that runs in modern browsers or in Node.js. SmallJS is file based, not image based, so you can develop in your favorite IDE. The default setup is for Visual Studio Code, with ST syntax coloring and step debugging! You code separately from the SmallJS base libraries (image) and only the parts you use are imported automatically when running your app. SmallJS is _fully_ object oriented, so customizable on every level. For usability, ST class and method names are kept mostly equal to their familiar JS counterparts. JS libraries already encapsulated in ST are: - Browsers: Document, Window, HTML elements, events, CSS, streams. - Node.js: HTTP server, Express, 3 databases, files. To get you started quickly, there are several example projects. ## Code example ![./Documentation/Example.png](./Documentation/Example.png) ## Getting started SmallJS is currently set-up for use with Visual Studio Code, but other IDEs could be added. For the back-end, Node.js is the framework of choice, also using Express. Databases Postgres, MariaDB and MySQL are supported out of the box. ## Install prerequisites To install all the prerequisites, look at: >[./Documentation/Prerequisites.md](./Documentation/Prerequisites.md) Now run the bash script `./install.sh`. On Windows, the `.sh` extension should be associated with Git Bash once. Do this by clicking on the file in the explorer and then choose open with Git Bash always. This script: - Checks if the prerequisites are present. - Installs the SmallJS language extension in VSCode. - Installs npm dependencies for all projects. ## Build and test SmallJS projects Run the bash script: `./build.sh`, that: - Builds the Smalltalk to JS `./Compiler`. - Builds all other ST projects and runs their unit tests. Notes: - Browser testing is disabled by default. To enable it, check out: > [./Documentation/Building.md](./Documentation/Building.md) - To run the Shop server, you first need to setup a database for the server. Check out: > [./Examples/Shop/Shop.md](./Examples/Shop/Shop.md) Check if everything builds tests successfully before going to the next step. ## Example projects For a first impression of running SmallJS code, see the example projects: >[./Examples/Examples.md](./Examples/Examples.md) ## Playground To get a feed for Smalltalk and to quickly test out ST expressions. There's a browser based playground to compile and evaluate them in real-time. Check for more info, read: >[./Playground/Playground.md](./Playground/Playground.md) The playground is also accessible though the offical website >[small-js.org/Playground/Playground.html](https://small-js.org/Playground/Playground.html) ## Documentation The complete documentation is located here: >[./Documentation/Documentation.md](./Documentation/Documentation.md)
Smalltalk development in your browser and Node.js
smalltalk,smalltalk-language,smalltalk-virtual-machine,javascript,node-js,nodejs,typescript,webdevelopment,object-oriented-programming
2023-08-20T12:31:56Z
2024-05-11T19:09:08Z
null
1
2
83
0
1
26
null
MIT
Smalltalk
sujaltangde/JobLane
main
<h1 align="center" id="title">JobLane</h1> <p align="center"><img src="https://socialify.git.ci/sujaltangde/JobLane/image?forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Dark" alt="JobLane" width="640" height="320" /></p> [![Hits](https://hits.sh/github.com/sujaltangde/JobLane.svg?color=116acc)](https://hits.sh/github.com/sujaltangde/JobLane/) <p id="description">Full Stack Job application portal built using MERN stack, Focusing on simplifying the job applications.</p> <h2>🚀 Demo</h2> [Website](https://joblane.vercel.app/)<br /> <h2>🧐 Features</h2> Here're some of the project's best features: * User Authentication and Authorization * Job Search and Filtering * Save and Track Jobs * Resume Management * Profile Management * Admin Dashboard * Job Posting * Application Tracking * Messaging and Notifications * Responsive Design <h2>🔥 Getting Started</h2> To get started with the assignment project, follow these steps: ### Prerequisites - **Node.js**: Make sure you have Node.js installed on your computer. You can download it from [nodejs.org](https://nodejs.org). ### Installation 1. Clone the repository to your local machine: ```bash git clone https://github.com/sujaltangde/JobLane.git ``` 2. Change into the frontend directory: ```bash cd client ``` 3. Install the frontend dependencies: ```bash npm install ``` 4. Run the development server: ```bash npm run dev ``` 5. Return to the main directory and change into the backend directory: ```bash cd .. cd server ``` 6. Install the backend dependencies: ```bash npm install ``` 7. Run the development server: ```bash nodemon server.js ``` <h2>🍰 Contribution Guidelines:</h2> Any contributor who wishes to contribute to this project should first read the README thoroughly. Study how the project is built and done, familiarize yourself with its structure and components. Take note of any bugs present in the project. If you find any raise an issue on the project's repository. Wait until a mentor assigns the issue to you. Once assigned start working on the development of the fix or improvement. After completing the development raise a pull request (PR) for the changes to be reviewed and merged into the project. <h2>💻 Built with</h2> - **Frontend**: React.js, Redux - **Backend**: Node.js, Express.js - **Database**: MongoDB - **Styling**: Tailwind CSS, Material UI, Mantine UI
JobLane - Full Stack Job application portal built using MERN Stack
gssoc24,express,javascript,mongodb,nodejs,reactjs,taiwindcss
2023-08-30T03:01:24Z
2024-05-21T04:36:38Z
null
15
30
89
75
39
26
null
null
JavaScript
lordfeck/no-wei
master
NO-WEI Banner ============= A simple JavaScript banner for your website. It informs Google Chrome wielding netizens of the coming abhorrent attack on their freedom and privacy from proposed WEI (Web Environment Integrity) anti-feature. The banner will only show for Chrome users. It will explain very briefly and politely why they should consider another browser. There is also a link to an online resource that informs of the dangers posed by WEI. Finally, there is an option to hide the banner, with this preference stored in localstorage. This option may be switched off; that depends how strongly you feel. To switch off the dismissal option, set `allowDismissal = false` in `no-wei.js`. A live example of how the banner will work in browsers [may be seen here](https://soft.thran.uk/no-wei.html). This example has UA detection turned off, so will be seen by all browsers. # November 2023 Update - WEI has been retracted by Google! As of November 2023, Google has announced that it will not be implementing WEI in its browser. [VICTORY](https://www.theregister.com/2023/11/02/google_abandons_web_environment_integrity/) (for now). It may not have been much, but this humble banner will have been part of that pressure against Google. Thanks to everyone who installed it! We must remain vigilant, because due to Google's monopoly and business interests this 'feature' will surely reassert itself in another guise. Due to this news, the NO-WEI banner will be reworked into a banner that protests the Google Privacy sandbox, which sends a list of your 'interests' to advertisers. [This one is actually now live in Chrome.](https://www.theregister.com/2023/09/06/google_privacy_popup_chrome/) Classy. # Why no WEI? To quote Greg Farough of the Free Software Foundation: "Before serving a web page, a server can ask a third-party "verification" service to make sure that the user's browsing environment has not been "tampered" with. A translation of the policy's terminology will help us here: this Google-owned server will be asked to make sure that the browser does not deviate in any way from Google's accepted browser configuration." This means that the verification service controlled by Google can and *will* be used to exclude certain configurations of web browser from accessing websites that implement WEI. This will empower Google to refuse attestation to web browsers with advert blocking, web browsers on operating systems other than Windows/Apple/Android, users with stricter privacy preferences, web archiving services, competitors to Google, and anyone else their verification server deems invalid. We can expect that such power entrusted with one corporation will be used to attack anything that goes against their chief business interest - namely advertising. The effect of this will be a serious detriment to the open web. More details [here (OWD)](https://openwebdefenders.org/), [here (FSF)](https://www.fsf.org/blogs/community/web-environment-integrity-is-an-all-out-attack-on-the-free-internet) and [here (El Reg)](https://www.theregister.com/2023/07/27/google_web_environment_integrity/). # Installing Simply include the JavaScript and CSS at the top of your HTML. See `example.html` for an example. The exact steps follow anyway: Copy `no-wei.css` and `no-wei.js` to your web page assets directory, then include a link to both in all your HTML documents/templates between the `<head> ... </head>` tags. ``` <link rel="stylesheet" type="text/css" href="$PATH_TO_CSS/no-wei.css"> <script type="text/javascript" src="$PATH_TO_JS/no-wei.js"></script> ``` This project is written in vanilla JavaScript and uses no dependencies (JQuery or anything). # User-Agent Detection Currently a bit basic but this is the quickest way I could make it work without relying upon dependencies. We use a mixture of User Agent and `window.navigator` namespace prodding to determine which browser is in use. We currently show the banner only to Chrome. This may change; we could include other browsers when their position on WEI becomes clear. Currently, no concrete position on WEI has been given for Edge, Opera or Safari (though Safari uses its own equivalent PATs that are [allegedly more private](https://www.theregister.com/2023/07/27/google_web_environment_integrity/)). Vivaldi will [usually send the same user agent as Chrome](https://vivaldi.com/blog/user-agent-changes/), sorry Vivaldi users, you'll get the banner too. [Sample User-Agent sources](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) used for this project; it is MDN's fault if I got any wrong ;) # Branching Master contains the current release, Dev contains the latest untested commit. *PRs are very welcome but please target them to dev, thanks!* # Example image ![no-wei banner example image](no-wei-example1.png)
No-WEI Banner: Show a banner to Chrome users warning them of the dangers of WEI.
chrome-browser,freedom-of-information,javascript,privacy-online,web-environment-integrity,wei
2023-08-15T22:24:21Z
2023-11-04T14:32:14Z
2023-09-04T21:03:35Z
2
1
17
3
1
25
null
MIT
JavaScript
phenax/css-everything
main
<center> <img src="./media/banner.png" /> </center> --- A ui framework where you only write turing complete CSS. No HTML, no JS, no build system. > Disclaimer: Don't use this ## Usage #### Add script tag to the renderer to your html ```html <script async defer src="https://unpkg.com/@css-everything/render/dist/renderer/index.js"></script> ``` #### Open up a style tag or link a stylesheet The renderer by default uses the body element. You can use `:root` to describe the starting point. Here's a simple counter example: ```css :root { --counter: '0'; --cssx-children: div#count button#decr button#incr; } #count::after { content: "Count: " var(--counter); } #incr { --cssx-on-click: update(':root', --counter, calc(get-var(--counter) + 1)); --cssx-text: "++"; } #decr { --cssx-on-click: update(':root', --counter, calc(get-var(--counter) - 1)); --cssx-text: "--"; } ``` ## More examples Here are a few live examples for you to try out - - [Here's a calculator example](https://codepen.io/phenax/pen/PoLjJmL?editors=1100) - [Here's a todo app example](https://codepen.io/phenax/pen/QWzWGaV?editors=1100) - [Here's a simple counter example](https://codepen.io/phenax/pen/KKbdZep?editors=1100) - [Here's a digital & analog clock example](https://codepen.io/phenax/pen/KKbKNeb?editors=1100) - [More in the examples directory](https://github.com/phenax/css-everything/tree/main/examples) ## Docs - [Read the documentation](https://github.com/phenax/css-everything/tree/main/docs/README.md) to become enlightened. - [Here's how this works](https://github.com/phenax/css-everything/tree/main/docs/how-it-works.md). --- ## Frequently Acquisitioned Queries ### Why? Why not? ### What? What? ### What time is it? You can find the answer with [this example](https://codepen.io/phenax/pen/KKbKNeb?editors=1100). ### How does it work? [Here's how it works](https://github.com/phenax/css-everything/tree/main/docs/how-it-works.md). ### Is this turing complete? Yep. Not that you asked, but here's how to calculate factorial of a number. ```css :root { --cssx-children: div#container; } #container { --factorial: func(--n: number) if(lte(get-var(--n), 1), 1, calc( get-var(--n) * call(--factorial, map(--n: calc(get-var(--n) - 1))) )); --cssx-text: string("7! = ", call(--factorial, map(--n: 7))); } ``` ### Escape hatches? - If you want to directly render some raw html, you can use `--cssx-disgustingly-set-innerhtml`. - If you want to run js expressions, you can use the `js-eval` function. Eg: `js-eval("new Date().getSeconds()")` ### Does it need a build step? No. In fact, this'll probably break if you try to use it with a css preprocessor.
A ui framework where you only write turing complete CSS. No HTML, no JS, no build system, just CSS (kinda)
css,javascript,programming-language,typescript,ui-framework
2023-08-11T16:19:53Z
2024-01-21T15:51:19Z
null
1
0
87
1
0
25
null
MIT
TypeScript
MOHONA678/employee-management-system
main
# Employee Management System The Employee Management System is a comprehensive solution designed to streamline and enhance human resource operations within organizations. This system offers a user-friendly interface that facilitates efficient management of employee profiles, tracking of leave and attendance, task assignment, and performance evaluations. By centralizing these essential HR functions, the system empowers administrators to optimize workforce management, boost productivity, and ensure accurate data-driven decision-making. ## Table of Contents - [Introduction](#introduction) - [Live Preview](#live-preview) - [User Interface](#user-interface) - [Technologies Used](#technologies-used) - [Usage](#usage) - [Features](#features) - [User Authentication](#1-user-authentication) - [Dashboard](#2-dashboard) - [Employee Profiles](#3-employee-profiles) - [Leave and Attendance](#4-leave-and-attendance) - [Performance Evaluation](#5-performance-evaluation) - [Task Assignment](#6-task-assignment) - [Payroll Management](#7-payroll-management) - [Getting Started](#getting-started) - [Prerequisites](#prerequisites) - [Installation](#installation) - [AdminKit Admin Panel](#adminkit-admin-panel) - [Contributors](#contributors) - [Want to Contribute](#want-to-contribute) - [License](#license) ## Introduction The Employee Management System is a comprehensive and user-friendly application designed to streamline and simplify the process of managing employees within an organization. This system provides an efficient and organized way to handle various employee-related tasks, from onboarding and attendance tracking to performance evaluation and payroll management. ## Live Preview To preview this project please visit https://hrms.shawon-khan.com/ ## User Interface ![Welcome](public/img/screenshots/Welcome.jpeg "Welcome Page") ![Login](public/img/screenshots/Login.jpeg "Login Page") ![Dashboard](public/img/screenshots/Dashboard.jpeg "Dashboard Page") ![Users](public/img/screenshots/Users.jpeg "Manage Users Page") ![New User](public/img/screenshots/New_User.jpeg "Add New User Page") ![Employees](public/img/screenshots/Employees.jpeg "Manage Employees Page") ![New Employee](public/img/screenshots/New_Employee.jpeg "Add New Employee Page") ![Schedule](public/img/screenshots/Schedule.jpeg "Working Schedule Page") ![Daily Attendance](public/img/screenshots/Daily_Attendance.jpeg "Daily Attendance Page") ![AttendanceReport](public/img/screenshots/Attendance_Report.jpeg "Attendance Report Page") ![Payroll](public/img/screenshots/Payroll.jpeg "Monthly Payroll Page") ## Technologies Used The following technologies have been used in the development of Employee Management System (HRMS): - **[Laravel](https://laravel.com/)** : A popular PHP web application framework known for its elegant syntax and feature-rich ecosystem. - **[Laravel Blade](https://laravel.com/)** : The templating engine provided by Laravel for designing and rendering views. - **MySQL** : The database management system used to store application data. - **[Bootstrap](https://getbootstrap.com/)** : A CSS framework for creating responsive and attractive UI components. - **[FontAwesome](https://fontawesome.com/)**: A popular icon library that provides a wide range of icons for web projects. ## Usage 01. Log in to access the admin dashboard. 02. Add employees and provide necessary details. 03. Manage leave requests, assign tasks, and perform other administrative functions. 04. Employees can log in to view their profiles, submit leave requests, and update task statuses. ## Features ##### **01. User Authentication** Securely manage user access with a robust authentication system. Different user roles (admin, manager, hr etc) ensure appropriate permissions and access levels. ##### **02. Dashboard** Upon logging in as an administrator, you will be welcomed to the Admin Dashboard. The dashboard provides an insightful overview of vital statistics, including the total count of employees, ongoing projects, and recent activities. This central hub offers swift access to critical sections of the Employee Management System, empowering you to efficiently oversee employee profiles, leave requests, task assignments, and more. ##### **03. Employee Profiles** Maintain detailed profiles for each employee, including personal information, contact details, job history, and more. ##### **04. Leave and Attendance** Easily manage employee attendance and leave requests, allowing for accurate tracking and efficient planning. ##### **05. Performance Evaluation** Conduct performance reviews and evaluations within the system, facilitating timely feedback and goal setting. ##### **06. Task Assignment** Assign tasks and projects to employees, set deadlines, and track progress, enhancing collaboration and productivity. ##### **07. Payroll Management** Streamline payroll processing by automating salary calculations, tax deductions, and generating paystubs. ##### **08. Reports and Analytics** Generate insightful reports and analytics on various aspects of employee management, aiding data-driven decision-making. ## Getting Started Follow these instructions to get a copy of the Employee Management System project up and running on your local machine for development and testing purposes. #### Prerequisites Before you proceed, ensure you have the following software installed: - PHP (Version 8.2) - Composer (Version 2.5) - MySQL (Version 8.2) - Laravel (Version 10.16) #### Installation 01. Clone the **Employee Management System** repository to your local machine using the following command: ```bash git clone https://github.com/MOHONA678/employee-management-system.git ``` 02. Navigate to the project directory: ```bash cd employee-management-system ``` 03. Install the required `PHP` dependencies using Composer: ```bash composer install ``` 04. Install `Node.js` dependencies ###### Using npm: ```bash npm install ``` or, ###### using Yarn: ```bash yarn ``` 05. Generate `Vite` serve manifest: ###### Using npm: ```bash npm run build ``` or, ###### using Yarn: ```bash yarn build ``` 06. Create a new MySQL database for Employee Management System and update the `.env` file with your database credentials: ```bash cp .env.example .env ``` 07. Generate a unique application key: ```bash php artisan key:generate ``` 08. Run the database migrations and seed the database with initial data: ```bash php artisan migrate --seed ``` 09. Start the development server: ```bash php artisan serve ``` Congratulations! Employee Management System should now be up and running at `http://localhost:8000`. ## AdminKit Admin Panel Our Employee Management System incorporates the AdminKit Admin Panel to streamline administrative tasks. AdminKit is a flexible and modern admin dashboard template built with Bootstrap and other front-end technologies. Its customizable components and UI elements enable efficient management of various HRMS functionalities. Get it from here: **[AdminKit](https://adminkit.io/)** ## Contributors ##### Mohona Akter - GitHub: [MOHONA678](https://github.com/MOHONA678/) - Contributions: Multirole Authentication with Persmission, User Management, Attendance System. ##### Mst.Shorifa Akter - GitHub: [Shorifa1234](https://github.com/Shorifa1234) - Contributions: Staff Management, Leave Management, Payroll system. ##### Muhammad Nasir Uddin Khan Shawon - GitHub: [shawonk007](https://github.com/shawonk007) - Contributions: Database Design & Management. ## Want to Contribute? We welcome contributions from the community! If you'd like to contribute to the Employee Management System project, please follow these steps: 01. Fork the repository. 02. Create a new branch for your feature/bug fix. 03. Make your changes and test thoroughly. 04. Submit a pull request explaining your changes and the problem they solve. ## License This Employee Management System is distributed under the `GNU General Public License version 3.0 (GPL-3.0)`. You can find the full text of the license in the `LICENSE` file.
The Employee Management System simplifies user authentication system HR tasks with features like staff management, profile management, leave tracking, attendance, payroll and etc.
blade,css,css3,employee-management-system,hrms,html,html5,javascript,jquery,laravel
2023-08-09T05:57:53Z
2023-08-29T10:26:09Z
null
3
0
50
0
4
25
null
GPL-3.0
Blade
luccalb/tiptap-annotation-magic
master
# Tiptap Annotation Magic ## Description This is an extension for the [Tiptap](https://github.com/ueberdosis/tiptap) editor (based on ProseMirror). It's unique for its ability to **render overlapping annotations** as fragments. Annotations are rendered as [Decorations](https://prosemirror.net/docs/ref/#view.Decorations) and are therefore not a part of the Prosemirror Document. ![Example](./assets/demo.jpg) ## Setup ### Install Tiptap `npm install --save @tiptap/core @tiptap/pm @tiptap/starter-kit` ### Install Annotation Magic `npm install --save tiptap-annotation-magic` ### Configuration Define a model if you want to store data in annotations. ```{ts} interface AnnotationData { name: string; magicNumber: number; } ``` Add `AnnotationMagic` to the list of your extensions. ```{ts} extensions: [ StarterKit, AnnotationMagic<AnnotationData>().configure({ onAnnotationListChange: (annotations: Annotation<AnnotationData>[]) => { // Callback when annotation is created/deleted/updated }, onSelectionChange: (selectedAnnotations: Annotation<AnnotationData>[]) => { // Callback when the selected editor text changes }, styles: { // CSS classes to use for different fragments leftFragment: 'fragment-left', rightFragment: 'fragment-right', middleFragment: 'fragment-middle', normal: 'annotation-normal', } }) ] ``` ## Commands ```{ts} // Create an annotation containing `data` at the selected text location editor.chain().focus().addAnnotation(data).run(); // Update an annotations `data` editor.chain().focus().addAnnotation(id, data).run(); // Remove an existing annotation editor.chain().focus().deleteAnnotation(id).run(); ``` ## Demo See a Demo using React on [Stackblitz](https://stackblitz.com/edit/stackblitz-starters-4gxggz?file=src%2FTiptap.tsx)
An extension for the Tiptap editor, enabling the annotation of text. Comes with support for overlapping annotations, useful for e.g. NLP tokenization.
annotation,extension,rich-text-editor,tiptap,angular,javascript,js,nlp,react,tokenization
2023-08-16T07:50:17Z
2023-09-04T09:29:45Z
2023-09-01T09:10:44Z
1
2
23
6
0
25
null
MIT
TypeScript
SimformSolutionsPvtLtd/react-native-graph-kit
master
<img src="./assets/reactGraph.gif" > # react-native-graph-kit [![@shopify/react-native-skia](https://img.shields.io/badge/%40shopify%2Freact--native--skia-0.1.228-blue.svg?style=flat-square)](https://github.com/Shopify/react-native-skia) [![react-native-graph-kit on npm](https://img.shields.io/npm/v/react-native-graph-kit?style=flat-square&label=npm&color=blue)](https://www.npmjs.com/package/react-native-graph-kit) [![npm downloads](https://img.shields.io/npm/dm/react-native-graph-kit.svg?style=flat-square)](https://www.npmjs.com/package/react-native-graph-kit) [![Android](https://img.shields.io/badge/Platform-Android-green?logo=android&style=flat-square)](https://www.android.com) [![iOS](https://img.shields.io/badge/Platform-iOS-green?logo=apple&style=flat-square)](https://developer.apple.com/ios) [![MIT](https://img.shields.io/badge/License-MIT-green?style=flat-square)](https://opensource.org/licenses/MIT) --- **React Native Graph Kit** is a powerful library that is built using @shopify/react-native-skia to provide LineChart and BarChart components with interactive tooltips for your React Native applications. With this library, you can effortlessly visualize your data in a clean and intuitive manner, making it easier than ever for users to understand complex datasets. ℹ️ **Compatibility Notice:** This library is designed to work seamlessly with `@shopify/react-native-skia` version `<=0.1.228`. Make sure to use this version for optimal compatibility. - It also provides an example app and a detailed usage overview of both the components. - Both the available components are fully Android and iOS compatible. ## 🎬 Preview | LineChart | BarChart | | --------------------------------------------------------------- | -------------------------------------------------------------- | | <img src="./assets/lineChart.gif" style="border-radius:10px" > | <img src="./assets/barChart.gif" style="border-radius:10px" > | ## Quick Access [Installation](#installation) | [Charts](#charts) | [Properties](#properties) | [Example](#example) | [License](#license) # Installation ##### 1. Install library and @shopify/react-native-skia ```bash npm install react-native-graph-kit @shopify/react-native-skia ``` ###### --- or --- ```bash yarn add react-native-graph-kit @shopify/react-native-skia ``` ##### 2. Install cocoapods in the ios project ```bash cd ios && pod install ``` And you are good to begin. --- # Charts | BarChart | LineChart | | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | | <img src="./assets/barChartWithLegends.png" style="border-radius:10px" > | <img src="./assets/lineChartWithLegends.png" style="border-radius:10px" > | | | - LineChart: Create elegant line charts to showcase trends and patterns in your data. - BarChart: Display data using visually appealing bar charts, making comparisons at a glance. ### ChartDataType ```jsx type ChartDataType = { xAxis: { labels: string[] }, yAxis: { datasets: number[] } }; ``` ### ChartDataFormat ```jsx const data = { xAxis: { labels: [ 'Alice', 'Bob', 'Charlie', 'Liam', 'Mia', 'Nora', 'Oliver', 'Penelope', 'Quinn', 'Ryan', 'Sophia' ] }, yAxis: { datasets: [230, 75, 100, 500, 387, 655, 30, 60, 400, 500, 687] } }; ``` #### Usage ##### Basic Example ```jsx import React from 'react'; import { SafeAreaView, StyleSheet, View } from 'react-native'; import { BarChart, LineChart } from 'react-native-graph-kit'; const data = { xAxis: { labels: [ 'Alice', 'Bob', 'Charlie', 'Liam', 'Mia', 'Nora', 'Oliver', 'Penelope', 'Quinn', 'Ryan', 'Sophia' ] }, yAxis: { datasets: [120, 350, 400, 70, 87, 655, 10, 20, 400, 70, 87] } }; const App = () => ( <SafeAreaView style={styles.screen}> <View style={styles.chartContainer}> <BarChart chartData={data} barWidth={30} barGap={70} horizontalGridLineColor={'grey'} chartHeight={300} yAxisMax={1000} /> </View> <View style={styles.chartContainer}> <LineChart yAxisMax={1000} chartData={data} xAxisLength={70} initialDistance={30} /> </View> </SafeAreaView> ); const styles = StyleSheet.create({ screen: { flex: 1 }, chartContainer: { flex: 1, borderRadius: 10, borderWidth: 0.5, borderColor: 'lightgrey', padding: 10, margin: 10, shadowColor: 'lightgrey', shadowOpacity: 1, backgroundColor: 'white', shadowOffset: { height: 6, width: 5 } } }); export default App; ``` --- # Properties ### Chart Props | Prop | Default | Type | Description | BarChart | LineChart | | :---------------------- | :---------- | :------------ | :--------------------------------------------------- | -------- | --------- | | **chartData\*** | null | ChartDataType | Data to plot graphs | ✔️ | ✔️ | | chartHeight | 500 | number | Height of chart in BarChart | ✔️ | ⤫ | | showLines | true | boolean | Control visibility of Y Axis Ref lines on the chart | ✔️ | ✔️ | | lineHeight | 2 | number | Height of horizontal grid lines in BarChart | ✔️ | ⤫ | | lineWidth | 3 | number | The line width value of LineChart | ⤫ | ✔️ | | lineColor | #DE5E69 | ColorValue | The line color of LineChart | ⤫ | ✔️ | | barWidth | 20 | number | The width of the bars in BarChart | ✔️ | ⤫ | | barColor | #DE5E69 | ColorValue | The color of the bars in BarChart | ✔️ | ⤫ | | barRadius | 0 | number | The borderRadius of the bars in BarChart from top | ✔️ | ⤫ | | barGap | 50 | number | X Axis length covered by bars | ✔️ | ⤫ | | labelSize | 18 | number | The fontsize of labels on the chart | ✔️ | ✔️ | | labelColor | #000000 | ColorValue | The font color of chart labels | ✔️ | ✔️ | | labelFontFamily | System Font | ColorValue | The font path that will be applied to chart labels | ✔️ | ✔️ | | horizontalGridLineColor | #D3D3D3 | Color | The Ref lines color | ✔️ | ✔️ | | yAxisMin | 0 | number | The minimum value for the YAxis Plotting | ✔️ | ✔️ | | yAxisMax | auto | number | The maximum value for the YAxis Plotting | ✔️ | ✔️ | | initialDistance | 10 | number | The initial distance of chart from the Y Axis Labels | ✔️ | ✔️ | | xAxisLength | auto | number | Manual distance between x Axis Plotting | ⤫ | ✔️ | | verticalLabel | false | boolean | Handle rotation of X-Axis Labels | ✔️ | ✔️ | | verticalLabelHeight | auto | number | Desired height of the X-Axis | ⤫ | ✔️ | | chartBackgroundColor | #FFFFFF | Color | Chart background color | ✔️ | ✔️ | | xAxisLegend | undefined | string | The X Axis Legend Value | ✔️ | ✔️ | | yAxisLegend | undefined | string | The Y Axis Legend Value | ✔️ | ✔️ | | xLegendStyles | Default | TextStyle | X Axis Legend styles | ✔️ | ✔️ | | yLegendStyles | Default | TextStyle | Y Axis Legend styles | ✔️ | ✔️ | --- ### Tooltip Props | Prop | Default | Type | Description | BarChart | LineChart | | :----------------------- | :------ | :------ | :-------------------------------------- | -------- | --------- | | displayTooltip | false | boolean | Flag to handle tooltip visibility | ✔️ | ✔️ | | toolTipLabelFontSize | 12 | number | Font size | ✔️ | ✔️ | | toolTipColor | #FF0000 | string | Tooltip color | ✔️ | ✔️ | | toolTipDataColor | #FFFFFF | string | Tooltip data color | ✔️ | ✔️ | | toolTipHorizontalPadding | 20 | number | Tooltip padding | ✔️ | ✔️ | | toolTipFadeOutDuration | 4000 | number | Duration in ms to fade out tooltip | ✔️ | ✔️ | | circularPointerColor | #000000 | string | Color of circular pointer for LineChart | ⤫ | ✔️ | --- # Example A full working example project is here [Example](./example/src/App.tsx) ```sh yarn yarn example ios // For ios yarn example android // For Android ``` # TODO - [ ] Add option to enable Parametric Curve ## Find this library useful? ❤️ Support it by joining [stargazers](https://github.com/SimformSolutionsPvtLtd/react-native-graph-kit/stargazers) for this repository.⭐ ## Bugs / Feature requests / Feedbacks For bugs, feature requests, and discussion please use [GitHub Issues](https://github.com/SimformSolutionsPvtLtd/react-native-graph-kit/issues/new?labels=bug&late=BUG_REPORT.md&title=%5BBUG%5D%3A), [GitHub New Feature](https://github.com/SimformSolutionsPvtLtd/react-native-graph-kit/issues/new?labels=enhancement&late=FEATURE_REQUEST.md&title=%5BFEATURE%5D%3A), [GitHub Feedback](https://github.com/SimformSolutionsPvtLtd/react-native-graph-kit/issues/new?labels=enhancement&late=FEATURE_REQUEST.md&title=%5BFEEDBACK%5D%3A) ## 🤝 How to Contribute We'd love to have you improve this library or fix a problem 💪 Check out our [Contributing Guide](CONTRIBUTING.md) for ideas on contributing. ## Awesome Mobile Libraries - Check out our other [available awesome mobile libraries](https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries) ## License - [MIT License](./LICENSE)
Personalized graphs featuring customizable options for React Native app 📈
animations,bar-charts,charts,d3-scale,graphs,javascript,line-charts,react-native,skia,typescript
2023-08-17T04:19:03Z
2023-12-27T13:05:24Z
2023-12-27T13:05:24Z
11
26
40
0
1
23
null
MIT
TypeScript
nababur/JobFinder-Job-Portal-Laravel-Vue-Script
main
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p> <p align="center"> <a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a> </p> # JobFinder - Job Portal Laravel Vue Script <p>"JobFinder" is a job portal web application built using the Laravel PHP framework for the backend and the Vue.js JavaScript framework for the frontend. This open-source project is designed to help job seekers find suitable employment opportunities and employers post job listings efficiently. Below is some information you might include when creating a GitHub repository for the JobFinder project:</p> <div class="script-details"> <h3>Key Features:-</h3> <hr> <ol><li><p><strong>User Registration and Authentication:</strong> Users can create accounts, log in, and manage their profiles securely.</p></li><li><p><strong>Job Listings:</strong> Employers can post detailed job listings, including job descriptions, requirements, location, and more.</p></li><li><p><strong>Advanced Search:</strong> Job seekers can filter job listings based on various criteria such as location, industry, experience level, and more.</p></li><li><p><strong>Application Management:</strong> Job seekers can submit applications for job listings and track their application status.</p></li><li><p><strong>Messaging System:</strong> A built-in messaging system facilitates communication between job seekers and employers.</p></li><li><p><strong>Resume Upload:</strong> Job seekers can upload and manage their resumes, making it easy for employers to review qualifications.</p></li><li><p><strong>Admin Panel:</strong> An admin panel provides administrators with the ability to manage users, job listings, and oversee the platform's operations.</p></li><li><p><strong>Responsive Design:</strong> The application is designed to be responsive, ensuring a seamless experience on both desktop and mobile devices.</p></li><li><p><strong>Notifications:</strong> Users receive email notifications for job application updates, messages, and more.</p></li></ol> <p><strong>Technologies Used:</strong></p> <ul><li><strong>Backend:</strong> Laravel PHP framework</li><li><strong>Frontend:</strong> Vue.js JavaScript framework</li><li><strong>Database:</strong> MySQL or any supported database system</li><li><strong>Other Technologies:</strong> HTML, CSS, JavaScript, AJAX, REST API</li></ul> </div> <h2 tabindex="-1" dir="auto"><a id="user-content-adminpanel-screenshot" class="anchor" aria-hidden="true" tabindex="-1" href="#adminpanel-screenshot"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a>Job Board pages </h2> ![screencapture-127-0-0-1-8000-2023-09-01-20_31_16](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/408525a6-2bb0-491f-a576-524446e9e5a0) ![screencapture-127-0-0-1-8000-dashboard-2023-09-01-20_35_41](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/bcbfb6ab-074f-4ccb-8203-93da018b7dca) ![screencapture-127-0-0-1-8000-user-profile-2023-09-01-20_32_19](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/056caee2-d903-4b2c-a5bf-60a3d2db8eb6) ![screencapture-127-0-0-1-8000-post-2-earum-qui-ab-corrupti-cupiditate-et-2023-09-01-20_35_14](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/3fe74603-c262-4fd1-916f-e264308a512b) ![screencapture-127-0-0-1-8000-jobs-myjobs-2023-09-01-20_34_45](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/75324721-787c-4154-953d-f5b34e6c6d0a) ![screencapture-127-0-0-1-8000-jobs-create-2023-09-01-20_34_35](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/31a42ab3-0977-4941-84e2-c2abbe6e8765) ![screencapture-127-0-0-1-8000-jobs-applications-2023-09-01-20_34_56](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/228a6976-ccd9-47b7-9282-1b6b3f65131a) ![screencapture-127-0-0-1-8000-jobs-alljobs-2023-09-01-20_33_11](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/41dd0b97-8cc2-4f84-ae62-ac783be716bb) ![screencapture-127-0-0-1-8000-job-201-need-wordpress-developer-to-create-new-custom-blog-from-psd-2023-09-01-20_33_46](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/cb24db37-c77b-4ae0-9d29-c719dbeee053) ![screencapture-127-0-0-1-8000-job-201-need-wordpress-developer-to-create-new-custom-blog-from-psd-2023-09-01-20_33_32](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/a0e89709-7dcf-4d87-9dab-fd14162795e5) ![screencapture-127-0-0-1-8000-home-2023-09-01-20_32_30](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/e59c3c0b-25a6-4741-b625-e33363e4a9d2) ![screencapture-127-0-0-1-8000-dashboard-settings-2023-09-01-20_36_43](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/663b1710-1f9a-49e7-bcb5-c5b4d9054f44) ![screencapture-127-0-0-1-8000-dashboard-posts-2023-09-01-20_36_27](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/830785e0-63fd-4b03-acc7-e6ac36643123) ![screencapture-127-0-0-1-8000-dashboard-jobs-2023-09-01-20_35_55](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/845570a6-beac-4ff8-bda6-57f0840efb04) ![screencapture-127-0-0-1-8000-dashboard-employers-2023-09-01-20_36_17](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/00e94d87-f319-431f-9212-c7beaf26474b) ![screencapture-127-0-0-1-8000-dashboard-category-2023-09-01-20_36_35](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/58b17718-212d-465b-af64-f1c31275291d) ![screencapture-127-0-0-1-8000-dashboard-category-2023-09-01-17_38_59](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/8ffa915d-bc16-4667-ac66-0097f7184485) ![screencapture-127-0-0-1-8000-dashboard-candidates-2023-09-01-20_36_08](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/fe0aed72-058c-4877-9f57-cf23cd3e1eb8) ![screencapture-127-0-0-1-8000-company-create-2023-09-01-20_34_26](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/1d1e38fb-7d4d-492e-9593-834383781168) ![screencapture-127-0-0-1-8000-company-create-2023-09-01-20_34_26](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/334b0d55-3a8d-48f4-aa6b-b4674e76c4d4) ![screencapture-127-0-0-1-8000-category-1-healthcare-2023-09-01-20_32_53](https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script/assets/8381528/2231688a-89b7-41a4-9c1d-5900526a582a) <div class='install-script'> <br> <h2 tabindex="-1" dir="auto"> <a id="user-content-installations" class="anchor" aria-hidden="true" tabindex="-1" href="#installations"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>Installations </h2> <br> ## If you receive and error while installation below:: <blockquote> <p dir="auto">run composer update instead of composer install also run php artisan </p> </blockquote> <h2 tabindex="-1" dir="auto"> <a id="user-content-1-clone-the-repository" class="anchor" aria-hidden="true" tabindex="-1" href="#1-clone-the-repository"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>1. Clone the repository </h2> <blockquote> <p dir="auto"> <a href="https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script.git">https://github.com/nababur/JobFinder-Job-Portal-Laravel-Vue-Script.git</a> </p> </blockquote> <br> <h2 tabindex="-1" dir="auto"> <a id="user-content-2-set-the-basic-config" class="anchor" aria-hidden="true" tabindex="-1" href="#2-set-the-basic-config"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>2. Set the basic config </h2> <blockquote> <p dir="auto">Create a database <br> ''' <br> </p> </blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto"> <pre class="notranslate"> <code>DB_CONNECTION=mysql &lt;br /&gt; DB_HOST=127.0.0.1 &lt;br /&gt; DB_PORT=3306 &lt;br /&gt; DB_DATABASE=db-name here.. &lt;br /&gt; !important DB_USERNAME=root &lt;br /&gt; DB_PASSWORD= &lt;br /&gt; </code> </pre> <div class="zeroclipboard-container position-absolute right-0 top-0"> <clipboard-copy aria-label="Copy" class="ClipboardButton btn js-clipboard-copy m-2 p-0 tooltipped-no-delay" data-copy-feedback="Copied!" data-tooltip-direction="w" value="DB_CONNECTION=mysql <br /> DB_HOST=127.0.0.1 <br /> DB_PORT=3306 <br /> DB_DATABASE=larajob <br /> !important DB_USERNAME=root <br /> DB_PASSWORD= <br />" tabindex="0" role="button"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2"> <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path> <path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </clipboard-copy> </div> </div> <p dir="auto">''' <br> </p> <h2 tabindex="-1" dir="auto"> <a id="user-content-3-install-dependencies" class="anchor" aria-hidden="true" tabindex="-1" href="#3-install-dependencies"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>3. Install Dependencies </h2> <blockquote> <p dir="auto">~composer install <br> ~npm install <br> ~npm run dev <br> </p> </blockquote> <h2 tabindex="-1" dir="auto"> <a id="user-content-4-migrate-database" class="anchor" aria-hidden="true" tabindex="-1" href="#4-migrate-database"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>4. Migrate Database </h2> <blockquote> <p dir="auto">~php artisan migrate:fresh <br> ~php artisan db:seed <br> &gt; <br> </p> </blockquote> <h2 tabindex="-1" dir="auto"> <a id="user-content-5-serve-application" class="anchor" aria-hidden="true" tabindex="-1" href="#5-serve-application"> <svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> </a>5. Serve application </h2> <blockquote> <p dir="auto">~php artisan serve <br> </p> </blockquote> <h3>Author</h3> <span>Nababur Rahaman</span> <ul> <li><a href='https://github.com/nababur'>Author profile</a></li> <li><a href='https://nababur.info/'>Website:https://nababur.info/</a></li> </ul> <h3>Live video: https://youtu.be/HLaublhJ7Zc</h3> <a href="mailto:nababurdev@gmail.com">For any support: nababurdev@gmail.com</a> <h4>Happy Open Source....</h4> <h4>Buy me a coffee :) </h4> <p dir="auto"> <a href="https://www.buymeacoffee.com/nababur" rel="nofollow"> <img src="https://camo.githubusercontent.com/28aae05a0fba45679e8e27d90609601e249b64a5fe30dfef05495de4f4e318d4/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67" alt="Buy Me A Coffee" width="195" height="55" data-canonical-src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" style="max-width: 100%;"> </a> </p> </div> Thanks, Colorlib for the free JobFinder HTML template.
"JobFinder" is a job portal web application built using the Laravel PHP framework for the backend and the Vue.js JavaScript framework for the frontend. This open-source project is designed to help job seekers find suitable employment opportunities and employers post job listings efficiently. Below is some information you might include when creating
html-css-javascript,javascript,jobboard,jobboard-project,jobfinder,joblisting,laravel,laravel-10,laravel-framework,php
2023-09-01T16:18:32Z
2023-09-02T18:47:26Z
null
1
0
8
0
11
23
null
null
HTML
guarapi/guarapi
main
# Guarapi ![CI](https://github.com/guarapi/guarapi/actions/workflows/ci.yml/badge.svg?branch=main) [![license](https://img.shields.io/github/license/guarapi/guarapi)](LICENSE) Welcome to Guarapi! This repository contains packages related to the Guarapi framework ecosystem. Each package can be used independently or in combination to build powerful web applications with Guarapi. ## Packages Explore the individual packages in this monorepo: - [**guarapi**](./packages/guarapi): Guarapi framework package. - [**@guarapi/eslint-config-guarapi**](./packages/eslint-config-guarapi): Recommended code style configuration. - [**@guarapi/create-guarapi-app**](./packages/create-guarapi-app): The starter kit package. Click on the package names above to view their respective READMEs and learn more about each package's features and usage. ## Contributing We enthusiastically welcome contributions from the Guarapi community. If you're interested in contributing to the project, please follow the steps outlined in our [Contribution Guidelines](CONTRIBUTING.md). Your contributions can include bug fixes, new features, documentation improvements, or any other enhancements that benefit the Guarapi framework. ## Code of Conduct To maintain a friendly and inclusive environment, we expect all contributors and community members to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). This code sets the standard for respectful and collaborative interactions within the Guarapi community. ## Getting Started If you're new to Guarapi, start by checking out the README for the [**guarapi**](./packages/guarapi) package. It provides instructions on installation, basic usage, and API details. For code style guidelines, refer to the [**@guarapi/eslint-config-guarapi**](./packages/eslint-config-guarapi) package README. To create a Guarapi from starter kit package, you can use the following command format: ### Using pnpm: ```shell pnpm create @guarapi/guarapi-app ``` ### Using yarn: ```shell yarn create @guarapi/guarapi-app ``` ### Using npx: ```shell npx @guarapi/create-guarapi-app ``` This command will generate a new Guarapi application starter kit with the following options: - `--name <name>`: Project name (default: my-project). - `--example <example>`: Example folder name (default: basic-api). You can pick one from the [examples](https://github.com/guarapi/guarapi/tree/main/examples). - `--yes`: Create the app automatically and answer "yes" to any prompts. For example, to create a Guarapi app with a custom name and example, you can run: ```shell pnpm create @guarapi/guarapi-app --name my-custom-project --example my-custom-example ``` ## Running Examples To run examples located in the `./examples` directory, you can use the following command format: ### Using pnpm: ```shell pnpm example --filter=basic-api ``` This command will execute the example named `basic-api`. You can replace `basic-api` with the name of the specific example you want to run. Feel free to explore the Guarapi documentation for more details on effectively and efficiently utilizing the framework in your projects. If you have any questions or require further assistance, don't hesitate to reach out to our vibrant and supportive community. Happy coding with Guarapi!
A minimalist, fast, and scalable Node.js web app framework. Simple syntax, flexible routing, rich features.
framework,javascript,nodejs
2023-08-28T15:20:24Z
2024-03-08T02:13:00Z
2024-03-08T01:53:33Z
1
32
78
0
2
23
null
MIT
TypeScript
solomonshalom/Bublr
main
![image](https://github.com/solomonshalom/the-abyss/assets/71135230/1430bda3-840a-43f5-b657-c4458eb969ba) # Bublr **Bublr** is an ultra-minimal platform designed to provide you with a space to express your thoughts, no matter how deep or profound they may be. It's a place where you can release your innermost musings without any limitations or judgments. Dive into Bublr and let your thoughts flow freely, like bubbles exploding into a space! ## Features - **Simplicity at its Core**: Bublr embraces minimalism. The focus is solely on your thoughts and words, without any distractions. - **Anonymity**: Feel free to express yourself without revealing your identity. You can share your thoughts without any personal information attached. - **Unfiltered Expression**: There are no constraints on the content you can share. Whether it's a fleeting idea, a profound realization, or an abstract concept, you can release it into Bublr, as a bubble! - **No Social Interaction**: Bublr is social media platform that's changing the norm. It's your very own digital garden! - **Private and Secure**: Your submissions are your own. We do not store personal information nor do we sell them, it's you and you only who owns your data. ## Packages // Weapons Bublr also has a tad bit of tools that you can use to build and help you write better - - [Zen](https://zen.bublr.life) If Bublr isn't minimalistic enough, use Zen instead! _If you want to build a weapon for Bublr, don't hesitate to get in touch with us at [bonjour@bublr.life](mailto:bonjour@bublr.life)! We're excited_ --- # Get started ## Pre-requisites - Use a node version `>= 18` - Create a Firebase project w/ Authentication & Firestore turned on! - Have `Next CLI` installed for build // dev ## Build Steps 1. Clone the Repository If you haven't already, clone the project repository to your local machine using Git: ```bash git clone https://github.com/solomonshalom/Bublr & cd Bublr ``` 2. If you feel a little sigma, go ahead and read the `package.json` and develop it but if you aren't (or you just want to be productive), these are the steps - - Install the Dependencies with the command `yarn install` - Build it with the command `yarn build` - Start it // Develop it through the command `yarn start` or `yarn dev` _OH, don't forget to fill in the ENVs!_ ## Pull Request Process 1. Ensure any install or build dependencies are removed before the end of the layer when doing a build. 2. ALSO, please do not forget to have the title of your PR as `Hello! Mom` (There is no particular reason but it will match the chain of commits :D) and mention your changes in the descriptions with the appropriate labels. 2. Update the `AUTHORS.md` with your name & username (Check it out to see how to do it <3). Please also include details of any new changes // fixes (Non-technical as well) that you have achieved in the Pull Request. 3. You may merge the Pull Request once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you. To know more about each Contributor // Mainter, check [AUTHORS.md](/AUTHORS.md) ## Credits & History Originally based on [Espresso](https://github.com/solomonshalom/Bublr), read more about it here: [The Future Of Espresso](https://github.com/solomonshalom/espresso/discussions/3) ## Disclaimer Bublr is a platform for personal expression. While we respect freedom of speech, we do not endorse or condone any harmful, offensive, or inappropriate content shared within Bublr. Users are solely responsible for their submissions. However, if any posts are against the values of Bublr or its partners, we will remove them without any further notice to keep you and the community safe! --- Dive into Bublr and let your thoughts take shape without boundaries or limitations. Express yourself in its purest form.
An ultra-minimal platform to let your thoughts out~
blog,blog-engine,blogging,blogging-platform,eslint,firebase,firebase-auth,firebase-database,javascript,nextjs
2023-08-10T12:44:51Z
2024-05-22T14:46:23Z
null
4
48
290
3
11
22
null
NOASSERTION
JavaScript
fepack/image
main
<div align="center"> <a href="https://fepack.org" title="@fepack/image - Collection of utilities for easy image control"> <img src="https://raw.githubusercontent.com/fepack/image/main/assets/banner.png" alt="@fepack/image - Collection of utilities for easy image control" /> </a> </div> <br/> <div align="center"> [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge&color=4C4885)](https://github.com/fepack/image/blob/main/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-deepgreen.svg?style=for-the-badge&color=4C4885)](https://github.com/fepack/image/pulls) [![codecov](https://codecov.io/gh/fepack/image/graph/badge.svg?token=42BBBGVNSJ)](https://codecov.io/gh/fepack/image) ![GitHub stars](https://img.shields.io/github/stars/fepack/image?style=social) ![GitHub forks](https://img.shields.io/github/forks/fepack/image?style=social) </div> <div align="center"> [OFFICIAL DOCS](https://image.fepack.org) | [DEPENDENCY GRAPH](https://graph.image.fepack.org) | [CONTRIBUTING](https://github.com/fepack/image/pulls) | [LICENSE](./LICENSE) </div> # @fepack/image [![npm version](https://img.shields.io/npm/v/@fepack/image?color=4C4885)](https://www.npmjs.com/package/@fepack/image) `@fepack/image` offers a collection of utilities designed for easy image control. ## Features - load - LoadClient - checkWebPSupport - detect - extractRGBs ## Installation ```shell npm install @fepack/image ``` ```shell pnpm add @fepack/image ``` ```shell yarn add @fepack/image ``` # @fepack/react-image [![npm version](https://img.shields.io/npm/v/@fepack/image?color=4C4885)](https://www.npmjs.com/package/@fepack/react-image) For React developers, `@fepack/react-image` provides hooks and components tailored for your workflow with images. ## Features - Load - useLoad ## Installation ```shell npm install @fepack/react-image ``` ```shell pnpm add @fepack/react-image ``` ```shell yarn add @fepack/react-image ``` ## License MIT
Collection of utilities for easy image control. @fepack/image, @fepack/react-image
image,javascript,typescript
2023-09-02T09:51:48Z
2024-03-01T13:15:01Z
2023-12-22T08:43:46Z
2
111
108
4
2
22
null
MIT
TypeScript
noodlapp/noodl-docs
main
# Noodl docs Welcome to the Noodl docs project! This is a open-source project aimed at providing detailed and up-to-date documentation for users of Noodl. Whether you're a beginner, intermediate, or advanced Noodl user, you will find this documentation invaluable. ## About Noodl Noodl is the low-code platform where designers and developers build custom applications and experiences. Designed as a visual programming environment, it aims to expedite your development process. It promotes swift and efficient creation of applications, requiring minimal coding knowledge. ## Getting Started This project is using [Docusaurus](https://docusaurus.io/) to help us ship a beautiful documentation site. In order to run this project locally, you need to follow the steps below: ```bash # Clone the repository to your local machine using the command below in your terminal or an external git client. git clone https://github.com/noodlapp/noodl-docs.git # Navigate into the project's directory. cd repository # Install the project dependencies. npm install # Start the development server. npm run start ``` Now, you should be able to view the project in your preferred browser through `localhost:3000`. ## FAQ ##### Can I preview my changes in the Noodl editor? Yes, when the Noodl editor starts up it will check anything running on `localhost:3000` and if it recognize that it is the Noodl docs it will use the local endpoint instead of the live docs. ##### How do we deploy the changes? Currently people at Noodl will deploy the changes manually, until we have an automatic system in place. ## Contributing We welcome contributions from the community. Whether you've found a typo, incorrect information, or you want to make large-scale updates or additions, we appreciate your effort. ## License Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. This project is licensed under the GPL License - see the [LICENSE.md](LICENSE.md) file for details. ## Contact If you have any questions, concerns, or feedback, please open a discussion in the [discussions tracker](https://github.com/noodlapp/noodl-docs/discussions) or join our Discord channel and we'll be happy to assist you!
The Noodl documentation website (previously https://docs.noodl.net/)
documentation,javascript,noodl,website,docusaurus
2023-09-05T09:18:20Z
2024-02-02T13:22:38Z
null
9
52
51
12
11
22
null
GPL-3.0
HTML
rezadrakhshan/django-project
main
# django-project author:https://github.com/rezadrakhshan/
my best django projects
css,django,html,python,javascript
2023-08-19T05:21:08Z
2024-05-23T12:52:34Z
null
1
0
32
0
0
21
null
null
JavaScript
ViktorSvertoka/english-excellence
main
![Landing Page](./assets/screencapture.png) # Development team : - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/ViktorSvertoka) Viktor Svertoka **Team Lead** development of the section **Reviews** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/AM1007) Andrew Motko **Scrum Master** development of the section **Header** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/LesiaUKR) Lesia Soloviova **Front End Developer** development of the section **Leave an application** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/AlinaRyabova) Alina Riabova **Front End Developer** development of the section **Hero** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/SvitlanaSavchenko) Svitlana Savchenko **Front End Developer** development of the section **Footer** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/TiZorii) Tetiana Zorii **Front End Developer** development of the section **Proposal to leave an application** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Vademandr) Vadym Andriushchenko **Front End Developer** development of the section **Our teachers** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/YNazymko12) Yuliia Nazymko **Front End Developer** development of the section **About us** - [![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/yevheniidatsenko) Yevhenii Datsenko **Front End Developer** development of the section **Our lessons** # Presentation ![Start](./assets/01.jpg) ![Team](./assets/02.jpg) ![Client](./assets/03.jpg) ![Propose](./assets/04.jpg) ![Tech](./assets/05.jpg) ![Goodbye](./assets/06.jpg) # Examples of writing commits on a project ## We use the following types of commits: - Feat(HTML) Added new functionality - Fix(JS) Error correction - Perf(JPEG) Changes to improve performance - Refactor(PNG) Code edits without fixing bugs or adding new features - Revert(JS) Rollback to previous commits - Style(SCSS) Code style edits - Docs(README) Documentation update Choose from the list the description of the commit that fits your task, in brackets we write the file in which we worked, and in the body of the commit we write what we did (changed) etc. - `Look at Figma layout` [**Layout Figma**](https://www.figma.com/file/MrdZUmIfeT1bKd8u5GWLRt/English-Excellence-2.0?type=design&node-id=0-1&mode=design&t=4jJkOR8gcvoKgG1k-0) npm run dev
English Excellence Website, team project Dev Titans on HTML & CSS👩‍🎤
css3,goit,html5,javascript,vite,english-excellence
2023-08-27T12:06:15Z
2023-09-23T19:41:44Z
null
9
72
242
0
2
20
null
MIT
CSS
harshmangalam/qwik-x
main
# Qwik-X ⚡️ Social media web app like Twitter build with Qwikcity ## Tech Stack - Qwikcity - Typescript - Drizzle ORM - Neon - Postgresql - Node/Express server - Tailwindcss - daisyui > Note: copy .env.example inside .env ## Setup Step 1 - Clone the repo ```shell git clone https://github.com/harshmangalam/qwik-x.git ``` Step 2 - move to project ```shell cd qwik-x ``` Step 3 - Install dependencies ```shell pnpm i ``` Step 4 - Copy .env.example to .env ```shell cp .env.example .env ``` Step 5 - Update .env variables value provide `DRIZZLE_DATABASE_URL` value. make sure your postgres is setup in local. Step 6 - Create postgres database with the same name provided in `DRIZZLE_DATABASE_URL` i.e `qwikx` Step 7 - Create and sync schema in your database ```shell pnpm migration:push ``` Step 7 - Now start your dev server ```shell pnpm dev ``` # Interaction Analysis 🌏 ## Teck Stack Used🔥 - Python - Streamlit - Plotly ## Code For Installing Packages 📦 ```shell cd analysis ``` ```shell pip install -r requirements.txt ``` ## Vercel Edge This starter site is configured to deploy to [Vercel Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions), which means it will be rendered at an edge location near to your users. ## Installation The adaptor will add a new `vite.config.ts` within the `adapters/` directory, and a new entry file will be created, such as: ``` └── adapters/ └── vercel-edge/ └── vite.config.ts └── src/ └── entry.vercel-edge.tsx ``` Additionally, within the `package.json`, the `build.server` script will be updated with the Vercel Edge build. ## Production build To build the application for production, use the `build` command, this command will automatically run `pnpm build.server` and `pnpm build.client`: ```shell pnpm build ``` [Read the full guide here](https://github.com/BuilderIO/qwik/blob/main/starters/adapters/vercel-edge/README.md) ## Dev deploy To deploy the application for development: ```shell pnpm deploy ``` Notice that you might need a [Vercel account](https://docs.Vercel.com/get-started/) in order to complete this step! ## Production deploy The project is ready to be deployed to Vercel. However, you will need to create a git repository and push the code to it. You can [deploy your site to Vercel](https://vercel.com/docs/concepts/deployments/overview) either via a Git provider integration or through the Vercel CLI.
Social media web app like Twitter build with Qwikcity
authentication,daisyui,drizzle-orm,javascript,postgresql,qwik,qwikcity,tailwindcss,typescript,postgres
2023-08-20T16:20:27Z
2023-11-10T05:47:37Z
null
14
26
381
21
19
20
null
null
TypeScript
forman/extendit
main
![image](logo.png) [![CI](https://github.com/forman/extendit/actions/workflows/ci.yml/badge.svg)](https://github.com/forman/extendit/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/forman/extendit/graph/badge.svg?token=UK5JJ2SVRG)](https://codecov.io/gh/forman/extendit) [![npm](https://img.shields.io/npm/v/%40forman2/extendit)](https://www.npmjs.com/package/@forman2/extendit) [![TypeScript](https://badgen.net/npm/types/tslib)](https://www.typescriptlang.org/) [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![MIT](https://badgen.net/static/license/MIT/blue)](https://mit-license.org/) ExtendIt.js is a framework and library that is used to create extensible and scalable JavaScript applications. Its [core API](https://forman.github.io/extendit/modules/core.html) design is largely inspired by the [Extension API](https://code.visualstudio.com/api) of [Visual Studio Code](https://code.visualstudio.com/). ExtendIt.js provides the means for a host application to dynamically import JavaScript modules - _extensions_ - that add new features and capabilities to the application. ExtendIt.js has been designed to efficiently work with [React](https://react.dev/), for this purpose it provides a number of [React hooks](https://react.dev/reference/react/hooks). However, the library can be used without React too. It's just a peer dependency. # Highlights * Simple, low-level API allowing for complex, loosely coupled application designs offered by dependency inversion. * Manages _extensions_, which are JavaScript packages with a minor `package.json` enhancement. * Lets applications and extensions define _contribution points_ that specify the type of contribution that applications and extensions can provide. * Lets applications and extensions provide _contributions_ to a given contribution point. Contributions can be - JSON entries in the extension's `package.json` and/or - JavaScript values registered programmatically in code. * Allows dynamic loading of code: - Extensions may be installed at runtime or bound statically. - Code contributions are loaded on demand only, while JSON entries can be used right after extension installation. * Provides optional utilities for Web UI development: - React hooks for reactive access to extensions and contributions. - Predefined contribution points for typical UI elements. # Demo To see the API in action, you can run the [Demo code](https://github.com/forman/extendit/tree/main/src/demo) using `npm run dev`, see section [Development](#development) below. It is a simple React application that demonstrates how extensions are installed, activated, and how they can contribute elements such as commands or UI components to an application. # Installation ```bash npm install @forman2/extendit ``` or ```bash yarn add @forman2/extendit ``` # Usage ## Extension basics Any extension must be defined by its [_extension manifest_](https://forman.github.io/extendit/interfaces/core.ExtensionManifest.html), which is basically a slightly enhanced [`package.json`](https://docs.npmjs.com/cli/v7/configuring-npm/package-json). ```json { "name": "my-extension", "provider": "my-company", "version": "1.0.0", "main": "init" } ``` The `main` field is optional. If you provide it as above, it means you provide an [_extension activator_](https://forman.github.io/extendit/interfaces/core.ExtensionModule.html) in a submodule named `init` which defines an `activate()` function that is called if your extension is activated by the host application: ```ts import { SomeAppApi } from "some-app/api"; export function activate() { // Use the SomeAppApi here, e.g., // register your contributions to the app } ``` ## Extension-specific APIs The activator may also export an extension-specific API for other extensions ```ts import { MyApi } from "./api"; export function activate(): MyApi { return new MyApi({ ... }); } ``` Hence, another dependent extension such as ```json { "name": "other-extension", "provider": "other-company", "main": "init", "dependencies": { "@my-company/my-extension": "1.0.0" } } ``` may consume it in its own `init.ts` ```ts import { type ExtensionContext, getExtension } from "@forman2/extendit"; import { type MyApi } from "@my-company/my-extension"; export function activate(ctx: ExtensionContext) { const myExtension = getExtension("my-company.my-extension"); const myApi = myExtension.exports as MyApi; // Use imported extension API here, e.g., to add some contribution myApi.registerViewProvider({ ... }); } ``` If you add `extensionDependencies` to your `package.json` ```json { "extensionDependencies": [ "my-company.my-extension" ] } ``` then you can save some lines of code in your activator, because the framework passes desired APIs as a subsequent arguments corresponding to the `extensionDependencies` entries: ```ts import { type ExtensionContext, getExtension } from "@forman2/extendit"; import { type MyApi } from "@my-company/my-extension"; export function activate(ctx: ExtensionContext, myApi: MyApi) { myApi.registerViewProvider({ ... }); } ``` ## Extension installation The host application registers (installs) extensions by using the [`readExtensionManifest`](https://forman.github.io/extendit/functions/core.readExtensionManifest.html) and [`registerExtension`](https://forman.github.io/extendit/functions/core.registerExtension.html) functions: ```ts import { readExtensionManifest, registerExtension } from "@forman2/extendit"; export function initApp() { const extensionsUrls: string[] = [ // Get or read installed extension URLs ]; const pathResolver = (modulePath: string): string => { // Resolve a relative "main" entry from package.json }; extensionUrls.forEach((extensionUrl) => { readExtensionManifest(extensionUrl) .then((manifest) => registerExtension(manifest, { pathResolver }) ) .catch((error) => { // Handle installation error }); }); } ``` ## Contribution points and contributions The host application (or an extension) can also define handy [_contribution points_](https://forman.github.io/extendit/interfaces/core.ContributionPoint.html): ```ts import { registerContributionPoint } from "@forman2/extendit"; export function initApp() { registerContributionPoint({ id: "wiseSayings", manifestInfo: { schema: { type: "array", items: {type: "string"} } } }); } ``` Extensions can provide contributions to defined contribution points. Contributions are encoded in the `contributes` value of an extension's `package.json`: ```json { "name": "my-extension", "provider": "my-company", "contributes": { "wiseSayings": [ "Silence is a true friend who never betrays.", "Use your head to save your feet.", "Before Alice went to Wonderland, she had to fall." ] } } ``` A consumer can access a current snapshot of all contributions found in the application using the [`getContributions`](https://forman.github.io/extendit/functions/core.getContributions.html) function: ```ts const wiseSayings = getContributions<string[]>("wiseSayings"); ``` The return value will be the _same_ value, as long as no other extensions are installed that contribute to the contribution point `wiseSayings`. If this happens, a new snapshot value will be returned. If you are building a React application, you can use the [provided React hooks](https://forman.github.io/extendit/modules/react.html) in `@forman2/extend-me/react` for accessing contributions (and other elements of the ExtendMe.js API) in a reactive way: ```tsx import { useContributions } from "@forman2/extend-me/react"; export default function WiseSayingsComponent() { const wiseSayings = useContributions("wiseSayings"); return ( <div> <h4>Wise Sayings:</h4> <ol>{ wiseSayings.map((wiseSaying) => <li>{wiseSaying}</li>) }</ol> </div> ); } ``` The component will be re-rendered if more contributions are added to the contribution point. A contribution may be fully specified by the JSON data in the `contributes` object in `package.json`. It may also require JavaScript to be loaded and executed. Examples are commands or UI components that are rendered by React or another UI library. The following contribution point also defined `codeInfo` to express its need of JavaScript code: ```ts import { registerCodeContribution } from "@forman2/extendit"; export function activate() { registerContributionPoint({ id: "commands", manifestInfo: { schema: { type: "array", items: { type: "object", properties: { id: {type: "string"}, title: {type: "string"} } } } }, codeInfo: { idKey: "id", activationEvent: "onCommand:${id}" } }); } ``` The entry `activationEvent` causes the framework to fire an event of the form `"onCommand:${id}"` if the code contribution with the given `"id"` is requested. In turn, any extension that listens for the fired event will be activated. Here is an extension that provide the following JSON contribution to the defined contribution point `commands` in its `package.json` ```json { "contributes": { "commands": [ { "id": "openMapView", "title": "Open Map View" } ] } } ``` and also defines the corresponding JavaScript code contribution in its activator: ```ts import { registerCodeContribition } from "@forman2/extendit"; import { openMapView } from "./map-view"; export function activate() { registerCodeContribition("commands", "openMapView", openMapView); } ``` Such code contributions are loaded lazily. Only the first time a code contribution is needed by a consumer, the contributing extension will be activated. Therefore, code contributions are loaded asynchronously using the [`loadCodeContribution`](https://forman.github.io/extendit/functions/core.loadCodeContribution.html) function: ```ts import { loadCodeContribution } from "@forman2/extendit"; import { type Command } from "./command"; async function getCommand(commandId: string): Promise<Command> { return await loadCodeContribution<Command>("commands", commandId); } ``` There is also a corresponding React hook [`useLoadCodeContribution`](https://forman.github.io/extendit/functions/react.useLoadCodeContribution.html) that is used for implementing components: ```tsx import { useLoadCodeContribution } from "@forman2/extendit/react"; import { type Command } from "./command"; interface CommandButtonProps { command: Command; } export default function CommandButton({ command }: CommandButtonProps) { const commandCode = useLoadCodeContribution("commands", command.id); if (!commandCode) { // Happens on first render only return null; } return ( <button onClick={commandCode.data} disabled={commandCode.loading || commandCode.error} > {command.title} </button> ); } ``` # Documentation We currently only have this file and the [API docs](https://forman.github.io/extendit/), sorry. # Development ## Source code Get sources and install dependencies first: ```bash $ git clone https://github.com/forman/extendit $ cd extendit $ npm install ``` ## Scripts Now the following scripts are available that can be started with `npm run`: * `dev` - run the **React Demo** in development mode * `build` - build the library, outputs to `./dist` * `lint` - run `eslint` on project sources * `test` - run project unit tests * `coverage` - generate project coverage report in `./coverage` * `typedoc` - generate project API docs in `./docs` ## Configuration You can use `.env` files, e.g., `.env.local` to configure development options: ```sh # As `vite build` runs a production build by default, you can # change this and run a development build by using a different mode # and `.env` file configuration: NODE_ENV=development # Set the library's log level (ALL, DEBUG, INFO, WARN, ERROR, OFF) # Logging is OFF by default. # Note, if the level is not set or it is OFF, no console outputs # are suppressed while unit tests are run. VITE_LOG_LEVEL=ALL ``` ## Contributing ExtendIt.js welcomes contributions of any form! Please refer to a dedicated document on [how to contribute](https://github.com/forman/extendit/blob/main/CONTRIBUTING.md). # Acknowledgements ExtendIt.js currently uses the awesome libraries * [ajv](https://ajv.js.org/) for JSON validation (may be turned into peer dependency later) * [memoize-one](https://github.com/alexreardon/memoize-one) for implementing state selector functions * [zustand](https://github.com/pmndrs/zustand) for state management # License Copyright © 2023 Norman Fomferra Permissions are hereby granted under the terms of the MIT License: https://opensource.org/licenses/MIT.
Framework and library for creating extensible and scalable TS/JS applications
api,framework,javascript,library,react,extensions-management,ui,dependency-injection,dependency-inversion,plugin-system
2023-08-28T10:07:27Z
2024-01-24T13:49:03Z
2023-11-29T09:42:19Z
1
24
259
3
1
20
null
MIT
TypeScript
jasonlaubb/Matrix-AntiCheat
main
<div align="center"> <img src="https://raw.githubusercontent.com/jasonlaubb/Matrix-AntiCheat/main/pack_icon.png" height="50"> <img src="https://raw.githubusercontent.com/jasonlaubb/Matrix-AntiCheat/main/.github/PRIVATE_DATA/title.png" height="50"> ## Project Status <img src="https://img.shields.io/badge/Language-TypeScript-%23EF4041?style=for-the-badge"> <a href="https://discord.gg/CqZGXeRKPJ"><img src="https://img.shields.io/badge/Discord-CqZGXeRKPJ-%231976D2?style=for-the-badge"></a> <p align="center"> <img src="https://img.shields.io/github/downloads/jasonlaubb/Matrix-AntiCheat/total?style=for-the-badge" alt="Downloads"> <img src="https://img.shields.io/github/issues/jasonlaubb/Matrix-AntiCheat?label=ISSUES%20OPEN&style=for-the-badge" alt="Issues Open"> <img src="https://img.shields.io/github/commit-activity/m/jasonlaubb/Matrix-AntiCheat?style=for-the-badge" alt="Commits Per Week"> <img src="https://img.shields.io/github/last-commit/jasonlaubb/Matrix-AntiCheat?style=for-the-badge" alt="Last Commit"> </p> </div> ## Introduction Matrix Anti Cheat is your solution for a cheat-free Minecraft experience, whether you're playing in the Realm, local world, or on a server. We offer best cheat detection and automated punishment systems. The anticheat can work on V1.20.6x Minecraft bedrock version. | Device of client | Localhost Worlds | Minecraft Realms | Bedrock Dedicated Servers (BDS) | BDS Extended (BDSX) | PocketMine | Other Custom Servers | | ------- | ------- | ------- | ------- | ------- | ------- | ------- | | Android | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | IOS | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Windows | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Xbox | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | PS4/PS5 | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | | Nintendo Switch | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | --- ## Information Join our support Discord server: [Click Here To Join](https://discord.gg/CqZGXeRKPJ) Matrix Anti Cheat is the ultimate Minecraft Bedrock Edition anti-cheat, providing strong protection against hackers. Supported Minecraft version: 1.20.50+ only ## Developers Author: jasonlaubb Contributors: ravriv, nottinghere, Hutao999999, Rami Gamer and Kaaaaii Translate: amico_nabbo, kris02, Selder578 --- ## Cheat Detection Our Anti Cheat features powerful detection capabilities to protect your server. It's designed to be unbypassable. --- ## How to Use To make Matrix Anti Cheat work, you'll need the Beta API. Modify the default configuration in (root)/scripts/Data/Config.js to suit your needs. Download the latest release and use the .mcpack file, not the source code. ***-op (password) ~ to get admin permission*** > The default password is "password" ***-help ~ for commands*** --- ## Install AntiCheat ### Local World: > install the pack (.mcpack) to game > enabled the pack in the world settings > set it to the top > Enable Beta-API ### Realm: > install the pack to realm > set it to the top > Make sure the world enabled Beta-API ### Server: > unzip the pack (.mcpack => .zip) > move the pack to the server file > Edit the world settings, enable Beta-API > The world should enabled Beta-API > server.properties should add this to prevent bug ```properties op-permission-level=2 ```
The best minecraft bedrock anti cheat with strongest detection. It's a realm anticheat mainly.
anti-hack,anti-nuke,anticheat,api,javascript,mcpe-anti-cheat,mcpe-anticheat,minecraft,minecraft-anti-cheat,minecraft-anticheat
2023-09-08T09:07:12Z
2024-05-21T12:55:40Z
2024-05-08T12:51:15Z
9
3
1,321
0
1
19
null
AGPL-3.0
TypeScript
PRO-2684/Scriptio
main
<img src="./icons/icon.svg" align="right" style="width: 6em; height: 6em;"></img> # Scriptio > [!NOTE] > 此插件 `1.0.0` 版本及以上最低支持 LiteLoaderQQNT 1.0.0,之前版本的 LiteLoaderQQNT 请使用 `1.0.0` 之前的 Release [LiteLoaderQQNT](https://github.com/mo-jinran/LiteLoaderQQNT) 插件,用于为 QQNT 加载任意**渲染层**的 JavaScript 片段。 你可能也感兴趣:[Transitio](https://github.com/PRO-2684/transitio),自定义 CSS 片段加载器。 ## 🪄 具体功能 - 导入 js 代码片段 - 启用/禁用 js 代码片段 - 约定:说明若以 `* ` 开头,则启用/禁用此脚本需要重启/重载 *被注入此脚本的窗口* 生效,否则立即生效 - 由于 js 代码的复杂性,立即生效由脚本自行实现,Scriptio 仅提供 `scriptio-toggle` 事件以供脚本监听 (参考 [Wiki](https://github.com/PRO-2684/Scriptio/wiki) 中的 [响应性脚本](https://github.com/PRO-2684/Scriptio/wiki/%E7%94%A8%E6%88%B7%E8%84%9A%E6%9C%AC%E5%BC%80%E5%8F%91#%E5%93%8D%E5%BA%94%E6%80%A7%E8%84%9A%E6%9C%AC) 章节) ## 🖼️ 截图 > 演示中使用了 [MSpring-Theme](https://github.com/MUKAPP/LiteLoaderQQNT-MSpring-Theme),主题色为 `#74A9F6`。 ![Scriptio](./attachments/settings.jpg) ## 📥 安装 ### 插件商店 在插件商店中找到 Scriptio 并安装。 ### 手动安装 - 稳定版: 下载 Release 中的 `scriptio-release.zip`,解压后放入[数据目录](https://github.com/mo-jinran/LiteLoaderQQNT-Plugin-Template/wiki/1.%E4%BA%86%E8%A7%A3%E6%95%B0%E6%8D%AE%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84#liteloader%E7%9A%84%E6%95%B0%E6%8D%AE%E7%9B%AE%E5%BD%95)下的 `plugins/Scriptio` 文件夹中即可。(若没有该文件夹请自行创建) - CI 版: 若想体验最新的 CI 功能,可以下载源码后同上安装。(仅需下载下面列出的文件) 完成后的目录结构应该如下: ``` plugins (所有的插件目录) └── Scriptio (此插件目录) ├── manifest.json (插件元数据) ├── main.js (插件脚本) ├── preload.js (插件脚本) ├── renderer.js (插件脚本) ├── settings.html (插件设置界面) └── icons/ (插件用到的图标) ``` ## 🤔 使用方法 > [!WARNING] > 由于 js 代码的复杂性,禁用/修改部分脚本可能需要**重启/重载生效** - 启用/禁用脚本:打开插件设置界面,将对应的脚本开关打开/关闭。 - 注意:禁用脚本,实际上是在文件内第一行注释末尾添加了 `[Disabled]` 标记。 - 导入脚本:在配置界面导入 JS 文件,或将之放入 `data/Scriptio/scripts/` 文件夹。 - JS 文件首行的注释(若有)会被当作脚本说明,显示在设置界面中。 - 可以在此文件夹下创建多层目录,插件会自动扫描所有 JS 文件,但是设置界面导入的还是默认直接放在 `data/transitio/styles/` 下(v1.1.0 起) - 删除脚本:~~点击删除按钮,或~~进入 `data/Scriptio/scripts/` 文件夹删除对应文件。 - 修改脚本:修改对应文件即可。 - 鼠标悬停在脚本标题上时,会显示其绝对路径。 - 鼠标悬停在脚本上时,会展示 "在文件夹中显示" 按钮。 - 更新脚本:重新导入即可。 - 重载脚本:双击 "导入脚本..."。 ## 💻 调试 - 开发者模式:若您想要调试**您的用户脚本**,可以在插件设置界面打开*开发者模式*,此时插件会监控 `data/scriptio/scripts/` 文件夹,当发生更改时,会自动重载。 - Debug 模式:若您想要调试**此插件本身**,可以使用 `--scriptio-debug` 参数启动 QQNT,此时插件会在控制台输出调试信息。 ## 📜 用户脚本 > [!NOTE] > 以下脚本均为由我/其它用户编写的用户脚本,不内置在插件中。 > > 若你有愿意分享的脚本,欢迎[提交 PR 或 Issue](https://github.com/PRO-2684/Scriptio/issues/1) 来将它们添加到这里。编写脚本前推荐先阅读 [Wiki](https://github.com/PRO-2684/Scriptio/wiki)。 > [!WARNING] > ~~请不要在文件名中使用诸如句点 `.`, 空格 ` `, 加 `+` 等特殊字符,否则可能会导致插件无法正常工作。推荐仅使用字母、数字、下划线 `_` 与连字符 `-`。~~ v1.1.0 起已支持多层目录以及文件名中含特殊字符。 | 名称 | 作者 | 说明 | 实时响应 | 链接 | | --- | --- | --- | --- | --- | | hitokoto | [PRO-2684](https://github.com/PRO-2684) | 输入框展示一言 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#hitokoto) | | hook-vue | [PRO-2684](https://github.com/PRO-2684) | Hook Vue 实例 | ✖️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#hook-vue) | | hook-fetch | [PRO-2684](https://github.com/PRO-2684) | Hook `window.fetch` | ✖️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#hook-fetch) | | img-quick-close | [PRO-2684](https://github.com/PRO-2684) | 快速关闭图片 | ✖️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#img-quick-close) | | inspectio | [PRO-2684](https://github.com/PRO-2684) | 添加各类提示信息,详见 README,需要 hook-vue.js 的支持 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#inspectio) | | link-preview | [PRO-2684](https://github.com/PRO-2684) | 链接预览:鼠标经过链接时尝试加载浏览,悬浮显示链接的标题和描述,需要 hook-vue.js 的支持 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#link-preview) | | msg-record-enhance | [PRO-2684](https://github.com/PRO-2684) | 查看聊天记录中部分发送者 QQ,需要 hook-vue.js 的支持 | ✖️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#msg-record-enhance) | | open-in-browser | [PRO-2684](https://github.com/PRO-2684) | 小程序若可行则浏览器打开 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#open-in-browser) | | pangu | [PRO-2684](https://github.com/PRO-2684) | 编辑框内按下 Ctrl+P 后,自动在中英文、中文与数字之间添加空格,并进行合适的标点符号处理 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#pangu) | | plugin-icon | [PRO-2684](https://github.com/PRO-2684) | 设置界面展示插件图标(若有) | ✖️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#plugin-icon) | | privacio | [PRO-2684](https://github.com/PRO-2684) | 保护你的隐私:阻止 QQ 的一些追踪行为,需要 hook-fetch.js 的支持。 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#privacio) | | relay-self | [PRO-2684](https://github.com/PRO-2684) | 允许接龙自己的消息,需要 hook-vue.js 的支持 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#relay-self) | | shortcutio | [PRO-2684](https://github.com/PRO-2684) | 添加一些常用的快捷键 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#shortcutio) | | show-time | [PRO-2684](https://github.com/PRO-2684) | 消息显示时间,需要 hook-vue.js 的支持 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#show-time) | | smooth-transition | [PRO-2684](https://github.com/PRO-2684) | 为页面间导航添加平滑过渡动画 | ✔️ | [GitHub](https://github.com/PRO-2684/Scriptio-user-scripts/#smooth-transition) | | to-contact-list-top | [lgc2333](https://github.com/lgc2333) | 添加一个回到聊天列表顶部的侧边栏按钮 | ✔️ | [GitHub](https://github.com/lgc2333/ScriptioScripts/tree/main/to-contact-list-top#tocontactlisttop) |
Load custom renderer-level scripts for QQNT
javascript,liteloaderqqnt,userscript
2023-08-22T03:13:26Z
2024-04-17T01:28:51Z
2024-04-13T10:40:32Z
2
2
87
1
1
19
null
GPL-3.0
JavaScript
JhonesJhonatas/dont-forget-web
main
<div align="center"> <img src="https://github.com/JhonesJhonatas/dont-forget-backend/assets/105026951/d57c35a4-e21d-4e97-b3a5-7e9d83614cc1" alt="DontForget Logo" height="100"> </div> <br> <hr> <div align="center"> <h1>DontForget FrondEnd</h1> </div> ## Sobre a Aplicação <span>Organização de afazeres de forma fácil e intuitiva, permite o cadastro de tarefas separado por projeto, uma visualização de todas as suas tarefas e visualização separada pro projetos. Com essa aplicação você não deixa passar nenhum afazer do seu dia!</span> <a href="https://dont-forget-web.vercel.app/" >💻 • Link da aplicação em Produção</a> ## Explorando a Aplicação ### Cadastro de usuário ![Screenshot 2024-01-30 101545](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/871ac543-2aef-408e-8de7-97f0dd900fe2) ### Tela de Login ![Screenshot 2024-01-30 095758](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/a33b13cd-a417-4f60-bdb1-b3d6cf46add2) ### DashBoard ![Screenshot 2024-01-30 095828](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/e50686d8-281a-4241-8665-402bee1e249c) ### Criação de Tarefa ![Screenshot 2024-01-30 095921](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/e5157534-f5ad-4753-a6d4-c9a6a3cc0bc7) ### Tarefas (Modo Lista) ![Screenshot 2024-01-30 095840](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/f7cb94e3-1863-4b97-8cbb-fd8c00c9e76d) ### Tarefas (Modo Kanban) ![Screenshot 2024-01-30 095847](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/8816c777-9b4e-4223-a4c9-4f8578a2f89b) ### Configurações ![Screenshot 2024-01-30 095935](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/43d0cc3a-48b9-4390-aff2-d418992c37bf) ![Screenshot 2024-01-30 095942](https://github.com/JhonesJhonatas/dont-forget-web/assets/105026951/f0088632-fe0e-408b-8ee2-9dbce383e98b) <p>O objetivo da aplicação é ser um sistema de gerenciamento de tarefas, que te mantenha alerta de todas as responsabilidades cadastradas nele. Uma aplicação escalável que crescerá com o tempo recebendo novas features constantemente.</p> ## Tecnologias Utilizadas <ul> <li>ReactJs</li> <li>StyledComponents</li> <li>Date-Fns</li> <li>Reat-Router-Dom</li> <li>React-Hook-Form</li> <li>Zod</li> </ul>
Gerenciador de tarefas fácil e intuitivo, que permite uma gestão completa e relatórios de trabalho. Facilite seu dia a dia com essa aplicação.
reactjs,typescript,date-fns,javascript,react-hook-form,react-router,zod
2023-09-10T10:09:48Z
2024-02-22T01:16:11Z
null
1
45
169
2
0
18
null
null
TypeScript
pakastin/flanets
main
![og](https://github.com/pakastin/flanets/assets/1475902/ecdf981f-d265-4d6b-9661-be04a9a006c3) # Flanets.io Free and open source 2D space flight simulator. Gravity-wise should be pretty realistic (except 2D, but orbits actually are quite 2D in reality). Missing athmospheric drag and such yet though. Contributions welcome! ## Play! https://flanets.io ## Install dependencies `npm i` ## Run development environment (auto-builds JS) ``` npm run dev ``` ––> http://localhost:8080/ ## Just run ``` npm start ``` ## Thanks to! - http://www.braeunig.us/space/orbmech.htm
Flanets 2D space flight simulator
flight,game,javascript,simulator,space
2023-08-16T18:25:08Z
2024-03-31T16:00:41Z
null
1
0
17
0
0
18
null
MIT
JavaScript
ekinkaradag/snake-vue3
development
# Snake 🐍 <p align="center"> <img src="https://github.com/ekinkaradag/snake-vue3/blob/main/repo-assets/gameplay_screenshot.png?raw=true" align="center" alt="asd" style="width: 60%; max-width: 60%; display: inline-block;" data-target="animated-image.originalImage"> </p> <p align="center"> <a href="https://github.com/ekinkaradag/snake-vue3/graphs/contributors" alt="Contributors"> <img src="https://img.shields.io/github/contributors/ekinkaradag/snake-vue3" /></a> <a href="#backers" alt="Backers on Open Collective"> <img src="https://img.shields.io/opencollective/backers/shields" /></a> <a href="https://github.com/ekinkaradag/snake-vue3/pulse" alt="Activity"> <img src="https://img.shields.io/github/commit-activity/m/ekinkaradag/snake-vue3" /></a> <a href="https://twitter.com/intent/follow?screen_name=dev_ekinkaradag"> <img src="https://img.shields.io/twitter/follow/dev_ekinkaradag?style=social&logo=twitter" alt="follow on Twitter"></a> </p> ## How to play 📕 If you'd like to know about how to play the game, you can find about it here: [`HOW_TO_PLAY.md`](https://github.com/ekinkaradag/snake-vue3/blob/14-how-to-play-popup/HOW_TO_PLAY.md) ## Development 👨‍💻 ### Prerequisites 🗹 You need to install and setup the following: - node.js - yarn - git ### Clone the repository 🤖 - Open up a terminal (Linux, macOS), or a command prompt (Windows) - Navigate to the directory you would like to download this repository in - You can do this by running a `cd` command like so: ```bash cd /directory/for/this/repo ``` - Do not forget to change `/directory/for/this/repo` with the directory of your own choosing! - Clone the repository by running the following command: ```bash git clone https://github.com/ekinkaradag/snake-vue3.git ``` ### Run the game 🕹 - If the cloning process went well, you need to change the directory to the newly created `snake-vue3` folder in order to install the dependencies - To Change the directory, run the following command: ```bash cd snake-vue3 ``` - This can be done by running the following command: ```bash yarn ``` - Or, if you prefer to use `npm`, you can run this: ```bash npm install ``` - Once the dependencies are installed, you can start the game in a live `dev` environment. - This can be done by running the following command: ```bash yarn dev ``` - Or, if you prefer to use `npm`, you can run this: ```bash npm run dev ``` - If you would like to build it: - This can be done by running the following command: ```bash yarn build ``` - Or, if you prefer to use `npm`, you can run this: ```bash npm run build ``` - When you do this, the built files will be available in the `dist` folder. - If you would like to deploy it to **GitHub Pages**: - This can be done by running the following command: ```bash yarn deploy ``` - Or, if you prefer to use `npm`, you can run this: ```bash npm run deploy ``` ## Thank you 👏 Thanks to all the supporters of the project! If you would like to contribute, make sure to check out [`CONTRIBUTING.md`](https://github.com/ekinkaradag/snake-vue3/blob/main/.github/CONTRIBUTING.md) **Stargazers:** [![Stargazers repo roster for @ekinkaradag/snake-vue3](https://reporoster.com/stars/dark/ekinkaradag/snake-vue3)](https://github.com/ekinkaradag/snake-vue3/stargazers) **Forkers:** [![Forkers repo roster for @ekinkaradag/snake-vue3](https://reporoster.com/forks/dark/ekinkaradag/snake-vue3)](https://github.com/ekinkaradag/snake-vue3/network/members)
The classic "Snake" game implemented in Vue3
front-end,frontend,game,game-development,javascript,js,node,nodejs,vue,vue3
2023-08-13T12:33:28Z
2023-08-24T21:05:59Z
null
1
19
25
4
1
18
null
GPL-3.0
Vue
taichunmin/chameleon-ultra.js
master
<div align="center"> <h1>chameleon-ultra.js</h1> <p>A JavaScript SDK for ChameleonUltra support Web Bluetooth API, Web Serial API and Node.js.</p> [API Reference](https://taichunmin.idv.tw/chameleon-ultra.js/docs/) | [Demos](https://github.com/taichunmin/chameleon-ultra.js/blob/master/pages/demos.md) [![npm version](https://img.shields.io/npm/v/chameleon-ultra.js.svg?logo=npm)](https://www.npmjs.org/package/chameleon-ultra.js) [![jsdelivr hits](https://img.shields.io/jsdelivr/npm/hm/chameleon-ultra.js?logo=jsdelivr)](https://www.jsdelivr.com/package/npm/chameleon-ultra.js) [![Build status](https://img.shields.io/github/actions/workflow/status/taichunmin/chameleon-ultra.js/ci.yml?branch=master)](https://github.com/taichunmin/chameleon-ultra.js/actions/workflows/ci.yml) [![Coverage Status](https://img.shields.io/coverallsCoverage/github/taichunmin/chameleon-ultra.js?branch=master)](https://coveralls.io/github/taichunmin/chameleon-ultra.js?branch=master) [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=chameleon-ultra.js&query=$.install.pretty&label=install%20size)](https://packagephobia.now.sh/result?p=chameleon-ultra.js) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/chameleon-ultra.js)](https://bundlephobia.com/package/chameleon-ultra.js@latest) [![npm downloads](https://img.shields.io/npm/dm/chameleon-ultra.js.svg)](https://npm-stat.com/charts.html?package=chameleon-ultra.js) [![GitHub contributors](https://img.shields.io/github/contributors/taichunmin/chameleon-ultra.js)](https://github.com/taichunmin/chameleon-ultra.js/graphs/contributors) [![Known vulnerabilities](https://snyk.io/test/npm/chameleon-ultra.js/badge.svg)](https://snyk.io/test/npm/chameleon-ultra.js) [![MIT License](https://img.shields.io/github/license/taichunmin/chameleon-ultra.js)](https://github.com/taichunmin/chameleon-ultra.js/blob/master/LICENSE) </div> ![](https://i.imgur.com/bWJGSGq.png) ## TOC - [TOC](#toc) - [Browser \& OS compatibility](#browser--os-compatibility) - [SerialPort (Node.js)](#serialport-nodejs) - [Web Bluetooth API](#web-bluetooth-api) - [Web Serial API](#web-serial-api) - [Web Serial API Polyfill](#web-serial-api-polyfill) - [Installing](#installing) - [Package manager](#package-manager) - [CDN](#cdn) - [Getting Started](#getting-started) - [Slot Enable and Emulate Mifare 1K](#slot-enable-and-emulate-mifare-1k) - [Set new BLE Pairing Key and Enable BLE Pairing](#set-new-ble-pairing-key-and-enable-ble-pairing) - [Related links](#related-links) ## Browser & OS compatibility ### SerialPort (Node.js) [Node SerialPort](https://serialport.io/docs/) is a JavaScript library for connecting to serial ports that works in NodeJS and Electron. ### Web Bluetooth API A subset of the Web Bluetooth API is available in ChromeOS, Chrome for Android 6.0, Mac (Chrome 56) and Windows 10 (Chrome 70). See MDN's [Browser compatibility](https://developer.mozilla.org/docs/Web/API/Web_Bluetooth_API#Browser_compatibility) table for more information. For iPhone and iPad, the Web Bluetooth API is available in [Bluefy – Web BLE Browser](https://apps.apple.com/app/bluefy-web-ble-browser/id1492822055). For Linux and earlier versions of Windows, enable the `#experimental-web-platform-features` flag in `about://flags`. ### Web Serial API The Web Serial API is available on all desktop platforms (ChromeOS, Linux, macOS, and Windows) in Chrome 89. See MDN's [Browser compatibility](https://developer.mozilla.org/docs/Web/API/Serial#browser_compatibility) table for more information. ### Web Serial API Polyfill On Android, support for USB-based serial ports is possible using the WebUSB API and the [Serial API polyfill](https://github.com/google/web-serial-polyfill). This polyfill is limited to hardware and platforms where the device is accessible via the WebUSB API because it has not been claimed by a built-in device driver. ## Installing ### Package manager Using npm: ```bash $ npm install chameleon-ultra.js # Also install SerialPort if you want to run in node.js $ npm install serialport ``` Using yarn: ```bash $ yarn add chameleon-ultra.js # Also install SerialPort if you want to run in node.js $ yarn add serialport ``` Once the package is installed, you can import the library using `import` or `require`: ```js // import import { ChameleonUltra } from 'chameleon-ultra.js' import WebbleAdapter from 'chameleon-ultra.js/plugin/WebbleAdapter' import WebserialAdapter from 'chameleon-ultra.js/plugin/WebserialAdapter' import SerialPortAdapter from 'chameleon-ultra.js/plugin/SerialPortAdapter' // require const { ChameleonUltra } = require('chameleon-ultra.js') const WebbleAdapter = require('chameleon-ultra.js/plugin/WebbleAdapter') const WebserialAdapter = require('chameleon-ultra.js/plugin/WebserialAdapter') const SerialPortAdapter = require('chameleon-ultra.js/plugin/SerialPortAdapter') ``` ### CDN Using jsDelivr CDN: ```html <!-- chameleon-ultra.js require lodash@4, place before any chameleon-ultra libraries --> <script src="https://cdn.jsdelivr.net/npm/lodash@4/lodash.min.js"></script> <!-- chameleon-ultra.js Core --> <script src="https://cdn.jsdelivr.net/npm/chameleon-ultra.js@0/dist/iife/index.min.js"></script> <!-- chameleon-ultra.js Crypto1 --> <script src="https://cdn.jsdelivr.net/npm/chameleon-ultra.js@0/dist/iife/Crypto1.min.js"></script> <!-- chameleon-ultra.js WebbleAdapter plugin --> <script src="https://cdn.jsdelivr.net/npm/chameleon-ultra.js@0/dist/iife/plugin/WebbleAdapter.min.js"></script> <!-- chameleon-ultra.js WebserialAdapter plugin --> <script src="https://cdn.jsdelivr.net/npm/chameleon-ultra.js@0/dist/iife/plugin/WebserialAdapter.min.js"></script> ``` After the `script` tag, you can use the `chameleon-ultra.js` as following: ```js const { Buffer, ChameleonUltra, WebbleAdapter, WebserialAdapter } = window.ChameleonUltraJS const ultraUsb = new ChameleonUltra() ultraUsb.use(new WebserialAdapter()) const ultraBle = new ChameleonUltra() ultraBle.use(new WebbleAdapter()) ``` ## Getting Started ### Slot Enable and Emulate Mifare 1K ```js async function run (ultra) { const { Buffer, DeviceMode, FreqType, Slot, TagType } = window.ChameleonUltraJS // set slot tag type and reset data await ultra.cmdSlotChangeTagType(Slot.SLOT_8, TagType.MIFARE_1024) await ultra.cmdSlotResetTagType(Slot.SLOT_8, TagType.MIFARE_1024) // enable slot await ultra.cmdSlotSetEnable(Slot.SLOT_8, FreqType.HF, true) // set active slot await ultra.cmdSlotSetActive(Slot.SLOT_8) // set anti-collision and write emu block await ultra.cmdHf14aSetAntiCollData({ uid: Buffer.from('11223344', 'hex'), atqa: Buffer.from('0400', 'hex'), sak: Buffer.from('08', 'hex'), }) await ultra.cmdMf1EmuWriteBlock(0, Buffer.from('11223344440804000000000000000000', 'hex')) // save slot settings await ultra.cmdSlotSaveSettings() // set device mode await ultra.cmdChangeDeviceMode(DeviceMode.TAG) } // you can run in DevTools of https://taichunmin.idv.tw/chameleon-ultra.js/test.html await run(vm.ultra) // or run with new ChaneleonUltra instance const { ChameleonUltra, WebserialAdapter } = window.ChameleonUltraJS const ultraUsb = new ChameleonUltra() ultraUsb.use(new WebserialAdapter()) await run(ultraUsb) ``` ### Set new BLE Pairing Key and Enable BLE Pairing ```js async function run (ultra) { await ultra.cmdBleSetPairingKey('654321') await ultra.cmdBleDeleteAllBonds() // need to delete all bonds before change pairing mode await ultra.cmdBleSetPairingMode(true) } // you can run in DevTools of https://taichunmin.idv.tw/chameleon-ultra.js/test.html await run(vm.ultra) // or run with new ChaneleonUltra instance const { ChameleonUltra, WebserialAdapter } = window.ChameleonUltraJS const ultraUsb = new ChameleonUltra() ultraUsb.use(new WebserialAdapter()) await run(ultraUsb) ``` ## Related links - [GitHub RfidResearchGroup/ChameleonUltra](https://github.com/RfidResearchGroup/ChameleonUltra) - [Chameleon Ultra Guide](https://chameleonultra.com/docs) - [Chameleon Ultra GUI Documentation](https://docs.chameleonultragui.dev/)
A JavaScript SDK for ChameleonUltra support Web Bluetooth API, Web Serial API and Node.js.
browser,chameleon-ultra,chrome,nfc,rfid,web-bluetooth-api,web-serial-api,serial-port,serialport,javascript
2023-08-17T17:35:26Z
2024-05-16T17:37:49Z
2024-02-20T02:15:04Z
1
99
161
5
1
18
null
MIT
TypeScript
shrey141102/Javascript-projects
main
<h1 align="center" id="title">Javascript Projects</h1> <p align="center"><img src="https://socialify.git.ci/shrey141102/Javascript-projects/image?description=1&amp;descriptionEditable=A%20collection%20of%20many%20javascript%20projects.%20%0AFeel%20free%20to_%20contribute%2C%20add%20projects%20or%20make%20changes%20to%20it.&amp;font=Source%20Code%20Pro&amp;language=1&amp;name=1&amp;owner=1&amp;pattern=Floating%20Cogs&amp;theme=Auto" alt="project-image"></p> <h2>🤩List of projects:</h2> # Age Calculator Easily determine your age, or the age of friends and family, down to the exact second. TimeTracker provides precise results, ensuring you never miss a moment. # Analog Clock Introducing TimelessMath, the Analog Calculator that seamlessly merges the charm of vintage technology with the precision of modern calculations. Embrace the tactile experience of computation with this beautifully crafted device, designed to bring a touch of nostalgia to your mathematical endeavors. # Background Color Changer Transform the visual ambiance of your webpage with this dynamic tool. Easily customize background colors to suit your mood or design preferences, adding a personalized touch to your online experience. # BLog Website Create and share your thoughts effortlessly with this intuitive blogging platform. Craft engaging articles, incorporate multimedia elements, and connect with your audience in a sleek and user-friendly interface. # BMI Monitor your health journey with precision using the BMI Calculator. Quickly assess body mass index, gaining valuable insights into your fitness goals and promoting a balanced lifestyle. # Calculator Your go-to digital calculator for quick and accurate computations. This user-friendly tool covers basic arithmetic functions, making it an essential utility for everyday mathematical tasks. # Dice Game Roll the virtual dice and challenge your luck in this entertaining game. Perfect for decision-making or casual fun, this Dice Game brings the excitement of chance to your digital experience. # Drum Kit Unleash your inner musician with the virtual Drum Kit. Experiment with different beats and rhythms, creating a dynamic and interactive musical experience right from your device. # Dynamic JS Quiz Engage users with a dynamic JavaScript quiz that adapts to their responses. Test and enhance programming knowledge with a customizable and interactive learning experience. # Dynamic Online Resume Elevate your online presence with a dynamic and responsive resume. Showcase your skills, experience, and achievements in a visually appealing format that leaves a lasting impression on potential employers. # E-Commerce Website Dive into the world of online commerce with this feature-rich platform. Easily manage products, track sales, and provide a seamless shopping experience for your customers. # Expense tracker Take control of your finances with this user-friendly expense tracker. Monitor spending, set budgets, and gain insights into your financial habits, all in one convenient application. # Guess My Number Challenge your intuition with this classic number-guessing game. Sharpen your guessing skills and enjoy a fun and interactive experience. # Hangman Game Test your word-solving abilities with the timeless Hangman Game. Expand your vocabulary while enjoying a classic and challenging word-guessing adventure. # Happy Birthday Wisher Never miss a birthday with this thoughtful app. Schedule and send personalized birthday wishes to your loved ones, adding a touch of joy to their special day. # Image Background Remover Effortlessly remove backgrounds from images with this handy tool. Achieve a professional look for your photos in just a few clicks. # Javascript Projects Main Website Explore a hub of JavaScript projects and resources on this central website. Stay updated on the latest trends and developments in the world of JavaScript programming. # Length Converter Simplify unit conversions effortlessly. The Length Converter lets you switch between various measurement units, providing quick and accurate results for distances, heights, and more. # Memory Game of Tiles Exercise your memory with this captivating Memory Game. Flip tiles to match pairs, test your cognitive skills, and enjoy a challenging and entertaining experience. # Micro Code Editor in the Browser Code on the go with this lightweight Micro Code Editor. Access a minimalistic coding environment directly from your browser, making quick edits and experimenting with snippets hassle-free. # Music Player Immerse yourself in a personalized auditory experience. The Music Player allows you to organize and play your favorite tunes, creating playlists for any mood or occasion. # Note Taking Application Stay organized with a versatile Note Taking Application. Capture thoughts, make lists, and set reminders, ensuring you never miss a detail in your busy life. # Palindrome Checker Challenge your linguistic skills with the Palindrome Checker. Easily determine whether a word or phrase reads the same backward as forward, adding a touch of wordplay to your day. # Password Generator Enhance your online security with the Password Generator. Create strong, unique passwords tailored to your specifications, keeping your accounts safe from unauthorized access. # QR Code Generator Streamline information sharing with the QR Code Generator. Easily convert text or URLs into QR codes for quick and efficient data transfer. # Quotes Generator Find inspiration at your fingertips The Quotes Generator delivers a daily dose of motivation and wisdom, making each day brighter with thoughtful words. # Rock Paper Scissors Settle decisions the classic way with Rock Paper Scissors. Enjoy a digital twist to this timeless hand game, adding an element of chance to your choices. # Simon Game Test your memory and pattern recognition skills with the Simon Game. Follow the sequence of colors and sounds to challenge your cognitive abilities. # Skycast (weather app) Stay informed about the weather conditions with Skycast. This app provides real-time weather updates, forecasts, and interactive features to keep you prepared for any climate. # Stopwatch Manage your time effectively with the Stopwatch. Whether for workouts or precise timing, this app ensures accuracy and convenience. # Temperature Converter Easily switch between Celsius and Fahrenheit with the Temperature Converter. Stay versatile in tracking temperatures for various purposes. # Text-to-Speech Transform text into spoken words with the Text-to-Speech app. Ideal for accessibility or multitasking, this tool converts written content into audio for a hands-free experience. # Text-Editor Write and edit seamlessly with the Text-Editor. This versatile tool provides a platform for drafting and refining text for various purposes. # Tic Tac Toe Engage in a classic game of strategy with Tic Tac Toe. Challenge friends or test your skills against an AI opponent in this timeless competition. # Time Zone Converter Simplify global scheduling with the Time Zone Converter. Easily determine time differences and coordinate activities across various regions. # To-Do Stay organized and productive with the To-Do app. Create and manage tasks, set deadlines, and ensure nothing slips through the cracks. # URL Shortener Condense lengthy URLs with the URL Shortener. Streamline links for easy sharing, tracking, and a cleaner online presence. # Weather Appliation Access comprehensive weather information with the Weather Application. Stay informed about current conditions, forecasts, and weather trends in your area. # Weight Converter Effortlessly convert weights between different units with the Weight Converter. Ideal for culinary enthusiasts, fitness enthusiasts, or anyone dealing with varied weight metrics. # Word Scramble Unscramble your way through words with the Word Scramble game. Exercise your vocabulary and pattern recognition skills in this engaging word puzzle. # Snake Game Embark on a classic gaming adventure with the Snake Game. Navigate the snake to collect points while avoiding collisions, offering a nostalgic gaming experience. # Pomodoro Timer The Pomodoro Timer is a minimalist time management tool based on the Pomodoro Technique. Enhance productivity with customizable work intervals, short breaks, and notifications. <h2>🍰 Contribution Guidelines:</h2> Open for contributions. Check this [file](https://github.com/shrey141102/Javascript-projects/blob/main/CONTRIBUTING.md) for steps to contribute. Please read the `CONTRIBUTING.md` file carefully before submitting a PR. Also, make sure your PR fulfills the required conditions present in the PR template. Please update this README file by adding your project name. Also remember to add a README inside your project directory explaining what your project is. Please avoid adding same projects again and again. (unless it has a very different approach/ui) <h2>💻 Built with</h2> <h4>Built by people around the globe. 🌐🧑‍🤝‍🧑</h4> Technologies used in the project: - Javascript - HTML - CSS
A collection of Javascript projects made by people around the globe
hacktoberfest,hacktoberfest-accepted,hacktoberfest2023,css,html,html-css-javascript,javascript,javascript-applications,javascript-game,projects
2023-09-01T12:08:13Z
2024-01-30T16:36:20Z
null
46
158
353
20
46
17
null
null
JavaScript
Desdaemon/odoo-lsp
main
# odoo-lsp [![nightly](https://github.com/Desdaemon/odoo-lsp/actions/workflows/nightly.yml/badge.svg)](https://github.com/Desdaemon/odoo-lsp/actions/workflows/nightly.yml) [![test](https://github.com/Desdaemon/odoo-lsp/actions/workflows/test.yml/badge.svg)](https://github.com/Desdaemon/odoo-lsp/actions/workflows/test.yml) ## Features ### Completion, definition and references for models, XML IDs and model fields Works for `record`s, `template`s, `env.ref()` and other structures. For VSCode, also includes schema-based validation and completions for Odoo XML. [![model demo](https://raw.githubusercontent.com/Desdaemon/odoo-lsp/main/static/model.gif)](https://asciinema.org/a/604545) ### Browse models and XML records as workspace symbols [![symbols demo](https://raw.githubusercontent.com/Desdaemon/odoo-lsp/main/static/symbols.gif)](https://asciinema.org/a/604560) ### Syntax enhancements Provides syntax highlighting in VSCode for Python, JavaScript, and XPath expressions in Odoo XML. https://github.com/Desdaemon/odoo-lsp/assets/36768030/6003d5fe-9617-41df-ae3d-a704af77455c For more features check out the [wiki]. ## Install The VSCode extension handles downloading the latest releases automatically; other editors need `odoo-lsp` on the path. Nightly binaries are also available for major platforms, please check [Releases] for the latest downloads. ```bash # One-line curl -L https://github.com/Desdaemon/odoo-lsp/releases/download/nightly/odoo-lsp-x86_64-unknown-linux-musl.tgz | tar -xzvf - # Apple Silicon curl -L https://github.com/Desdaemon/odoo-lsp/releases/download/nightly/odoo-lsp-aarch64-apple-darwin.tgz | tar -xzvf - # With cargo-binstall cargo binstall odoo-lsp # Install from source cargo install odoo-lsp # Update in-place, optionally with --nightly odoo-lsp self-update ``` ## Setup For detailed usage instructions please check the [wiki] (work in progress). ### VSCode odoo-lsp is available from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Desdaemon.odoo-lsp) and the [Open VSX Registry](https://open-vsx.org/extension/Desdaemon/odoo-lsp). Alternatively, you can grab the latest nightly builds from [Releases]. ### Helix See [.helix/languages.toml](./examples/.helix/languages.toml) 1. Ensure that you have `odoo-lsp` on your path 2. Determine your Helix runtime folder, e.g. `~/.config/helix/` on Linux 3. Modify `languages.toml` in your Helix runtime folder (create one if none exists) to include these lines: ```toml [language-server] # Update the path to match your setup odoo-lsp.command = "odoo-lsp" [[language]] name = "xml" language-servers = ["odoo-lsp"] roots = [".odoo_lsp", ".odoo_lsp.json"] [[language]] name = "python" roots = [ ".odoo_lsp", ".odoo_lsp.json", # add the default roots here ] # Order is important here language-servers = [ "odoo-lsp", # add the default language servers here "pylsp", # and any you need ] ``` 4. Alternatively, modify `$ROOT/.helix/languages.toml` where `$ROOT` is your Odoo modules root to include the above lines. ### Neovim via [lsp-zero.nvim] Instructions copied from [lsp-zero docs](https://lsp-zero.netlify.app/v3.x/language-server-configuration.html#custom-servers) 1. Ensure that you have `odoo-lsp` on your path 2. Configure your Neovim (Lua) configuration file e.g. at `~/.config/nvim/init.lua` to use [lsp-zero.nvim], adding odoo-lsp as a new server before calling `lsp.setup()`: ```lua -- lsp-zero stanza local lsp = require('lsp-zero').preset({}) lsp.on_attach(function(client, bufnr) lsp.default_keymaps({buffer = bufnr}) end) local lspconfigs = require 'lspconfig.configs' -- define our custom language server here lspconfigs.odoo_lsp = { default_config = { name = 'odoo-lsp', cmd = {'odoo-lsp'}, filetypes = {'javascript', 'xml', 'python'}, root_dir = require('lspconfig.util').root_pattern('.odoo_lsp', '.odoo_lsp.json', '.git') } } local configured_lsps = { odoo_lsp = {}, -- optional but recommended, requires pyright-langserver on path pyright = {}, } local lspconfig = require 'lspconfig' for name, config in pairs(configured_lsps) do lspconfig[name].setup(config) end -- LSP setup done lsp.setup() ``` A complete example can be found in [examples/init.lua](examples/init.lua). ## Troubleshooting Run your editor with the `RUST_LOG` environment variable like below, e.g. for VSCode: ```shell RUST_LOG=odoo_lsp=debug code .. ``` This will enable debug logs for the _LSP server_ itself, which can be seen via your editor's logging mechanism. Please include these logs when opening an issue. ## Development Don't know where to start? Run `cargo doc --bin odoo-lsp` for a quick overview of the codebase. All contributions welcome! 1. `pnpm i` 2. `cargo build` 3. In VSCode, press <kbd>F5</kbd> or change to the Debug panel and click `Launch Client` > **Note** > If encountered errors like `Cannot find module '/xxx/xxx/dist/extension.js'` > please try run command `tsc -b` manually, you could refer https://github.com/IWANABETHATGUY/tower-lsp-boilerplate/issues/6 for more details [wiki]: https://github.com/Desdaemon/odoo-lsp/wiki [Releases]: https://github.com/Desdaemon/odoo-lsp/releases [lsp-zero.nvim]: https://github.com/VonHeikemen/lsp-zero.nvim
Language server for Odoo Python/JS/XML
intellisense,lsp-server,odoo,python,xml,tower-lsp,javascript,odoo-tooling
2023-08-18T23:10:15Z
2024-05-23T13:45:30Z
2024-05-01T18:08:12Z
1
1
286
12
0
17
null
NOASSERTION
Rust
arjuncvinod/WebDevBootcamp-Mulearn
main
# Web Development Bootcamp by Gtech Mulearn ![ViewCount](https://views.whatilearened.today/views/github/arjuncvinod/WebDevBootcamp-Mulearn.svg?cache=remove) ### This Repository contains the Tasks and Projects done during the Web Development Bootcamp ### Task Live Preview : #### [Google-Clone](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Google-Clone/index.html) #### [Personal-Website](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Personal-website/index.html) #### [Business-Card](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Business-Card/index.html) #### [Space-Exploration](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Space-Exploration/index.html) #### [Birthday-Gift](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Birthday-Gift/index.html) #### [CSS-Flex](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/CSS-Flex/index.html) #### [Calculator](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Calculator/index.html) #### [Buildjack-Game](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Buildjack-Game/index.html) #### [Create-Stat](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Create-Stat/index.html) #### [Sorting-Fruits](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Sorting-Fruits/index.html) #### [Style-Stat](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Style-Stat/index.html) #### [String-To-Num](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/String-To-Num/index.html) #### [Passenger-Count](https://arjuncvinod.github.io/WebDevBootcamp-Mulearn/Passenger-Count) #### [React-Info](https://react-info-acv.netlify.app/) #### [Web-Mobapp](https://arjuncvinod.github.io/Add-To-Cart-WebApp/) #### [Git-API](https://github.com/arjuncvinod/GitHub-Profile-Viewer) #### [Air-Bnb](https://airbnb-acv.netlify.app/) #### [Meme-Gen](https://memegenerator-acv.vercel.app/) #### [Planatery-Data](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Planet-Data/) #### [Layout-Comprehension](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Layout-Comprehension/) #### [Making-Up-A-Letter](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Making-Up-A-Letter/) #### [Biography-Page](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Biography-Page/) #### [Silly-Story-Generator](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Silly-Story-Generator/) #### [Sequencing-Animation](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Sequencing-Animation/) #### [Client-Side-Web-API](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Client-Side-Web-API/) #### [Notes-App](https://notesapp-acv.netlify.app/) #### [Mozilla-Splash-Page](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Mozilla-Splash-Page) #### [Fundamental-Css](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Fundamental-Css) #### [Community-Homepage](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Community-Homepage) #### [Web-Forms](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Web-Forms) #### [Image-Gallery](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Image-Gallery) #### [Bouncing-Balls](https://arjuncvinod.me/WebDevBootcamp-Mulearn/Bouncing-Balls) #### [Tic-Tac-Toe](https://tictactoe-acv.vercel.app/) #### [Youtube-Clone](https://youtube-acv.vercel.app/) #### [Chat-Room](https://chatroom-acv.vercel.app/) #### [Movie-App](https://movieapp-acv.vercel.app/) #### [Budget-App](https://budgetapp-acv.netlify.app/)
This Bootcamp covers various topics in web development, such as building a website, creating a digital business card, designing a space exploration site, developing a passenger counter app, and building a game, among others. Additionally, participants will gain knowledge about GitHub repositories, challenges and deployment
css,html,javascript
2023-09-09T18:41:37Z
2024-03-03T06:04:20Z
null
1
34
217
0
0
17
null
MIT
JavaScript
ZanyuanYang/Text-Editor-Tiptap
master
# Tiptap Text Editor A text editor built with [Tiptap](https://tiptap.dev/) and [TailwindCSS](https://tailwindcss.com/) for React. ![img.png](src/assets/img.png) ## 🧑🏻‍💻 Demo [text-editor-tiptap.vercel.app](https://text-editor-tiptap.vercel.app/) ## 🚀 Installation Open a terminal and run: ```bash npm install npm run dev ``` Visit http://localhost:5173/ in your browser. ## ⛑️ Features - [Create Threads](https://tiptap.dev/docs/editor/comments/introduction) - Same feature as comments in Tiptap(`Beta` Requirement), but I build it own(`Free`). - ![img.png](src/assets/thread.png) - Upload .docx - Heading - Bold - Italic - Underline - Strikethrough - Code - Blockquote - Bullet List - Ordered List - Code Block - Alignment(Left, Center, Right, Justify) - Table - Color - Redo & Undo - Image(This extension does only the rendering of images.) ## 📄 License [MIT](./LICENSE)
A rich text editor built with Tiptap and TailwindCSS for React.
editor,javascript,react,tailwindcss,tiptap,tiptap-editor,typescript,rich-text-
2023-08-14T18:54:53Z
2024-02-27T00:24:20Z
null
1
1
20
0
3
17
null
MIT
TypeScript
oriol-martinez/hx-take
main
null
An htmx extension that allows to select and swap existing elements.
html,htmx,javascript,template
2023-09-04T17:05:38Z
2023-09-22T21:51:04Z
null
1
0
28
2
0
17
null
BSD-2-Clause
JavaScript
0v41n/JSConfuser-String-Decryptor
main
<h1 align="center">JSConfuser String Decryptor</h1> <p align="center"> <img src="https://img.shields.io/badge/version-v1.0-blue.svg" alt="Version"> <img src="https://img.shields.io/github/license/0v41n/JSConfuser-String-Decryptor.svg" alt="License"> <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"> </p> <p align="center"> a simple algorithm for statically decrypting the strings of a program obfuscated with JSConfuser </p> ## Table of contents - [About](#about) - [Pictures](#pictures) - [Installation](#installation) - [Usage](#usage) - [Contribute](#contribute) - [License](#license) ## About This project is designed to facilitate malware analysis and reverse engineering. It has been developed in JavaScript with NodeJS and has been built with love ## Pictures <p align="center"> <img src="img/screenshot.png" alt="picture" width="600"> </p> ## Installation * Clone the project: `git clone https://github.com/0v41n/JSConfuser-String-Decryptor.git` * Go to the project directory: `cd JSConfuser-String-Decryptor` * Installing dependencies : `npm install` ## Usage: -h Display the help menu -i <filename> Specify the input file to display decrypted strings -d <string> Decrypt a specific string -v Enable verbose mode -l Display software licensing information ## Contribute Contributions are welcome! Follow these steps to contribute to this project: 1. Fork the project. 2. Create a branch: `git checkout -b feature/NewFeature`. 3. Make the necessary changes and commit: `git commit -am 'Add new feature'`. 4. Push to branch: `git push origin feature/NewFeature` 5. Submit a pull request. ## License This project is licensed under the MIT licence. See the [LICENSE](LICENSE) file for more details. ## Contact Yvain Ramora - yvain@mailfence.com <p align="center"> Project created with ❤️ </p>
a simple algorithm for statically decrypting the strings of a program obfuscated with JSConfuser
javascript,js-confuser,malware-analysis,obfuscation,reverse-engineering,deobfuscation,deobfuscator
2023-08-19T21:46:33Z
2023-08-21T16:55:49Z
null
1
0
16
2
1
17
null
MIT
JavaScript
RightCapitalHQ/phpdoc-parser
main
# PHPDoc parser TypeScript version <!-- Badges area start --> [![made by RightCapital](https://img.shields.io/badge/made_by-RightCapital-5070e6)](https://rightcapital.com) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/RightCapitalHQ/phpdoc-parser/ci.yml) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org) [![RightCapital frontend style guide](https://img.shields.io/badge/code_style-RightCapital-5c4c64?labelColor=f0ede8)](https://github.com/RightCapitalHQ/frontend-style-guide) <!-- Badges area end --> Next-gen PHPDoc parser with support for intersection types and generics(TypeScript version) ## What's that This parser is inspired by the PHPStan's phpdoc-parser library: https://github.com/phpstan/phpdoc-parser This library `@rightcapital/phpdoc-parser` represents PHPDocs with an AST (Abstract Syntax Tree). It supports parsing and modifying PHPDocs by using `TypeScript`/`JavaScript`. For the complete list of supported PHPDoc features check out PHPStan documentation. - [PHPDoc Basics](https://phpstan.org/writing-php-code/phpdocs-basics) (list of PHPDoc tags) - [PHPDoc Types](https://phpstan.org/writing-php-code/phpdoc-types) (list of PHPDoc types) ## Installation ```bash # pnpm pnpm add @rightcapital/phpdoc-parser # yarn yarn add @rightcapital/phpdoc-parser # npm npm install --save @rightcapital/phpdoc-parser ``` ## Basic usage ```typescript import { ConstExprParser, Lexer, PhpDocParser, TokenIterator, TypeParser, } from '@rightcapital/phpdoc-parser'; // basic setup const lexer = new Lexer(); const constExprParser = new ConstExprParser(); const typeParser = new TypeParser(constExprParser); const phpDocParser = new PhpDocParser(typeParser, constExprParser); // parsing and reading a PHPDoc string const tokens = new TokenIterator(lexer.tokenize('/** @param Lorem $a */')); const phpDocNode = phpDocParser.parse(tokens); // PhpDocNode const paramTags = phpDocNode.getParamTagValues(); // ParamTagValueNode[] console.log(paramTags[0].parameterName); // '$a' console.log(paramTags[0].type); // IdentifierTypeNode { attributes: {}, name: 'Lorem' } ``` ## Format-preserving printer This component can be used to modify the AST and print it again as close as possible to the original. It's heavily inspired by format-preserving printer component in nikic/PHP-Parser. ```typescript import { CloningVisitor, ConstExprParser, IdentifierTypeNode, Lexer, NodeTraverser, PhpDocNode, PhpDocParser, TokenIterator, TypeParser, Printer, } from '@rightcapital/phpdoc-parser'; const usedAttributes = { lines: true, indexes: true }; const lexer = new Lexer(); const constExprParser = new ConstExprParser(true, true, usedAttributes); const typeParser = new TypeParser(constExprParser, true, usedAttributes); const phpDocParser = new PhpDocParser( typeParser, constExprParser, true, true, usedAttributes, ); const tokens = new TokenIterator(lexer.tokenize('/** @param Lorem $a */')); const phpDocNode = phpDocParser.parse(tokens); // PhpDocNode const cloningTraverser = new NodeTraverser([new CloningVisitor()]); const [newPhpDocNode] = cloningTraverser.traverse([phpDocNode]) as [PhpDocNode]; // change something in newPhpDocNode newPhpDocNode.getParamTagValues()[0].type = new IdentifierTypeNode('Ipsum'); // print changed PHPDoc const printer = new Printer(); const newPhpDoc = printer.print(newPhpDocNode); console.log(newPhpDoc); // --- result --- // /** // * @param Ipsum $a // */ const newPhpDocWithFormatPreserving = printer.printFormatPreserving( newPhpDocNode, phpDocNode, tokens, ); console.log(newPhpDocWithFormatPreserving); // '/** @param Ipsum $a */' ``` ## Welcome to contribute We are stilling waiting for someones to contribute, especially for the following features. - Doctrine Annotations support - More tests - More docs - A script to monitor [upstream](https://github.com/phpstan/phpdoc-parser) updates and notify the author to catch up. Please check out our [Contribution guide](docs/CONTRIBUTING.md) ## How did we create the initial version of this project. We created most of our code by using ChatGPT as a tool to transform most code from https://github.com/phpstan/phpdoc-parser to TypeScript version. Our PHP API haven't used Doctrine, so Doctrine support are removed. ## License MIT License © 2023-Present
Next-gen PHPDoc parser with support for intersection types and generics(TypeScript version)
ast,javascript,parser,php,phpdoc,phpdoc-parser,phpstan,rightcapital,typescript,php7
2023-08-24T06:38:27Z
2024-05-22T07:47:14Z
null
13
163
386
1
1
16
null
MIT
TypeScript
themesberg/tailwind-blazor-starter
main
# Tailwind CSS + Blazor.NET + Flowbite Starter Get started with this starter project based on a Tailwind CSS, Blazor.NET and Flowbite configuration to help you ger started building website applications based on the utility classes from Tailwind CSS and components from Flowbite. This repository is based on the Tailwind CSS + Blazor.NET guide on the Flowbite website. ## Getting started Ensure that you have NPM and Node.js installed on your project. Also ensure you have installed the .NET SDK to enable you to develop .NET applications. Run the following command to install all dependencies: ```Bash npm install ``` Then run this command to compile the source code and watch for changes: ```Bash dotnet watch ``` Make sure that you also run the following script to compile the Tailwind CSS source code: ```Bash npx tailwindcss -i wwwroot/css/app.css -o wwwroot/css/app.min.css --watch ``` Run this command to build your project and all its dependencies: ```Bash dotnet build ``` ## Flowbite Components ## Flowbite Components in a Blazor Project Now that you have successfully installed Blazor.NET, Tailwind CSS and Flowbite, you can start using Flowbite's components such as navbars, buttons, and modals in your project. We'll use a dropdown component with the hover effect as an example. Copy/paste this [code block](https://flowbite.com/docs/components/dropdowns/) into your Pages/Index.razor file: ```Bash @page "/" <button id="dropdownHoverButton" data-dropdown-toggle="dropdownHover" data-dropdown-trigger="{hover|click}" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800" type="button">Dropdown hover <svg class="w-2.5 h-2.5 ml-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6"> <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/> </svg></button> <!-- Dropdown menu --> <div id="dropdownHover" class="z-10 hidden bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700"> <ul class="py-2 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="dropdownHoverButton"> <li> <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Dashboard</a> </li> <li> <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Settings</a> </li> <li> <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Earnings</a> </li> <li> <a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Sign out</a> </li> </ul> </div> ``` [Learn more](https://github.com/themesberg/flowbite-blazor) about the Flowbite-Blazor library and how to customize it to your project. ## License This project is open-source under the MIT license.
Open-source project to get you started with Tailwind CSS, Blazor, and the Flowbite UI components
blazor,blazor-application,blazor-client,blazor-server,css,dotnet,tailwind,tailwindcss,csharp,html
2023-08-16T08:35:27Z
2023-11-10T11:09:38Z
null
3
3
8
3
5
16
null
MIT
HTML
SURAJPATIL6088/Fake-Product-Identification-Using-Blockchain
master
# Product Identification Using Blockchain #### View Live at : https://authenticate-product-web3-2723.netlify.app/ ### Technologies & Frameworks : [![Solidity](https://img.shields.io/badge/solidity-black?style=for-the-badge&logo=solidity)](https://github.com/SURAJPATIL6088) [![React.js](https://img.shields.io/badge/react-black?style=for-the-badge&logo=react)](https://github.com/SURAJPATIL6088) [![CSS3](https://img.shields.io/badge/css3-black?style=for-the-badge&logo=css3)](https://github.com/SURAJPATIL6088) [![Web3.js](https://img.shields.io/badge/Web3.js-black?style=for-the-badge&logo=Web3.js)](https://github.com/SURAJPATIL6088) [![JavaScript](https://img.shields.io/badge/javascript-black?style=for-the-badge&logo=javascript)](https://github.com/SURAJPATIL6088) [![HTML5](https://img.shields.io/badge/html5-black?style=for-the-badge&logo=html5)](https://github.com/SURAJPATIL6088) [![TailwindCSS](https://img.shields.io/badge/tailwindcss-black?style=for-the-badge&logo=tailwindcss)](https://github.com/SURAJPATIL6088) ## Abstract : In recent years, blockchain has received increasing attention and numerous applications have emerged from this technology. A renowned blockchain application is the cryptocurrency bitcoin, that has not only been effectively solving the double-spending problem but also it can confirm the legitimacy of transactional records without relying on a centralized system to do so. Therefore, any application using blockchain technology as the base architecture ensures that the contents of its data are tamper-proof. <br> This project is going to uses the ***Decentralized Blockchain Technology*** approach to ensure that consumers do not fully rely on the merchants to determine if products are genuine.Project describe a decentralized blockchain system with products anti-counterfeiting, in that way manufacturers can use this system to provide genuine products without having to manage direct-operated stores, which can significantly reduce the cost of product quality assurance ## Motivation : The trade in counterfeit goods is growing and is affecting the sales and profits of companies affected by this phenomenon. To ensure the identification and traceability of real products throughout the supply chain, this project is the first to propose a fully functional blockchain system to prevent product counterfeiting. <br> Nowadays, small and medium-sized enterprises (SMEs) often have financial burdens, which cannot be compared with large companies with strong financial resources. In this project, a blockchain architecture provided by ethereum to record product ownership on the blockchain. By using blockchain un-traceability and ***transparency*** properties, and the assurance that each record cannot be forged on the blockchain, consumers don’t need to fully rely on trusted third parties to safely know the source of the purchased product. <br> ## Problem Statement : - There are various tricky part here is to detect whether the product is fake or real. It is very scary to hear this happening with medicines and kids toys. This problem is becoming more serious as the products value will be questioned. - The worldwide improvement of an item or innovation consistently accompanies hazard factors, for example, forging and duplication. Forging items can influence the organization's name and the client's wellbeing. - Presently days discovery of phony item is the greatest test. Fake items are causing a significant impact on the organization and the client's wellbeing. Hence, item creators are confronting enormous misfortune. ## Proposed Solution : - Through this project, a plan to implement a blockchain system architecture to record ownership of the product in the Blockchain network. Two very important properties of blockchain are untraceability and the transparency. This fast system also makes the data error free. - India and different nations are battling such fake and fake items. In the proposed framework, it produces QR codes utilizing blockchain innovation. This innovation stores exchange records in blocks. These squares are secure and difficult to access and change the data from it. By utilizing a QR code we can recognize the fake item. ## Objectives : - To Design an Anti Counterfeit System using Blockchain. - To secure product details using a QR code. - Provide security to the clients by offering data to clients. - The immutable characteristic of the blockchain provides more security and transparency in the transactions of the proposed system. - To stop the making of fake products by conducting transparency about the products to the notice of the consumers. - To become aware of fake products from the primary product available in the marketplace and to enhance this performance. ## Block Diagram : ![block diagram drawio](https://github.com/Atharva-Pimple/Fake-Product-Identification-Using-Blockchain/assets/137868738/257cdf79-701c-47fb-aa38-ff890d08c28d) ## Use Case Diagram : ![usecase drawio](https://github.com/SURAJPATIL6088/Fake-Product-Identification-Using-Blockchain/assets/142288547/19fd6db6-0bc9-416d-9de0-e437c3247340) ## Contributors : | Project Guide | Group Leader | Group Member 2 | Group Member 3 | Group Member 4 | | ------------- | ------------ | -------------- | --------------- | -------------- | | Ms.Abira Banik | Suraj Patil | Matlup Ali Mir | Varad Patil | Atharva Pimple |
To ensure the identification and traceability of real products throughout the supply chain, this project is the first to propose a fully functional blockchain system to prevent product counterfeiting.
blockchain-technology,css3,html,javascript,reactjs,smart-contracts,solidity,tailwindcss,web3js,truffle
2023-08-15T02:59:39Z
2024-04-24T16:38:19Z
null
4
6
33
0
9
16
null
MIT
JavaScript
Fcmam5/nx-mermaid-grapher
develop
# nx-mermaid-grapher [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FFcmam5%2Fnx-mermaid-grapher%2Fdevelop)](https://dashboard.stryker-mutator.io/reports/github.com/Fcmam5/nx-mermaid-grapher/develop) [![Known Vulnerabilities](https://snyk.io/test/github/Fcmam5/nx-mermaid-grapher/badge.svg)](https://snyk.io/test/github/Fcmam5/nx-mermaid-grapher) [![codecov](https://codecov.io/gh/Fcmam5/nx-mermaid-grapher/branch/develop/graph/badge.svg?token=QSBZLLE1L1)](https://codecov.io/gh/Fcmam5/nx-mermaid-grapher) [![npm](https://img.shields.io/npm/v/nx-mermaid-grapher)](https://www.npmjs.com/package/nx-mermaid-grapher) A utility to create [`MermaidJS`](https://mermaid.js.org/) graphs for [NX dependency graphs](https://nx.dev/packages/nx/documents/dep-graph). <!-- omit in toc --> ## Table of Contents - [nx-mermaid-grapher](#nx-mermaid-grapher) - [Example](#example) - [Usage](#usage) - [CLI](#cli) - [Code](#code) - [Contributing](#contributing) - [License](#license) ## Example We can use [this example project](https://github.com/ddd-by-examples/library-nestjs) to try it out. If you clone the project, and run [`nx dep-graph` (or `nx graph`)](https://nx.dev/packages/nx/documents/dep-graph) we'd get something similar to: ![Example Dep graph](./docs/assets/nx-13.example.png) And below is the generated `mermaid.js` graph ([you can use controllers!](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/)): ```mermaid graph LR shared-infrastructure-nestjs-cqrs-events --> shared-domain lending-infrastructure --> lending-application lending-infrastructure --> shared-infrastructure-nestjs-cqrs-events lending-infrastructure --> lending-domain lending-infrastructure --> shared-domain lending-application --> lending-domain lending-application --> shared-domain lending-application --> catalogue lending-ui-rest --> lending-application lending-ui-rest --> lending-domain lending-ui-rest --> lending-infrastructure lending-domain --> shared-domain catalogue --> shared-domain catalogue --> shared-infrastructure-nestjs-cqrs-events library --> catalogue library --> lending-ui-rest library --> lending-domain library --> lending-infrastructure ``` Markdown: <pre> ```mermaid graph LR shared-infrastructure-nestjs-cqrs-events --> shared-domain lending-infrastructure --> lending-application lending-infrastructure --> shared-infrastructure-nestjs-cqrs-events lending-infrastructure --> lending-domain lending-infrastructure --> shared-domain lending-application --> lending-domain lending-application --> shared-domain lending-application --> catalogue lending-ui-rest --> lending-application lending-ui-rest --> lending-domain lending-ui-rest --> lending-infrastructure lending-domain --> shared-domain catalogue --> shared-domain catalogue --> shared-infrastructure-nestjs-cqrs-events library --> catalogue library --> lending-ui-rest library --> lending-domain library --> lending-infrastructure ``` </pre> ## Usage ### CLI To run this tool from your CLI, you need to install it globally with: ```bash npm i -g nx-mermaid-grapher # or using npx npx nx-mermaid-grapher -f file.json ``` Then, run it with `-f [PATH]` or `--file [PATH]` parameter providing the path for your NX graph JSON output file. ``` Options: --help Show help [boolean] --version Show version number [boolean] -f, --file NX graph output file (see: https://nx.dev/packages/nx/documents/dep-graph#file) [string] [required] -e, --exclude Exclude a library [array] ``` **Example**: ```bash npx nx-mermaid-grapher -f tests/mocks/ddd-example.graph.json ``` Optionally you can exclude one, or multiple libraries. For example: ```bash npx nx-mermaid-grapher -f tests/mocks/ddd-example.graph.json -e lending-infrastructure -e lending-ui-rest ``` ### Code If you want to extend this library, you may want to instantiate the exposed classes and use them, for example: ```ts import { DiGraph, NXGraphFileLoader, NxMermaidGrapher } from 'nx-mermaid-grapher'; const loader = new NXGraphFileLoader(); const diGraph = new DiGraph(); const core = new NxMermaidGrapher(loader, diGraph); core.init('path/to/file'); const logMerMaidInMd = (str: string) => `\`\`\`mermaid\n${str}\`\`\``; console.log(logMerMaidInMd(core.getGraphSnippet())); ``` Or, if you wish to use a different graph than the default [DiGraph](./lib/data-structures/di-graph.ds.ts) (Directed graph), you may implement the `IGraph<T>` class and implement your own methods, for example: ```ts import { IGraph } from "nx-mermaid-grapher/dist/data-structures/graph.ds.interface"; class SomeGraph implements IGraph<MyType> { addNode(nodeVal: MyType): void { throw new Error("Method not implemented."); } addEdge(source: MyType, destination: MyType): void { throw new Error("Method not implemented."); } getGraph(): { [key: string]: MyType[]; } { throw new Error("Method not implemented."); } } ``` Then just pass it to `NxMermaidGrapher` constructor. ```ts import { NXGraphFileLoader, NxMermaidGrapher } from 'nx-mermaid-grapher'; const loader = new NXGraphFileLoader(); const myGraph = new SomeGraph(); const core = new NxMermaidGrapher(loader, myGraph); ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details
Create Mermaid graphs for NX dependencies
angular,javascript,monorepo,nestjs,nx,nx-workspace,react
2023-08-10T22:06:25Z
2023-11-01T23:15:09Z
2023-08-17T17:58:57Z
1
21
18
3
0
16
null
MIT
TypeScript
dhakalnirajan/Web-Assignment
main
# Web-Assignment Web Technology - I Assignment <!-- Adding Banner image to display. 😝 --> <img src="./resources/img/banner.png" height="320" width="640" alt="Banner"> This repository was designed to collect the assignment of Web Technology from all the students of the batch 2022. Please follow the instructions before contributing to the repository. <br> ## Contributing Before you contribute to the repository, **PLEASE READ [How To Contribute](./CONTRIBUTING.md)**.
Repository for Web Technology - I Assignment Collection
css,css3,html,html-css,html-css-javascript,html-js,html5,javascript,web,web-techonology
2023-08-29T04:24:48Z
2023-09-13T18:35:52Z
null
32
59
141
0
39
15
null
Apache-2.0
CSS
tidbcloud/serverless-js
main
# TiDB Cloud Serverless Driver for JavaScript This driver is for serverless and edge compute platforms that require HTTP external connections, such as Vercel Edge Functions or Cloudflare Workers. ## Usage **Install** You can install the driver with npm: ```bash npm install @tidbcloud/serverless ``` **Query** To query from TiDB Serverless, you need to create a connection first. Then you can use the connection to execute raw SQL queries. For example: ```ts import { connect } from '@tidbcloud/serverless' const conn = connect({url: 'mysql://username:password@host/database'}) const results = await conn.execute('select * from test where id = ?',[1]) ``` **Transaction (Experimental)** You can also perform interactive transactions with the serverless driver. For example: ```ts import { connect } from '@tidbcloud/serverless' const conn = connect({url: 'mysql://username:password@host/database'}) const tx = await conn.begin() try { await tx.execute('insert into test values (1)') await tx.execute('select * from test') await tx.commit() }catch (err) { await tx.rollback() throw err } ``` > **Note:** > > The transaction is not concurrent-safe. You are not allowed to run SQLs parallel in the same transaction. **Edge example** The serverless driver is suitable for the edge environments. See how to use it with Vercel Edge Functions: ``` import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; import { connect } from '@tidbcloud/serverless' export const runtime = 'edge' export async function GET(request: NextRequest) { const conn = connect({url: process.env.DATABASE_URL}) const result = await conn.execute('show tables') return NextResponse.json({result}); } ``` See [TiDB Cloud Serverless Driver](https://docs.pingcap.com/tidbcloud/serverless-driver#edge-examples) documentation to learn more. ## Configuration See [Configure TiDB Cloud Serverless Driver](https://docs.pingcap.com/tidbcloud/serverless-driver-config). ## License Apache 2.0, see [LICENSE](./LICENSE).
A fetch API-compatible driver to connect TiDB Serverless from serverless/edge functions
cloudflare-workers,edge-computing,javascript,mysql,netlify,serverless,tidb,typescript,vercel,bun
2023-08-10T02:11:34Z
2024-04-30T03:40:39Z
2024-03-14T02:57:18Z
14
56
46
2
3
15
null
Apache-2.0
TypeScript
dajiaji/crystals-kyber-js
main
<h1 align="center">crystals-kyber-js</h1> <div align="center"> [![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/crystals_kyber/mod.ts) ![Browser CI](https://github.com/dajiaji/crystals-kyber-js/actions/workflows/ci_browsers.yml/badge.svg) ![Node.js CI](https://github.com/dajiaji/crystals-kyber-js/actions/workflows/ci_node.yml/badge.svg) ![Deno CI](https://github.com/dajiaji/crystals-kyber-js/actions/workflows/ci_deno.yml/badge.svg) ![Cloudflare Workers CI](https://github.com/dajiaji/crystals-kyber-js/actions/workflows/ci_cloudflare.yml/badge.svg) ![Bun CI](https://github.com/dajiaji/crystals-kyber-js/actions/workflows/ci_bun.yml/badge.svg) [![codecov](https://codecov.io/gh/dajiaji/crystals-kyber-js/branch/main/graph/badge.svg?token=7I7JGKDDJ2)](https://codecov.io/gh/dajiaji/crystals-kyber-js) </div> <div align="center"> A CRYSTALS-KYBER implementation written in TypeScript for various JavaScript runtimes.<br> </div> <p></p> <div align="center"> [Documentation for main](https://dajiaji.github.io/crystals-kyber-js/docs/main/) </div> This module is based on <a href="https://github.com/antontutoveanu/crystals-kyber-javascript">ntontutoveanu/crystals-kyber-javascript</a>, but includes the following improvements:<br> - ✅ Available on various JavaScript runtimes: Browsers, Node.js, Deno, Cloudflare Workers, etc.<br> - ✅ Written in TypeScript.<br> - ✅ Deterministic key generation support.<br> - ✅ Constant-time validation for ciphertext.<br> - ✅ Better performance: 1.4 to 1.8 times faster than the original implementation.<br> - ✅ Tree-shaking friendly.<br> For Node.js, you can install `crystals-kyber-js` via npm/yarn: ```sh npm install crystals-kyber-js ``` Then, you can use it as follows: ```js import { Kyber768 } from "crystals-kyber-js"; async function doKyber() { // A recipient generates a key pair. const recipient = new Kyber768(); // Kyber512 and Kyber1024 are also available. const [pkR, skR] = await recipient.generateKeyPair(); //// Deterministic key generation is also supported // const seed = new Uint8Array(64); // globalThis.crypto.getRandomValues(seed); // node >= 19 // const [pkR, skR] = await recipient.deriveKeyPair(seed); // A sender generates a ciphertext and a shared secret with pkR. const sender = new Kyber768(); const [ct, ssS] = await sender.encap(pkR); // The recipient decapsulates the ciphertext and generates the same shared secret with skR. const ssR = await recipient.decap(ct, skR); // ssS === ssR return; } try { doKyber(); } catch (err) { console.log("failed: ", err.message); } ``` ## Index - [Installation](#installation) - [Node.js](#nodejs) - [Deno](#deno) - [Web Browsers](#web-browsers) - [Cloudflare Workers](#cloudflare-workers) - [Usage](#usage) - [Contributing](#contributing) ## Installation ### Node.js Using npm: ```sh npm install crystals-kyber-js ``` Using yarn: ```sh yarn add crystals-kyber-js ``` ### Deno Using deno.land: ```js // use a specific version import { Kyber768 } from "https://deno.land/x/crystals_kyber@1.1.1/mod.ts"; // use the latest stable version import { Kyber768 } from "https://deno.land/x/crystals_kyber/mod.ts"; ``` ### Web Browsers Followings are how to use this module with typical CDNs. Other CDNs can be used as well. Using esm.sh: ```html <!-- use a specific version --> <script type="module"> import { Kyber768 } from "https://esm.sh/crystals-kyber-js@1.1.1"; // ... </script> <!-- use the latest stable version --> <script type="module"> import { Kyber768 } from "https://esm.sh/crystals-kyber-js"; // ... </script> ``` Using unpkg: ```html <!-- use a specific version --> <script type="module"> import { Kyber768 } from "https://unpkg.com/crystals-kyber-js@1.1.1"; // ... </script> ``` ### Cloudflare Workers ```sh git clone git@github.com:dajiaji/crystals-kyber-js.git cd crystals-kyber-js npm install -g esbuild deno task dnt deno task minify > $YOUR_SRC_PATH/crystals-kyber.js ``` ## Usage This section shows some typical usage examples. ### Node.js ```js import { Kyber768 } from "crystals-kyber-js"; // const { Kyber768 } = require("crystals-kyber-js"); async function doKyber() { const recipient = new Kyber768(); const [pkR, skR] = await recipient.generateKeyPair(); const sender = new Kyber768(); const [ct, ssS] = await sender.encap(pkR); const ssR = await recipient.decap(ct, skR); // ssS === ssR return; } try { doKyber(); } catch (err) { console.log("failed: ", err.message); } ``` ### Deno ```js import { Kyber512 } from "https://deno.land/x/crystals_kyber@1.1.1/mod.ts"; async function doKyber() { const recipient = new Kyber512(); const [pkR, skR] = await recipient.generateKeyPair(); const sender = new Kyber512(); const [ct, ssS] = await sender.encap(pkR); const ssR = await recipient.decap(ct, skR); // ssS === ssR return; } try { doKyber(); } catch (_err: unknown) { console.log("failed."); } ``` ### Browsers ```html <html> <head></head> <body> <script type="module"> import { Kyber1024 } from "https://esm.sh/crystals-kyber@1.1.1"; globalThis.doKyber = async () => { try { const recipient = new Kyber1024(); const [pkR, skR] = await recipient.generateKeyPair(); const sender = new Kyber1024(); const [ct, ssS] = await sender.encap(pkR); const ssR = await recipient.decap(ct, skR); // ssS === ssR return; } catch (err) { alert("failed: ", err.message); } } </script> <button type="button" onclick="doKyber()">do CRYSTALS-KYBER</button> </body> </html> ``` ## Contributing We welcome all kind of contributions, filing issues, suggesting new features or sending PRs.
A CRYSTALS-KYBER implementation written in TypeScript for various JavaScript runtimes.
crystals-kyber,javascript,kem,kyber,post-quantum,pqc,typescript,cryptography
2023-09-03T11:28:01Z
2024-01-28T01:01:12Z
2024-01-28T01:01:12Z
1
33
107
1
4
15
null
MIT
TypeScript
Xiang511/hydromechanics
main
# Taiwan-CR-Ranking-System ![GitHub Release](https://img.shields.io/github/v/release/Xiang511/hydromechanics?display_name=release&style=for-the-badge&color=blue) ![GitHub commits since latest release](https://img.shields.io/github/commits-since/Xiang511/hydromechanics/latest?style=for-the-badge) ![Github Created At](https://img.shields.io/github/created-at/Xiang511/hydromechanics?style=for-the-badge&color=blue) ![GitHub License](https://img.shields.io/github/license/Xiang511/hydromechanics?style=for-the-badge&color=blue) Dashboard Website Implemented with HTML+CSS+Javascript+GoogleAppsScript<br> ### Features - Record the player’s best season ranking - Record the player’s previous season ranking - Record the player’s ladder record statistics - Record the player’s career record statistics - Record the player’s personal achievement records ## What are the differences between this project and Royale API ? - Royale API cannot statistically rank and compare all players in the Taiwan region historically. - Royale API cannot simultaneously compare the detailed information of all players in the Taiwan region. ## Contact Us - E-mail : toby91511@gmail.com
Taiwan Clash Royale Ranking System
ajax,css,googleappscript,html,javascript
2023-09-05T15:12:41Z
2024-05-21T06:24:23Z
2024-02-26T16:11:02Z
1
7
243
0
0
15
null
Apache-2.0
JavaScript
arjuncvinod/MCA-Lab-Experiments
main
![ViewCount](https://views.whatilearened.today/views/github/arjuncvinod/MCA-Lab-Experiments.svg?cache=remove) # MCA Lab Experiments **[SEM 1](./Semester%201/)** - [ADS](./Semester%201/ADS/) - [Python](./Semester%201/Python/) - [Web Programming](./Semester%201/Web%20Programming/) **[SEM 2](./Semester%202/)** - [DBMS](./Semester%202/DBMS/) - [NSA](./Semester%202/NSA/) - [OOP](./Semester%202/OOP/)
MCA Lab Experiments
c,python,html5,css3,javascript,php,mysql
2023-09-09T14:36:50Z
2024-04-23T16:18:40Z
2024-01-28T18:38:21Z
2
24
364
0
7
15
null
MIT
C
dillionverma/ai-fns
main
# ai-fns > Convert any function into a ChatGPT function. ai-fns is a tiny library that convert any function into a function that can be called by ChatGPT. The underlying spec is based on OpenAI's new [function calling feature](https://platform.openai.com/docs/guides/gpt/function-calling). ## Features - 🛠️ **8+ built-in functions** - comes included with functions for math, rss, requests, clock and more - 🪄 **100% Type-safe** - uses [zod](https://zod.dev/) to validate the input and output of your functions - 👶 **Easy to use** - simple API that makes it easy to create your own functions - 💨 **Lightweight** - is a small library with minimal dependencies ## Install ```sh pnpm install ai-fns zod ``` ## Before 😮‍💨 Create a JSON schema for your function manually and pass it to ChatGPT ```ts import openai, { OpenAI } from "openai"; const openai = new OpenAI({ apiKey: env.OPENAI_API_KEY, }); const weather = async ({ latitude, longitude, }: { latitude: number; longitude: number; }) => { try { const res = await fetch( `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&current_weather=true` ); return await res.json(); } catch (error) { return error; } }; const completion = await openai.chat.completions.create({ model: "gpt-3.5-turbo-16k", messages: [{ role: "user", content: "What's the weather in San Francisco?" }], functions: [ { name: "weather", description: "Get the current weather in a given location", parameters: { type: "object", properties: { longitude: { type: "number", minimum: -180, maximum: 180, description: "Longitude", }, latitude: { type: "number", minimum: -90, maximum: 90, description: "Latitude", }, }, required: ["longitude", "latitude"], additionalProperties: false, }, }, ], }); ``` ## After ✨ Use `ai-fns` to automatically generate a schema for your function and pass it to ChatGPT ```ts import openai, { OpenAI } from "openai"; import { z } from "zod"; import { aifn } from "ai-fns"; const openai = new OpenAI({ apiKey: env.OPENAI_API_KEY, }); const { schema, fn } = aifn( "weather", "Get the current weather in a given location", z.object({ longitude: z.number().min(-180).max(180).describe("Longitude"), latitude: z.number().min(-90).max(90).describe("Latitude"), }), async ({ latitude, longitude }) => { try { const res = await fetch( `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&current_weather=true` ); return await res.json(); } catch (error) { return error; } } ); // Ask the AI a question const completion = await openai.chat.completions.create({ model: "gpt-3.5-turbo-16k", messages: [{ role: "user", content: "What's the weather in San Francisco?" }], functions: [schema], }); ``` <!-- ## Usage ```ts // functions/add.ts import { z } from "zod"; import { aifn } from "ai-fns"; export const name = "add"; export const description = "add two numbers"; export const schema = z.object({ a: z.number(), b: z.number(), }); export const fn = async ({ a, b }: z.infer<typeof schema>) => { return a + b; }; export default aifn(name, description, schema, fn); ``` ```ts // index.ts import { OpenAI } from "openai"; import add from "./functions/add"; const openai = new OpenAI({ apiKey: "sk-****************************", }); const model = "gpt-4"; const messages = [{ role: "user", content: "What is 9 + 10?" }]; const functions = [add.schema]; // add your function's schema here const res = await openai.chat.completions.create({ model, functions, messages, }); console.log(res.data.choices[0].message); ``` --> ## Examples <details> <summary> (CLICK TO EXPAND) (Basic) Calculator Function </summary> Here's an example of a function that calculates the output of a given mathematical expression: ```ts import { Parser } from "expr-eval"; import { z } from "zod"; import { aifn } from "ai-fns"; const parser = new Parser(); export default aifn( "calculator", "Calculate the output of a given mathematical expression", z.object({ expression: z.string(), }), ({ expression }) => { try { const result = parser.parse(expression).evaluate(); return result; } catch (error) { return `Failed to execute script: ${error.message}`; } } ); ``` Now, you can just ask ChatGPT to do some math for you: ``` User: What's 45^(2.12) / 45? Assistant: The result of 45^(2.12) / 45 is approximately 71.06. ``` </details> <details> <summary> (CLICK TO EXPAND) (Advanced) Reddit Function - Get the latest news from any subreddit </summary> Here's an example of a function that fetches the latest news from an rss feed: ```ts import { z } from "zod"; import { aifn } from "ai-fns"; const name = "reddit"; const description = "Get stories from reddit"; const schema = z.object({ subreddit: z.string().optional().default("all").describe("Subreddit"), limit: z.number().optional().default(5).describe("Limit"), category: z .enum(["hot", "new", "random", "top", "rising", "controversial"]) .default("hot") .describe("category"), }); const reddit = async ({ subreddit, category, limit, }: z.infer<typeof schema>) => { try { const params = new URLSearchParams({ limit: limit.toString(), }); const url = `https://www.reddit.com/r/${subreddit}/${category}.json?${params.toString()}`; const res = await fetch(url); return await res.json(); } catch (error) { console.log(error); return error; } }; export default aifn(name, description, schema, reddit); ``` ``` User: What's the top story on /r/programming today? Assistant: The top story on /r/programming is "Crumb: A New Programming Language Where There are No Keywords, and Everything is a Function". You can read more about it [here](https://github.com/liam-ilan/crumb). It has received 201 upvotes and has 25 comments. ``` </details> ## Why? OpenAI's new [function calling feature](https://platform.openai.com/docs/guides/gpt/function-calling) allows you to call functions from within ChatGPT. However, it requires you to pass as JSON schema for your function containing the input and output types of your function. This is a bit cumbersome to do manually. This library automatically handles the conversion for you ✨ ## Where can I use this? - ✅ You are building AI agents which need to call functions - ✅ You want ChatGPT to output structured data (e.g. JSON) ## Contributing Do you have an idea for a function? Feel free to open a pull request! Simply create a new file in the `src/functions` directory and add your function. Make sure to add a description and schema for your function. ```ts import { z } from "zod"; import { aifn } from "ai-fns"; export const name = "name"; export const description = "description"; export const schema = z.object({ // schema }); export const fn = async ({}: /* schema */ z.infer<typeof schema>) => { // function body }; export default aifn(name, description, schema, fn); ```
✨ A lightweight and typesafe OpenAI Function calling utility library
chatgpt,gpt-3,gpt-4,javascript,openai,typescript,ai,llm
2023-08-28T04:46:07Z
2023-08-29T06:09:25Z
null
1
0
25
0
1
15
null
MIT
TypeScript
ewrogers/hyper-calendar
main
# hyper-calendar A proof-of-concept [Hypermedia](https://en.wikipedia.org/wiki/Hypermedia)-driven calendar application. It is based on `en-US` locale (12-hour time) but could easily be adapted to other locales. No additional JavaScript or "SPA" frontend is required! All interactivity is handled by the server and [HTMX](https://htmx.org) + [Hyperscript](https://hyperscript.org/). It is greatly inspired by the book [Hypermedia Systems](https://hypermedia.systems/), which is an amazing read for building Hypermedia-driven applications. ![image](./screenshots/calendar.png) **Disclaimer:** I am not a designer, so the UI is very basic and minimal. My CSS is probably awful, but it works. ## Tech Stack - [HTMX](https://htmx.org) - [Hyperscript](https://hyperscript.org/) - JSX + CSS - [Hono](https://hono.dev/) - [Bun](https://bun.sh) - [SQLite](https://www.sqlite.org/index.html) **NOTE:** This library leverages Bun and Hono's native support for [JSX](https://bun.sh/docs/runtime/jsx), no need for React or another SPA frameworks. ## Requirements You just need Git + Bun: ```bash curl -fsSL https://bun.sh/install | bash ``` ## Getting Started It is as easy as cloning the repository and running the application: ```bash git clone https://github.com/ewrogers/hyper-calendar cd hyper-calendar cp .env.example .env bun install bun run seed bun run dev ``` Then you can view the application at [http://localhost:3000](http://localhost:3000). **NOTE**: You only need to run `bun seed` once, as it will create the database and seed it with some example data. ## Why this stack? The main focus of this stack is minimal, [low complexity](https://grugbrain.dev/) with high performance. That means selecting the right tool for the job, and not adding unnecessary dependencies. Most of these libraries are also very small, and have little-to-no dependencies themselves. The better question might be *"Why do we need React?"* (or similar frameworks) in the first place? Perhaps you are old enough to remember the early days of the internet and Web 1.0. You would click a link, and the browser would fetch a new page from the server and render it. No need for additional front-ends, megabytes of JavaScript code, and complex state management. Just simple HTML and HTTP. What needed to be displayed was dictated by the server, and the browser would render it accordingly. So why exactly did we move away from this model? Why did we need to add all this complexity? Interactivity and immersion. What if I told you we could have the best of both worlds? ### HTMX What if we could have Web 1.0 simplicity with Web 2.0 interactivity? That is the goal of [HTMX](https://htmx.org). HTMX is a small JavaScript library that allows you to add interactivity to your HTML pages with minimal effort and minimal file size. It's a mere **14KB** minified and gzipped! Instead of serving a JSON API and a front-end that has to consume it, manage state, and then update the DOM we can simply use HTML and HTTP to do the same thing in the browser. It will even handle things like CSS transitions for you, so you still get that immersive experience without the bloat. Oh and you don't need to worry about versioning an API, deploying breaking changes, or any of that nonsense. Just update your HTML and you're done! ### HyperScript Undoubtedly, there will be times when you need to mutate the DOM in some way, usually for user interaction. Even with Web 1.0, you would have to write some JavaScript to do this (or use a library like jQuery). The companion library to HTMX is [HyperScript](https://hyperscript.org/), which is a small JavaScript library that allows you to create dynamic behaviors in a very simple and declarative way in-line with your HTML. For those familiar with [HyperCard](https://hypercard.org/) and [AppleScript](https://en.wikipedia.org/wiki/AppleScript), this will feel very familiar and refreshing. One of the biggest advantages of HTMX paired with HyperScript is everything is declared in HTML itself. This promotes a very clear [locality of behavior](https://htmx.org/essays/locality-of-behaviour/), making it easy to reason about and debug without having to jump around between multiple files. It even has an [in-browser debugger](https://hyperscript.org/hdb/). ### Hono Using Hypermedia we still need an HTTP server to handle requests from the client and return new application state as HTML. This decoupling means you can use any language or framework you want, as long as it can return HTML. This is also known as the [HOWL stack](https://htmx.org/essays/hypermedia-on-whatever-youd-like/). I have chosen [Hono](https://hono.dev/) which is a lightweight, ultrafast HTTP server, written in TypeScript. It also supports JSX out of the box, which will be our templating engine. This is also a good example of how JavaScript/TypeScript does not **have** to be heavy and slow. **Yes, this is server-side rendering (SSR)!** ### JSX We will be returning HTML, so we need a way to generate it. JSX is a powerful way to do this, and you don't need React in order to use it! We can still structure our project using components and embedded them in our HTML templates. This is a great way to keep things organized and maintainable. For styling, I have gone with plain CSS for simplicity. Alternatively, you could use something like [Tailwind](https://tailwindcss.com/) if you wanted to. ### Bun TypeScript means we need a runtime engine. [Bun](https://bun.sh/) has hit v1.0 stable release and is a wonderful all-in-one toolkit for JavaScript. Not only is it an insanely fast runtime, it provides a wonderful refined API along with great built-in tooling for stuff like tests, package management, and bundling. It also supports TypeScript and JSX without the need for any additional ceremony or dependencies. It's incredibly refreshing to be able to create a modern TypeScript project with only a couple of files. **NOTE:** Bun's TypeScript support is runtime-only, so it is recommended you use a [language server](https://github.com/typescript-language-server/typescript-language-server) (LSP) for static-type checking. ### SQL Needing to persist data, I have gone with SQL. It's simple, well-known, and has amazing support throughout nearly every eco-system. [Bun supports SQLite out of the box](https://bun.sh/docs/api/sqlite), which makes local development both easy and consistent. When it's time to go to production, just change your connection string and it should Just Work™. This application intentionally avoids using an ORM, as plain SQL queries are much simpler and efficient than hoping your ORM does what you want it to do. Again, minimalism and reduced complexity. ## Code Style This project uses `prettier` and `lint-staged` to ensure the code style is preserved. You could add additional linting like `eslint` but I did not want to add more dependencies and clutter to this example.
Hypermedia-driven application using HTMX + Hono + Bun
bun,css,hono,html,htmx,javascript,nodejs,ssr,tsx,typescript
2023-09-09T16:53:07Z
2023-11-04T18:49:53Z
null
1
9
85
0
1
15
null
null
TypeScript
fsmoothy/fsmoothy
master
<p align="center"> <a href="#" target="blank"> <img src="./logo/fsmoothy-logo.svg" alt="FSMoothy" width="233" style="display: block; margin: 0 auto;" /> </a> </p> [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![Maintainability](https://api.codeclimate.com/v1/badges/e8f2724e27b28e3afc6b/maintainability)](https://codeclimate.com/github/fsmoothy/fsmoothy/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/e8f2724e27b28e3afc6b/test_coverage)](https://codeclimate.com/github/fsmoothy/fsmoothy/test_coverage) `fsmoothy` is a totally pragmatic library for building state machines. ## Features - TypeScript native - Hooks for state transitions - Promises are used for all transition - Magic methods for checkers, events and transitions - Simple and powerful API - Use it in browser or Node.js ## Libraries and tools - [Core](https://github.com/fsmoothy/fsmoothy/tree/master/packages/core) - [TypeORM integration](https://github.com/fsmoothy/fsmoothy/tree/master/packages/typeorm) - [Graphviz renderer](https://github.com/fsmoothy/fsmoothy/tree/master/packages/graphviz)
FSMoothy: Your strongly-typed Finite State Machine, battery-packed and ready to roll!
finite-state-machine,fsm,javascript,state-machine,state-machine-diagram,state-machine-dsl,typescript
2023-09-01T15:43:08Z
2024-04-30T13:29:49Z
2024-01-01T12:10:40Z
2
3
104
2
0
15
null
MIT
TypeScript