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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mattmajestic/majesticcoding.com | main | # majesticcoding.com
Welcome to majesticcoding.com! This simple GO site showcasing social links to my YouTube channel and more! 😎

## Socials
🎥 **YouTube**: Watch my coding tutorials, projects, and more on my [YouTube channel](https://www.youtube.com/@majesticcoding/videos).
📚 **LinkedIn**: Connect with me on [LinkedIn](https://www.linkedin.com/in/matthew-majestic) to stay updated on my professional journey.
💻 **GitHub**: Explore my code and open-source projects on [GitHub](https://github.com/mattmajestic).
📝 **Consultations**: Book a consultation for any Full Stack work via [My Calendar](https://calendly.com/majesticcoding/30min?back=1&month=2024-05). | Majestic Coding YT Channel in Go 🐹 | golang,htmx,javascript,socials,youtube | 2023-09-25T21:39:57Z | 2024-05-18T00:30:28Z | null | 1 | 0 | 140 | 0 | 0 | 2 | null | null | Go |
Techno-Developers-Team/Musicano | main | <h1 align="center">Musicano 🎵</h1>
<p align="center">
<img src="your-musicano-logo.png" alt="Musicano Logo">
</p>
<p align="center">
A sleek and feature-rich music player created with HTML, CSS, and JavaScript.
</p>
<p align="center">
<a href="https://your-musicano-demo-link.com">Demo</a> |
<a href="https://your-musicano-documentation-link.com">Documentation</a> |
<a href="https://github.com/your-username/Musicano">Repository</a>
</p>
---
## Table of Contents 📋
- [Introduction](#introduction)
- [Features](#features)
- [Demo](#demo)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
---
## Introduction 🚀
Welcome to Musicano, a stylish and intuitive music player designed to enhance your music listening experience. Built using HTML, CSS, and JavaScript, Musicano offers a seamless and feature-rich platform for enjoying your favorite tunes.
---
## Features 🎉
- 🎵 Play, pause, skip, and shuffle tracks effortlessly.
- 🎨 Beautifully designed user interface for an enjoyable music experience.
- 📃 Display song information, album art, and progress bar.
- 📻 Create and manage playlists with ease.
- 🔊 Volume control and mute options.
- ⏱️ Timer and sleep mode for bedtime listening.
- 🎚️ Equalizer for fine-tuning your audio.
- 🎶 Support for various audio formats.
- 🔄 Looping and repeat playback options.
- 📁 Organize your music library with playlists and favorites.
- 📱 Responsive design for seamless mobile playback.
- 🌐 Cross-browser compatibility.
---
## Demo 🎬
Check out the [Musicano Demo](https://your-musicano-demo-link.com) to see the music player in action.
---
<div align="center"> <h1> 💛🎯 HacktoberFest 2023 💛🎯 </h1> </div>
#### CELEBRATING 10TH YEAR OF OPEN SOURCE!
# Contribute to open source and Earn Digital Rewards 🚀
#### Star & fork this Repo first
Use this project to make your contributions to open source during HacktoberFest 2023. Practice making your pull requests to public repositories before doing the real thing!
This repository is open to all members of the GitHub community. Any member may contribute to this project without being a collaborator.
## To participate, visit: https://hacktoberfest.com/participation/
## What is Hacktoberfest?
Hacktoberfest is an annual event that runs throughout October, sponsored by [Digital Ocean](https://hacktoberfest.digitalocean.com/) and [GitHub](https://github.com/blog/2433-celebrate-open-source-this-october-with-hacktoberfest), to encourage contributions to open source projects.
[Hacktoberfest Official Website](https://hacktoberfest.com/)
### Video tutorials:
- [Hacktoberfest Official Website](https://hacktoberfest.com/)
- [How to Do Your First Pull Request](https://hacktoberfest.com/participation/#beginner-resources)
- [Video Tutorial](https://www.youtube.com/)
### For Beginners
1) Visit & Learn [Tutorial Github](https://www.youtube.com/watch?v=RGOj5yH7evk)
2) Clone this repo
3) Make a pull request
4) Wait until your pull request is merged/given accepted tag
## Enjoy, and be a part of open source 🚀🥳
| Hacktoberfest | css,html,javascript,json,hacktoberfest,hacktoberfest-2023,hacktoberfest-accepted | 2023-10-01T08:25:29Z | 2023-10-26T08:28:30Z | null | 10 | 8 | 27 | 0 | 8 | 2 | null | null | JavaScript |
francis-sant/SnakeFolio | master | # SnakeFolio
SnakeFolio is a basic snake game created using Three.js, a powerful 3D graphics library for the web. This project was developed as part of the Web Programming 2 course and started as a simple portfolio page. However, it evolved into an interactive game where you control a snake made of geometric and colorful objects.
## How to Play
- Use your mouse to navigate and interact with the game.
- Scroll in and out with the mouse to control the direction of the snake's head.
- To move the snake in a different direction, hold the right-click and move the mouse.
- Be careful, you might encounter some projects along the way.
## Projects
Check out the developer's other projects:
1. **Yoga Studio**
- A portfolio project showcasing best practices in web design and creation.
- [Check Project](https://francisco60.web582.com/website-creation-design/yogaStudio/index.html)
2. **TIC TAC TOE**
- A basic Tic Tac Toe game demonstrating JavaScript, CSS, and HTML skills.
- [Check Project](https://francisco60.web582.com/intro-to-programming/tic-tac-toe/index.html)
3. **Chat App**
- A web interface project featuring a basic Chat App using PHP, CSS, JavaScript, and HTML.
- [Check Project](https://francisco60.web582.com/web-Interface/chatChatt/index.php)
## Getting Started
To run SnakeFolio locally, follow these steps:
1. Clone this repository:
git clone https://github.com/yourusername/snakeFolio.git
3. Open the `index.html` file in your preferred web browser.
4. Enjoy playing the game!
## Contributing
Contributions are welcome! If you'd like to enhance SnakeFolio or fix any issues, please fork the repository and submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Acknowledgments
- Three.js - [https://threejs.org/](https://threejs.org/)
Thank you for checking out SnakeFolio! Have fun playing and exploring the world of geometric gaming and web development.
| SnakeFolio is a fun and engaging project developed as part of the Web Programming 2 course. The main objective of this project is to explore the capabilities of the Three.js library while providing an interactive experience for users. | css,html,javascript,threejs | 2023-10-03T20:40:27Z | 2023-10-03T20:48:15Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript |
Alexandrbig1/goit-react-hw-02-feedback | main | # goit-react-hw-02-feedback
<img align="right" src="https://media.giphy.com/media/du3J3cXyzhj75IOgvA/giphy.gif" width="100"/>
doing homework while studying in bootcamp @GoIT on Fullstack developer course
## Project Specifications:
React module(states/event)
## Languages and Tools:
<div align="center">
<a href="https://en.wikipedia.org/wiki/HTML5" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/html5-original-wordmark.svg" alt="HTML5" height="50" /></a>
<a href="https://www.w3schools.com/css/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/css3-original-wordmark.svg" alt="CSS3" height="50" /></a>
<a href="https://www.javascript.com/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/javascript-original.svg" alt="JavaScript" height="50" /></a>
<a href="https://git-scm.com/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg" alt="git" width="40" height="40"/> </a>
<a href="https://reactjs.org/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> </a>
</div>
## Connect with me:
<div align="center">
<a href="https://linkedin.com/in/alex-smagin29" 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="https://github.com/alexandrbig1" target="_blank">
<img src=https://img.shields.io/badge/github-%2324292e.svg?&style=for-the-badge&logo=github&logoColor=white alt=github style="margin-bottom: 5px;" />
</a>
<a href="https://stackoverflow.com/users/22484161/alex-smagin" target="_blank">
<img src=https://img.shields.io/badge/stackoverflow-%23F28032.svg?&style=for-the-badge&logo=stackoverflow&logoColor=white alt=stackoverflow style="margin-bottom: 5px;" />
</a>
<a href="https://dribbble.com/Alexandrbig1" target="_blank">
<img src=https://img.shields.io/badge/dribbble-%23E45285.svg?&style=for-the-badge&logo=dribbble&logoColor=white alt=dribbble style="margin-bottom: 5px;" />
</a>
<a href="https://www.behance.net/a1126" target="_blank">
<img src=https://img.shields.io/badge/behance-%23191919.svg?&style=for-the-badge&logo=behance&logoColor=white alt=behance style="margin-bottom: 5px;" />
</a>
</div>
| React module(events/states) | css3,frontend,html-css-javascript,html5,javascript,js,react,reactjs,webdevelopment | 2023-10-02T16:47:54Z | 2023-10-10T00:32:54Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | HTML |
mces58/NodejsFundamentals | main | </br>
<img src="https://github.com/mces58/NodejsFundamentals/assets/72516854/b6c4a2e9-9453-4b00-8707-cd8a4be8c6f4">
</br>
<div align="center">
<img
alt="GitHub language count"
src="https://img.shields.io/github/languages/count/mces58/NodejsFundamentals?style=for-the-badge&color=rgb(220,20,60)&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNC4wMCAyNC4wMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4KDTxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjIuNCIgZD0iTTkuNSA1SDlhMiAyIDAgMCAwLTIgMnYyYzAgMS0uNiAzLTMgMyAxIDAgMyAuNiAzIDN2MmEyIDIgMCAwIDAgMiAyaC41bTUtMTRoLjVhMiAyIDAgMCAxIDIgMnYyYzAgMSAuNiAzIDMgMy0xIDAtMyAuNi0zIDN2MmEyIDIgMCAwIDEtMiAyaC0uNSIvPgoNPC9nPgoNPC9zdmc+&labelColor=rgb(56,56,56)&label=Used Languages" />
<img
alt="GitHub repo size"
src="https://img.shields.io/github/repo-size/mces58/NodejsFundamentals?style=for-the-badge&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4gPHBhdGggZD0iTTEyIDE1QzEzLjY1NjkgMTUgMTUgMTMuNjU2OSAxNSAxMkMxNSAxMC4zNDMxIDEzLjY1NjkgOSAxMiA5QzEwLjM0MzEgOSA5IDEwLjM0MzEgOSAxMkM5IDEzLjY1NjkgMTAuMzQzMSAxNSAxMiAxNVoiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+IDxwYXRoIGQ9Ik0yIDEyLjg3OTlWMTEuMTE5OUMyIDEwLjA3OTkgMi44NSA5LjIxOTk0IDMuOSA5LjIxOTk0QzUuNzEgOS4yMTk5NCA2LjQ1IDcuOTM5OTQgNS41NCA2LjM2OTk0QzUuMDIgNS40Njk5NCA1LjMzIDQuMjk5OTQgNi4yNCAzLjc3OTk0TDcuOTcgMi43ODk5NEM4Ljc2IDIuMzE5OTQgOS43OCAyLjU5OTk0IDEwLjI1IDMuMzg5OTRMMTAuMzYgMy41Nzk5NEMxMS4yNiA1LjE0OTk0IDEyLjc0IDUuMTQ5OTQgMTMuNjUgMy41Nzk5NEwxMy43NiAzLjM4OTk0QzE0LjIzIDIuNTk5OTQgMTUuMjUgMi4zMTk5NCAxNi4wNCAyLjc4OTk0TDE3Ljc3IDMuNzc5OTRDMTguNjggNC4yOTk5NCAxOC45OSA1LjQ2OTk0IDE4LjQ3IDYuMzY5OTRDMTcuNTYgNy45Mzk5NCAxOC4zIDkuMjE5OTQgMjAuMTEgOS4yMTk5NEMyMS4xNSA5LjIxOTk0IDIyLjAxIDEwLjA2OTkgMjIuMDEgMTEuMTE5OVYxMi44Nzk5QzIyLjAxIDEzLjkxOTkgMjEuMTYgMTQuNzc5OSAyMC4xMSAxNC43Nzk5QzE4LjMgMTQuNzc5OSAxNy41NiAxNi4wNTk5IDE4LjQ3IDE3LjYyOTlDMTguOTkgMTguNTM5OSAxOC42OCAxOS42OTk5IDE3Ljc3IDIwLjIxOTlMMTYuMDQgMjEuMjA5OUMxNS4yNSAyMS42Nzk5IDE0LjIzIDIxLjM5OTkgMTMuNzYgMjAuNjA5OUwxMy42NSAyMC40MTk5QzEyLjc1IDE4Ljg0OTkgMTEuMjcgMTguODQ5OSAxMC4zNiAyMC40MTk5TDEwLjI1IDIwLjYwOTlDOS43OCAyMS4zOTk5IDguNzYgMjEuNjc5OSA3Ljk3IDIxLjIwOTlMNi4yNCAyMC4yMTk5QzUuMzMgMTkuNjk5OSA1LjAyIDE4LjUyOTkgNS41NCAxNy42Mjk5QzYuNDUgMTYuMDU5OSA1LjcxIDE0Ljc3OTkgMy45IDE0Ljc3OTlDMi44NSAxNC43Nzk5IDIgMTMuOTE5OSAyIDEyLjg3OTlaIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPiA8L2c+Cg08L3N2Zz4=&color=rgb(105,220,184)&labelColor=rgb(56,56,56)" />
<img
alt="GitHub last commit"
src="https://img.shields.io/github/last-commit/mces58/NodejsFundamentals?style=for-the-badge&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4gPHBhdGggZD0iTTEyIDhWMTJMMTUgMTUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4gPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz4gPC9nPgoNPC9zdmc+&color=rgb(64,137,210)&labelColor=rgb(56,56,56)"/>
<img
alt="GitHub forks"
src="https://img.shields.io/github/forks/mces58/NodejsFundamentals?style=for-the-badge&logo=git&logoColor=white&labelColor=rgb(56,56,56)&color=rgb(253,220,102)" />
<img
alt="GitHub Repo stars"
src="https://img.shields.io/github/stars/mces58/NodejsFundamentals?label=Repo%20Stars&style=for-the-badge&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4gPHBhdGggZD0iTTIxLjEyIDkuODgwMDVDMjEuMDc4MSA5Ljc0NzE5IDIwLjk5OTYgOS42Mjg4NCAyMC44OTM1IDkuNTM4NjJDMjAuNzg3MyA5LjQ0ODQgMjAuNjU3OSA5LjM4OTk3IDIwLjUyIDkuMzcwMDVMMTUuMSA4LjU4MDA1TDEyLjY3IDMuNjcwMDVDMTIuNjAwOCAzLjU1NDAzIDEyLjUwMjcgMy40NTc5NSAxMi4zODUzIDMuMzkxMjNDMTIuMjY3OCAzLjMyNDUxIDEyLjEzNTEgMy4yODk0MyAxMiAzLjI4OTQzQzExLjg2NDkgMy4yODk0MyAxMS43MzIyIDMuMzI0NTEgMTEuNjE0NyAzLjM5MTIzQzExLjQ5NzMgMy40NTc5NSAxMS4zOTkxIDMuNTU0MDMgMTEuMzMgMy42NzAwNUw4Ljg5OTk5IDguNTgwMDVMMy40Nzk5OSA5LjM3MDA1QzMuMzQyMTEgOS4zODk5NyAzLjIxMjY2IDkuNDQ4NCAzLjEwNjUyIDkuNTM4NjJDMy4wMDAzOCA5LjYyODg0IDIuOTIxODYgOS43NDcxOSAyLjg3OTk5IDkuODgwMDVDMi44MzUyOSAxMC4wMTI0IDIuODI4NDYgMTAuMTU0NyAyLjg2MDI3IDEwLjI5MDdDMi44OTIwNyAxMC40MjY4IDIuOTYxMjQgMTAuNTUxMiAzLjA1OTk5IDEwLjY1MDFMNi45OTk5OSAxNC40NzAxTDYuMDY5OTkgMTkuODcwMUM2LjA0NjQyIDIwLjAwOTEgNi4wNjE5OSAyMC4xNTE5IDYuMTE0OTcgMjAuMjgyNkM2LjE2Nzk2IDIwLjQxMzMgNi4yNTYyNSAyMC41MjY3IDYuMzY5OTkgMjAuNjEwMUM2LjQ4MzkxIDIwLjY5MTIgNi42MTgyNSAyMC43Mzg5IDYuNzU3ODUgMjAuNzQ3OEM2Ljg5NzQ2IDIwLjc1NjYgNy4wMzY3NSAyMC43MjYyIDcuMTU5OTkgMjAuNjYwMUwxMiAxOC4xMTAxTDE2Ljg1IDIwLjY2MDFDMTYuOTU3MyAyMC43MTg5IDE3LjA3NzYgMjAuNzQ5OSAxNy4yIDIwLjc1MDFDMTcuMzU3MyAyMC43NDgyIDE3LjUxMDUgMjAuNjk5NSAxNy42NCAyMC42MTAxQzE3Ljc1MzcgMjAuNTI2NyAxNy44NDIgMjAuNDEzMyAxNy44OTUgMjAuMjgyNkMxNy45NDggMjAuMTUxOSAxNy45NjM2IDIwLjAwOTEgMTcuOTQgMTkuODcwMUwxNyAxNC40NzAxTDIwLjkzIDEwLjY1MDFDMjEuMDMwNSAxMC41NTIzIDIxLjEwMTUgMTAuNDI4MyAyMS4xMzUxIDEwLjI5MjJDMjEuMTY4NyAxMC4xNTYxIDIxLjE2MzQgMTAuMDEzMyAyMS4xMiA5Ljg4MDA1WiIgZmlsbD0iI2ZmZiIvPiA8L2c+Cg08L3N2Zz4=&color=rgb(186,85,211)&labelColor=rgb(56,56,56)" />
<img
alt="GitHub User's stars"
src="https://img.shields.io/github/stars/mces58?label=All%20Stars&style=for-the-badge&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSIjZmZmZmZmIiBjbGFzcz0iYmkgYmktc3RhcnMiPgoNPGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiLz4KDTxnIGlkPSJTVkdSZXBvX3RyYWNlckNhcnJpZXIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgoNPGcgaWQ9IlNWR1JlcG9faWNvbkNhcnJpZXIiPiA8cGF0aCBkPSJNNy42NTcgNi4yNDdjLjExLS4zMy41NzYtLjMzLjY4NiAwbC42NDUgMS45MzdhMi44OSAyLjg5IDAgMCAwIDEuODI5IDEuODI4bDEuOTM2LjY0NWMuMzMuMTEuMzMuNTc2IDAgLjY4NmwtMS45MzcuNjQ1YTIuODkgMi44OSAwIDAgMC0xLjgyOCAxLjgyOWwtLjY0NSAxLjkzNmEuMzYxLjM2MSAwIDAgMS0uNjg2IDBsLS42NDUtMS45MzdhMi44OSAyLjg5IDAgMCAwLTEuODI4LTEuODI4bC0xLjkzNy0uNjQ1YS4zNjEuMzYxIDAgMCAxIDAtLjY4NmwxLjkzNy0uNjQ1YTIuODkgMi44OSAwIDAgMCAxLjgyOC0xLjgyOGwuNjQ1LTEuOTM3ek0zLjc5NCAxLjE0OGEuMjE3LjIxNyAwIDAgMSAuNDEyIDBsLjM4NyAxLjE2MmMuMTczLjUxOC41NzkuOTI0IDEuMDk3IDEuMDk3bDEuMTYyLjM4N2EuMjE3LjIxNyAwIDAgMSAwIC40MTJsLTEuMTYyLjM4N0ExLjczNCAxLjczNCAwIDAgMCA0LjU5MyA1LjY5bC0uMzg3IDEuMTYyYS4yMTcuMjE3IDAgMCAxLS40MTIgMEwzLjQwNyA1LjY5QTEuNzM0IDEuNzM0IDAgMCAwIDIuMzEgNC41OTNsLTEuMTYyLS4zODdhLjIxNy4yMTcgMCAwIDEgMC0uNDEybDEuMTYyLS4zODdBMS43MzQgMS43MzQgMCAwIDAgMy40MDcgMi4zMWwuMzg3LTEuMTYyek0xMC44NjMuMDk5YS4xNDUuMTQ1IDAgMCAxIC4yNzQgMGwuMjU4Ljc3NGMuMTE1LjM0Ni4zODYuNjE3LjczMi43MzJsLjc3NC4yNThhLjE0NS4xNDUgMCAwIDEgMCAuMjc0bC0uNzc0LjI1OGExLjE1NiAxLjE1NiAwIDAgMC0uNzMyLjczMmwtLjI1OC43NzRhLjE0NS4xNDUgMCAwIDEtLjI3NCAwbC0uMjU4LS43NzRhMS4xNTYgMS4xNTYgMCAwIDAtLjczMi0uNzMyTDkuMSAyLjEzN2EuMTQ1LjE0NSAwIDAgMSAwLS4yNzRsLjc3NC0uMjU4Yy4zNDYtLjExNS42MTctLjM4Ni43MzItLjczMkwxMC44NjMuMXoiLz4gPC9nPgoNPC9zdmc+&color=rgb(239,88,144)&labelColor=rgb(56,56,56)" />
<img
alt="GitHub followers"
src="https://img.shields.io/github/followers/mces58?label=FOLLOWERS&style=for-the-badge&logo=data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KDTxnIGlkPSJTVkdSZXBvX2JnQ2FycmllciIgc3Ryb2tlLXdpZHRoPSIwIi8+Cg08ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KDTxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIj4gPHBhdGggZD0iTTIwLjUgMjFDMjEuODgwNyAyMSAyMyAxOS44ODA3IDIzIDE4LjVDMjMgMTYuMTcyNiAyMS4wNDgyIDE1LjE5ODggMTkgMTQuNzkxN00xNSAxMUMxNy4yMDkxIDExIDE5IDkuMjA5MTQgMTkgN0MxOSA0Ljc5MDg2IDE3LjIwOTEgMyAxNSAzTTMuNSAyMS4wMDAxSDE0LjVDMTUuODgwNyAyMS4wMDAxIDE3IDE5Ljg4MDggMTcgMTguNTAwMUMxNyAxNC40MTk0IDExIDE0LjUwMDEgOSAxNC41MDAxQzcgMTQuNTAwMSAxIDE0LjQxOTQgMSAxOC41MDAxQzEgMTkuODgwOCAyLjExOTI5IDIxLjAwMDEgMy41IDIxLjAwMDFaTTEzIDdDMTMgOS4yMDkxNCAxMS4yMDkxIDExIDkgMTFDNi43OTA4NiAxMSA1IDkuMjA5MTQgNSA3QzUgNC43OTA4NiA2Ljc5MDg2IDMgOSAzQzExLjIwOTEgMyAxMyA0Ljc5MDg2IDEzIDdaIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4gPC9nPgoNPC9zdmc+&color=rgbrgb(0, 191, 255)&labelColor=rgb(56,56,56)" />
</div>
<hr>
<h1 align="center">Node.js: The New Way of Web Development</h1>
<p>
The world of web development is constantly changing, and keeping up with the advancements is crucial. That's why we have prepared this Node.js course to provide you with everything you need to create creative and impressive projects
in the field of web development.
</p>
<p>
This course will teach you Node.js in detail from start to finish. First, you will get an introduction to the fundamentals of Node.js, and then you will learn how to integrate external packages using <code><b>NPM</b></code> (Node Package Manager).
You will explore developing dynamic websites using <code><b>Express.js</b></code>.
</p>
<p>
While working with MySQL and <code><b>Sequelize</b></code> for database operations, you will also gain knowledge in authentication and authorization. Additionally,
you will learn important topics like data validation and RESTful API design and discover how to access NoSQL databases using Node.js with MongoDB and <code><b>Mongoose</b></code>.
</p>
<p>
This course is suitable for both beginners in the Node.js world and experienced developers. By working on practical examples and real-world projects, you will have the opportunity to apply what you have learned immediately.
You will also address critical topics such as token-based authentication, error handling, and logging, learning how to develop your products in a more secure and stable manner.
</p>
<p>
Start building your own web applications with the Node.js Course and elevate yourself in the world of web development. Explore the limitless potential that Node.js offers and bring your creative projects to life.
</p>
<hr>
<p align="center">
To download the JavaScript dependencies you want to use in your project, you can use the <code>'npm install'</code> command.
</p>
<ol type="1">
<h2>
<li>
💡
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/00-nodejs">BASICS</a>
</li>
</h2>
<p>
<em>
<strong>Node.js Fundamentals:</strong> In this section, we focus on the foundational building blocks of Node.js. We begin with a brief introduction to the course and then provide detailed information about
the global object of Node.js, known as the 'global object.' By covering the topic of Node modules, you will learn how to make your code modular. Additionally,
by exploring the concepts of HTTP request-response, you will gain an understanding of how Node.js operates in web applications. This section serves as an excellent starting point for your
journey to understand and utilize the fundamental building blocks of Node.js. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/00-intro/app.js">Hello Node.js</a>
</li>
</br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/01-global-object/app.js">Global Object</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/02-filename-dirname/app.js">Filename & Dirname</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/03-nodejs-module/app.js">Node.js Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/04-http-module/app.js">Http Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/05-request/app.js">Request</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/06-response/app.js">Response</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/08-routing-request/app.js">Routing Request</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/09-path-module/app.js">Path Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/10-url-module/app.js">Url Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/11-events-module/app.js">Events Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/12-fs-module/app.js">Fs Module</a>
</li>
<br>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/00-nodejs/14-post-method/app.js">Post Method</a>
</li>
</ul>
<br/>
<h2>
<li>
👾
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/01-npm">NPM</a>
</li>
</h2>
<p>
<em>
<strong>NPM (Node Package Manager):</strong> In this section, you will explore NPM, a vital component of the Node.js ecosystem, in detail. First, you'll learn what a package.json file is and how to create one.
Then, you'll discover how to create and manage NPM packages, as well as understand the difference between global and local packages. You will also learn how to optimize your web applications
with Webpack configuration, making your projects more efficient. Additionally, in this section, you will see hands-on examples of how to harness the power of NPM through a sample project. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/01-npm/00-intro/app.js">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/01-npm/01-node-module">Node Module</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/01-npm/02-package-json/app.js">Package.json</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/01-npm/03-npm-package/app.js">Npm Package</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/01-npm/04-global-local-package/app.js">Global Local Package</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/01-npm/05-webpack-configuration">Webpack Configuration</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/01-npm/MovieProject">Movie Project</a>
</li>
</ul>
<br/>
<h2>
<li>
🌟
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/02-expressjs">EXPRESS.JS</a>
</li>
</h2>
<p>
<em>
<strong>Express.js:</strong> This section provides a quick introduction to web development. We begin with a brief introduction to Express.js and then teach you how to set up an Express application.
We explore how to streamline the development process using tools like Nodemon. We explain how to handle requests and responses with the concept of middleware, and then demonstrate how to create
dynamic web pages using routing. You'll learn how to use body-parser for data exchange and create modular structures with express-router. Additionally, in this section, you will learn how to
manage error pages, send HTML pages, and serve static files. This will equip you with the fundamental skills needed to build powerful web applications. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/00-intro/app.js">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/01-setup/app.js">Setup</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/02-nodemon/app.js">Nodemon</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/03-middleware/app.js">Middleware</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/04-routing/app.js">Routing</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/blob/main/02-expressjs/05-body-parser/app.js">Body-parser</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/02-expressjs/06-express-router">Express Router</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/02-expressjs/07-error-page">Error Page</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/02-expressjs/10-static-file">Static Files</a>
</li>
</ul>
<br/>
<h2>
<li>
💣
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine">TEMPLATE ENGINE</a>
</li>
</h2>
<p>
<em>
<strong>Template Engine Section:</strong> In this section, we focus on the concept of template engines, particularly delving into EJS and Pug (formerly known as Jade) template engines in detail.
We begin by learning what template engines are, how they work, and how to use them. Throughout the course, we will primarily concentrate on EJS template engine, teaching you how
to create dynamic web pages with this powerful tool. 📚
</em>
</p>
<ul type="circle">
<li>
<h6>
<strong><em> EJS </em></strong>
</h6>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs/01-injecting-value">Injecting Value</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs/02-for-loop">For Loop</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs/03-conditional">Conditional</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs/04-partial">Partial</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/ejs/05-layout">Layout</a>
</li>
</ul>
</li>
<li>
<h6>
<strong><em> PUG </em></strong>
</h6>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/00-intro">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/01-id-class">Id Class</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/02-attribute-js">Attribute Js</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/03-css">Css</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/04-for-each">For Each</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/05-conditional">Conditional</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/06-case-statement">Case Statement</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/07-include">Include</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/08-mixin">Mixin</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/03-template-engine/pug/09-extends">Extends</a>
</li>
</ul>
</li>
</ul>
<br/>
<h2>
<li>
🌊
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database">MYSQL DB</a>
</li>
</h2>
<p>
<em>
<strong>MySQL Database Operations:</strong> In this section, we dive deep into MySQL database operations. We start by establishing a connection to the
MySQL database and learning how to access it. Additionally, we explain how to organize database operations using the MVC (Model-View-Controller) model. We progress by teaching you how to perform
CRUD (Create-Read-Update-Delete) operations, enabling you to create, read, update, and delete data in the database. We cover the topic of managing product-category relationships and instruct you on
using asynchronous programming (async-await). Furthermore, in this section, you will take your database operations to the next level by preparing an administration panel, enhancing your
application development experience. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/00-connection-database">Connection Database</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/01-mvc">MVC</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/02-crud">CRUD</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/03-category-relationship">Category Relationship</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/04-async-await">Async Await</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/04-mysql-database/05-admin-panel">Admin Panel</a>
</li>
</ul>
<br/>
<h2>
<li>
☀
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize">SEQUELIZE</a>
</li>
</h2>
<p>
<em>
<strong>Sequelize Section:</strong> In this section, we take database operations to the next level with Sequelize.
Firstly, you'll learn how to create tables and add data using Sequelize. We'll also explore how to apply database operations in your application, focusing on the 'product' model.
We address the management of product-category relationships and explain important concepts like 'lazy loading' and 'eager loading' to teach you how to retrieve data and handle relational data efficiently.
Additionally, you will learn operations such as generating URL-friendly text (slugify) and implementing pagination in this section. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/00-create-table">Create Table</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/01-insert-data">Insert Data</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/02-product-sequelize">Product Model</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/03-category-relationship">Category Relationship</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/04-lazy-loading">Lazy Loading</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/05-eager-loading">Eager Loading</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/06-slugField">Slugify</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/05-sequelize/07-pagination">Pagination</a>
</li>
</ul>
<br/>
<h2>
<li>
💥
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization">AUTHENTICATION AUTHORIZATION</a>
</li>
</h2>
<p>
<em>
<strong>Authentication and Authorization:</strong> In this section, we focus on strengthening your application with a strong emphasis on security.
We begin by introducing the concepts of authentication and authorization. Then, you will learn how to create a user model and walk through the step-by-step process of handling registration.
We delve into topics like cookie and session management to teach you secure session management techniques. You will also learn how to prevent CSRF (Cross-Site Request Forgery) attacks and
implement password reset processes with practical examples. Furthermore, you'll discover how to create a role model, enabling you to authorize users and resources effectively. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/00-intro">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/01-user-model">User Model</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/02-register">Register</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/03-cookie">Cookie</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/04-session">Session</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/05-csrf">CSRF</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/06-reset-password">Send Mail</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/06-authentication-authorization/07-role-model">Role Model</a>
</li>
</ul>
<br/>
<h2>
<li>
🔒
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/07-validation">VALIDATION</a>
</li>
</h2>
<p>
<em>
<strong>Validation Section:</strong> This section emphasizes the importance of data validation and error management.
Firstly, we address model validation, teaching you how to ensure the correctness of incoming data. Then, we explore error handling strategies. Validation enhances the security and stability of your application,
while error management improves the user experience and helps you anticipate potential issues in advance. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/07-validation/00-model-validation">Model Validation</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/07-validation/01-error-handling">Error Handling</a>
</li>
</ul>
<br/>
<h2>
<li>
💯
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api">REST API</a>
</li>
</h2>
<p>
<em>
<strong>REST API Section:</strong> This section focuses on the fundamental concept of REST API, which is crucial for developing modern web applications.
We begin by introducing the concept of REST API, and then you will learn how to retrieve data using HTTP GET requests. Next, we cover HTTP POST requests for sending and saving data from users.
By diving deep into data validation, you will understand how to validate incoming data. We explore the use of HTTP PUT requests to update existing data and HTTP DELETE requests for data deletion.
Furthermore, we discuss how to organize API routes using Express Router and manage the CORS (Cross-Origin Resource Sharing) concept. This will equip you with the skills to create powerful and scalable RESTful APIs. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/00-intro">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/01-get-request">Get Request</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/02-post-request">Post Request</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/03-validation">Validation</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/04-put-request">Put Request</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/05-delete-request">Delete Request</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/06-express-router">Express Router</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/08-rest-api/07-cors">CORS</a>
</li>
</ul>
<br/>
<h2>
<li>
🍃
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db">MONGO DB</a>
</li>
</h2>
<p>
<em>
<strong>MongoDB and Mongoose Section:</strong> This section focuses on the NoSQL database MongoDB and the Mongoose library. We start by teaching you how to connect to the
MongoDB database and then delve into defining data models using Mongoose schemas. By creating a category model, you will learn how to store and retrieve data in MongoDB.
We explore data selection, querying with query operators, updating, and deleting data in-depth. Furthermore, in this section, we guide you through the process of developing
an API for category data step by step, teaching you how your application can interact with the MongoDB database. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/00-connection-db">Connection DB</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/01-mongoose-schema">Mongoose Schema</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/02-category-model">Category Model</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/03-selecting">Selecting</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/04-query-operator">Query Operator</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/05-update">Update</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/06-delete">Delete</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/09-mongo-db/07-category-api">Category API</a>
</li>
</ul>
<br/>
<h2>
<li>
🧷
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/10-mongoose-relationship">MONGOOSE RELATIONSHIP</a>
</li>
</h2>
<p>
<em>
<strong>Mongoose Relationships Section:</strong> This section focuses on understanding database relationships with Mongoose.
We begin with an introduction to understand how relationships work in Mongoose. Then, we delve into the concept of 'reference relationships,' teaching you how to establish relationships between different collections.
Additionally, we cover the topic of 'embedded documents,' enabling you to learn how to store data as nested documents and how to utilize these structures, thereby equipping you to manage more
complex database structures with Mongoose. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/10-mongoose-relationship/00-intro">Intro</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/10-mongoose-relationship/01-reference-relationship">Reference Relationship</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/10-mongoose-relationship/02-embedded-document">Embedded Document</a>
</li>
</ul>
<br/>
<h2>
<li>
🔑
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/11-token-based-authentication">TOKEN BASED AUTHENTICATION</a>
</li>
</h2>
<p>
<em>
<strong>Token-Based Authentication Section:</strong> This section focuses on secure authentication methods. We start with a brief introduction and then
proceed to learn how to establish a relationship with the user model. We cover the authentication of logged-in users (auth user) and how to secure their identities.
By examining token verification processes, you will learn how to validate the authenticity of incoming requests. Additionally, we address role-based authorization (role-auth),
exploring methods for access control for different user groups. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/11-token-based-authentication/00-user-model">User Model</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/11-token-based-authentication/01-auth-user">Auth User</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/11-token-based-authentication/02-token-verification">Token Verification</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/11-token-based-authentication/03-role-auth">Role Auth</a>
</li>
</ul>
<br/>
<h2>
<li>
🎯
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging">ERROR HANDLING & LOGGING</a>
</li>
</h2>
<p>
<em>
<strong>Error Handling and Logging Section:</strong> This section focuses on error management and logging in your application. We begin by learning how to create a custom error middleware for error handling.
Then, we explore the concept of 'express-async-error' to handle errors that occur during asynchronous processes. By examining error logging methods, you will learn how to track and analyze errors in your application.
We also cover how to store errors in MongoDB. You will discover how to manage environment variables and configuration, enabling you to switch between different environments.
We also address important topics like handling unexpected exceptions (uncaught exceptions) and module extraction in this section. 📚
</em>
</p>
<ul type="disc">
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/00-error-middleware">Error Middleware</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/01-express-async-error">Express Async Error</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/02-logging-error">Logging Error</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/03-logging-error-mongodb">Logging Error with Mongo DB</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/04-environment-variable">Environment Variable</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/05-configuration">Configuration</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/06-uncaught-exception">Uncaught Exception</a>
</li>
<br/>
<li>
<a href="https://github.com/mces58/NodejsFundamentals/tree/main/12-error-handling-logging/07-extracting-module">Extracting Module</a>
</li>
</ul>
<br/>
</ol>
| This project is a comprehensive guide that enables you to enhance your web development skills by learning Node.js from start to finish. | authentication-authorization,ejs,error-handling,expressjs,javascript,logging,mongodb,mongoose,mysql,nodejs | 2023-10-07T08:52:47Z | 2023-10-09T11:46:42Z | null | 1 | 0 | 38 | 0 | 0 | 2 | null | null | EJS |
BitCodersTeam/SawakoBot | master | # SawakoBot
SawakoBot - Discord/Telegram bot
| SawakoBot - Universal Discord/Telegram bot | android,api,backend,bot,discord,discord-bot,frontend,java,javascript,python | 2023-09-28T18:47:58Z | 2023-09-28T19:13:34Z | null | 1 | 1 | 3 | 0 | 0 | 2 | null | MIT | null |
Haixing-Hu/vue3-class-component | master | # vue3-class-component
[](https://npmjs.com/package/@haixing_hu/vue3-class-component)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](README.zh_CN.md)
[](https://dl.circleci.com/status-badge/redirect/gh/Haixing-Hu/vue3-class-component/tree/master)
[](https://coveralls.io/github/Haixing-Hu/vue3-class-component?branch=master)
This library allows you to create your [Vue] components using the class-style syntax.
It draws heavy inspiration from [vue-class-component], with a few notable differences:
- It supports [Vue] v3.x.x (currently v3.3.4).
- Unlike [vue-facing-decorator], it's written in pure JavaScript rather than TypeScript,
eliminating the need for TypeScript configuration.
- It adopts the most recent (as of May 2023) [stage 3 proposal of JavaScript decorators]
and [stage 3 proposal of JavaScript decorator metadata].
- It offers a set of commonly used decorators for class-style Vue components, such as
`@Prop`, `@Watch`, `@Provide`, and `@Inject` (for more details, refer to the
[Predefined Decorators](#predefined-decorators) section). In essence, it
combines the functionality of [vue-class-component] and [vue-property-decorator].
- Offer both UMD and ESM bundling formats, providing support for both [webpack] and [vite].
For more details, refer to the [Configuration](#configuration) section.
- It has undergone extensive unit testing, achieving a remarkable 100% code coverage.
- The code has undergone a complete rewrite, and the functionality of decorators has been redesigned for improved coherence and efficiency.
## Table of Contents
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage Example](#usage-example)
- [Supported Options](#supported-options)
- [Predefined Decorators](#predefined-decorators)
- [@Prop decorator](#Prop)
- [@VModel decorator](#VModel)
- [@Watch decorator](#Watch)
- [@Provide decorator](#Provide)
- [@Inject decorator](#Inject)
- [Customize Decorators](#customize-decorators)
- [Contributing](#contributing)
- [License](#license)
## <span id="installation">Installation</span>
```bash
yarn add @haixing_hu/vue3-class-component @haixing_hu/typeinfo @haixing_hu/clone
```
or
```bash
npm install @haixing_hu/vue3-class-component @haixing_hu/typeinfo @haixing_hu/clone
```
Note that [@haixing_hu/typeinfo] and [@haixing_hu/clone] are peer dependencies of
this library, so you need to install them separately.
## <span id="configuration">Configuration</span>
This library uses the most recent (currently May 2023)
[stage 3 proposal of JavaScript decorators]. Therefore, you must configure
[Babel] with [@babel/plugin-transform-class-properties] and the
[@babel/plugin-proposal-decorators] plugins.
**NOTE:** To support the [stage 3 proposal of JavaScript decorator metadata],
the version of the [Babel] plugin [@babel/plugin-proposal-decorators] must be
at least `7.23.0`.
**Note:** There is a critical bug in versions of `@babel/helpers` greater than
`7.23.0` but less than `8.0.0` (not yet released). It incorrectly sets the `kind`
property in the context of decorators on classes to `'field'` when it should be
`'class'`. For more details, refer to [Babel]'s [issue #16179] and [issue #16180].
Therefore, we need to enforce the use of version `7.23.0` of `@babel/helpers` in
`package.json`. Specifically, add the following code to `package.json`:
```json
{
"resolutions": {
"@babel/helpers": "7.23.0"
}
}
```
### <span id="webpack">Bundling with [webpack]</span>
1. Install the required dependencies:
```shell
yarn add @haixing_hu/vue3-class-component @haixing_hu/typeinfo @haixing_hu/clone
yarn add --dev @babel/core @babel/runtime @babel/preset-env
yarn add --dev @babel/plugin-proposal-decorators @babel/plugin-transform-class-properties @babel/plugin-transform-runtime
```
2. Configure [Babel] by using the [@babel/plugin-transform-class-properties]
and [@babel/plugin-proposal-decorators] plugins. A possible [Babel]
configuration file `babelrc.json` is as follows:
```json
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-decorators", { "version": "2023-05" }],
"@babel/plugin-transform-class-properties"
]
}
```
For detailed configuration instructions, you can refer to:
- A sample project created with [vue-cli] and [webpack]: [vue3-class-component-demo-webpack]
### <span id="vite">Bundling with [vite]</span>
1. Install the required dependencies:
```shell
yarn add @haixing_hu/vue3-class-component @haixing_hu/typeinfo @haixing_hu/clone
yarn add --dev @babel/core @babel/runtime @babel/preset-env
yarn add --dev @babel/plugin-proposal-decorators @babel/plugin-transform-class-properties @babel/plugin-transform-runtime
```
2. Configure [Babel] by using [@babel/plugin-transform-class-properties] and
[@babel/plugin-proposal-decorators] plugins. A possible [Babel] configuration
file `babelrc.json` is as follows:
```json
{
"presets": [
["@babel/preset-env", { "modules": false }]
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-decorators", { "version": "2023-05" }],
"@babel/plugin-transform-class-properties"
]
}
```
**Note:** When bundling with [vite], make sure to set the `modules` parameter
of `@babel/preset-env` to `false`.
3. Configure [vite] by modifying the `vite.config.js` file to add support for
[Babel]. A possible `vite.config.js` file is as follows:
```js
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import * as babel from '@babel/core';
// A very simple Vite plugin support babel transpilation
const babelPlugin = {
name: 'plugin-babel',
transform: (src, id) => {
if (/\.(jsx?|vue)$/.test(id)) { // the pattern of the file to handle
return babel.transform(src, {
filename: id,
babelrc: true,
});
}
},
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
script: {
babelParserPlugins: ['decorators'], // must enable decorators support
},
}),
babelPlugin, // must be after the vue plugin
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
});
```
**Note:** In the above configuration file, we've implemented a simple [vite]
plugin to transpile the code processed by the [vite-plugin-vue] plugin using
[Babel]. Although there's a [vite-plugin-babel] plugin that claims to add
[Babel] support to [vite], we found it doesn't correctly handle [vue] Single
File Components (SFCs). After closely examining its source code, we
determined that to achieve correct transpilation, we need to apply [Babel]
after [vite-plugin-vue] processes the source code. Therefore, the very
simple plugin function above suffices for our needs. As an alternative,
you can use [our version of vite-plugin-babel], and the following is an
example configuration:
```js
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import babel from '@haixing_hu/vite-plugin-babel';
export default defineConfig({
plugins: [
vue({
script: {
babelParserPlugins: ['decorators'], // must enable decorators support
},
}),
babel(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
});
```
For detailed configuration instructions, you can refer to:
- A sample project created with [create-vue] and [vite]: [vue3-class-component-demo-vite]
## <span id="usage-example">Usage Example</span>
```vue
<template>
<div class="hello-page">
<div class="message">{{ message }}</div>
<div class="computed-message">{{ computedMessage }}</div>
<div class="value">{{ value }}</div>
<input v-model="newMessage">
<button @click="setMessage(newMessage)">Set Message</button>
</div>
</template>
<script>
import { Component, toVue } from 'vue3-class-component';
@Component
class HelloPage {
message = 'hello';
value = 0;
newMessage = '';
mounted() {
this.value = this.$route.params.value;
}
get computedMessage() {
return this.message + '!';
}
setMessage(s) {
this.message = s;
}
}
export default toVue(MyComponent); // don't forget calling `toVue`
</script>
```
The above code is equivalent to the following code:
```vue
<template>
<div class="hello-page">
<div class="message">{{ message }}</div>
<div class="computed-message">{{ computedMessage }}</div>
<div class="value">{{ value }}</div>
<input v-model="newMessage">
<button @click="setMessage(newMessage)">Set Message</button>
</div>
</template>
<script>
export default {
name: 'HelloPage',
data() {
return {
message: 'hello',
value: 0,
newMessage: '',
};
},
mounted() {
this.value = this.$route.params.value;
},
computed: {
computedMessage() {
return this.message + '!';
},
},
methods: {
setMessage(s) {
this.message = s;
},
},
};
</script>
```
## <span id="supported-options">Supported Options</span>
The `@Component` decorator can be used with an options argument, which will be
passed to the generated options of the Vue component. For example:
```js
@Component({
name: 'Hello', // override the name of the class
components: {
PhoneLink,
},
filters: {
capitalize: (s) => s.toUpperCase(),
},
})
class HelloPage {
message = 'hello';
value = 0;
newMessage = '';
mounted() {
this.value = this.$route.params.value;
}
get computedMessage() {
return this.message + '!';
}
setMessage(s) {
this.message = s;
}
}
export default toVue(MyComponent); // don't forget calling `toVue`
```
is equivalent to:
```js
export default {
name: 'Hello',
components: {
PhoneLink,
},
filters: {
capitalize: (s) => s.toUpperCase(),
},
data() {
return {
message: 'hello',
value: 0,
newMessage: '',
};
},
mounted() {
this.value = this.$route.params.value;
},
computed: {
computedMessage() {
return this.message + '!';
},
},
methods: {
setMessage(s) {
this.message = s;
},
},
};
```
The following table lists all the keywords in the Vue options API and whether it
is supported in the argument of the `@Component` decorator:
| Category | Option | Supported | Description |
|-------------|-------------------|-----------|--------------------------------------------------------------------------------------------------------------------------------|
| State | `data` | NO | Reactive states of the component should be defined as class fields. |
| State | `props` | NO | Component properties should be defined as class fields and marked with `@Prop` decorators. |
| State | `computed` | NO | Computed properties should be defined as class getters. |
| State | `methods` | NO | Component methods should be defined as class methods. |
| State | `watch` | NO | Watchers should be defined as class methods marked with `@Watch` decorators. |
| State | `emits` | YES | Custom events emitted by the Vue component can be declared in the `@Component` options. |
| State | `expose` | YES | Exposed public properties can be declared in the `@Component` options. |
| Rendering | `template` | YES | The string template can be declared in the `@Component` options. |
| Rendering | `render` | NO | The render function should be defined as a class method. |
| Rendering | `compilerOptions` | YES | Compiler options for string templates can be declared in the `@Component` options. |
| Rendering | `slot` | YES | Vue component slots can be declared in the `@Component` options. |
| Lifecycle | `beforeCreate` | NO | The `beforeCreate` hook should be defined as a class method. |
| Lifecycle | `created` | NO | The `created` hook should be defined as a class method. |
| Lifecycle | `beforeMount` | NO | The `beforeMount` hook should be defined as a class method. |
| Lifecycle | `mounted` | NO | The `mounted` hook should be defined as a class method. |
| Lifecycle | `beforeUpdate` | NO | The `beforeUpdate` hook should be defined as a class method. |
| Lifecycle | `updated` | NO | The `updated` hook should be defined as a class method. |
| Lifecycle | `beforeUnmount` | NO | The `beforeUnmount` hook should be defined as a class method. |
| Lifecycle | `unmounted` | NO | The `unmounted` hook should be defined as a class method. |
| Lifecycle | `errorCaptured` | NO | The `errorCaptured` hook should be defined as a class method. |
| Lifecycle | `renderTracked` | NO | The `renderTracked` hook should be defined as a class method. |
| Lifecycle | `renderTriggered` | NO | The `renderTriggered` hook should be defined as a class method. |
| Lifecycle | `activated` | NO | The `activated` hook should be defined as a class method. |
| Lifecycle | `deactivated` | NO | The `deactivated` hook should be defined as a class method. |
| Lifecycle | `serverPrefetch` | NO | The `serverPrefetch` hook should be defined as a class method. |
| Composition | `provide` | NO | `provide` properties should be defined as class fields and marked with `@Provide` decorators. |
| Composition | `inject` | NO | `inject` properties should be defined as class fields and marked with `@Inject` decorators. |
| Composition | `mixins` | YES | Mixed-in objects array can be declared in the `@Component` options. |
| Composition | `extends` | YES | Base Vue component to extend from can be declared in the `@Component` options. |
| Misc | `name` | YES | Vue component name can be declared in the `@Component` options; otherwise, the class name of the decorated class will be used. |
| Misc | `inheritAttrs` | YES | `inheritAttrs` can be declared in the `@Component` options. |
| Misc | `components` | YES | Registered components of the Vue component can be declared in the `@Component` options. |
| Misc | `directives` | YES | Registered directives of the Vue component can be declared in the `@Component` options. |
## <span id="predefined-decorators">Predefined Decorators</span>
This library provides the following commonly used decorators for class-style
Vue components:
- [`@Prop` decorator](#Prop)
- [`@VModel` decorator](#VModel)
- [`@Watch` decorator](#Watch)
- [`@Provid` decorator](#Provide)
- [`@Inject` decorator](#Inject)
### <span id="Prop">`@Prop` decorator</span>
The `@Prop` decorator is applied to class fields to declare the props of the Vue
component.
For example:
```js
@Component
class MyComponent {
// if the prop has a default value, its type and default value will be infered
// automatically
@Prop
message = 'hello';
@Prop({ type: Number, validator: (v) => (v >= 0) })
value;
// non-primitive default value DO NOT need to be wrapped by a factory function
@Prop
person = {
id: 1,
name: 'John',
age: 32,
gender: 'MALE',
};
// multiple possible types can be represented as an array of constructors.
@Prop({ type: [Boolean, String] })
lazy;
// if the argument of the decorator is a function, it will be treated as the
// type of the prop.
@Prop(Number)
value2;
// if the argument of the decorator is an array of constructors, it will be
// treated as the possible types of the prop.
@Prop([Boolean, String, Number])
value3;
}
export default toVue(MyComponent);
```
is equivalent to:
```js
export default {
name: 'MyComponent',
props: {
message: {
type: String,
default: 'hello',
},
value: {
type: Number,
required: true,
validator: (v) => {
return v >= 0
},
},
person: {
type: Object,
required: false,
default: () => ({
id: 1,
name: 'John',
age: 32,
gender: 'MALE',
}),
},
lazy: {
type: [Boolean, String],
required: true,
},
value2: {
type: Number,
required: true,
},
value3: {
type: [Boolean, String, Number],
required: true,
},
},
};
```
The `@Prop` decorator may have an optional argument. The argument of the `@Prop`
decorator is an object with the following options:
| Option | Type | Default | Description |
|-------------|------------|-------------|--------------------------------------------------------------------|
| `type` | `Function` | `undefined` | The data type of the prop, which should be a constructor function. |
| `required` | `Boolean` | `false` | Indicates whether the prop is required or not. |
| `default` | `any` | `undefined` | Specifies the default value of the prop. |
| `validator` | `Function` | `undefined` | A custom validation function for the prop. |
- `type`: This option defines the expected data type of the prop, and it can be
one of the following: `String`, `Number`, `Boolean`, `Array`, `Object`, `Date`,
`Function`, `Symbol`, a custom class, a custom constructor function, or an
array of these types. In development mode, Vue will validate if the prop's
value matches the declared type and will issue a warning if it doesn't. For
more details, see [Prop Validation].
If multiple possible types are allowed for the prop, an array of constructors
can be specified in this option. For example: `{ type: [Boolean, String] }`.
Note that a prop with a `Boolean` type affects its value casting behavior both
in development and production modes. See [Boolean Casting] for more details.
If this option is not specified, the library will infer the type from the
initial value of the decorated class field.
- `default`: Use this option to provide a default value for the prop when it is
not passed by the parent component or has an undefined value.
If this option is not specified, the library will automatically infer the
default value from the initial value of the decorated class field.
It's worth noting that the [Vue] library requires non-primitive default values
of props to be wrapped with factory functions, but our library handles this
automatically. Therefore, **you don't need to wrap non-primitive default values
with factory functions when declaring props.**
- `required`: Use this option to specify whether the prop is required or not. In
a non-production environment, a console warning will be generated if this
value is truthy and the prop is not provided.
If this option is not specified, the library will automatically infer whether
the initial value of the decorated class field is provided to determine if the
prop is required.
- `validator`: This option allows you to define a custom validation function
that takes the prop value as its sole argument. In development mode, a console
warning will be generated if this function returns a falsy value, indicating
that the validation has failed.
If the argument of the `@Prop` decorator is a function, or an array of functions,
it will be treated as the specified type of the new prop. For example,
```js
@Component
class MyComponent {
@Prop(Number)
value1;
@Prop([Boolean, String, Number])
value2;
}
```
If a default value is provided when defining a property, there is no need to
specify its type and default value again, as the system will automatically infer
them. For example:
```js
@Component
class MyComponent {
@Prop
message = '';
@Prop
value = 0;
}
```
### <span id="VModel">`@VModel` decorator</span>
The `@VModel` decorator is similar to the `@Prop` decorator, except that it
supports the `v-model` binding. See [Component v-model] for more details.
For example:
```vue
<template>
<div class="my-component">
<input v-model="message" />
</div>
</template>
<script>
import { Component, VModel, toVue } from '@haixing_hu/vue3-class-component';
@Component
class MyComponent {
@VModel({ type: String, validator: (v) => (v.length >= 0) })
message;
}
export default toVue(MyComponent);
</script>
```
is equivalent to:
```vue
<template>
<div class="my-component">
<input v-model="message" />
</div>
</template>
<script>
export default {
name: 'MyComponent',
props: {
modelValue: {
type: String,
required: true,
validator: (v) => {
return v.length >= 0;
},
},
},
emits: ['update:modelValue'],
computed: {
message: {
get() {
return this.modelValue;
},
set(value) {
this.$emit('update:modelValue', value);
},
},
},
};
</script>
```
The `@VModel` prop in the component defined above can be used as follows:
```vue
<template>
<div class="use-my-component">
<my-component v-model="msg" />
</div>
</template>
```
**NOTE:**
- The default `v-model` binding property name `'modelValue'` should not be used
as a class field name or a class method name.
- For the sake of simplifying implementation, this library does **not** support
multiple `v-model` bindings. Additionally, it does **not** support `v-model`
modifiers, **nor** does it allow for changing the default `v-model` binding
property name.
Similar to the `@Prop` decorator, the `@VModel` decorator can also accept an
optional argument. This argument for the `@VModel` decorator is an object
containing additional options. The options available for `@VModel` are identical
to those supported by `@Prop`. See [@Prop decorator](#Prop) for more details.
### <span id="Watch">`@Watch` decorator</span>
The `@Watch` decorator is marked on class methods to declare watchers of the
Vue component.
For example:
```js
@Component
class MyComponent {
value = 123;
person = {
id: 1,
name: 'John',
age: 32,
gender: 'MALE',
};
@Watch('value')
onValueChanged(val, oldVal) {
console.log(`The value is changed from ${oldVal} to ${val}.`);
}
@Watch('person', { deep: true })
onPersonChanged(val, oldVal) {
console.log(`The person is changed from ${oldVal} to ${val}.`);
}
}
export default toVue(MyComponent);
```
is equivalent to:
```js
export default {
name: 'MyComponent',
data() {
return {
value: 123,
};
},
watch: {
value(val, oldVal) {
console.log(`The value is changed from ${oldVal} to ${val}.`);
},
person: {
deep: true,
handler(val, oldVal) {
console.log(`The person is changed from ${oldVal} to ${val}.`);
},
},
},
};
```
The `@Watch` decorator can take one or two arguments. The first argument of the
`@Watch` decorator specifies the path of the watched states or watched properties.
The second optional argument of the `@Watch` decorator is an object with the
following options:
| Option | Type | Default | Description |
|-------------|-----------|---------|-------------------------------------------------------------------------------------------------------------------------|
| `deep` | `Boolean` | `false` | Indicates whether the watcher should perform a deep traversal of the source, especially if it is an object or an array. |
| `immediate` | `Boolean` | `false` | Specifies whether the watcher should be triggered immediately after its creation. |
| `flush` | `String` | `'pre'` | Defines the flushing timing of the watcher. It can be one of `'pre'`, `'post'`, or `'sync'`. |
- `deep`: Forces a deep traversal of the source, particularly if it is an object
or an array, allowing the callback to be triggered on deep mutations. Refer to
[Deep Watchers] for more information.
- `immediate`: Triggers the callback immediately upon the creation of the watcher.
The old value will be `undefined` on the first call. Refer to [Eager Watchers]
for more details.
- `flush`: Adjusts the timing at which the callback is executed. It can be one
of `'pre'`, `'post'`, or `'sync'`. See [Callback Flush Timing] and
[watchEffect()] for further details.
**NOTE:** Unlike the `@Watch` decorator in [vue-property-decorator], the `@Watch`
decorator in this library does not support watching the same state or property
with more than one watching handler. As this is not a common use case, we have
chosen to simplify the implementation of the `@Watch` decorator.
### <span id="Provide">`@Provide` decorator</span>
The `@Provide` decorator is marked on class fields to declare provided values
that can be injected by descendant components.
For example:
```js
const myInjectedKey = Symbol('myInjectedKey');
@Component
class AncestorComponent {
@Provide
message = 'hello';
@Provide({key: myInjectedKey, reactive: true})
@Prop
value = 123;
@Provide({ reactive: true })
person = {
id: 1,
name: 'John',
age: 32,
gender: 'MALE',
};
}
export default toVue(AncestorComponent);
```
is equivalent to:
```js
import { computed } from 'vue'
export default {
name: 'AncestorComponent',
props: {
value: {
type: Number,
default: 123,
required: false,
},
},
data() {
return {
message: 'hello',
};
},
provide() {
return {
message: this.message, // non-reactive
[myInjectedKey]: computed(() => this.value), // reactive
person: computed(() => this.person), // reactive
};
},
};
```
The `@Provide` and `@Inject` decorators are used together to enable an ancestor
component to serve as a dependency injector for all of its descendants,
regardless of how deep the component hierarchy goes, as long as they are in the
same parent chain. For more details, please refer to [Provide / Inject].
The `@Provide` decorators may be used with an optional argument. This optional
argument is an object with the following options:
| Option | Type | Default | Description |
|------------|--------------------|-------------|---------------------------------------------------|
| `key` | `String \| Symbol` | `undefined` | The key of the provided value. |
| `reactive` | `Boolean` | `false` | Indicates whether the provided value is reactive. |
- `key`: The key is used by child components to locate the correct value to
inject. The key could be either a string or a symbol. Refer to
[working with symbol keys] for more details. If this option is not specified,
the name of the field decorated by the `@Provide` decorator will be used as
the key.
- `reactive`: Specifies whether the provided value is reactive. By default,
the provided values are not reactive, meaning that changing the provided
value in the ancestor component will not affect the injected value in the
descendant components. If this option is set to `true`, the provided value
will be made reactive. Refer to [working with reactivity] for more details.
**NOTE:** [vue-property-decorator] provides `@Provide` and `@ProvideReactive`
decorators to declare non-reactive and reactive provided values, respectively.
However, this library simplifies the implementation by offering only one
`@Provide` decorator with an optional `reactive` option. Since provided values
are typically non-reactive, we have decided to set the default value of the
`reactive` option to `false`.
### <span id="Inject">`@Inject` decorator</span>
The `@Inject` decorator is marked on class fields to declare injected values.
For example:
```js
@Component
class DescendantComponent {
@Inject
message;
@Inject({from: myInjectedKey, default: 0})
injectedValue;
// non-primitive default value DO NOT need to be wrapped by a factory function
@Inject({ default: {id: 0, name: 'unknown'} })
person;
}
export default toVue(DescendantComponent);
```
is equivalent to:
```js
export default {
name: 'DescendantComponent',
inject: {
message: { // non-reactive
from: 'message',
default: undefined,
},
injectedValue: { // reactive, since the provided `myInjectedKey` is reactive
from: myInjectedKey,
default: 0,
},
person: { // reactive, since the provided `person` is reactive
from: 'person',
default: () => ({id: 0, name: 'unknown'}),
},
},
};
```
The `@Provide` and `@Inject` decorators are used together to enable an ancestor
component to act as a dependency injector for all its descendants, regardless
of how deep the component hierarchy goes, as long as they are in the same parent
chain. For more details, please refer to [Provide / Inject].
The `@Inject` decorators can have an optional argument, which is an object with
the following options:
| Option | Type | Default | Description |
|-----------|--------------------|-------------|------------------------------------------------------|
| `from` | `String \| Symbol` | `undefined` | The key of the source provided value to be injected. |
| `default` | `any` | `undefined` | The default value of the injected value. |
- `from`: The value of this option specifies the key of the provided value to be
injected. The key could be either a string or a symbol. Refer to
[working with symbol keys] for more details. If this option is not specified,
the name of the field decorated by the `@Injected` decorator will be used as
the key.
- `default`: The default value of the injected property. Note that similar to
the `default` option of the `@Prop` decorator, this library will automatically
transform the non-primitive default values into factory functions.
**NOTE:** If the provided value is non-reactive, the corresponding injected value
is also non-reactive. If the provided value is reactive, the corresponding injected
is also reactive. Refer to [working with reactivity] for more details.
**NOTE:** [vue-property-decorator] provides `@Inject` and `@InjectReactive`
decorators to declare non-reactive and reactive injected values, respectively.
However, this library simplifies the implementation by providing only one `@Inject`
decorator, and the reactivity of the injected value is determined by the reactivity
of the provided value.
## <span id="customize-decorators">Customize Decorators</span>
This library provides a `createDecorator()` function for creating custom
decorators. The function takes a callback function as an argument and returns a
decorator function. The callback function will be invoked with the following
parameters:
- `Class`: The constructor of the decorated class.
- `instance`: The default constructed instance of the decorated class.
This default instance can be used to access all the class instance fields of
the decorated class.
- `target`: The target value being decorated, which could be a class method, a
getter, or a setter. Note that if the decorated target is a class field,
this argument will always be `undefined`.
- `context`: The context object containing information about the target being
decorated, as described in [stage 3 proposal of JavaScript decorators] and
[stage 3 proposal of JavaScript decorator metadata].
- `options`: The Vue component options object. Changes to this object will
impact the provided component. This object encompasses all the properties
that a Vue component options object should possess, and it includes an
additional property, `fields`, which is an object containing all the
reactive states of the Vue component. In other words, it's the object
returned by the `data()` function of the Vue component. Modifying the
`fields` property of `options` allows you to alter the reactive states
returned by the Vue component's `data()` function.
The callback function is called by the library to allow it to modify the Vue
component options. The return value of the callback function will be ignored.
The `createDecorator()` function returns a decorator function that takes the
following two arguments:
- `target`: The target value being decorated, which could be a class method,
class field, getter, or setter. If the decorated target is a class field,
this argument will always be `undefined`.
- `context`: The context object containing information about the target being
decorated, as described in [stage 3 proposal of JavaScript decorators]
and [stage 3 proposal of JavaScript decorator metadata].
Here is an example of how to use it:
```js
const Log = createDecorator((Class, instance, target, context, options) => {
if (context?.kind !== 'method') {
throw new Error('The @Log decorator can only be used to decorate a class method.');
}
const methodName = context.name;
const originalMethod = options.methods[methodName];
options.methods[methodName] = function (...args) {
console.log(`${Class.name}.${methodName}: ${args.join(', ')}`);
return originalMethod.apply(this, args);
};
});
```
The above example demonstrates how to create a `@Log` decorator, which can be
employed to log the arguments of a class method. For instance:
```js
@Component
class HelloPage {
message = 'hello';
value = 0;
newMessage = '';
@Log
mounted() {
this.value = this.$route.params.value;
}
get computedMessage() {
return this.message + '!';
}
@Log
setMessage(s) {
this.message = s;
}
}
export default toVue(MyComponent);
```
**NOTE:** The `@Log` decorator mentioned above cannot be applied to the getter
or setter of the component class.
## <span id="contributing">Contributing</span>
If you find any issues or have suggestions for improvements, please feel free
to open an issue or submit a pull request to the [GitHub repository].
## <span id="license">License</span>
[vue3-class-component] is distributed under the Apache 2.0 license.
See the [LICENSE](LICENSE) file for more details.
[Vue]: https://vuejs.org/
[vue-cli]: https://cli.vuejs.org/
[webpack]: https://webpack.js.org/
[create-vue]: https://github.com/vuejs/create-vue
[vite]: https://vitejs.dev/
[vue-class-component]: https://github.com/vuejs/vue-class-component
[vue-property-decorator]: https://github.com/kaorun343/vue-property-decorator
[vue-facing-decorator]: https://github.com/facing-dev/vue-facing-decorator
[Babel]: https://babeljs.io/
[@babel/plugin-transform-class-properties]: https://babeljs.io/docs/babel-plugin-transform-class-properties
[@babel/plugin-proposal-decorators]: https://babeljs.io/docs/babel-plugin-proposal-decorators
[stage 3 proposal of JavaScript decorators]: https://github.com/tc39/proposal-decorators
[stage 3 proposal of JavaScript decorator metadata]: https://github.com/tc39/proposal-decorator-metadata
[Prop Validation]: https://vuejs.org/guide/components/props.html#prop-validation
[Boolean Casting]: https://vuejs.org/guide/components/props.html#boolean-casting
[Deep Watchers]: https://vuejs.org/guide/essentials/watchers#deep-watchers
[Eager Watchers]: https://vuejs.org/guide/essentials/watchers.html#eager-watchers
[Callback Flush Timing]: https://vuejs.org/guide/essentials/watchers#callback-flush-timing
[watchEffect()]: https://vuejs.org/api/reactivity-core#watcheffect
[Provide / Inject]: https://vuejs.org/guide/components/provide-inject.html
[Component v-model]: https://vuejs.org/guide/components/v-model.html#component-v-model
[working with symbol keys]: https://vuejs.org/guide/components/provide-inject.html#working-with-symbol-keys
[working with reactivity]: https://vuejs.org/guide/components/provide-inject#working-with-reactivity
[vue3-class-component]: https://npmjs.com/package/@haixing_hu/vue3-class-component
[vue3-class-component-demo-webpack]: https://github.com/Haixing-Hu/vue3-class-component-demo-webpack
[vue3-class-component-demo-vite]: https://github.com/Haixing-Hu/vue3-class-component-demo-vite
[vite-plugin-vue]: https://www.npmjs.com/package/@vitejs/plugin-vue
[vite-plugin-babel]: https://www.npmjs.com/package/vite-plugin-babel
[our version of vite-plugin-babel]: https://npmjs.com/package/@haixing_hu/vite-plugin-babel
[GitHub repository]: https://github.com/Haixing-Hu/vue3-class-component
[@haixing_hu/typeinfo]: https://npmjs.com/package/@haixing_hu/typeinfo
[@haixing_hu/clone]: https://npmjs.com/package/@haixing_hu/clone
[issue #16179]: https://github.com/babel/babel/issues/16179
[issue #16180]: https://github.com/babel/babel/issues/16180
| The new vue-class-component for Vue3. | class,decorator,javascript,vue,vue3 | 2023-09-21T15:42:09Z | 2023-12-27T08:43:52Z | 2023-10-16T07:49:24Z | 1 | 0 | 98 | 1 | 0 | 2 | null | Apache-2.0 | JavaScript |
Abdulhaseebimran/SMIT-JavaScript-Assignment | main | # SMIT-JavaScript-Assignment | This Repository containing JavaScript programming challenges and solutions. | challenges,javascript,js,programming-language | 2023-10-10T05:44:59Z | 2024-02-20T13:36:37Z | null | 1 | 0 | 21 | 0 | 0 | 2 | null | null | JavaScript |
mishka911/Creador-Tareas-REACT-VITE | main | # Creador-Tareas-REACT-VITE
Creador de tareas con react vite y tailwind
| Creador de tareas | react,tailwind,vite,javascript | 2023-09-14T18:49:10Z | 2023-09-14T20:11:44Z | null | 1 | 0 | 7 | 0 | 0 | 2 | null | null | JavaScript |
NguyenNam6689/Learn-ReactJs | main | # React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
| Learning ReacJs | css,html,javascript,reactjs | 2023-09-18T16:34:04Z | 2023-09-19T15:01:28Z | null | 1 | 0 | 2 | 1 | 0 | 2 | null | null | JavaScript |
mrmanojbhatta/Solar-System | main | # Solar System
| null | css,hacking,html,javascript,planets,python,solar,solarsystem,sybersecurity,manojbhattagithub | 2023-09-13T12:18:27Z | 2023-09-13T13:49:12Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | CSS |
SuryaPratap2542/Task_Manager-Django_React | main | # Task Manager Web Application
A simple Task Manager web application built with Django and React.
<img width="960" alt="image" src="https://github.com/SuryaPratap2542/Task_Manager-Django_React/assets/89827931/c6e22a32-2097-4f0a-8067-9a09b5fb09ff">
- main page displaying tasks.
## Overview
Task Manager is a web application that allows users to manage their tasks and to-do lists. It provides a user-friendly interface for creating, editing, and deleting tasks, as well as marking tasks as completed or incompleted. The backend is built with Django, which provides RESTful API endpoints for interacting with tasks, while the frontend is built with React.
<img width="960" alt="image" src="https://github.com/SuryaPratap2542/Task_Manager-Django_React/assets/89827931/8c1dff9b-5160-44c4-9e05-bd3fc5e641f9">
- "Add Task" feature.
<img width="960" alt="image" src="https://github.com/SuryaPratap2542/Task_Manager-Django_React/assets/89827931/c431abe7-164d-4d8c-835f-38aec1f9926e">
- completed tasks.
<img width="954" alt="image" src="https://github.com/SuryaPratap2542/Task_Manager-Django_React/assets/89827931/59b1ad8b-6982-47f6-969e-4a373ee255da">
- incompleted tasks.
## Features
- Create, Read, Update, and Delete tasks.
- Mark tasks as completed or incompleted.
- Filter tasks by completion status (completed/incompleted).
- User-friendly and responsive design.
- Seamless integration of Django and React.
## Getting Started
1. **Clone the repository:**
```bash
git clone https://github.com/your-username/task-manager.git
cd task-manager
```
2. **Backend (Django):**
```bash
cd backend
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
```
The Django server should now be running at `http://localhost:8000`.
3. **Frontend (React):**
```bash
cd frontend
npm install
npm start
```
The React development server should now be running at `http://localhost:3000`.
## Usage
1. Access the web application by opening your web browser and navigating to `http://localhost:3000`.
2. Create a new task by clicking the "Add Task" button.
3. Edit or delete tasks using the provided buttons.
4. Mark tasks as completed or incompleted by clicking on them.
## API Endpoints
The backend Django server provides the following API endpoints:
- `GET /api/task/`: Get a list of all tasks.
- `POST /api/task/`: Create a new task.
- `GET /api/task/<task_id>/`: Get details of a specific task.
- `PUT /api/task/<task_id>/`: Update a specific task.
- `DELETE /api/task/<task_id>/`: Delete a specific task.
You can use these endpoints to interact with the task data programmatically.
## Contributing
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push your changes to your forked repository.
5. Submit a pull request with a detailed description of your changes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
| A simple Task Manager web application built with Django and React. | api,bootstrap,css,django,html,javascript,jsx,manager,react,rest-api | 2023-10-03T05:38:09Z | 2023-10-03T05:56:09Z | null | 1 | 0 | 3 | 0 | 1 | 2 | null | null | JavaScript |
werdelesmarcio/upload.ai | master | # upload.ai
<h4 align="center">
:construction: Projeto em construção :construction:
</h4>
[](https://github.com/werdelesmarcio/upload.ai/actions/workflows/github-code-scanning/codeql)
[](https://ci.appveyor.com/project/werdelesmarcio/upload-ai)
[](https://ci.appveyor.com/project/werdelesmarcio/upload-ai/branch/master)
[](https://sonarcloud.io/summary/new_code?id=werdelesmarcio_upload.ai)
[](https://sonarcloud.io/summary/new_code?id=werdelesmarcio_upload.ai)
[](https://sonarcloud.io/summary/new_code?id=werdelesmarcio_upload.ai)
<img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/werdelesmarcio/upload.ai"> <img alt="GitHub" src="https://img.shields.io/github/license/werdelesmarcio/upload.ai">
_Repositório para armazenar os códigos da aula de criação da aplicação upload.ai, estudo de caso da Rocketseat._
### upload.ai
Consiste em uma aplicação que auxilia na criação de postagens de vídeos para o youtube que utiliza de processos de Inteligência Artificial.
✔️ Técnicas e tecnologias utilizadas
* Node.js, Typescript, React
* Visual Studio Code
* Paradigma de orientação a objetos
### Requisitos
Node.JS e framework React, alem de pnpm previamente instalados.
_Comando para subir o serviço:_ **pnpm run dev**

_Preview da ferramenta em execução_

# Autores
| [<img loading="lazy" src="https://avatars.githubusercontent.com/u/36682515?v=4" width=115><br><sub>Werdeles Soares</sub>](https://github.com/werdelesmarcio) |
| :---: |
### Licença:
***Este projeto está sob Licença GPL-3.0.***
Consulte o arquivo [de Licença](https://github.com/werdelesmarcio/upload.ai/blob/master/Archives/LICENSE) para obter mais detalhes.
### Contatos
Se quiser entrar em contato, crie um **issue** no GitHub ou envie um e-mail para werdelesmarcio@gmail.com. Obrigado!
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/werdelesmarcio/upload.ai?style=for-the-badge"> <img alt="GitHub contributors" src="https://img.shields.io/github/contributors/werdelesmarcio/upload.ai?style=for-the-badge">
<img src = "https://github.com/werdelesmarcio/PyTCPScan2/blob/master/Images/SoftwareLivre.png?raw=true" width =130 align="Right">
<img src = "https://github.com/werdelesmarcio/PyTCPScan2/blob/master/Images/PoweredByLinux.png?raw=true" width =80 align="Right">
| Repositório para armazenar os códigos da aula de criação da aplicação upload.ai, estudo de caso da Rocketseat. | css3,html5,javascript,reactjs,typescript | 2023-10-11T00:18:35Z | 2023-10-11T13:33:42Z | null | 1 | 3 | 35 | 4 | 0 | 2 | null | GPL-3.0 | TypeScript |
joaquinlarroca/pizzajs | main | #  PizzaJS [](https://github.com/joaquinlarroca/pizzajs/actions/workflows/pages/pages-build-deployment)  
## Getting Started
To start using PizzaJS in your project, follow these steps:
### Download the Latest Version from GitHub:
Visit the GitHub repository and download the latest release of PizzaJS.
### Setting up Your Project:
Use the folder `template/project` as the main folder for your project. Rename it and there you have your first PizzaJS project
```
My_PizzaJS_Project/
│
├── index.html
│
├── main.js
│
└── source/
│
├── modules/
│ │
│ ├── classes.js
│ │
│ ├── functions.js
│ │
│ └── global.js
│ │
│ └── index.js
│ │
│ └── listener.js
├── ...
```
### Importing PizzaJS Modules:
If wanted, change the importing method
```js
// Use `pjs` or anything as a prefix for PizzaJS
import * as pjs from "./source/modules/index.js"
```
```js
// Use PizzaJS without a prefix
// Import global
import { global, image } from './source/modules/global.js'
// Import functions
import { initLoaderCheck, canvas, ctx, drawtext, loadImage, loadSound, loadFont, fillRect, setup, start, clear, fitText, measureTextWidth, shakeScreen } from './source/modules/functions.js';
// Import listeners
import { setupAllEventListeners, setupMouseListener, setupResizeListener, setupKeyboardListener, keyPressed, mouse, pressedKeys } from './source/modules/listener.js';
// Import all classes
import { actor, button, hitbox, hitbox2, hitboxCircle, rect, sound, slider, timeout } from './source/modules/classes.js';
// Starts the loadCheck
initLoaderCheck()
```
## Games made with PizzaJS
| Game Icon | Play | Author | Version |
|-----------|------|--------|---------|
| <img src="https://img.itch.zone/aW1nLzEzNzY4MTUxLnBuZw==/315x250%23c/dY6IHU.png" alt="gameIcon" width="128"/> | [**PLAY**](https://larrocax.itch.io/alien-laser-ray) | [**larrocax**](https://larrocax.itch.io/) | Alpha v1 |
## Documentation
All documentation is provided at the [pizzajs site](https://joaquinlarroca.github.io/pizzajs/)
## Support
To request support visit our [discord](https://discord.gg/BmNS5aBEPT)
## Author
| Avatar | Author |
|--------|-------------------------|
| <img src="https://avatars.githubusercontent.com/u/52870198?v=4" alt="avatar" width="32"/> | [**joaquinlarroca**](https://github.com/joaquinlarroca/) |
## Licenses
### PizzaJS license
```txt
MIT License
Copyright (c) 2024 Joaquin Larroca
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
### buttons.js
This page uses a modified version of github buttons.js.
Modified version is located in `pizzajs/mkdocs/social-buttons.js`.
Original version at [https://github.com/buttons/github-buttons/blob/main/dist/buttons.js](https://github.com/buttons/github-buttons/blob/main/dist/buttons.js).
```txt
BSD 2-Clause License
Copyright (c) 2023, なつき
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
``` | Game framework HTML canvas | framework,game-framework,games,javascript,javascript-framework | 2023-10-08T22:13:49Z | 2024-03-20T21:12:27Z | 2024-03-20T21:12:27Z | 1 | 1 | 55 | 0 | 0 | 2 | null | MIT | JavaScript |
enzogsierra/ecommerce | main | null | Aplicación web para la compra y venta de productos online, utilizando MercadoPago. Con sistema de registro, carrito de compras, panel administrativo, etc. | bootstrap,ecommerce,javascript,jquery,mercadopago,mysql,oauth2-client,spring-boot,spring-data-jpa,spring-security | 2023-10-05T03:16:57Z | 2023-10-23T12:42:45Z | null | 1 | 0 | 76 | 0 | 0 | 2 | null | null | Java |
Nix-code/Portfolio | main | # Portfolio Site With Terminal Support
## Verson 1.0
Build your personalized portfolio website. Customize your website by editing a configuration file in the `config` folder.
## Getting Started
### Prerequisites
- Node.js installed on your machine. You can download it [here](https://nodejs.org/).
### Installation
1. Clone this repository to your local machine: (Clone from initial/setup branch to get initial template)
```bash
git clone https://github.com/Nix-code/portfolio.git
2. Navigate to the project directory:
```bash
cd portfolio V1.0
```
3. Install the project dependencies:
```bash
npm install
```
### Usage
Edit the config/developer_data/customizedev.ts file to customize your portfolio website. You can specify details like your name, bio, projects, and more.
To choose your own color theme, look for the "theme" section in the .ts configuration and adjust the colors according to your preferences.
Save your changes in the configuration file.
Run the following command to build your portfolio site:
```npm run build```
### Deployment
You can deploy your portfolio site to various hosting platforms like Netlify, Vercel, or GitHub Pages. Simply upload the contents of the dist folder to your chosen hosting platform.
### Customization
Feel free to further customize your portfolio site by modifying the codes in the src folder. You can also add or remove sections to fit your needs.
### Acknowledgments
This project was built using React and Vite.
Special thanks to the Vite community for creating the Vite + React + TypeScript template that served as the foundation for this project.
Support
If you encounter any issues or have questions, please create an issue on GitHub. | Developer portfolio with additional terminal like support using TypeScript, ReactJS, Material UI and StyledComponent. | javascript,material-ui,react,typescript,developer-portfolio,terminal-portfolio | 2023-09-19T04:12:40Z | 2023-11-04T04:52:00Z | null | 1 | 25 | 128 | 3 | 2 | 2 | null | MIT | TypeScript |
Tswaanda/tswaanda-admin | main | # Tswaanda Marketplace Dashboard
Dashboard for Tswaanda Marketplace
Tswaanda Dashboard is a web application for managing and monitoring data related to Tswaanda Marketplace services.
The application is a Dapp consisting of a frontend canister built using ReactJS and a backend canister built using Motoko.
## Getting Started
To get started with Tswaanda Dashboard, follow these instructions:
## Prerequisites
- [X] DFX(Version 0.14.1)
- [X] NodeJS(Version 16 or higher)
- [X] Tswaanda Marketplace (https://github.com/renegadec/marketplace)
## Download & Installation
#### Step 1: Download the repo or clone it using your terminal.
```bash
git clone https://github.com/renegadec/tswaanda-backend.git
```
#### Step 2: Navigate to the `tswaanda` folder and install the dependencies:
```bash
cd tswaanda-backend/tswaanda
npm install
```
#### Step 3: Run the npm install command to install libraries and packages.
```bash
npm install
mops install
```
#### Step 4: Start DFX locally by running the following command
```bash
npm run dfx
```
#### Step 5: Deploy the canisters by running the following command
```bash
npm run deploy
```
#### Step 6: Run the front-end
```bash
npm start
```
#### Step 6: If you want to run with the websockets locally, Make sure you have the Rust toolchain installed. You can find instructions [here](https://www.rust-lang.org/tools/install), and then clone the gateway repo:
```bash
git clone https://github.com/omnia-network/ic-websocket-gateway.git
```
#### Step 7: Navigate to the `ic-websocket-gateway` folder and run:
```bash
cargo run
```
## 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.
## Conclusion
If you have any challenges you can create or ask questions in the Issues tab. We are constantly updating the software and always check for updates if anything breaks at any point.
## License
[MIT](https://choosealicense.com/licenses/mit/) | Tswaanda admin - Has the dashboard for managing all Tswaanda activities | blockchain,internet-computer,javascript,motoko,react,web3 | 2023-10-03T06:39:54Z | 2024-02-21T06:00:46Z | null | 2 | 9 | 89 | 0 | 0 | 2 | null | MIT | TypeScript |
clayruh/ph4-final-grocery-compare | main | # Flatiron Phase 4 Project: Shop Smart
<img width="1407" alt="Products page of Shop Smart" src="https://github.com/clayruh/ph4-final-grocery-compare/assets/56447997/c00f4ccf-45e0-4b4c-9332-301dbc65b04d">
## About
A comparison tool for finding the most affordable grocery items across major big-box groceries. Created by Tiffany Pretlow, Lovleen Kaur, Mili, and Clae Lu.
| Comparison tool for finding the most affordable grocery items across major big-box groceries. | api-rest,flask,javascript,python,reactjs | 2023-09-25T15:20:17Z | 2024-04-02T15:57:38Z | null | 4 | 57 | 202 | 0 | 1 | 2 | null | null | Python |
stdlib-js/slice-multi | main | <!--
@license Apache-2.0
Copyright (c) 2023 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<details>
<summary>
About stdlib...
</summary>
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
</details>
# MultiSlice
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
> Multi-slice constructor.
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
<section class="intro">
</section>
<!-- /.intro -->
<!-- Package usage documentation. -->
<section class="installation">
## Installation
```bash
npm install @stdlib/slice-multi
```
Alternatively,
- To load the package in a website via a `script` tag without installation and bundlers, use the [ES Module][es-module] available on the [`esm`][esm-url] branch (see [README][esm-readme]).
- If you are using Deno, visit the [`deno`][deno-url] branch (see [README][deno-readme] for usage intructions).
- For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [`umd`][umd-url] branch (see [README][umd-readme]).
The [branches.md][branches-url] file summarizes the available branches and displays a diagram illustrating their relationships.
To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
</section>
<section class="usage">
## Usage
```javascript
var MultiSlice = require( '@stdlib/slice-multi' );
```
<a name="main"></a>
#### MultiSlice( ...slice )
Returns a `MultiSlice` instance.
```javascript
var Slice = require( '@stdlib/slice-ctor' );
var s = new Slice( 0, 10 );
// returns <Slice>
var ms = new MultiSlice( 2, s, null );
// returns <MultiSlice>
```
The constructor accepts the following arguments:
- **slice**: a single-dimensional slice. May be either a [`Slice`][@stdlib/slice/ctor], `null`, `undefined`, or an integer.
* * *
### Properties
<a name="static-prop-name"></a>
#### MultiSlice.name
String value of the `MultiSlice` constructor name.
```javascript
var str = MultiSlice.name;
// returns 'MultiSlice'
```
<a name="prop-ndims"></a>
#### MultiSlice.prototype.ndims
**Read-only** property returning the number of slice dimensions.
```javascript
var Slice = require( '@stdlib/slice-ctor' );
var s = new Slice( 0, 10 );
// returns <Slice>
var ms = new MultiSlice( 2, s, null );
// returns <MultiSlice>
var ndims = ms.ndims;
// returns 3
```
<a name="prop-data"></a>
#### MultiSlice.prototype.data
**Read-only** property returning the slice data.
```javascript
var Slice = require( '@stdlib/slice-ctor' );
var s = new Slice( 0, 10 );
// returns <Slice>
var ms = new MultiSlice( 2, s, null );
// returns <MultiSlice>
var data = ms.data;
// returns [ 2, <Slice>, null ]
```
* * *
### Methods
<a name="method-to-string"></a>
#### MultiSlice.prototype.toString()
Serializes a `MultiSlice` as a string.
```javascript
var Slice = require( '@stdlib/slice-ctor' );
var s = new Slice( 10 );
// returns <Slice>
var ms = new MultiSlice( 2, s, null );
// returns <MultiSlice>
var str = ms.toString();
// returns 'MultiSlice(2,Slice(null,10,null),null)'
```
<a name="method-to-json"></a>
#### MultiSlice.prototype.toJSON()
Serializes a `MultiSlice` as a [JSON][json] object.
```javascript
var Slice = require( '@stdlib/slice-ctor' );
var s = new Slice( 10 );
// returns <Slice>
var ms = new MultiSlice( 2, s, null );
// returns <MultiSlice>
var o = ms.toJSON();
// returns { 'type': 'MultiSlice', 'data': [ 2, { 'type': 'Slice', 'data': [ null, 10, null ] }, null ] }
```
`JSON.stringify()` implicitly calls this method when stringifying a `MultiSlice` instance.
</section>
<!-- /.usage -->
<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
* * *
<section class="notes">
## Notes
- Slice arguments may be either integers, `null`, or `undefined`, where a non-integer value indicates a slice parameter which should be determined based on the slice context (e.g., when used to index into an [`ndarray`][@stdlib/ndarray/ctor]).
- Multi-slice instances have no explicit functionality; however, they are used by [`ndarray`][@stdlib/ndarray] and other packages for creating views into multi-dimensional data structures.
</section>
<!-- /.notes -->
<!-- Package usage examples. -->
* * *
<section class="examples">
## Examples
<!-- eslint no-undef: "error" -->
<!-- eslint-disable new-cap -->
```javascript
var S = require( '@stdlib/slice-ctor' );
var MultiSlice = require( '@stdlib/slice-multi' );
// Alias `undefined` for more concise expressions:
var _ = void 0;
// Create a 6-dimensional slice:
var s = new MultiSlice( S( 9, -10, -1 ), S( 2, _, 2 ), 2, S( 5, _, 2 ), 3, _ );
// returns <MultiSlice>
// Serialize the slice to a string:
var str = s.toString();
console.log( str );
// => 'MultiSlice(Slice(9,-10,-1),Slice(2,null,2),2,Slice(5,null,2),3,null)'
// Serialize the slice to JSON:
var o = s.toJSON();
console.log( JSON.stringify( o ) );
// => '{"type":"MultiSlice","data":[{"type":"Slice","data":[9,-10,-1]},{"type":"Slice","data":[2,null,2]},2,{"type":"Slice","data":[5,null,2]},3,null]}'
```
</section>
<!-- /.examples -->
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="references">
</section>
<!-- /.references -->
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
<section class="related">
* * *
## See Also
- <span class="package-name">[`@stdlib/ndarray-ctor`][@stdlib/ndarray/ctor]</span><span class="delimiter">: </span><span class="description">multidimensional array constructor.</span>
- <span class="package-name">[`@stdlib/slice-ctor`][@stdlib/slice/ctor]</span><span class="delimiter">: </span><span class="description">slice constructor.</span>
</section>
<!-- /.related -->
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="main-repo" >
* * *
## Notice
This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
#### Community
[![Chat][chat-image]][chat-url]
---
## License
See [LICENSE][stdlib-license].
## Copyright
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
</section>
<!-- /.stdlib -->
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="links">
[npm-image]: http://img.shields.io/npm/v/@stdlib/slice-multi.svg
[npm-url]: https://npmjs.org/package/@stdlib/slice-multi
[test-image]: https://github.com/stdlib-js/slice-multi/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/slice-multi/actions/workflows/test.yml?query=branch:main
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/slice-multi/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/slice-multi?branch=main
<!--
[dependencies-image]: https://img.shields.io/david/stdlib-js/slice-multi.svg
[dependencies-url]: https://david-dm.org/stdlib-js/slice-multi/main
-->
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[umd]: https://github.com/umdjs/umd
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
[deno-url]: https://github.com/stdlib-js/slice-multi/tree/deno
[deno-readme]: https://github.com/stdlib-js/slice-multi/blob/deno/README.md
[umd-url]: https://github.com/stdlib-js/slice-multi/tree/umd
[umd-readme]: https://github.com/stdlib-js/slice-multi/blob/umd/README.md
[esm-url]: https://github.com/stdlib-js/slice-multi/tree/esm
[esm-readme]: https://github.com/stdlib-js/slice-multi/blob/esm/README.md
[branches-url]: https://github.com/stdlib-js/slice-multi/blob/main/branches.md
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/slice-multi/main/LICENSE
[json]: http://www.json.org/
[@stdlib/ndarray]: https://github.com/stdlib-js/ndarray
[@stdlib/ndarray/ctor]: https://github.com/stdlib-js/ndarray-ctor
[@stdlib/slice/ctor]: https://github.com/stdlib-js/slice-ctor
<!-- <related-links> -->
<!-- </related-links> -->
</section>
<!-- /.links -->
| Multi-slice constructor. | constructor,constructors,ctor,ctors,data,javascript,node,node-js,nodejs,python | 2023-09-21T12:43:06Z | 2024-04-11T22:28:25Z | null | 5 | 0 | 18 | 0 | 0 | 2 | null | Apache-2.0 | JavaScript |
amreshpro/ideaflow | main | ### Ideaflow
#### Dark

#### Light
 | null | github,javascript,reactjs,tailwindcss | 2023-10-09T15:57:00Z | 2023-10-12T06:44:48Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | null | JavaScript |
cyz/github-csc-events | main | # GitHub Universe Cloud Skills Challenge
[](http://makeapullrequest.com)
[](http://www.firsttimersonly.com/)
GitHub is the home for all developers—a platform where you can share code, contribute to open source projects and much more. Join our special study group and explore GitHub with us! 🐱

## Host a session with your community to explore the exciting GitHub Universe Cloud Skills Challenge
The GitHub Universe Cloud Skills Challenge is a 30-day learning journey on Microsoft Learn. It's a free, engaging, community-driven program designed to help you master GitHub, Codespaces, and GitHub Copilot. You'll learn how to set up your cloud-based development environment with Codespaces and create real-world projects with GitHub Copilot, just in time for GitHub Universe!
- Register for the [Cloud Skills Challenge]((https://aka.ms/GitHubUniverseChallenge))
- Choose a theme and host an event with your community
- Check out our [community resources](/community) to help you organize your event
- **Promote your event in our Tech Community articles by adding a comment with the following information:**
- Date
- Name
- Community
- Location
- Language
- Registration Link
### Promote the GitHub Universe Cloud Skills Challenge
Check out our [social media banners](/csc-promotion) to promote the challenge 🎉
### Visit the Articles:
| Post | Language |
|------|------|
| [Announcing GitHub Universe Cloud Skills Challenge!](https://aka.ms/GitHubUniverseChallenge) | English |
| [Participe do GitHub Universe Cloud Skills Challenge](https://aka.ms/github/brasil) | Portuguese |
| [¡Regístrate al GitHub Universe Cloud Skills Challenge!](https://techcommunity.microsoft.com/t5/educator-developer-blog/reg%C3%ADstrate-al-github-universe-cloud-skills-challenge/ba-p/3951236?WT.mc_id=academic-109612-abrilu) | Spanish |
| Repository to help community leaders host events about the GitHub Universe Cloud Skills Challenge | ai,community,education,github,github-copilot,javascript,learning,programming,python | 2023-09-29T21:04:36Z | 2023-10-30T15:46:13Z | null | 1 | 0 | 18 | 0 | 0 | 2 | null | MIT | null |
kartikey-codes/hacktoberfest-ContributorShowcase | main | # Hacktoberfest Contributor Showcase
Welcome to the Hacktoberfest Contributor Showcase! We invite you to add your profile to our list.
Use this project to make your first contribution to an open source project on GitHub. Practice making your first pull request to a public repository before doing the real thing!
## This Project Is Perfect For Your First Pull Request
🗣 **Hacktoberfest encourages participation in the open-source community, which grows bigger every year. Complete the challenge and earn a limited edition T-shirt.**
📢 **Register [here](https://hacktoberfest.digitalocean.com) for Hacktoberfest and make four pull requests (PRs) between October 1st-31st to grab free SWAGS 🔥.**
## How to Contribute
1. Fork this repository on GitHub by clicking the "Fork" button at the top-right of this page.
2. Clone your forked repository to your local machine using Git:
```bash
git clone https://github.com/kartikey-codes/hacktoberfest-ContributorShowcase.git
```
3.Create a branch
```markdown
git checkout -b branch-name
```
4. Edit the `index.html` file to add your information to the list.
In the `index.html` file, you will find a section for contributors. Add your information in the following format:
```html
<li><strong>Your Name</strong> - Hobby: Your Hobby, <a href="https://github.com/your-github-username" target="_blank">GitHub Profile</a></li>
```
Replace `Your Name` with your name, `Your Hobby` with your hobby or interest, and `your-github-username` with your GitHub username.
5. Commit your changes with a meaningful message (e.g., "Added my profile"):
```bash
git add index.html
git commit -m "Added my profile"
```
6. Push the changes to your GitHub repository:
```bash
git push origin main
```
7. Create a Pull Request (PR) from your forked repository to this main repository on GitHub.
To get approval of the pull request much quicker and faster, don't forget to star this repository to show your support!
I will review your PR, and once approved, your profile will appear on this page!
Thank you for contributing to the Hacktoberfest Contributor Showcase. Let's celebrate your participation!
| Hacktoberfest 2023 Starter project for first time contributors , OPEN FIRST Pull Request - FREE T-SHIRT🎉 | beginner-friendly,css,first-timers,firstpullrequest,good-first-issue,hacktoberfest,hacktoberfest-accepted,hacktoberfest2023,html5,issues | 2023-09-30T09:57:00Z | 2023-10-04T11:11:44Z | null | 4 | 8 | 17 | 0 | 0 | 2 | null | MIT | HTML |
Keshabkjha/pglife | main | # PGLife | PG Bookings 🛏️
<samp> Final Project.
Web Development Trainings.
Internshala Trainings. </samp>
### Web Server | Apache HTTP Server
### Database
-- Download SQL file from database directory in repository.
-- Create database in phpmyadmin named pglife.
-- Import SQL file to database.
### Continued Developments
<samp>
-- Implement the filter modal in <b>property_list.php</b> page.
</samp>
### Author | @[keshabkjha](https://github.com/Keshabkjha)
### PGLife Website Design
#### Home Page

#### SignUp Modal

#### Login Modal

#### Dashboard

#### Property List Page

#### Property Detail Page



| PG-Life is a comprehensive web application developed to streamline and enhance the experience of individuals searching for Paying Guest accommodations. | accommodation,comprehensive-web,javascript,php,user-interface,user-management,pglife | 2023-09-24T19:05:58Z | 2024-05-09T13:46:06Z | null | 1 | 0 | 7 | 0 | 0 | 2 | null | MIT | PHP |
Satyanaryana-Merla/Portfolio-Website | main | # Portfolio-Website
A portfolio is a meticulously curated collection of a person's most significant achievements, serving as a clear, concise, and effective representation of their skills, achievements, and knowledge for career advancement.
"A portfolio is a carefully selected selection of a person's greatest work, demonstrating abilities, successes, and inventiveness. It acts as a narrative and visual depiction of a person's skills and experiences, providing a glimpse into their knowledge and a window into their career path. When it comes to showcasing one's skills and accomplishments concisely and efficiently, portfolios are a priceless tool. They are used to impress, inspire, and enlighten, whether for career prospects, academic pursuits, or personal branding.
https://satyanaryana-merla.github.io/Portfolio-Website/
| A portfolio is a meticulously curated collection of a person's most significant achievements, serving as a clear, concise, and effective representation of their skills, achievements, and knowledge for career advancement. | css,fonts,git,github,html5,images,javascript,python,style | 2023-09-25T17:41:34Z | 2024-05-06T02:40:01Z | null | 1 | 0 | 26 | 0 | 0 | 2 | null | null | JavaScript |
Priyanshu085/PromptHub | master | # PromptHub

> A prompt sharing website.
## Table of Contents
- [Description](#description)
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Deployment](#deployment)
- [Installation](#installation)
- [Usage](#usage)
- [MIT Liencse](#license)
## Description
"PromptHub" is a web platform designed for sharing prompts. It provides a space for users to post and explore various prompts that can be used for creative writing, brainstorming, or any context that requires a starting point.
## Features
- **Prompt Sharing**: Users can create and share prompts with the community.
- **Exploration**: Browse a diverse collection of prompts for inspiration.
- **User Accounts**: Create accounts to save favorite prompts and track contributions.
- **Search and Filter**: Easily find prompts based on categories, keywords, or popularity.
- **Responsive Design**: The platform is designed to work seamlessly on various devices.
## Technologies Used
- **Next.js**: A React-based framework for building modern web applications.
- **JavaScript (JS)**: The primary programming language used for frontend functionality.
- **Tailwind CSS**: A utility-first CSS framework for quickly building custom designs.
- **MongoDB**: A NoSQL database used for storing prompt data.
## Deployment
The project is deployed and can be viewed live at [prompthub-085.vercel.app](https://prompthub-085.vercel.app).
## Installation
1. Clone the repository: `git clone https://github.com/Priyanshu085/prompthub.git`
2. Navigate to the project directory: `cd prompthub`
3. Install dependencies: `npm install next-auth mongoose mongodb`
## Usage
1. Start the development server: `npm run dev`
2. Open your browser and go to `http://localhost:3000`
| "PromptHub" is a web platform designed for sharing prompts. It provides a space for users to post and explore various prompts that can be used for creative writing, brainstorming, or any context that requires a starting point. | javascript,nextjs,tailwindcss,next-auth,daisyui,mongodb,collaborate,communityexchange,learn | 2023-10-01T12:09:47Z | 2024-01-23T16:12:35Z | null | 1 | 1 | 47 | 0 | 2 | 2 | null | MIT | JavaScript |
renzp94/number-correct | main | <p align="center"><a href="https://github.com/renzp94/number-correct" target="_blank" rel="noopener noreferrer"><img width="200" src="./logo.png" alt="number-correct logo"></a></p>
<p align="center">
<!-- <a href="https://codecov.io/github/@renzp/number-correct"><img src="https://img.shields.io/codecov/c/github/@renzp/number-correct.svg?sanitize=true" alt="Coverage Status"></a> -->
<a href="https://bundlephobia.com/package/@renzp/number-correct">
<img src="https://img.shields.io/bundlephobia/minzip/@renzp/number-correct?label=minzipped" alt="Bundle Size">
</a>
<a href="https://npmcharts.com/compare/@renzp/number-correct?minimal=true"><img src="https://img.shields.io/npm/dm/@renzp/number-correct.svg?sanitize=true" alt="Downloads"></a>
<a href="https://www.npmjs.com/package/@renzp/number-correct"><img src="https://img.shields.io/npm/v/@renzp/number-correct.svg?sanitize=true" alt="Version"></a>
<a href="https://www.npmjs.com/package/@renzp/number-correct"><img src="https://img.shields.io/npm/l/@renzp/number-correct.svg?sanitize=true" alt="License"></a>
<a href="https://www.jsdocs.io/package/@renzp/number-correct"><img src="https://img.shields.io/badge/JSDoc-blue" alt="docs"></a>
<a href="https://github.com/renzp94/number-correct/blob/main/CHANGELOG.md"><img src="https://img.shields.io/badge/更新日志-gray" alt="Change Log"></a>
</p>
# number-correct
基于竖式计算方式矫正js数字计算精度
## coverage
> 由于使用的`bun test`无法生成`coverage`HTML文件,所以在此列一下`coverage`
| File | % Funcs | % Lines |
| --------------- | ------- | ------- |
| All files | 100.00 | 99.92 |
| src/compared.ts | 100.00 | 100.00 |
| src/index.ts | 100.00 | 99.58 |
| src/math.ts | 100.00 | 100.00 |
| src/object.ts | 100.00 | 100.00 |
| src/utils.ts | 100.00 | 100.00 |
## 安装
```sh
npm install @renzp/number-correct
```
## 使用
```ts
import { plus } from '@renzp/number-correct'
console.log(plus(1,2,3,'44444444444444.0000000000004444444444'));
```
更多使用方法可以查看[文档](https://number-correct.deno.dev)
## 什么是竖式计算
竖式计算就是数学中的`列竖式`。如:`123 + 456 = 579`
`加法(+)`
```js
1 2 3
+ 4 5 6
--------
5 7 9
```
`减法(-)`
```js
4 5 6
- 1 2 3
--------
3 3 3
```
`乘法(*)`
```js
1 2 3
* 2 4 5
-------------------------------------------------------
500 + 100 + 15 = 615
4000 + 800 + 120 = 4920 +
20000 + 4000 + 600 = 24600 +
---------------------------------------------------
30135
```
`除法(/)`
```js
// ==============
3 / 8
a = [3]
1、取和除数相同位数的值:3,此时a变成[]
2、比较3 < 8 则差值为3,停止记录并统计记录为0,则求出第一个商为0。
3、判断a没有值,需要进行补位操作。
4、进行差值补位操作,差值为30.记录小数点。
执行步骤2: 30 > 8 -> 30 - 8 = 22 记录1.
执行步骤2: 22 > 8 -> 22 - 8 = 14 记录1.
执行步骤2: 14 > 8 -> 14 - 8 = 6 记录1.
执行步骤2: 6 < 8 差值为6,停止记录并统计记录为3,则求出第二个商为3.
执行步骤3:发现a中没值,判断差值6不为0,则需要进行补位操作。
执行步骤4:差值为60.此时有小数点,则不记录小数点。
执行步骤2: 60 > 8 -> 60 - 8 = 52 记录1.
执行步骤2: 52 > 8 -> 52 - 8 = 44 记录1.
执行步骤2: 44 > 8 -> 44 - 8 = 36 记录1.
执行步骤2: 36 > 8 -> 36 - 8 = 28 记录1.
执行步骤2: 28 > 8 -> 28 - 8 = 20 记录1.
执行步骤2: 20 > 8 -> 20 - 8 = 12 记录1.
执行步骤2: 12 > 8 -> 12 - 8 = 4 记录1.
执行步骤2: 4 < 8 差值为4,停止记录并统计记录为7,则求出第二个商为7.
执行步骤3:发现a中没值,判断差值4不为0,则需要进行补位操作。
执行步骤4:差值为40.此时有小数点,则不记录小数点。
执行步骤2: 40 > 8 -> 40 - 8 = 32 记录1.
执行步骤2: 32 > 8 -> 32 - 8 = 24 记录1.
执行步骤2: 24 > 8 -> 24 - 8 = 16 记录1.
执行步骤2: 16 > 8 -> 16 - 8 = 8 记录1.
执行步骤2: 8 = 8 -> 8 - 8 = 0 记录1.
执行步骤2: 0 < 8 差值为0,停止记录并统计记录为5,则求出第三个商为5.
5、差值为0且a为空,则说明求商完成。按照顺序合并商:0.375
3 / 8 = 0.375
// ==============
4221 / 20
a = [4 2 2 1]
1、取和除数相同位数的值:42,此时a变成[2 1]
2、比较42 > 20 -> 42 - 20 = 22 记录 1。
执行步骤2: 差值22 > 20 -> 22 - 20 = 2 记录 1.
执行步骤2: 差值2 < 20 停止记录并统计记录为2。则第一个商求出为:2.
3、判断a有值,则取出一个与差值合并,即:差值为22,a为[1]。
执行步骤2: 22 > 20 -> 22 - 20 = 2 记录1。
执行步骤2: 2 < 20,差值为2,停止记录并统计记录为1。则求出第二个商为:1.
执行步骤2:差值为21,a为[]
执行步骤2: 21 > 20 -> 21 - 20 = 1 记录1.
执行步骤2: 1 < 20,差值为1,停止记录并统计记录为1。则求出第三个商为:1.
执行步骤3:发现a中没值,判断差值1不为0,则需要进行补位操作。
4、进行差值补位操作,差值为10.记录小数点。
执行步骤2: 10 < 20 差值为10,停止记录并统计记录为0,则求出第四个商为:0。
执行步骤4: 差值为100.此时有小数点,则不记录小数点。
执行步骤2: 100 > 20 -> 100 - 20 = 80 记录1.
执行步骤2: 80 > 20 -> 80 - 20 = 60 记录1.
执行步骤2: 60 > 20 -> 60 - 20 = 40 记录1.
执行步骤2: 40 > 20 -> 40 - 20 = 20 记录1.
执行步骤2: 20 = 20 -> 20 - 20 = 0 记录1.
执行步骤2: 0 < 20 差值为0,停止记录并统计记录为5,则求出第五个商为5.
5、差值为0且a为空,则说明求商完成。按照顺序合并商:211.05
4221 / 20 = 211.05
// ==============
5666 / 20 / 30
a、将多个被除数相乘:20 * 30 = 600
b、计算5666 / 600
a = [5 6 6 6]
1、取和除数相同位数的值:566,此时a变成[6]
2、比较566 < 600 则差值为566,停止记录并统计记录为0,则求出第一个商为0。
3、判断a有值,则取出一个与差值合并,即:差值为5666,a为[]。
执行步骤2: 5666 > 600 -> 5666 - 600 = 5066 记录1.
执行步骤2: 5066 > 600 -> 5066 - 600 = 4466 记录1.
执行步骤2: 4466 > 600 -> 4466 - 600 = 3866 记录1.
执行步骤2: 3866 > 600 -> 3866 - 600 = 3266 记录1.
执行步骤2: 3266 > 600 -> 3266 - 600 = 2666 记录1.
执行步骤2: 2666 > 600 -> 2666 - 600 = 2066 记录1.
执行步骤2: 2066 > 600 -> 2066 - 600 = 1466 记录1.
执行步骤2: 1466 > 600 -> 1466 - 600 = 866 记录1.
执行步骤2: 866 > 600 -> 866 - 600 = 266 记录1.
执行步骤2: 266 < 600 差值为266,停止记录并统计记录为9,则求出第二个商为9.
执行步骤3:发现a中没值,判断差值266不为0,则需要进行补位操作。
4、进行差值补位操作,差值为4660.记录小数点。
执行步骤2: 2660 > 600 -> 2660 - 600 = 2060 记录1.
执行步骤2: 2060 > 600 -> 2060 - 600 = 1460 记录1.
执行步骤2: 1460 > 600 -> 1460 - 600 = 860 记录1.
执行步骤2: 860 > 600 -> 860 - 600 = 260 记录1.
执行步骤2: 260 < 600 差值为260,停止记录并统计记录为4,则求出第三个商为4.
执行步骤3:发现a中没值,判断差值260不为0,则需要进行补位操作。
执行步骤4:差值为2600.此时有小数点,则不记录小数点。
执行步骤2: 2600 > 600 -> 2600 - 600 = 2000 记录1.
执行步骤2: 2000 > 600 -> 2000 - 600 = 1400 记录1.
执行步骤2: 1400 > 600 -> 1400 - 600 = 800 记录1.
执行步骤2: 800 > 600 -> 800 - 600 = 200 记录1.
执行步骤2: 200 < 600 差值为200,停止记录并统计记录为4,则求出第二个商为4.
执行步骤3:发现a中没值,判断差值200不为0,则需要进行补位操作。
执行步骤4:差值为2000.此时有小数点,则不记录小数点。
执行步骤2: 2000 > 600 -> 2000 - 600 = 1400 记录1.
执行步骤2: 1400 > 600 -> 1400 - 600 = 800 记录1.
执行步骤2: 800 > 600 -> 800 - 600 = 200 记录1.
执行步骤2: 200 < 600 差值为200,停止记录并统计记录为3,则求出第二个商为3.
执行步骤3:发现a中没值,判断差值200不为0,则需要进行补位操作。
执行步骤4:差值为2000.此时有小数点,则不记录小数点。
执行步骤2: 2000 > 600 -> 2000 - 600 = 1400 记录1.
执行步骤2: 1400 > 600 -> 1400 - 600 = 800 记录1.
执行步骤2: 800 > 600 -> 800 - 600 = 200 记录1.
执行步骤2: 200 < 600 差值为200,停止记录并统计记录为3,则求出第二个商为3.
5、已经除不尽了,默认精度为10.则整理商为9.4433333333
5666 / 20 / 30 = 9.4433333333
// ==============
8.45 / 3.26
a、将小数变为整数,为 845 / 326,并记录除数小数为2位,被除数小数为2位
a = [8 4 5]
1、取和除数相同位数的值:845,此时a变成[]
2、比较845 > 326 -> 845 - 326 = 519 记录 1。
执行步骤2: 519 > 326 -> 519 - 326 = 193 记录 1.
执行步骤2: 193 < 326 差值为193,停止记录并统计记录为2,则求出第一个商为2.
3、判断a没有值,需要进行补位操作。
4、进行差值补位操作,差值为1930.记录小数点。
执行步骤2: 1930 > 326 -> 1930 - 326 = 1604 记录1.
执行步骤2: 1604 > 326 -> 1604 - 326 = 1278 记录1.
执行步骤2: 1278 > 326 -> 1278 - 326 = 952 记录1.
执行步骤2: 952 > 326 -> 952 - 326 = 626 记录1.
执行步骤2: 626 > 326 -> 626 - 326 = 300 记录1.
执行步骤2: 300 < 326 差值为300,停止记录并统计记录为5,则求出第二个商为5.
执行步骤3:发现a中没值,判断差值300不为0,则需要进行补位操作。
执行步骤4:差值为3000.此时有小数点,则不记录小数点。
执行步骤2: 3000 > 326 -> 3000 - 326 = 2674 记录1.
执行步骤2: 2674 > 326 -> 2674 - 326 = 2348 记录1.
执行步骤2: 2348 > 326 -> 2348 - 326 = 2022 记录1.
执行步骤2: 2022 > 326 -> 2022 - 326 = 1696 记录1.
执行步骤2: 1696 > 326 -> 1696 - 326 = 1370 记录1.
执行步骤2: 1370 > 326 -> 1370 - 326 = 1044 记录1.
执行步骤2: 1044 > 326 -> 1044 - 326 = 718 记录1.
执行步骤2: 718 > 326 -> 718 - 326 = 392 记录1.
执行步骤2: 392 > 326 -> 392 - 326 = 66 记录1.
执行步骤2: 66 < 326 差值为66,停止记录并统计记录为9,则求出第三个商为9.
执行步骤3:发现a中没值,判断差值66不为0,则需要进行补位操作。
执行步骤4:差值为660.此时有小数点,则不记录小数点。
执行步骤2: 660 > 326 -> 660 - 326 = 334 记录1.
执行步骤2: 334 > 326 -> 334 - 326 = 8 记录1.
执行步骤2: 8 < 326 差值为8,停止记录并统计记录为2,则求出第四个商为2.
执行步骤3:发现a中没值,判断差值8不为0,则需要进行补位操作。
执行步骤4:差值为80.此时有小数点,则不记录小数点。
执行步骤2: 80 < 326 差值为80,停止记录并统计记录为0,则求出第五个商为0.
执行步骤3:发现a中没值,判断差值8不为0,则需要进行补位操作。
执行步骤4:差值为800.此时有小数点,则不记录小数点。
执行步骤2: 800 > 326 -> 800 - 326 = 474 记录1.
执行步骤2: 474 > 326 -> 474 - 326 = 148 记录1.
执行步骤2: 148 < 326 差值为148,停止记录并统计记录为2,则求出第六个商为2.
执行步骤3:发现a中没值,判断差值148不为0,则需要进行补位操作。
执行步骤4:差值为1480.此时有小数点,则不记录小数点。
执行步骤2: 1480 > 326 -> 1480 - 326 = 1154 记录1.
执行步骤2: 1154 > 326 -> 1154 - 326 = 828 记录1.
执行步骤2: 828 > 326 -> 828 - 326 = 502 记录1.
执行步骤2: 502 > 326 -> 502 - 326 = 176 记录1.
执行步骤2: 176 < 326 差值为176,停止记录并统计记录为4,则求出第七个商为4.
执行步骤3:发现a中没值,判断差值176不为0,则需要进行补位操作。
执行步骤4:差值为1760.此时有小数点,则不记录小数点。
执行步骤2: 1760 > 326 -> 1760 - 326 = 1434 记录1.
执行步骤2: 1434 > 326 -> 1434 - 326 = 1108 记录1.
执行步骤2: 1108 > 326 -> 1108 - 326 = 782 记录1.
执行步骤2: 782 > 326 -> 782 - 326 = 456 记录1.
执行步骤2: 456 > 326 -> 456 - 326 = 130 记录1.
执行步骤2: 130 < 326 差值为130,停止记录并统计记录为5,则求出第八个商为5.
执行步骤3:发现a中没值,判断差值130不为0,则需要进行补位操作。
执行步骤4:差值为1300.此时有小数点,则不记录小数点。
执行步骤2: 1300 > 326 -> 1300 - 326 = 974 记录1.
执行步骤2: 974 > 326 -> 974 - 326 = 648 记录1.
执行步骤2: 648 > 326 -> 648 - 326 = 322 记录1.
执行步骤2: 322 < 326 差值为322,停止记录并统计记录为3,则求出第九个商为3.
执行步骤3:发现a中没值,判断差值322不为0,则需要进行补位操作。
执行步骤4:差值为3220.此时有小数点,则不记录小数点。
执行步骤2: 3220 > 326 -> 3220 - 326 = 2894 记录1.
执行步骤2: 2894 > 326 -> 2894 - 326 = 2568 记录1.
执行步骤2: 2568 > 326 -> 2568 - 326 = 2242 记录1.
执行步骤2: 2242 > 326 -> 2242 - 326 = 1916 记录1.
执行步骤2: 1916 > 326 -> 1916 - 326 = 1590 记录1.
执行步骤2: 1590 > 326 -> 1590 - 326 = 1264 记录1.
执行步骤2: 1264 > 326 -> 1264 - 326 = 938 记录1.
执行步骤2: 938 > 326 -> 938 - 326 = 612 记录1.
执行步骤2: 612 > 326 -> 612 - 326 = 286 记录1.
执行步骤2: 286 < 326 差值为286,停止记录并统计记录为9,则求出第十个商为9.
执行步骤3:发现a中没值,判断差值286不为0,则需要进行补位操作。
执行步骤4:差值为2860.此时有小数点,则不记录小数点。
执行步骤2: 2860 > 326 -> 2860 - 326 = 2534 记录1.
执行步骤2: 2534 > 326 -> 2534 - 326 = 2208 记录1.
执行步骤2: 2208 > 326 -> 2208 - 326 = 1882 记录1.
执行步骤2: 1882 > 326 -> 1882 - 326 = 1556 记录1.
执行步骤2: 1556 > 326 -> 1556 - 326 = 1230 记录1.
执行步骤2: 1230 > 326 -> 1230 - 326 = 904 记录1.
执行步骤2: 904 > 326 -> 904 - 326 = 578 记录1.
执行步骤2: 578 > 326 -> 578 - 326 = 252 记录1.
执行步骤2: 252 < 326 差值为252,停止记录并统计记录为8,则求出第十一个商为8.
5、精度默认为10,则整理商为2.5920245398
8.45 / 3.26 = 2.5920245398
```
> 此计算方法不管多大的数据都不会出现精度丢失问题,同时可以直接计算字符串,返回数据是字符串。
| 基于竖式计算方式矫正js数字计算精度 | arbitrary-precision,javascript,vertical-calculation,number-correct | 2023-10-09T14:03:12Z | 2024-05-22T01:03:08Z | 2024-04-26T07:21:56Z | 1 | 0 | 85 | 0 | 0 | 2 | null | null | TypeScript |
ErickWendel/semana-javascript-expert08 | main | # JSExpertHub Pre-processing videos on browsers - Semana JS Expert 8.0
Seja bem vindo(a) à oitava Semana Javascript Expert. Este é o código inicial para iniciar nossa jornada.
Marque esse projeto com uma estrela 🌟 e acesse o nosso [grupo oficial no WhatsApp](https://l.erickwendel.com.br/jse8-grupo)
## Preview
<img width=100% src="./initial-template/demo.gif">
## Pre-reqs
- Este projeto foi criado usando Node.js v18.17.0
- O ideal é que você use o projeto em ambiente Unix (Linux). Se você estiver no Windows, é recomendado que use o [Windows Subsystem Linux](https://www.omgubuntu.co.uk/how-to-install-wsl2-on-windows-10) pois nas aulas são mostrados comandos Linux que possam não existir no Windows.
## Importante
- Todo dia às 18hrs estou subindo o código das aulas do dia corrente aqui no repositório. Se você for iniciar o projeto, remova as pastas das aulas anteriores para iniciar do zero!
## Running
- Execute `npm ci` na pasta que contém o arquivo `package.json` para restaurar os pacotes
- Execute `npm start` e em seguida vá para o seu navegador em [http://localhost:3000](http://localhost:3000) para visualizar a página acima
## Checklist Features
- Video Uploader
- [ ] - Deve entender videos em formato MP4 mesmo se não estiverem fragmentados
- [ ] - Deve processar itens em threads isoladas com Web Workers
- [ ] - Deve converter fragmentos de videos em formato `144p`
- [ ] - Deve renderizar frames em tempo real em elemento canvas
- [ ] - Deve gerar arquivos WebM a partir de fragmentos
### Desafios
- [ ] - Encodar em 360p e 720p
- [ ] - Fazer encoding/decoding track de áudio
- [ ] - Fazer também upload de track de áudio
- [ ] - Concatenar o arquivo final no servidor em um arquivo só
- [ ] - Corrigir problema do Webm de não mostrar a duração do video
- [ ] - Corrigir a responsividade do site
- [ ] - Tentar usar outros muxers
- https://github.com/Vanilagy/webm-muxer
- https://github.com/Vanilagy/mp4-muxer
### Links mostrados nos aulas:
- Reuni todos os links em [referências](./referencias.md)
### Considerações
- Tire suas dúvidas sobre os desafios em nossa comunidade, o objetivo é você aprender de forma divertida. Surgiu dúvidas? Pergunte por lá!
- Ao completar qualquer um dos desafios, envie no canal **#desafios** da comunidade no **Discord**
### FAQ
- browser-sync está lançando erros no Windows e nunca inicializa:
- Solução: Trocar o browser-sync pelo http-server.
1. instale o **http-server** com `npm i -D http-server`
2. no package.json apague todo o comando do `browser-sync` e substitua por `npx http-server .`
3. agora o projeto vai estar executando na :8080 então vá no navegador e tente acessar o http://localhost:8080/
A unica coisa, é que o projeto não vai reiniciar quando voce alterar algum código, vai precisar dar um F5 na página toda vez que alterar algo
| JS Expert Week 8.0 - 🎥Pre processing videos before uploading in the browser 😏 | demuxer,javascript,mp4,mp4box,muxer,video-processing,video-streaming,webcodecs,webm,webstream | 2023-10-16T18:52:12Z | 2023-10-28T00:32:15Z | null | 1 | 4 | 17 | 0 | 1,655 | 2,507 | null | null | JavaScript |
0x48piraj/fadblock | master | <p align="center">
<img src="https://github.com/0x48piraj/fadblock/assets/5800726/cf39ef9f-779b-43ca-93f7-ee0bb2a93323" alt="Fadblock Origin: A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera and Firefox"></img>
<br/>
<sub>A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera, and Firefox.</sub>
</p>
<p align="center">
<a href="https://addons.mozilla.org/addon/fadblock/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" alt="Get FadBlock Origin for Firefox"></a>
<a href="https://chromewebstore.google.com/detail/fadblock-origin-friendly/lmnhcklabcehiohmmeihcheoegomkghm"><img src="https://user-images.githubusercontent.com/585534/107280622-91a8ea80-6a26-11eb-8d07-77c548b28665.png" alt="Get FadBlock Origin for Chromium"></a>
<a href="#opera--edge"><img src="https://user-images.githubusercontent.com/585534/107280692-ac7b5f00-6a26-11eb-85c7-088926504452.png" alt="Get FadBlock Origin for Opera"></a>
</p>
<h1 align="center">FadBlock Origin: Friendly Youtube™ Adblock</h1>
This was posted over Reddit a few months ago, [Apparently Ad Blockers are not allowed on Youtube. Is this a new thing they've implemented?](https://www.reddit.com/r/youtube/comments/13cfdbi/apparently_ad_blockers_are_not_allowed_on_youtube/?rdt=64832) and judging by all the recent comments and posts all over [r/youtube](https://www.reddit.com/r/youtube/), this change was just rolled out on a **larger scale**.
This blocker is designed to monitor advertisements, automatically seek the ads, and skip them. It's important to note that this doesn't classify as traditional ad blocking, as the ad content is technically "loaded".
Nevertheless, the extension's underlying logic enables it to fast-forward through the ad content to its conclusion. The entire process is optimized to occur within an extremely brief timeframe, typically **<=100 milliseconds**, ensuring a smooth and uninterrupted user experience.
### MAJOR ANNOUNCEMENT :mega::mega::mega:
### I am no longer the owner of the extension called "FadBlock". I handed the extension off over a month ago, seems like it traded hands a couple of times, and now the current owner has added malicious code while keeping the extension as it is!
I am taking **immediate action** and will release a new version (under a new name called "**FadBlock Origin**") of the clean codebase for everyone to use.
I am also thinking of pursuing legal action as it appears they have retained the PayPal and other support links!
I have notified the few people who supported the extension and have sent them the new codebase _locally_, for the rest, the new version has been submitted to the web store and will hopefully be released in under 3-5 days.
As of now, I would also ask all of the current users to **report that extension for abuse** so the Chrome team is notified while I recover the situation.
#### -- RANT BELOW --
> **Why?** Do all Chrome extensions that are traded end up being misused? It's heartbreaking.
> I **thought** I took precautions to ensure the buyer wouldn't use it maliciously, but it appears there's a new owner in control, indicating that it exchanged hands again.
> I transferred the extension because I believed it could benefit all users. Maintenance had become challenging, and I envisioned FadBlock evolving into a robust full-blown ChatGPT-powered powerhouse, capable of generating transcripts, language translation, and more, with significant potential…
*Faster, smoother, and better than ever!*
The upcoming version will utilize a custom `MutationObserver` with polyfill to ensure **compatibility with older browsers**. This was the initial reason for not implementing `MO` from the start.
The next version will expand onto **YouTube Music** :tada: and will have a **"Blocked Ads" Counter** while including other niche features as well as proposed bug fixes.
As this project has demanded a substantial amount of time, the repository will transition to an _open-core model for ongoing maintenance and updates_.
**Note:** Some people are getting confused about the new permissions as well as the access to `extensionpay.com`. The storage permission is for counting the "Blocked YouTube Ads" and ExtensionPay is a payment processor integrated with [Stripe](https://stripe.com/en-in) for obtaining a lifetime license after an initial free trial period (it's gonna stay free after as well but will ask for a contribution now and then).
> I genuinely hope you all can appreciate the immense amount of time and effort it requires to sustain a project like this all the while YouTube keeps changing the rules, trying to shut out everything. All this coupled with working >80 hours/week on my own thing (not FadBlock Origin). If you're not satisfied with the decision where you have to pay a one-time contribution as a gesture for "_job well done and keep at it_", you still have the option to manually roll back to version 1.3. I won't remove it; it just won't receive further updates. I believe that's a fair compromise.
## Coverage
- [This special YouTube Adblocker skips ads instead of blocking them](https://ghacks.net/2023/10/28/this-special-youtube-adblocker-skips-ads-instead-of-blocking-them/) [[Archive](https://web.archive.org/web/20231103064810/https://ghacks.net/2023/10/28/this-special-youtube-adblocker-skips-ads-instead-of-blocking-them/)/[Snapshot](https://web.archive.org/web/20231103064822/http://web.archive.org/screenshot/https://ghacks.net/2023/10/28/this-special-youtube-adblocker-skips-ads-instead-of-blocking-them/)]
- [Fadblock: The Sneaky Trickster of YouTube Ad Skipping and YouTube Fast-Forwarding](https://innov8tiv.com/fadblock-the-sneaky-trickster-of-youtube-ad-skipping-and-youtube-fast-forwarding/) [[Archive](https://web.archive.org/web/20231103064518/https://innov8tiv.com/fadblock-the-sneaky-trickster-of-youtube-ad-skipping-and-youtube-fast-forwarding/)/[Snapshot](https://web.archive.org/web/20231103064518/http://web.archive.org/screenshot/https://innov8tiv.com/fadblock-the-sneaky-trickster-of-youtube-ad-skipping-and-youtube-fast-forwarding/)]
- [A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome. : youtube](https://www.reddit.com/r/youtube/comments/177ijjb/a_fast_lightweight_and_undetectable_youtube_ads/) [[Archive](https://archive.ph/2023.10.21-121632/https://www.reddit.com/r/youtube/comments/177ijjb/a_fast_lightweight_and_undetectable_youtube_ads/)]
- [Fadblock YouTube Adblocker Speeds Through Ads Instead of Blocking](https://thetechhacker.com/2023/10/30/fadblock-youtube-adblocker-speeds-through-ads-instead-of-blocking/) [[Archive](https://web.archive.org/web/20231103065339/https://thetechhacker.com/2023/10/30/fadblock-youtube-adblocker-speeds-through-ads-instead-of-blocking/)/[Snapshot](https://web.archive.org/web/20231103065339/http://web.archive.org/screenshot/https://thetechhacker.com/2023/10/30/fadblock-youtube-adblocker-speeds-through-ads-instead-of-blocking/)]
- [Undetectable ad blocker 'FadBlock' that can be used on YouTube, which takes full-scale ad blocker blocking
](https://gigazine.net/gsc_news/en/20231102-youtube-ads-blocker-fadblock/) [[Archive](https://web.archive.org/web/20231103065818/https://gigazine.net/gsc_news/en/20231102-youtube-ads-blocker-fadblock/)/[Snapshot](https://web.archive.org/web/20231103065818/http://web.archive.org/screenshot/https://gigazine.net/gsc_news/en/20231102-youtube-ads-blocker-fadblock/)]
- [FadBlock: the adblocker for YouTube that isn't an adblocker](https://en.iguru.gr/fadblock-adblocker-gia-youtube-pou-den-einai-adblocker/) [[Archive](https://web.archive.org/web/20231103065657/https://en.iguru.gr/fadblock-adblocker-gia-youtube-pou-den-einai-adblocker/)/[Snapshot](https://web.archive.org/web/20231103065657/http://web.archive.org/screenshot/https://en.iguru.gr/fadblock-adblocker-gia-youtube-pou-den-einai-adblocker/)]
- [FadBlock: Youtube χωρίς διαφημίσεις απίστευτα εύκολα](https://techmaniacs.gr/fadblock-enas-diaforetikos-ad-blocker-gia-tis-diafimiseis-sto-youtube/) [[Archive](https://web.archive.org/web/20231103065532/https://techmaniacs.gr/fadblock-enas-diaforetikos-ad-blocker-gia-tis-diafimiseis-sto-youtube/)/[Snapshot](https://web.archive.org/web/20231103065532/http://web.archive.org/screenshot/https://techmaniacs.gr/fadblock-enas-diaforetikos-ad-blocker-gia-tis-diafimiseis-sto-youtube/)]
- [FADBLOCK: L’ESTENSIONE CHE SALTA LE PUBBLICITÀ DI YOUTUBE ANZICHÉ BLOCCARLE](https://www.drcommodore.it/2023/10/31/fadblock-estensione-chrome-youtube/) [[Archive](https://web.archive.org/web/20231103065204/https://www.drcommodore.it/2023/10/31/fadblock-estensione-chrome-youtube/)/[Snapshot](https://web.archive.org/web/20231103065204/http://web.archive.org/screenshot/https://www.drcommodore.it/2023/10/31/fadblock-estensione-chrome-youtube/)]
- [Fadblock: el adblock para YouTube que salta los anuncios en 50 milisegundos](https://blog.elhacker.net/2023/10/fadblock-adblock-para-youtube-salta-anuncios-sin-bloquear.html) [[Archive](https://web.archive.org/web/20231103064154/https://blog.elhacker.net/2023/10/fadblock-adblock-para-youtube-salta-anuncios-sin-bloquear.html)/[Snapshot](https://web.archive.org/web/20231103064154/http://web.archive.org/screenshot/https://blog.elhacker.net/2023/10/fadblock-adblock-para-youtube-salta-anuncios-sin-bloquear.html)]
- [广告加速器代替Adblock!YouTube和创作者均获得收益!](https://www.youtube.com/watch?v=OyAU1tr5qJE) [[Archive](https://web.archive.org/web/20231103063741/https://www.youtube.com/watch?v=OyAU1tr5qJE)/[Snapshot](https://web.archive.org/web/20231103063741/http://web.archive.org/screenshot/https://www.youtube.com/watch?v=OyAU1tr5qJE)]
## Features
This extension effectively eliminates all categories of YouTube advertisements:
**Category 1:** Ads visible on the homepage.
**Category 2:** Ads overlaid atop the suggested video list.
**Category 3:** Ads displayed below the video description.
> Starting on April 6th, 2023, the “Overlay ads” ad format will no longer appear on YouTube to help improve the viewer experience and shift engagement to higher-performing ad formats on desktop and mobile devices. Overlay ads are a legacy ad format that is only served on desktops and are disruptive for viewers.
**Category 4:** Skippable 5-second-must-be-watched video ads, which may be positioned at the video's start, midway, or at the end.
**Category 5:** Ads similar to Category 4, but with two consecutive video ads instead of one.
**Category 6:** Inescapable 10-second video ads, which must be watched.
## FAQ
1. **It is not working!**
You will have to **disable other adblockers as they are getting detected**. It's not due to FadBlock Origin as the technique it uses is completely different than other adblockers. It's hacky but it works and Google can't do jack _(for the most part)_.
Some of the extensions that do not and do work with FadBlock Origin are listed down below,
| Name of the extension | Getting detected |
|--------------------------|------------------|
| uBlock Origin | ✔️ |
| Enhancer For Youtube | ✔️ |
| SponsorBlock for YouTube | ❌ _(probably)_ |
| Return YouTube Dislike | ❌ |
| Malwarebytes extension | ✔️ |
| Brave in-built adblock | ✔️ |
| Firefox in-built adblock | ✔️ |
> You can also add _youtube.com_ to the exception list for domains on other adblockers (uBlock Origin, AdBlock) and then download FadBlock Origin to override regular Adblock being prioritized on YouTube while the conventional adblocker will work across the remainder of the Internet.
**Note:** If you're still getting YouTube's Adblock warning, look at your extensions, and disable extensions one by one until you find your culprit. If you still can't find it, change your browser to Chrome (as it has no built-in adblocker) and test again. If it still doesn't work, then and only then create an [issue](https://github.com/0x48piraj/fadblock/issues).
2. **Why there's no privacy policy?**
There’s no privacy policy as there’s no data collection at all, not even analytical data for error reporting. Everything happens locally. No remote connections are made, nada!
3. **How do I use it for my phone?**
Unfortunately, there’s no app or anything. You cannot install Chrome extensions on the Chrome browser on Android, but several Chromium-based third-party browsers support extensions (e.g. Brave Browser).
> Note: You will have to leave the YouTube app and watch over a browser (not very elegant, sorry)
## Install FadBlock Origin to Opera, Edge, Brave and Safari
This section explains how to install the extension utilizing the _developer mode_ as well as Chromium-based browsers,
<p align="center">
<img src="https://bashvlas.com/blog/install-chrome-extension-in-developer-mode/example.gif" alt="installing chrome extension in dev mode"></img>
</p>
### Opera & Edge
Go to the extensions manager page for Opera (`opera://extensions`) or Edge (`edge://extensions`), turn on **developer mode**, and click on **Load Unpacked**.
### Brave Browser
You can visit the Chrome Web Store and download the [extension](https://chromewebstore.google.com/detail/fadblock-origin-friendly/lmnhcklabcehiohmmeihcheoegomkghm).
### Install on Safari @ macOS
1. Download the **Userscripts** from the [App Store](https://apps.apple.com/us/app/userscripts/id1463298887)
2. To open **Userscripts** and enable Safari extensions settings, open **Userscripts** (`userscriptsurlscheme://`), then select the checkbox next to **Userscripts**.
3. Click on the **Userscripts** icon at the top of Safari to open the script editor and create a new JS file. Then, copy the code from [fadblock.user.js](src/safari/js/fadblock.user.js) and paste it into the newly created JS file.
## Show your support
* Think about making a tiny one-time contribution to keep enjoying FadBlock Origin with extended support.
* Star (⭐) this repository and consider following me on [GitHub](https://github.com/0x48piraj) if you're using the **free** version.
## Disclaimer
This software is provided for educational purposes only and
is provided "AS IS", without warranty of any kind, express or
implied, including but not limited to the warranties of merchantability,
fitness for a particular purpose and non-infringement. In no event shall the
authors or copyright holders be liable for any claim, damages, or other
liability, whether in an action of contract, tort or otherwise, arising from,
out of or in connection with the software or the use or other dealings in the
software.
| Friendly Adblock for YouTube: A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera and Firefox. | adblock,adguard,blocker,chrome,extension,firefox,javascript,opera,privacy,youtube | 2023-10-12T15:51:14Z | 2024-02-06T06:19:07Z | 2023-10-21T06:56:25Z | 1 | 7 | 28 | 26 | 109 | 2,361 | null | null | CSS |
gevendra2004/gevstack | main | # gevstack
All Gevstack projects
| All Gevstack projects | css,html,javascript,webdevelopment,gevstack | 2023-10-15T16:56:47Z | 2024-05-19T18:57:30Z | null | 1 | 1 | 119 | 0 | 65 | 544 | null | null | CSS |
nluxai/nlux | latest | # NLUX
<p align=center>
<img style="padding: 0; margin: 0;" height="80px" src="https://nlux.dev/nlux-logo/nlux-logo-main.png"/><br />
The <strong>Powerful</strong> Conversational AI JavaScript Library ✨💬
</p>
<p align=center>
<img alt="Free & Open Source" src="https://img.shields.io/badge/Free%20%26%20Open%20Source-1ccb61" />
<a href="https://github.com/nluxai/nlux/actions/workflows/run-all-tests.yml"><img alt="600+ Unit Tests" src="https://github.com/nluxai/nlux/actions/workflows/run-all-tests.yml/badge.svg" /></a>
<br />
<a href="https://www.npmjs.com/package/@nlux/react"><img alt="npm @nlux/react" src="https://img.shields.io/badge/NPM-@nlux/react-dbda6a" /></a>
<a href="https://www.npmjs.com/package/@nlux/core"><img alt="npm @nlux/core" src="https://img.shields.io/badge/NPM-@nlux/core-dbda6a" /></a>
</p>
<p align="center">
<a href="https://nlux.dev">Docs Website</a> | <a href="https://discord.gg/SRwDmZghNB">Discord Community</a> | <a href="https://twitter.com/nluxai">X</a>
</p>
<p align="center">
Do you like this project ? Please star the repo to show your support 🌟 🧡
<br />
Building with <code>NLUX</code> ? <a href="https://calendly.com/nlkit/intro">Get in touch</a> — We'd love to hear from you.
</p>
------
`NLUX` (_for Natural Language User Experience_) is an open-source JavaScript and React JS library that makes it super
simple to integrate powerful large language models (LLMs) like ChatGPT into your web app or website. With just a few
lines of code, you can add conversational AI capabilities and interact with your favourite LLM.
[](https://nlux.dev)
## Key Features 🌟
* **Build AI Chat Interfaces In Minutes** ― High quality conversational AI interfaces with just a few lines of code.
* **React Components & Hooks** ― `<AiChat />` for UI and `useChatAdapter` hook for easy integration.
* **LLM Adapters** ― For `ChatGPT` ― `LangChain` 🦜 `LangServe` APIs ― `Hugging Face` 🤗 Inference.
* A flexible interface to **Create Your Own Adapter** 🎯 for any LLM ― with support for stream or fetch modes.
* **Bot and User Personas** ― Customize the bot and user personas with names, images, and descriptions.
* **Streaming LLM Output** ― Stream the chat response to the UI as it's being generated.
* **Custom Renderers** ― Render AI messages with custom components inside the chat interface.
* **Highly Customizable** ― Tune almost every UI aspect through theming, layout options, and more.
* **Zero Dependencies** ― Lightweight codebase ― Core with zero dependency and no external UI libraries.
## Repo Content 📦
This GitHub repository contains the source code for the `NLUX` library.<br />
It is a monorepo that contains code for following NPM packages:
⚛️ **React JS Packages:**
* [`@nlux/react`](https://www.npmjs.com/package/@nlux/react) ― React JS components for `NLUX`.
* [`@nlux/langchain-react`](https://www.npmjs.com/package/@nlux/langchain-react) ― React hooks and adapter for APIs
created using LangChain's LangServe library.
* [`@nlux/openai-react`](https://www.npmjs.com/package/@nlux/openai-react) ― React hooks for the OpenAI API, for testing
and development.
* [`@nlux/hf-react`](https://www.npmjs.com/package/@nlux/hf-react) ― React hooks and pre-processors for the Hugging Face
Inference API
* [`@nlux/nlbridge-react`](https://www.npmjs.com/package/@nlux/nlbridge-react) ― Integration with `nlbridge`, the
Express.js LLM middleware by the NLUX team.
🟨 **Vanilla JS Packages:**
* [`@nlux/core`](https://www.npmjs.com/package/@nlux/core) ― The core Vanilla JS library to use with any web framework.
* [`@nlux/langchain`](https://www.npmjs.com/package/@nlux/langchain) ― Adapter for APIs created using LangChain's
LangServe library.
* [`@nlux/openai`](https://www.npmjs.com/package/@nlux/openai) ― Adapter for the OpenAI API, for testing and
development.
* [`@nlux/hf`](https://www.npmjs.com/package/@nlux/hf) ― Adapter and pre-processors for the Hugging Face Inference API.
* [`@nlux/nlbridge`](https://www.npmjs.com/package/@nlux/nlbridge) ― Integration with `nlbridge`, the Express.js LLM
middleware by the NLUX team.
🎁 **Themes & Extensions:**
* [`@nlux/themes`](https://www.npmjs.com/package/@nlux/themes) ― The default `Luna` theme and CSS styles.
* [`@nlux/markdown`](https://www.npmjs.com/package/@nlux/markdown) ― Markdown stream parser to render
markdown as it's being generated.
* [`@nlux/highlighter`](https://www.npmjs.com/package/@nlux/highlighter) ― Syntax highlighter based on
[Highlight.js](https://highlightjs.org/).
Please visit each package's NPM page for information on how to use it.
## Docs & Examples 🤩
For stable `v1.x` — Developer documentation, examples, and API references are available at:
[nlux.dev](https://nlux.dev/)
For `v2.x-beta` — The docs website is being built and will be available at:
[docs.nlkit.com](https://docs.nlkit.com/)
For `v2.x-beta`, please refer to TS type definitions, [specs](https://github.com/nluxai/nlux/tree/latest/specs), and source code if
as the documentation is incomplete and still being written.
## Design Principles ⚜️
The following design principles guide the development of `NLUX`:
* **Intuitive** ― Interactions enabled by `NLUX` should be intuitive.
Usage should unfold naturally without obstacles or friction. No teaching or thinking
should be required to use UI built with `NLUX`.
* **Performance** ― `NLUX` should be as fast as possible. Fast to load, fast to render
and update, fast to respond to user input. To achieve that, we should avoid unnecessary
work, optimize for performance, minimize bundle size, and not depend on external libraries.
* **Accessibility** ― UI built with `NLUX` should be accessible to everyone. It should be usable
by people with disabilities, on various devices, in various environments, and using various
input methods (keyboard, touch, voice).
* **DX** ― `NLUX` recognizes developers as first-class citizens. The library should enable an
optimal DX (developer experience). It should be effortless to use, easy to understand, and
simple to extend. Stellar documentation should be provided. The feature roadmap should evolve
aligning to developer needs voiced.
## Mission 👨🚀
Our mission is **to enable developers to build outstanding LLM front-ends and applications**,
cross platforms, with a focus on performance and usability.
## Community & Support 🙏
* **Star The Repo** 🌟 ― If you like `NLUX`, please star the repo to show your support.
Your support is what keeps this open-source project going 🧡
* [GitHub Discussions](https://github.com/nluxai/nlux/discussions) ― Ask questions, report issues, and share your
ideas with the community.
* [Discord Community](https://discord.gg/SRwDmZghNB) ― Join our Discord server to chat with the community and get
support.
* [nlux.dev](https://nlux.dev/) Developer Website ― Examples, learning resources, and API reference.
## License 📃
`NLUX` is licensed under Mozilla Public License Version 2.0 with restriction to use as
part of a training dataset to develop or improve AI models, or as an input for code
translation tools.
> Paragraphs (3.6) and (3.7) were added to the original MPL 2.0 license.
> The full license text can be found in the [LICENSE](LICENSE) file.
**In a nutshell:**
* You can use `NLUX` in your personal projects.
* You can use `NLUX` in your commercial projects.
* You can modify `NLUX` and publish your changes under the same license.
* You cannot use `NLUX`'s source code as dataset to train AI models, nor with code translation tools.
Wondering what it means to use software licensed under MPL 2.0? Learn more
on [MPL 2.0 FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/).
Please read the full license text in the [LICENSE](LICENSE) file for details.
## About The Developer 👨💻
`NLUX` is a new open-source project that's being led by [Salmen Hichri](https://github.com/salmenus), a senior front-end
engineer with over a decade of experience building user interfaces and developer
tools at companies like Amazon and Goldman Sachs, and contributions to open-source projects.
| The 𝗣𝗼𝘄𝗲𝗿𝗳𝘂𝗹 Conversational AI JavaScript Library | artificial-intelligence,chatbot,chatgpt,huggingface,javascript,large-language-models,llm,openai,reactjs | 2023-10-29T05:37:42Z | 2024-05-23T10:10:53Z | null | 4 | 8 | 496 | 10 | 25 | 454 | null | NOASSERTION | TypeScript |
lllllllillllllillll/DweebUI | main | # DweebUI
DweebUI is a web interface for managing Docker, with a zero-config dashboard for controlling and monitoring your containers.
Alpha v0.40 ( :fire: Experimental :fire: )
[:warning: DweebUI is a management interface and should not be directly exposed to the internet :warning:](https://github.com/lllllllillllllillll/DweebUI/wiki/Exposing-DweebUI-to-the-Internet)
[](https://github.com/lllllllillllllillll)
[](https://github.com/lllllllillllllillll)
[](https://hub.docker.com/repository/docker/lllllllillllllillll/dweebui)
[](https://github.com/lllllllillllllillll/DweebUI/blob/main/LICENSE)
[](https://www.buymeacoffee.com/lllllllillllllillll)
* This is a personal project I started to get more familiar with Javascript and Node.js.
* Some UI elements are placeholders and every version may have breaking changes.
* Please post issues and discussions so I know what bugs and features to focus on.
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/dashboard1.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/dashboard1.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/dashboard2.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/dashboard2.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/apps.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/apps.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/images.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/images.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/register.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/register.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/login.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/login.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/syslogs.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/syslogs.png" width="25%"/></a>
<a href="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/volumes.png"><img src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI/main/screenshots/volumes.png" width="25%"/></a>
## Features
* [x] Dashboard provides server metrics, container metrics, and container controls, on a single page.
* [x] View container logs.
* [ ] Update containers (planned).
* [x] Manage your Docker networks, images, and volumes.
* [x] Light/Dark Mode.
* [x] Mobile Friendly.
* [x] Easy to install app templates.
* [x] Multi-User built-in.
* [ ] Permissions system (in development).
* [x] Support for Windows, Linux, and MacOS.
* [ ] Docker compose import (in development).
* [x] Templates.json maintains compatability with Portainer, allowing you to use the template without needing to use DweebUI.
* [x] Automatically persists data in docker volumes if bind mount isn't used.
* [ ] Preset variables (planned).
* [ ] Themes (planned).
## Setup
Docker Compose:
```
version: "3.9"
services:
dweebui:
container_name: dweebui
image: lllllllillllllillll/dweebui:v0.40
environment:
PORT: 8000
SECRET: MrWiskers
restart: unless-stopped
ports:
- 8000:8000
volumes:
- dweebui:/app
# Docker socket
- /var/run/docker.sock:/var/run/docker.sock
# Podman socket
#- /run/podman/podman.sock:/var/run/docker.sock
networks:
- dweebui_net
volumes:
dweebui:
networks:
dweebui_net:
driver: bridge
```
Compose setup:
* Paste the above content into a file named ```docker-compose.yml``` then place it in a folder named ```dweebui```.
* Open a terminal in the ```dweebui``` folder, then enter ```docker compose up -d```.
* You may need to use ```docker-compose up -d``` or execute the command as root with either ```sudo docker compose up -d``` or ```sudo docker-compose up -d```.
## Credits
* Dockerode and dockerode-compose by Apocas: https://github.com/apocas/dockerode
* UI was built using HTML and CSS elements from https://tabler.io/
* Apps template based on Portainer template provided by Lissy93: https://github.com/Lissy93/portainer-templates
* Icons from Walkxcode with some renames and additions: https://github.com/walkxcode/dashboard-icons
## Supporters
* MM (Patreon)
* PD (Buymeacoffee) | DweebUI is a web interface for managing Docker, with a zero-config dashboard for your containers. | docker,docker-compose,javascript,nodejs,portainer,express,css,ejs,html,linux | 2023-10-15T21:55:00Z | 2024-02-26T23:59:24Z | 2024-02-26T23:59:24Z | 3 | 54 | 240 | 2 | 5 | 267 | null | MIT | JavaScript |
williamtroup/Syntax.js | main | <h1 align="center">
Syntax.js
[](https://twitter.com/intent/tweet?text=Syntax.js%2C%20a%20free%20JavaScript%20syntax%20highlighter&url=https://github.com/williamtroup/Syntax.js&hashtags=javascript,syntax,highlighter)
[](https://www.npmjs.com/package/jsyntax.js)
[](https://www.nuget.org/packages/jSyntax.js/)
[](https://github.com/williamtroup/Syntax.js/blob/main/LICENSE.txt)
[](https://github.com/williamtroup/Syntax.js/discussions)
[](https://www.william-troup.com/)
</h1>
> <p align="center">A lightweight, and easy-to-use, JavaScript library for code syntax highlighting!</p>
> <p align="center">v2.5.0</p>
<br />



<br>
<br>
<h1>What features does Syntax.js have?</h1>
- Zero-dependencies and extremely lightweight!
- Highlights keywords, values, strings, and comments.
- Full API available via public functions.
- Fully styled in CSS/SASS (including the buttons) and compatible with the Bootstrap library.
- Full CSS theme support (using :root variables, with a default dark-mode theme).
- Coping and Printing support is available via action buttons.
- Custom triggers for actions (when elements are rendered, keywords are clicked, etc).
- 27 of the most popular languages built in by default (with public function support to add more).
- Language aliases.
- Custom action buttons (via a binding attribute), with opening/closing support.
- Unknown language support (renders the display, but does not highlight any syntax).
- Tabbing (allows multiple languages to be shown in one tabbed container, which is great for code examples).
<br />
<br />
<h1>Where can I find the documentation?</h1>
All the documentation can be found [here](https://www.william-troup.com/syntax-js/documentation/index.html):
<br>
<br>
<h1>What browsers are supported?</h1>
All modern browsers (such as Google Chrome, FireFox, and Opera) are fully supported.
<br>
<br>
<h1>What are the most recent changes?</h1>
To see a list of all the most recent changes, click [here](https://www.william-troup.com/syntax-js/documentation/recent-changes.html).
<br>
<br>
<h1>What languages are supported by default?</h1>
- `bash` Bash
- `c-plus-plus` C++
- `c-sharp` C#
- `c` C
- `css` CSS
- `dart` Dart
- `delphi` Delphi
- `f-sharp` F#
- `go` GO
- `html` HTML
- `java` Java
- `javascript` JavaScript
- `kotlin` Kotlin
- `lua` Lua
- `matlab` Matlab
- `ms-sql` Microsoft SQL
- `perl` Perl
- `php` PHP
- `powershell` Powershell
- `python` Python
- `r` R
- `ruby` Ruby
- `rust` Rust
- `scala` Scala
- `swift` Swift
- `typescript` TypeScript
- `visual-basic` Visual Basic
<br>
<br>
<h1>How do I install Syntax.js?</h1>
You can install the library with npm into your local modules directory using the following command:
```markdown
npm install jsyntax.js
```
Or, you can download the latest zipped up version [here](https://www.william-troup.com/syntax-js/download.html).
<br>
<br>
<h1>How do I get started?</h1>
To get started using Syntax.js, do the following steps:
<br>
<br>
### 1. Prerequisites:
Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows:
```markdown
<!DOCTYPE html>
```
<br>
### 2. Include Files:
```markdown
<link rel="stylesheet" href="dist/syntax.js.css">
<script src="dist/syntax.js"></script>
<script src="dist/languages/syntax.javascript.js"></script>
<script src="dist/languages/syntax.html.js"></script>
```
<br>
### 3. DOM Element Binding:
```markdown
<div data-syntax-language="javascript">
var something = true;
if ( something ) {
console.log( "Output is written." ); // Comment
/* Multi-line
comment */
}
</div>
<code data-syntax-language="javascript" data-syntax-options="{ 'showCopyButton': false }" data-syntax-buttons="[ { 'text': 'Button 1', 'onClick': yourJsFunction } ]">
<pre>
var something = true;
if ( something ) {
console.log( "Output is written." ); // Comment
/* Multi-line
comment */
}
</pre>
</code>
<code data-syntax-language="tabbed">
<div data-syntax-language="javascript" data-syntax-tab-contents="true">
<pre>
var something = true;
if ( something ) {
console.log( "Output is written." ); // Comment
/* Multi-line
comment */
}
</pre>
</div>
<div data-syntax-language="html" data-syntax-tab-contents="{ 'title': 'HTML Language' }">
<pre>
<div class="header">
<!--This is a comment.-->
<h1 id="header">Syntax.js - Basic</h1>
<p>This is a basic example of how to use Syntax.js to highlight code inside a DOM element.</p>
<!--This is a
multi-line comment.-->
</div>
</pre>
</div>
</code>
```
To see a list of all the available binding languages you can use for "data-syntax-language", click [here](docs/binding/language/LANGUAGE.md).
To see a list of all the available binding options you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options.html).
To see a list of all the available custom triggers you can use for "data-syntax-options", click [here](https://www.william-troup.com/syntax-js/documentation/binding-options-custom-triggers.html).
To see a list of all the available binding options you can use for "data-syntax-buttons", click [here](https://www.william-troup.com/syntax-js/documentation/buttons.html).
To see a list of all the available binding options you can use for "data-syntax-tab-contents", click [here](https://www.william-troup.com/syntax-js/documentation/tabs.html).
<br>
### 4. Finishing Up:
That's it! Nice and simple. Please refer to the code if you need more help (fully documented).
<br>
<br>
<h1>How do I go about customizing Syntax.js?</h1>
To customize, and get more out of Syntax.js, please read through the following documentation.
<br>
<br>
### 1. Public Functions:
To see a list of all the public functions available, click [here](https://www.william-troup.com/syntax-js/documentation/public-functions.html).
<br>
<br>
### 2. Configuration:
Configuration options allow you to customize how Syntax.js will function. You can set them as follows:
```markdown
<script>
$syntax.setConfiguration( {
safeMode: false
} );
</script>
```
To see a list of all the available configuration options you can use, click [here](https://www.william-troup.com/syntax-js/documentation/options.html).
To see a list of all the available configuration options custom triggers you can use, click [here](https://www.william-troup.com/syntax-js/documentation/custom-triggers.html). | 💻 A lightweight, and easy-to-use, JavaScript library for code syntax highlighting! | javascript,syntax-highlighting,code,code-highlighter,css,highlight,html5 | 2023-10-28T13:06:09Z | 2024-03-29T12:15:10Z | 2024-03-29T12:15:10Z | 1 | 42 | 405 | 0 | 4 | 192 | null | MIT | JavaScript |
Dominux/Pentaract | main | 
[<img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/Dominux/Pentaract/docker-image.yml?style=plastic&logo=github">](https://github.com/Dominux/Pentaract/actions)
[<img alt="Dockerhub latest" src="https://img.shields.io/badge/dockerhub-latest-blue?logo=docker&style=plastic">](https://hub.docker.com/r/thedominux/pentaract)
[<img alt="Docker Image Size (tag)" src="https://img.shields.io/docker/image-size/thedominux/pentaract/latest?style=plastic&logo=docker&color=gold">](https://hub.docker.com/r/thedominux/pentaract/tags?page=1&name=latest)
[<img alt="Any platform" src="https://img.shields.io/badge/platform-any-green?style=plastic&logo=linux&logoColor=white">](https://github.com/Dominux/Pentaract)
_Cloud storage system based on using Telegram as a storage so it doesn't use your server filesystem or any other paid cloud storage system underneath the hood._
https://github.com/Dominux/Pentaract/assets/55978340/b62305a7-cae3-4e1c-a509-38e415392dcf
Pentaract is aimed to take as small disk space as possible. So it does not need any code interpreter/platform to run. The whole app is just several megabytes in size. It also uses Postgres as a database and we try our best to economy space by not creating unneeded fields and tables and to wisely pick proper datatypes.
The platform itself can be used differently, like as a personal (on your own server or a local machine) platform or a platform for many users with multiple storages and so on. Since it provides Rest API, you can also use it as a file system in your backend like [NextCloud](https://nextcloud.com/) or [AWS S3](https://aws.amazon.com/s3/) or S3 compatable services (like [MinIO](https://min.io/)), but for now it's so early so I don't recommend to use it in production ready apps.
# Installation
This project is aimed on running the app in container, so the primary way to run it is via [Docker](https://www.docker.com/). If you don't have it installed or simply don't want to run the app via Docker, you can build it from source.
> NOTE: Pentaract uses [Postgres](https://www.postgresql.org/) as a database. So if you are going to run it from source or run the Pentaract image only, you will need to have a Postgres instance running and available in your network so you will connect your Pentaract app to it
<details>
<summary>Docker Compose with pre-built image <i>(recommended)</i></summary>
The simplest way to run and manage the app
1. Create new directory for the app files and name it however you wish:
```sh
mkdir pentaract
```
2. Go to it and place `docker-compose.yml` file like this one:
```yaml
version: "3.9"
volumes:
pentaract-db-volume:
name: pentaract-db-volume
services:
pentaract:
container_name: pentaract
image: thedominux/pentaract
env_file:
- .env
ports:
- ${PORT}:8000
restart: unless-stopped
depends_on:
- db
db:
container_name: pentaract_db
image: postgres:15.0-alpine
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
restart: unless-stopped
volumes:
- pentaract-db-volume:/var/lib/postgresql/data
```
And `.env` file like the next one. **Don't forget to set your superuser email, password and secret key**:
```env
PORT=8000
WORKERS=4
CHANNEL_CAPACITY=32
SUPERUSER_EMAIL=<YOUR-EMAIL>
SUPERUSER_PASS=<YOUR-PASSWORD>
ACCESS_TOKEN_EXPIRE_IN_SECS=1800
REFRESH_TOKEN_EXPIRE_IN_DAYS=14
SECRET_KEY=<YOUR-SECRET-KEY>
TELEGRAM_API_BASE_URL=https://api.telegram.org
DATABASE_USER=pentaract
DATABASE_PASSWORD=pentaract
DATABASE_NAME=pentaract
DATABASE_HOST=db
DATABASE_PORT=5432
```
Secret key can be set by your hand, but I strongly recommend to use long randomly generated sequences. So you either can generate it via some free websites that provide such funcionallity or by running something like this in the terminal:
```sh
openssl rand -hex 32
```
3. For now everything is set up so we can run our app:
```sh
docker compose up -d
```
To check if everything works fine you can go to http://localhost:8000 or to `http://<YOUR-PUBLIC-IP>:8000` if you run it on a server.
If there are troubles, you can check the logs, there may be some errors:
```sh
docker logs -f pentaract
```
</details>
<details>
<summary>Docker Compose from source</summary>
Kind of simple way, but it's aimed to use it during development process
1. Clone the repository and go inside the newly created directory:
```sh
git clone git@github.com:Dominux/Pentaract.git
```
2. Copy `.env.example` to `.env`:
```sh
cp ./.env.example ./.env
```
and edit it like you wish.
3. For now everything is set up so we can run our app:
```sh
make up
```
To check if everything works fine you can go to http://localhost:8000 or to `http://<YOUR-PUBLIC-IP>:8000` if you run it on a server.
If there are troubles, you can check the logs, there may be some errors:
```sh
docker logs -f pentaract
```
</details>
<details>
<summary>Docker with pre-built image</summary>
**TODO**
</details>
<details>
<summary>From source</summary>
The most complex way to run the app.
Requires the next stuff to be installed:
- [Cargo](https://github.com/rust-lang/cargo)
- [Node.js](https://nodejs.org/en)
- [pnpm](https://pnpm.io/)
- [Postgres](https://www.postgresql.org/)
1. Create a directory to place all the app files wherever in your system:
```sh
mkdir ~/pentaract
```
2. Clone the repository and go inside the newly created directory:
```sh
git clone git@github.com:Dominux/Pentaract.git
```
3. Go to the `./pentaract` directory and build server side app:
```sh
cd ./pentaract
cargo build --release
```
and copy the target to the app directory (or create a soft link via `ln -s`, does not matter):
```sh
cp ./target/release/pentaract ~/pentaract/pentaract
```
4. Go to the `../ui` and build the UI side of the app:
```sh
cd ../ui
pnpm run build
```
and copy built files into the app directory:
```sh
cp ./dist/* ~/pentaract/ui/
```
5. Now go to the app directory:
```sh
cd ~/pentaract
```
6. Make sure that you have Postgres database ran in your system (or available from network)
7. Set all needed environment variables. You can check them in the [.env.example file](https://github.com/Dominux/Pentaract/blob/main/.env.example). **Don't forget to set right Postgres credentials, host and port**:
```sh
export PORT=8000
export WORKERS=4
# ...
```
8. Finally run the app:
```sh
./pentaract
```
To check if everything works fine you can go to http://localhost:8000 or to `http://<YOUR-PUBLIC-IP>:8000` if you run it on a server.
</details>
<br/>
It's also recommended to use a HTTP reverse-proxy, like [Nginx](https://www.nginx.com/) or [Traefik](https://traefik.io/traefik/) if you use containarized version of the app and don't wanna work with Nginx and certbot.
# Usage
The platform is tied to the "storages" concept. Every storage is a separated files system, like different volumes on your drive. It provides funcionallity to work with a file system like it's Google Drive: you can create files and folders, download files, see files and folders info and delete them on your wish.
In our case every storage has its own Telegram channel, where it will store all the data.
The platform also uses "storage workers". It is telegram bots that are used to upload and download files from the telegram API
## Telegram API limitations
Telegram has its policy to limit some access to their platform. For us the main limitations are:
- Requests per a period for one bot (RPM)
- File size
Pentaract has ways to workaround them:
### RPM
To workaround RPM users can create additional storage workers. For now one user can create up to 20 bots. You can also create additional accounts to create extra bots or ask your nearest for example to do so. This way from up to Telegram limitations it becomes up to you on how fast you can upload/download in Pentaract storage.
I should notice that current RPM (20 requests per minute) is completely fine to work with a single storage worker if you need the storage to be your own and don't need to upload/download big files fast.
### File size
Currently Telegram API limits file download to 20 MB, hence we can't upload files more than that limit too.
Pentaract divides uploaded files into chunks and save them to Telegram separately and on downloading a file it fetches all the file chunks from the Telegram API and combine them into one in the order it was divided in. That grants ability to upload and download files with almost unlimited size (it's like you've ever downloaded a file with size >10 GB).
## Current in storage features
- [x] Upload file
- [x] Download file
- [x] Create folder
- [x] Get file/folder info
- [x] Delete file/folder
## Access
You can manage access to your storages by granting access to other users. For now, there are 3 possible roles:
- Viewer
- Can edit
- Admin
So you can grant access, change it or restrict (delete access) for other users.
# Future plans
Cloud storage system has a huge variety of possible ways to develop in. Like it can be a file hosting service, a cloud object storage, a cloud drive or anything else or everything in one place. And I personally don't have idea right now where to move and what users need so I'd like to know what features you would like this app to provide.
# Contributing
Is highly welcoming! Create issues or take existing ones and create PRs!
| Unlimited file cloud storage based on using Telegram API | asynchronous,axum,cloud,docker,filesystem,javascript,rust,solidjs,spa,tokio | 2023-10-18T19:39:21Z | 2023-12-21T13:51:23Z | null | 1 | 1 | 111 | 6 | 9 | 150 | null | MIT | Rust |
krishnaacharyaa/wanderlust | main | <div>
<h1>Wanderlust</h1>
<h2>The Ultimate Travel Blog 🌍✈ for You </h2>
</div>

<hr>
<div>
<h2>🔗 Important Links</h2>
</div>
<table border="1">
<tr>
<td><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/5ca6c472-5c73-41b2-a2df-389cc3e14881.png" alt="Discord Logo" width="50"></td>
<td><a href="https://discord.gg/FEKasAdCrG"> Join our project's Discord Channel here </a></td>
</tr>
<tr>
<td><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/ffda08c0-3c7a-46b0-b7ac-6bc374184ec7.png" alt="Figma Logo" width="50"></td>
<td><a href="https://www.figma.com/file/zqNcWGGKBo5Q2TwwVgR6G5/WanderLust--A-Travel-Blog-App?type=design&node-id=0%3A1&mode=design&t=c4oCG8N1Fjf7pxTt-1"> Find our project's Figma links here</a></td>
</tr>
<tr>
<td><img src="https://github.com/krishnaacharyaa/wanderlust/assets/133582566/47d71dd6-0390-479e-9d4e-3f077ef1a987.png" alt="YouTube Logo" width="50"></td>
<td><a href="https://youtu.be/ANfC1u_N_A0?feature=shared"> Find our Collaboration Video with TechwithShubham here </a></td>
</tr>
</table>
<hr>
<div>
<h2><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/4a07b161-b8d6-4803-804a-3b0db699023e" width="35" height="35"> Goal of this project </h2>
</div>
At its core, this project embodies two important aims:
1. **Start Your Open Source Journey**: It's aimed to kickstart your open-source journey. Here, you'll learn the basics of Git and get a solid grip on the MERN stack and I strongly believe that learning and building should go hand in hand.
2. **React Mastery**: Once you've got the basics down, a whole new adventure begins of mastering React. This project covers everything, from simple form validation to advanced performance enhancements. And I've planned much more cool stuff to add in the near future if the project hits more number of contributors.
_We want you to get the most out of this project—it's all about learning, contributing, and growing in the open-source community._
<hr>
<div>
<h2><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/1ee5934a-27be-4502-a7bf-e6a8c78fe5a3" width="35" height="35"> Features</h2>
</div>
- **Featured Posts :** Highlight top travel stories and destinations on the homepage to showcase the best content and inspire readers with exciting travel experiences.
- **User-Friendly Interface:** Navigate effortlessly through captivating travel content with our intuitive design.
- **Discover By topic categories:** **Discover by Topic Categories**: Explore diverse travel experiences categorized by travel, nature, city, Adventure and Beaches..
<hr>
<div>
<h2><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/90f3930e-5a12-4a4e-8ac9-0dc7d5396adb" width="35" height="35"> Ready to Contribute?</h2>
</div>
Kindly go through [CONTRIBUTING.md](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md) to understand everything from setup to contributing guidelines.
If you would like to contribute to the project, please follow our contribution guidelines.
<hr>
<!-- Open Source Programs -->
<div>
<h2><img src="https://github.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/blob/master/Emojis/Hand%20gestures/Flexed%20Biceps.png?raw=true" width="35" height="35" > Open Source Programs</h2>
</div>
<table border="1" cellpadding="10">
<tr>
<td rowspan="2">
<img src="https://github.com/Meetjain1/wanderlust/assets/133582566/21b2bc42-bdd5-487a-a083-1b262c2f6d9b" alt="GSSOC Logo" width="100" height="55">
</td>
<td>
<strong>GSSOC 2024</strong>
</td>
</tr>
<tr>
<td>
This project is part of GirlScript Summer of Code. We warmly welcome contributions from the community to help elevate Wanderlust.
</td>
</tr>
</table>
<hr>
<!-- Code of conduct -->
<div>
<h2><img src = "https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Hand%20gestures/Handshake.png" width="35" height="35"> Code of Conduct</h2>
</div>
Please note that this project is released with a [Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
<hr>
<!-- License -->
<div>
<h2><img src = "https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Objects/Page%20with%20Curl.png" width="35" height="35"> License</h2>
</div>
This project is licensed under the [MIT License](./LICENSE).
<hr>
<div>
<h2><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/af38ec84-7387-4af7-af85-8f408a4654e9" width="35" height="35"> Show Your Support</h2>
</div>
If you find this project interesting and inspiring, please consider showing your support by starring it on GitHub! Your star goes a long way in helping me reach more developers and encourages me to keep enhancing the project.
Feel free to get in touch with me for any further queries or support, happy to help :)
<hr>
<!-- Cotributors -->
<div>
<h2><img src="https://github.com/Meetjain1/wanderlust/assets/133582566/20610b38-b287-4bf0-8f28-932b9c76163d" width="40" height="40"> Contributors</h2>
</div>
We extend our heartfelt gratitude for your invaluable contribution to our project! Your efforts play a pivotal role in elevating Wanderlust to greater heights. 😊
<div>
<a href="https://github.com/krishnaacharyaa/wanderlust/graphs/contributors">
<img width="90%" src="https://contrib.rocks/image?repo=krishnaacharyaa/wanderlust" />
</a>
</div>
| WanderLust is a MERN travel blog website 🚀 This project is aimed to help people to contribute in open source, upskill in react and master git. | blog,javascript,mern,mern-stack,react,reactjs,tailwind-css,typescript,webapp,hacktoberfest | 2023-10-18T15:12:21Z | 2024-05-23T11:19:49Z | null | 32 | 207 | 416 | 39 | 609 | 146 | null | MIT | TypeScript |
cloudflare/serverless-registry | main | # Docker Registry in Workers
This repository contains a docker registry implementation in Workers that uses R2.
It supports all pushing and pulling workflows. It also supports
Username/Password and public key JWT based authentication.
### Deployment
You have to install all the dependencies with your favorite package manager (e.g pnpm, npm, yarn, bun...).
```bash
$ npm install
```
After installation, there is a few steps to actually deploy the registry into production:
1. Setup the R2 Bucket for this registry
```bash
$ wrangler --env production r2 bucket create r2-registry
```
Add this to your `wrangler.toml`
```
r2_buckets = [
{ binding = "REGISTRY", bucket_name = "r2-registry"}
]
```
2. Deploy your image registry
```bash
$ wrangler deploy --env production
```
Your registry should be up and running. It will refuse any requests if you don't setup credentials.
### Adding username password based authentication
Set the USERNAME and PASSWORD as secrets with `wrangler secret put USERNAME --env production` and `wrangler secret put PASSWORD --env production`.
### Adding JWT authentication with public key
You can add a base64 encoded JWT public key to verify passwords (or token) that are signed by the private key.
`wrangler secret put JWT_REGISTRY_TOKENS_PUBLIC_KEY --env production`
### Known limitations
Right now there is some limitations with this docker registry.
- Pushing with docker is limited to images that have layers of maximum size 500MB. Refer to maximum request body sizes in your Workers plan.
- To circumvent that limitation, you can manually add the layer and the manifest into the R2 bucket or use a client that is able to chunk uploads in sizes less than 500MB (or the limit that you have in your Workers plan).
- If you use `wrangler dev` and push to the R2 registry with docker, the R2 registry will have to buffer the request on the Worker.
## License
The project is licensed under the [Apache License](https://opensource.org/licenses/apache-2.0/).
### Contribution
See `CONTRIBUTING.md` for contributing to the project.
| A Docker registry backed by Workers and R2. | artifacts,cloudflare,docker,docker-registry,javascript,r2,registry,typescript,workers | 2023-10-31T14:12:24Z | 2024-05-21T15:56:34Z | null | 54 | 26 | 35 | 1 | 10 | 134 | null | Apache-2.0 | TypeScript |
dmmulroy/create-melange-app | develop | <p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/dmmulroy/create-melange-app/assets/2755722/4270abef-9754-4d4f-9e33-3a9a53bec0ec">
<img src="https://github.com/dmmulroy/create-melange-app/assets/2755722/4270abef-9754-4d4f-9e33-3a9a53bec0ec" width="400" alt="create-melange-app">
</picture>
</p>
<h1 align="center">
✨create-melange-app✨
</h1>
<p align="center">
The fastest, friendliest, and most delightful way to get started with OCaml, ReasonML, and Melange, geared towards JavaScript and TypeScript developers
</p>
<p align="center">
Get started by running <code>npm create melange-app@latest</code>
</p>
<div align="center">
[![PRs-Welcome][contribute-image]][contribute-url]
[](https://discord.gg/fNvVdsUWHE)
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]
</div>
## Table of contents
- <a href="#about">What Is create-melange-app?</a>
- <a href="#getting-started">Getting Started</a>
- <a href="#community">Community, Help, & Resources</a>
- <a href="#contributors">Contributors 🫶</a>
- <a href="#special-thanks">Special Thanks</a>
<h2 id="about">What Is create-melange-app?</h2>
<div>
<p><code>create-melange-app</code> is an opinionated CLI tool for quickly getting
started with <a href="https://melange.re" target="_blank">Melange</a>, a
compiler for compiling <a href="https://ocaml.org" target="_blank">OCaml</a>
and <a href="https://reasonml.github.io" target="_blank">ReasonML</a> to
JavaScript. It is geared at feeling familiar for developers coming from a
JavaScript or TypeScript background and focused on enabling them to be
productive as quickly as possible.</p>
<p>If you want to learn more about OCaml, ReasonML, and Melange,
check out
<a href="https://github.com/dmmulroy" target="_blank">Dillon Mulroy's</a>
conference talk on Melange and how it can be a more type safe solution for your
apps than TypeScript.</p>
<div align="center">
<a href="[http://www.youtube.com/watch?v=zG7JejHlQoM](https://www.youtube.com/watch?v=zG7JejHlQoM)" target="_blank">
<p align="center">
<a href="https://www.youtube.com/watch?v=zG7JejHlQoM" ><img src="https://github.com/dmmulroy/create-melange-app/assets/2755722/e0926aed-011e-4a82-95bc-cea37703c4b1" alt="'Melange: The next frontier in type-safe web development' by Dillon Mulroy - RVAJS 2023" width="500" />
</p></a>
</a>
<a href="https://www.youtube.com/watch?v=zG7JejHlQoM" target="_blank">
<p align="center">Watch on Youtube here</p>
</a>
</div>
</div>
<h2 id="getting-started">Getting Started</h2>
To scaffold an app using `create-melange-app`, run any of the following commands
and answer the command prompt questions:
### npm
```bash
npm create melange-app@latest
```
<!-- ### yarn
```bash
yarn create melange-app
``` -->
### pnpm
```bash
pnpm create melange-app@latest
```
### bun
```bash
bun create melange-app@latest
```
<h2 id="community">Community, Help, & Resources</h2>
- [The Caravan Discord Server](https://discord.gg/fNvVdsUWHE) - This is where
the maintainers of `create-melange-app` hang out!
- [OCaml's official site](https://ocam.org)
- [ReasonML's official site](https://reasonml.github.io/)
- [Melange Docs](https://melange.re)
- [OCaml Discuss Forums](https://discuss.ocaml.org/)
- [OCaml Discord Server](https://discord.gg/Qpzjmc4t)
- [ReasonML Discord Server](https://discord.gg/jPEH58TU)
<h2 id="contributors">Contributors</h2>
We 🫶 contributors! Feel free to contribute to this project. We want
`create-melange-app` to be a project where developers new to OCaml & ReasonML
can learn and contribute meaningfully. A contributing guide and roadmap will
be coming soon! In the mean time, please check in at
[The Caravan Discord](https://discord.gg/fNvVdsUWHE) for
help getting started working on `create-melange-app`.
<div align="center">
<a href="https://github.com/dmmulroy/create-melange-app/graphs/contributors">
<img src="https://contrib.rocks/image?repo=dmmulroy/create-melange-app" />
</a>
</br>
Made with <a href="http://contrib.rocks">contrib.rocks</a>
</div>
<h2 id="special-thanks">Special Thanks</h2>
<p>I (Dillon) wanted to give special thanks to a few folks and groups.</p>
1. Everyone who has supported me while coding `create-melange-app` on [twitch](https://twitch.tv/dmmulroy).
2. The Melange core team for always being superbly helpful and building an amazing tool.
3. All the contributors to [create-t3-app](https://github.com/t3-oss/create-t3-app/tree/main). Your work and code has been a huge inspiration to me.
[downloads-image]: https://img.shields.io/npm/dm/create-melange-app?color=209fb5&logoColor=364fc7
[npm-url]: https://www.npmjs.com/package/create-melange-app
[npm-image]: https://img.shields.io/npm/v/create-melange-app?color=e64553&logoColor=0b7285
[contribute-url]: https://github.com/dmmulroy/create-melange-app/blob/main/CONTRIBUTING.md
[contribute-image]: https://img.shields.io/badge/PRs-welcome-blue.svg
| The fastest, friendliest, and most delightful way to get started with OCaml, ReasonML, and Melange, geared towards JavaScript and TypeScript developers | functional-programming,javascript,ocaml,reasonml,typescript | 2023-11-04T04:33:24Z | 2024-03-21T11:53:21Z | 2024-03-21T16:35:49Z | 10 | 28 | 141 | 24 | 17 | 100 | null | null | OCaml |
midoxnet/mapperplus | main | # Mapperplus - An advanced source map extractor based on headless browser.

- MapperPlus facilitates the validation and retrieval of all .js/.js.map files from a specified target or a list of targets. It subsequently employs SourceMapper to extract source code for all your designated targets.
- MapperPlus utilizes a Chrome Headless browser to intercept every request and response, ensuring the download of JavaScript files goes beyond heuristic scans or regular expressions, and includes the handling of all requested JS files.
- MapperPlus is based on an already existing tool called SourceMapper which helps you extract the source code from a single .map file.
# Consider these suggestions for integrating MapperPlus into your reconnaissance automation pipeline:
MapperPlus could be used with httpx , jsluice or Trufflehog and more.
(https://github.com/BishopFox/jsluice/ , https://github.com/projectdiscovery/httpx , https://github.com/trufflesecurity/trufflehog )
1. You can use httpx to retrieve live webservers and then use its output as an input of MapperPlus.
2. After downloading and extracting all JS files, use JSluice to extract endpoints from every target and then go beyond your recon process.
3. You can use Jsluice or trufflehog also to extract secrets from your source code JS files.
4. And more...!
# Requirements:
MapperPlus requires :
1. Google Chrome : **You can install it using the following command :** ```apt install google-chrome-stable```
2. Node.Js : **You can install it using the following command:** ```apt install nodejs```
3. Npm : **You can install it using the following command:** ```apt install npm```
4. Go
5. Python
6. SourceMapper : **You can download it from here:** https://github.com/denandz/sourcemapper
# Installation:
1. Run the requirements.sh script in order to download the latest version of required node modules.
2. Make sure Chrome is installed in your machine: **Run this command to verify** ```google-chrome --version```
3. Make sure you have npm, Node.js and Sourcemapper installed.
# How to use:
MapperPlus have some features and accepts some arguments:
1. To download all .map files for a specific website, utilize the `-u` option with the URL of your target, and the `-t` option with the destination directory where the JS files will be saved. ( `-u` and `-t` are required.)
``` python3 mapperplus.py -u https://www.example.com/ -t ```
MapperPlus also offers the option to include cookies and custom headers if needed. You can use `-c` to specify a cookie file and `-h` to provide custom headers.
**Example 1:** ```python3 mapperplus.py -u https://www.example.com/ -t example_output_directory -c cookiefile.txt -h "Authorization: Basic YWRtaW46YWRtaW4="```
2. In order to download and extract source codes of multiple targets at once, you can use the `-r` with the list of your targets.
**Example 2:** ```python3 mapperplus.py -r targets.txt -t example_output_directory -c cookiefile.txt -h "Authorization: Basic YWRtaW46YWRtaW4="```
# Some under construction features:
1. Download Lazy loaded .js files/chunks and look for their .map files too. (This will uncover the hidden parts of a number of websites) - **Security By Obscurity**.
2. Address specific scenarios: When retrieving multiple .js files from multiple sources, some websites may require specific cookies to avoid encountering 4xx errors.
**You can add more ideas or contact me on my X profile to share your ideas or needs:** https://twitter.com/silentgh00st
| MapperPlus facilitates the extraction of source code from a collection of targets that have publicly exposed .js.map files. | automation,javascript,map,pentest,recon,security,security-tools,source,sourcemapper | 2023-10-24T09:25:29Z | 2024-02-24T12:46:49Z | null | 1 | 0 | 14 | 2 | 7 | 95 | null | null | JavaScript |
confluentinc/confluent-kafka-javascript | dev_early_access_development_branch | Confluent's Javascript Client for Apache Kafka<sup>TM</sup>
=====================================================
**confluent-kafka-javascript** is Confluent's JavaScript client for [Apache Kafka](http://kafka.apache.org/) and the
[Confluent Platform](https://www.confluent.io/product/compare/). This is an **early access** library. The goal is to provide an highly performant, reliable and easy to use JavaScript client that is based on [node-rdkafka](https://github.com/Blizzard/node-rdkafka) yet also API compatible with [KafkaJS](https://github.com/tulios/kafkajs) to provide flexibility to users and streamline migrations from other clients.
This library leverages the work and concepts from two popular Apache Kafka JavaScript clients: [node-rdkafka](https://github.com/Blizzard/node-rdkafka) and [KafkaJS](https://github.com/tulios/kafkajs). The core is heavily based on the node-rdkafka library, which uses our own [librdkafka](https://github.com/confluentinc/librdkafka/tree/v2.3.0) library for core client functionality. However, we leverage a promisified API and a more idiomatic interface, similar to the one in KafkaJS, making it easy for developers to migrate and adopt this client depending on the patterns and interface they prefer.
__This library currently uses `librdkafka` based off of the master branch.__
## This library is currently in early access and not meant for production use
**This library is in active development, pre-1.0.0, and it is likely to have many breaking changes.**
For this early-access release, we aim to get feedback from JavaScript developers within the Apache Kafka community to help meet your needs. Some areas of feedback we are looking for include:
- Usability of the API compared to other clients
- Migration experience from the node-rdkafka and KafkaJs
- Overall quality and reliability
We invite you to raise issues to highlight any feedback you may have.
Within the early-access, only **basic produce and consume functionality** as well as the ability to **create and delete topics** are supported. All other admin client functionality is coming in future releases. See [INTRODUCTION.md](INTRODUCTION.md) for more details on what is supported.
To use **Schema Registry**, use the existing [kafkajs/confluent-schema-registry](https://github.com/kafkajs/confluent-schema-registry) library that is compatible with this library. For a simple schema registry example, see [sr.js](https://github.com/confluentinc/confluent-kafka-javascript/blob/dev_early_access_development_branch/examples/kafkajs/sr.js). **DISCLAIMER:** Although it is compatible with **confluent-kafka-javascript**, Confluent does not own or maintain kafkajs/confluent-schema-registry, and the use and functionality of the library should be considered "as is".
## Requirements
The following configurations are supported for this early access preview:
* Any supported version of Node.js (The two LTS versions, 18 and 20, and the latest versions, 21 and 22).
* Linux (x64 and arm64) - both glibc and musl/alpine.
* macOS - arm64/m1.
* Windows - x64 (experimentally available in EA).
Installation on any of these platforms is meant to be seamless, without any C/C++ compilation required.
In case your system configuration is not within the supported ones, [a supported version of Python](https://devguide.python.org/versions/) must be available on the system for the installation process. [This is required for the `node-gyp` build tool.](https://github.com/nodejs/node-gyp?tab=readme-ov-file#configuring-python-dependency).
```bash
$ npm install @confluentinc/kafka-javascript
```
Yarn and pnpm support is experimental.
# Getting Started
Below is a simple produce example for users migrating from KafkaJS.
```javascript
// require('kafkajs') is replaced with require('@confluentinc/kafka-javascript').KafkaJS.
const { Kafka } = require("@confluentinc/kafka-javascript").KafkaJS;
async function producerStart() {
const kafka = new Kafka({
kafkaJS: {
brokers: ['<fill>'],
ssl: true,
sasl: {
mechanism: 'plain',
username: '<fill>',
password: '<fill>',
},
}
});
const producer = kafka.producer();
await producer.connect();
console.log("Connected successfully");
const res = []
for (let i = 0; i < 50; i++) {
res.push(producer.send({
topic: 'test-topic',
messages: [
{ value: 'v222', partition: 0 },
{ value: 'v11', partition: 0, key: 'x' },
]
}));
}
await Promise.all(res);
await producer.disconnect();
console.log("Disconnected successfully");
}
producerStart();
```
1. If you're migrating from `kafkajs`, you can use the [migration guide](MIGRATION.md#kafkajs).
2. If you're migrating from `node-rdkafka`, you can use the [migration guide](MIGRATION.md#node-rdkafka).
3. If you're starting afresh, you can use the [quickstart guide](QUICKSTART.md).
An in-depth reference may be found at [INTRODUCTION.md](INTRODUCTION.md).
## Contributing
Bug reports and early-access feedback is appreciated in the form of Github Issues.
For guidelines on contributing please see [CONTRIBUTING.md](CONTRIBUTING.md)
| Confluent's Apache Kafka JavaScript client | confluent,consumer,javascript,kafka,kafka-client,librdkafka,producer | 2023-11-07T09:34:36Z | 2024-05-21T09:35:59Z | null | 535 | 31 | 673 | 7 | 4 | 77 | null | MIT | JavaScript |
FriedRiceNoodles/banana-ui | master | # Banana UI
[](https://www.npmjs.com/package/@banana-ui/banana)
[](https://www.npmjs.com/package/@banana-ui/banana)
[](https://www.npmjs.com/package/@banana-ui/banana)
[](https://www.npmjs.com/package/@banana-ui/banana?activeTab=code)

`Banana UI` 是一套底层基于 `Web Components` 的组件库,它提供了一套常用的组件。
<img height="160" src="https://cdn.shopify.com/s/files/1/2710/8782/files/QSHJ5M-thshxN3_4oxrNa.png?v=1713521360" />
官方文档:
- https://banana-ui.com/
- 国内镜像: https://banana.youniverse.cc/ (没开启科学上网的用户可以访问这里)
## ⭐️ 特性
- 🧩 **可用于几乎任何 Web 框架(React、Vue、以及其他...)**
- 🌐 **可用于原生环境(无框架)**
- 🚀 **支持 SSR(甚至能用于 worker 环境)**
- 🛡 良好的 TypeScript 支持
- 📱 适用于 PC 端,移动端也可用
- 🧪 完善的单元测试
## Banana 解决了什么问题?
Banana 最大的特点是它是一个基于 Web Components 的组件库,这意味着它可以在几乎所有的前端框架中使用,也可以在原生环境(无框架)中使用;并且它还**支持服务端渲染(SSR)**,甚至可以用于 worker 环境。这意味着你几乎可以在任何地方使用它。
> Banana 似乎是现在国内唯一一个支持服务端渲染的 Web Components 组件库。
基于这点,Banana 适合这些场景:
- 你正在开发一个需要支持多种框架的组件/插件/工具。
- 你有多个项目,它们使用不同的前端框架,你希望能够在这些项目中使用相同的组件库。
- 你开发的项目正在使用模板引擎,而不是前端框架(比如 Shopify、Wordpress 等)。
- 你开发的项目没有使用前端框架,而是原生环境。
- React 用户,我们提供了一个 React 版本,它对 React 做了专门的适配,可以更好地和 React 配合使用。
- 当然,Vue 项目或其他 Web 框架也可以使用 Banana。
## 寻求帮助 & 参与贡献
欢迎任何形式的提问和贡献,你可以在 [Issues 区](https://github.com/FriedRiceNoodles/banana-ui/issues) 上提出问题或寻求帮助。
如果你想参与贡献,希望可以先查看 [贡献指南](/docs/guide/contributing.md)。
## Q & A
### 我可以把它用于生产环境吗?
可以。Banana UI 已经在一些项目中使用。但是请注意,它仍然处于早期阶段,可能会有一些问题。如果你在使用过程中遇到了问题,欢迎在 [Issues 区](https://github.com/FriedRiceNoodles/banana-ui/issues) 上提出问题或寻求帮助。
> 作者注:我目前在一个跨境电商公司工作,公司最大的 C 端项目以及它的一些内部系统都在使用 Banana UI。
## LICENSE
MIT
| 基于Web Components,跨框架可用的现代化组件库。https://banana-ui.com | components,html,javascript,lit,react,typescript,ui-library,web-components,webcomponents | 2023-10-31T09:04:37Z | 2024-05-21T08:38:36Z | 2024-05-21T08:40:35Z | 6 | 114 | 544 | 14 | 8 | 77 | null | MIT | TypeScript |
dragonked2/Dons | main | 
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Dons Js Scanner
</head>
<body>
<h1>Dons Js Scanner</h1>
<p>Dons Js Scanner is a Python tool designed by <a href="https://www.linkedin.com/in/dragonked2/">Ali Essam</a> to scan websites and uncover potential sensitive information within JavaScript files. It utilizes asynchronous programming for efficient web crawling and in-depth analysis.</p>
<img src="https://github.com/dragonked2/Dons/assets/66541902/ad02ae1e-8f30-4ef3-ad35-95735f1cfeb7" alt="Dons Js Scanner">
<h2>Features</h2>
<ul>
<li><strong>Asynchronous Scanning:</strong> Utilizes asyncio and aiohttp for speedy web crawling and JavaScript file analysis.</li>
<li><strong>Sensitive Information Detection:</strong> Identifies potential sensitive information using pre-defined regex patterns.</li>
<li><strong>Result Clustering:</strong> Presents cleaner output by clustering similar results.</li>
</ul>
<h2>Getting Started</h2>
<h3>Prerequisites</h3>
<ul>
<li>Python 3.7 or higher</li>
<li>Dependencies: aiohttp, BeautifulSoup, termcolor, tqdm, coloredlogs</li>
</ul>
<h3>Installation</h3>
<ol>
<li><strong>Clone the repository:</strong>
<pre><code>git clone https://github.com/dragonked2/Dons.git
cd Dons
</code></pre>
</li>
<li><strong>Install dependencies:</strong>
<pre><code>pip install -r requirements.txt
</code></pre>
</li>
</ol>
<h2>Usage</h2>
<h3>Scan Single Website</h3>
<pre><code>python main.py
</code></pre>
<p>Follow the prompts to enter a single website URL for scanning.</p>
<h3>Scan Multiple Websites from a File</h3>
<pre><code>python main.py
</code></pre>
<p>Choose the option to scan multiple websites from a file and provide the file path.</p>
<h3>Customizing Scan Depth</h3>
<p>You can customize the recursive depth for scanning when prompted. The default depth is set to 4.</p>
<h2>Results</h2>
<p>Detected matches will be saved to a file on your desktop and displayed in the console.</p>
<h2>Example</h2>
<pre><code>Matches found at https://example.com, JavaScript file: https://example.com/js/main.js:
Key: Google API Key
Snippet: AIza...
Key: Google Cloud Pub/Sub Emulator Host
Snippet: google.pubsub.emulator.host = 'example.appspot.com'
</code></pre>
<h2>Contributions</h2>
<p>Contributions are always welcome! Feel free to open issues or pull requests.</p>
<h2>Connect with Me</h2>
<p><a href="https://www.linkedin.com/in/dragonked2/">Ali Essam - LinkedIn</a></p>
<h2>License</h2>
<p>This project is licensed under the MIT License - see the <a href="LICENSE">LICENSE</a> file for details.</p>
<div align="center">
<p>Feel free to star ⭐️ the repository if you find it helpful! 🚀</p>
</div>
</body>
</html>
| Dons Js Scanner is a sleek command-line tool that hunts for hidden treasures—API keys, credentials, and secrets—lurking in the JavaScript of websites. Its vibrant ASCII art logo welcomes users to a journey where it scans, reveals, and safeguards against potential security breaches. | javascript,leaked,leaks-scanner,scanner,secrets | 2023-10-16T18:12:29Z | 2024-05-10T04:51:03Z | 2024-01-23T14:32:30Z | 1 | 5 | 38 | 0 | 18 | 69 | null | GPL-3.0 | Python |
LottieFiles/dotlottie-web | main | 

[](CODE_OF_CONDUCT.md)

<p align="center">
<img src="https://user-images.githubusercontent.com/23125742/201124166-c2a0bc2a-018b-463b-b291-944fb767b5c2.png" />
</p>
<h1 align="center">dotLottie Web</h1>
Streamline your web animations with LottieFiles' official players for dotLottie and Lottie animations. Designed for quick integration, these packages help developers swiftly bring animated visuals into web projects with minimal effort.
<div align="center">
<img src="./assets/1.gif" alt="dotLottie web sample 1" />
<img src="./assets/2.gif" alt="dotLottie web sample 2" />
<img src="./assets/3.gif" alt="dotLottie web sample 3" />
<img src="./assets/4.gif" alt="dotLottie web sample 4" />
</div>
# What is dotLottie?
dotLottie is an open-source file format that aggregates one or more Lottie files and their associated resources into a single file. They are ZIP archives compressed with the Deflate compression method and carry the file extension of ".lottie".
[Learn more about dotLottie](https://dotlottie.io/).
## Contents
* [Packages](#packages)
* [Getting Started](#getting-started)
* [Prerequisites](#prerequisites)
* [Setup](#setup)
* [Live Examples](#live-examples)
* [Local Examples](#local-examples)
* [Development](#development)
* [Building Packages](#building-packages)
* [Running Locally](#running-locally)
* [Scripts](#scripts)
* [Contributing](#contributing)
* [License](#license)
### Packages
The monorepo contains the following package:
| Package | Description |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[@lottiefiles/dotlottie-web](packages/web/README.md)** | A JavaScript library for rendering Lottie and dotLottie animations in the browser or Node.js. |
| **[@lottiefiles/dotlottie-react](packages/react/README.md)** | A React component wrapper for `dotlottie-web` that provides a declarative API for rendering Lottie and dotLottie animations and UI controls for interacting with them. |
| **[@lottiefiles/dotlottie-wc](packages/wc/README.md)** | A Web Component wrapper for `dotlottie-web` that provides a declarative API for rendering Lottie and dotLottie animations and UI controls for interacting with them. |
| **[@lottiefiles/dotlottie-vue](packages/vue/README.md)** | A Vue component wrapper for `dotlottie-web` that provides a declarative API for rendering Lottie and dotLottie animations and UI controls for interacting with them. |
| **[@lottiefiles/dotlottie-svelte](packages/svelte/README.md)** | A Svelte component wrapper for `dotlottie-web` that provides a declarative API for rendering Lottie and dotLottie animations and UI controls for interacting with them. |
> Note: Each package has its own README.md with detailed documentation on usage and APIs.
### Getting Started
To contribute to this monorepo or use its packages in your project, follow these setup steps:
#### Prerequisites
Ensure you have the following installed:
* Node.js version 18 or greater
* `pnpm` version 8
#### Setup
Clone the monorepo:
```bash
git clone https://github.com/LottieFiles/dotlottie-web.git
cd dotlottie-web
```
Install dependencies:
```bash
pnpm install
```
### Live Examples
* `@lottiefiles/dotlottie-web`
* <a href="https://codepen.io/lottiefiles/pen/JjzJZmL" target="_blank">Getting Started</a>
* <a href="https://codepen.io/lottiefiles/pen/dyrRKwg" target="_blank">Controlling Animation Playback</a>
* <a href="https://codepen.io/lottiefiles/pen/JjzJZgB" target="_blank">Dynamic Animation Loading</a>
* <a href="https://codepen.io/lottiefiles/pen/wvOxdRa" target="_blank">Multi Animations .lottie file</a>
* <a href="https://codepen.io/lottiefiles/pen/LYvZveR" target="_blank">Advanced Animation Layout</a>
* <a href="https://codepen.io/lottiefiles/pen/RwOROKp" target="_blank">Named Markers</a>
* <a href="https://codepen.io/lottiefiles/pen/BaEzEeq" target="_blank">dotLottie theming</a>
* `@lottiefiles/dotlottie-react`
* <a href="https://codepen.io/lottiefiles/pen/vYPJpBN" target="_blank">Getting Started</a>
* <a href="https://codepen.io/lottiefiles/pen/WNmEdxd" target="_blank">Custom Playback Controls</a>
* `@lottiefiles/dotlottie-vue`
* <a href="https://codepen.io/lottiefiles/pen/yLwgeoJ" target="_blank">Getting Started</a>
### Local Examples
Discover how to implement and utilize the dotlottie-web packages with our example applications. These examples serve as a practical guide to help you understand how to integrate Lottie and dotLottie animations into your web projects.
Available examples:
* [dotlottie-web-example](apps/dotlottie-web-example/src/main.ts): A basic typescript example app of how to use `@lottiefiles/dotlottie-web` to render a Lottie or dotLottie animation in the browser.
* [dotlottie-web-node-example](apps/dotlottie-web-node-example/index.ts): This example demonstrates how to use the `@lottiefiles/dotlottie-web` in a Node.js environment. It showcases controlling animation playback, rendering frame by frame, and converting a dotLottie animation into a GIF file. for more information, see the [README](apps/dotlottie-web-node-example/README.md).
#### Running Examples
* Clone the repository:
```bash
git clone https://github.com/LottieFiles/dotlottie-web.git
cd dotlottie-web
```
* Install dependencies:
```bash
pnpm install
```
* Build the packages:
```bash
pnpm run build
```
* Run the app:
```bash
# Change directory to the example app folder
cd apps/dotlottie-web-example
pnpm run dev
```
Feel free to modify and play around with the code to see how changes affect the animations.
### Development
#### Building Packages
To build all packages within the monorepo:
```bash
pnpm run build
```
#### Running Locally
To start a local development environment for all packages:
```bash
pnpm run dev
```
#### Scripts
Here's a brief explanation of the scripts available in the root package.json:
* `build`: Builds all packages using turbo.
* `changelog`: Adds a changeset to generate changelog and version updates.
* `clean`: Cleans up the repository by removing development artifacts.
* `dev`: Runs all packages in development/watch mode.
* `format`: Formats the codebase using Prettier and Remark.
* `lint`: Lints the codebase using ESLint.
* `test`: Runs tests across all packages.
* `type-check`: Checks for TypeScript type errors.
For a full list of available scripts, see the `scripts` section in `package.json`.
### Contributing
We welcome contributions to any of the packages in this monorepo. Please read our [Contributing Guidelines](CONTRIBUTING.md) and our [Code of Conduct](CODE_OF_CONDUCT.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to the project.
### License
[MIT](LICENSE) © [LottieFiles](https://www.lottiefiles.com)
| null | dotlottie,lottie,thorvg,animation,canvas,easy,immersive,javascript,painless,web | 2023-10-20T06:42:23Z | 2024-05-22T17:28:19Z | 2024-05-22T17:32:38Z | 14 | 180 | 159 | 12 | 4 | 65 | null | MIT | TypeScript |
ArtemKorneevGA/dataform-ga4-sessions | main | <p align="center">
<img src="assets/logo.png" alt="dataform-ga4-sessions logo" width="150px" />
</p>
# dataform-ga4-sessions
`dataform-ga4-sessions` is a Dataform package to prepare session and event tables from Google Analytics 4 (GA4) BigQuery raw data.
[Documentation](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/) •
[How to create a session table](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/sessions/create-session) •
[How to create event tables](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/events/create-event) •
[Dataform Basics](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/dataform) •
[Dataform scheduling](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/scheduling-daily) •
[API Reference](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/api) •
[Contributing](#contributing)
## Features
- An easy and fast way to create a session and events table from GA4 raw data without writing SQL
- Get session source/medium, campaign, and other traffic source dimensions
- Get session default channel grouping by the rules close to GA4 definitions
- By default, you get two attribution models: last click and last non direct click
- Base session assertions: timeliness, completeness, validity
- Set a result session table schema: standard or extended
- Highly customizable: add your own columns, processing steps, source medium rules etc.
- Unit tests for the main cases
- Event class to create event tables from GA4 raw data
- Events factory to create recommended and auto events
## Quick start
https://github.com/ArtemKorneevGA/dataform-ga4-sessions/assets/30120916/b510d917-f7f6-4a15-b0ff-eb97f8f92eb5
1. Initialize a new Dataform project and initialize development workspace following the instructions [here](https://cloud.google.com/dataform/docs/quickstart-create-workflow).
2. Add `dataform-ga4-sessions` to your project dependencies in `package.json`.
For example your `package.json` could look like this:
```json {5}
{
"name": "my-dataform-project",
"dependencies": {
"@dataform/core": "2.6.7",
"dataform-ga4-sessions": "https://github.com/ArtemKorneevGA/dataform-ga4-sessions/archive/refs/tags/v1.0.5.tar.gz"
}
}
```
You could find the package's latest version [here](https://github.com/ArtemKorneevGA/dataform-ga4-sessions/releases).
And click "Install packages" in the Dataform web UI.
3. Add the following code to your `definitions/ga4.js` file:
```javascript
const ga4 = require("dataform-ga4-sessions");
// Define your config
const config = {
dataset: "analytics_XXXXXX",
incrementalTableName: "events_XXXXXX",
};
// Declare GA4 source tables
ga4.declareSources(config);
// Create sessions object
const sessions = new ga4.Session(config);
// Publish session table
sessions.publish();
// Publish session assertions
sessions.publishAssertions();
// Create event factory object
const ef = new ga4.EventFactory(config);
// Create all recommended form tracking events
let events = ef.createEcommerceEvents();
// Publish events
events.forEach((event) => event.publish());
```
Execute all actions. As a result in the current GCP project in dataset `dataform_staging` the package generates the following tables:
- sessions
- add_payment_info, add_shipping_info, add_to_cart, add_to_wishlist, begin_checkout, generate_lead, purchase, refund, remove_from_cart, view_cart, view_item, view_item_list
## The main concepts
The main goal of the package is to simplify processing of GA4 BigQuery data. Instead of writing custom SQL, the package provides a set of JavaScript classes that generate Dataform actions (SQL and configuration) to create sessions and events tables.
There are a few main concepts behind the package:
- In **sessions** table the package stores only session scope features, like source/medium, geo, device and etc. Each session should have a unique `session_id` column.
- Each needed event is collected in separate table (Dataform action). In **events** tables the package stores only event scope features, default and custom. Each event should have a unique `event_id` column.
- If for event (like purchase) you need session scope dimensions (like source/medium) you could always join sessions and events tables by `session_id` column.
- **sessions** and **events** tables are incremental tables. And Dataform will generate merge statements to update them. Read more about Dataform [main concepts](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/dataform) and how to [run daily updates](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/scheduling-daily).
- All reporting tables should use **sessions** and **events** tables as a source instead of GA4 raw data. In the next releases, package will provide a set of base reporting actions: landing page report, traffic sources, events, and etc.
- Package provides a few variants of schemas for sessions table. And schemas for all recommended and auto events tables. But you could easily customize schemas, using helpers method.
- Package doesn't have processing steps for normalization (aka star schema). In most cases for small and medium datasets it's not necessary. As it doesn't reduce cost but increases complexity. If needed you could add your own processing steps or fork the package.
- Package provides a set of assertions to check sessions. You could use them as a base for data quality assurance.
## Next steps
- [Refresh Dataform basics](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/dataform)
- [Read how to update session and event tables daily](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/guides/scheduling-daily)
- [How to create session table](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/sessions/create-session)
- [More about event tables](https://ArtemKorneevGA.github.io/dataform-ga4-sessions/events/create-event)
## Requirements
The package depends on `@dataform/core` and [dataform-ga4-helpers](https://github.com/ArtemKorneevGA/dataform-ga4-helpers) - Dataform package with helper methods.
## License
`dataform-ga4-sessions` is licensed under the MIT License - see the LICENSE file for details.
## Contributing
Contributions are welcome! The project goal is to create `dataform-ga4-sessions` and `dataform-ga4-events` packages and based on them create packages to generate tables needed for all standard UA and GA4 reports.
## Contact Information
For help or feedback, please contact me on [LinkedIn](https://www.linkedin.com/in/artem-korneev/).
| dataform-ga4-sessions is a Dataform package to prepare session and event tables from Google Analytics 4 (GA4) BigQuery raw data | bigquery,dataform,ga4,gcp,google-analytics,google-analytics-4,javascript,sql | 2023-10-17T20:24:30Z | 2024-01-26T07:07:38Z | 2024-01-26T07:08:25Z | 1 | 0 | 18 | 0 | 13 | 54 | null | MIT | JavaScript |
c4coderandcreator/Flavour-Fusion | main |
# Flavour-Fusion: Food Website 🍔🥗
This is a Food Website built with HTML, CSS, and JavaScript. It allows users to order food, view the menu list, and much more.
## Features 🌟
- Place and customize food orders 🍽️
- View order history and track current orders 📊
- Real-time updates on order status 🚚
## Tech Stack 💻
- HTML
- CSS
- BootStrap
- JavaScript
## Installation 🛠️
Fork the repository to your Github:
After Forking, clone the repo to your local machine.
Open the index.html file in your web browser to start using the application.
## Usage 🚀
1. Go through sections 📚
2. Check for Features 🧐
3. Try out those features 🎉
4. Finally, try to improve it! 🌱
## Contributing 🤝
We welcome and appreciate contributions from the open-source community to make Flavour Fusion even better.
To get started with contributing, please read our [Contributing Guidelines](./.github/ISSUE_TEMPLATE/CONTRIBUTING.md).
Feel free to contribute to this project.
## Thanks to all Contributors 💪
<a href="https://github.com/c4coderandcreator/Flavour-Fusion/graphs/contributors">
<img src="https://contrib.rocks/image?repo=c4coderandcreator/Flavour-Fusion" />
</a>
Your contribution is the root of success for this project.
Also, give it a Star 🌟, if you loved contributing to the project.
Let's connect on my [Github](https://github.com/c4coderandcreator) for more such projects !!
## Security Policy 🔒
We take the security of Flavour Fusion seriously. We appreciate your efforts to responsibly disclose your findings,
and we will work to promptly address and resolve any reported security issues.
Found a security issue? Want to report it? Please read our [Security Policy](./.github/ISSUE_TEMPLATE/SECURITY.md).
## [MIT Licensed](https://github.com/c4coderandcreator/Flavour-Fusion/blob/main/LICENSE) 📜
| "Flavour Fusion : Real World Project". It has all the necessary features required for a Food website. | hacktoberfest,hactoberfest-accepted,bootstrap,css,dom-manipulation,front-end,html,javascript,open-source | 2023-10-15T20:51:54Z | 2023-12-12T12:33:42Z | null | 53 | 177 | 294 | 10 | 85 | 53 | null | MIT | HTML |
llemaitre19/jtsx | master | <!-- markdownlint-disable MD001 MD013 -->
# jtsx
[](https://melpa.org/#/jtsx)
[](https://stable.melpa.org/#/jtsx)
[](https://github.com/llemaitre19/jtsx/actions?query=workflow%3ACI+branch%3Amaster+)
## Extends Emacs JSX/TSX built-in support
`jtsx` is an Emacs package for editing `JSX` or `TSX` files. It provides `jtsx-jsx-mode` and `jtsx-tsx-mode` major modes implemented respectively on top of `js-ts-mode` and `tsx-ts-mode`, benefiting thus from the new built-in [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) feature.
Summary of features:
* Commenting/uncommenting JSX code
* Refactoring: moving, wrapping/unwrapping, deleting, renaming `JSX` elements, toggling the orientation of`JSX` attributes
* Jumping between `JSX` opening and closing tags
* Electric `JSX` closing tag and new line
* Code folding
* Some additional indentation options
Note that while `jtsx-jsx-mode` is fully compatible with pure `JS` files, `jtsx-tsx-mode` has some rare conflicts with `TS` files (e.g. type assertions). It is thus recommanded to use `jtsx-typescript-mode` (based on `typescript-ts-mode`) for plain `TS` files.
## Requirements
Emacs 29.1 or higher, built with `tree-sitter` support (`./configure --with-tree-sitter`) is required. To check if your Emacs embeds `tree-sitter`, typing `M-x treesit` should give you at least `treesit-install-language-grammar` result.
⚠️ _`jtsx` does not work with the deprecated [tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter) package._
⚠️ _Even if Emacs is built with `tree-sitter` support, `tree-sitter` languages are not installed by default. `Git` and a `C/C++` compiler are necessary to install them._
## Getting started
### Package installation
The straightforward way to install `jtsx` is through the [Melpa](https://melpa.org) package manager. You can find more informations on how to install a `Melpa` package [here](https://melpa.org/#/getting-started).
### `tree-sitter` languages installation
Installing `tree-sitter` languages is required by `jtsx` (`javascript` for `jtsx-jsx-mode`, `tsx` for `jtsx-tsx-mode`, and `typescript` for `jtsx-typescript-mode`). You can use `M-x jtsx-install-treesit-language` command which is a convenient wrapper around `treesit-install-language-grammar` for that purpose.
For more advanced usages, see `M-x treesit-install-language-grammar` command, or manually compile and set up language libraries.
### Full configuration example
Here an example of configuration using [use-package](https://github.com/jwiegley/use-package), to put in the `Emacs` `init.el`:
* attach `jtsx-jsx-mode` to `JSX` and `JS` files
* attach `jtsx-tsx-mode` to `TSX` files
* attach `jtsx-typescript-mode` to `TS` files
* bind `jtsx` functions to the same shortcuts for `jtsx-jsx-mode` and `jtsx-tsx-mode`
* set indention offsets for `JSX`/`JS` and `TSX`/`TS` modes (use base mode variables)
* customize `jtsx` behaviour through provided variables
* enable `hideshow` minor mode for code folding
``` elisp
(use-package jtsx
:ensure t
:mode (("\\.jsx?\\'" . jtsx-jsx-mode)
("\\.tsx\\'" . jtsx-tsx-mode)
("\\.ts\\'" . jtsx-typescript-mode))
:commands jtsx-install-treesit-language
:hook ((jtsx-jsx-mode . hs-minor-mode)
(jtsx-tsx-mode . hs-minor-mode)
(jtsx-typescript-mode . hs-minor-mode))
:custom
;; Optional customizations
;; (js-indent-level 2)
;; (typescript-ts-mode-indent-offset 2)
;; (jtsx-switch-indent-offset 0)
;; (jtsx-indent-statement-block-regarding-standalone-parent nil)
;; (jtsx-jsx-element-move-allow-step-out t)
;; (jtsx-enable-jsx-electric-closing-element t)
;; (jtsx-enable-electric-open-newline-between-jsx-element-tags t)
;; (jtsx-enable-jsx-element-tags-auto-sync nil)
;; (jtsx-enable-all-syntax-highlighting-features t)
:config
(defun jtsx-bind-keys-to-mode-map (mode-map)
"Bind keys to MODE-MAP."
(define-key mode-map (kbd "C-c C-j") 'jtsx-jump-jsx-element-tag-dwim)
(define-key mode-map (kbd "C-c j o") 'jtsx-jump-jsx-opening-tag)
(define-key mode-map (kbd "C-c j c") 'jtsx-jump-jsx-closing-tag)
(define-key mode-map (kbd "C-c j r") 'jtsx-rename-jsx-element)
(define-key mode-map (kbd "C-c <down>") 'jtsx-move-jsx-element-tag-forward)
(define-key mode-map (kbd "C-c <up>") 'jtsx-move-jsx-element-tag-backward)
(define-key mode-map (kbd "C-c C-<down>") 'jtsx-move-jsx-element-forward)
(define-key mode-map (kbd "C-c C-<up>") 'jtsx-move-jsx-element-backward)
(define-key mode-map (kbd "C-c C-S-<down>") 'jtsx-move-jsx-element-step-in-forward)
(define-key mode-map (kbd "C-c C-S-<up>") 'jtsx-move-jsx-element-step-in-backward)
(define-key mode-map (kbd "C-c j w") 'jtsx-wrap-in-jsx-element)
(define-key mode-map (kbd "C-c j u") 'jtsx-unwrap-jsx)
(define-key mode-map (kbd "C-c j d") 'jtsx-delete-jsx-node)
(define-key mode-map (kbd "C-c j t") 'jtsx-toggle-jsx-attributes-orientation)
(define-key mode-map (kbd "C-c j h") 'jtsx-rearrange-jsx-attributes-horizontally)
(define-key mode-map (kbd "C-c j v") 'jtsx-rearrange-jsx-attributes-vertically))
(defun jtsx-bind-keys-to-jtsx-jsx-mode-map ()
(jtsx-bind-keys-to-mode-map jtsx-jsx-mode-map))
(defun jtsx-bind-keys-to-jtsx-tsx-mode-map ()
(jtsx-bind-keys-to-mode-map jtsx-tsx-mode-map))
(add-hook 'jtsx-jsx-mode-hook 'jtsx-bind-keys-to-jtsx-jsx-mode-map)
(add-hook 'jtsx-tsx-mode-hook 'jtsx-bind-keys-to-jtsx-tsx-mode-map))
```
## Features
### Jumping between opening and closing tags
`M-x jtsx-jump-jsx-element-tag-dwim` jumps to the opening or closing tag of the `JSX` enclosing element. The furthest tag is choosen.\
`M-x jtsx-jump-jsx-opening-tag` jumps to the opening tag of the `JSX` enclosing element.\
`M-x jtsx-jump-jsx-closing-tag` jumps to the closing tag of the `JSX` enclosing element.

### Renaming elements
`M-x jtsx-rename-jsx-element` renames both the opening and closing tags of a `JSX` element. Cursor must either be inside the opening or the closing tag.

As an alternative, you can turn `jtsx-enable-jsx-element-tags-auto-sync` to `t` to enable automatic name synchronization of `JSX` element tags. As soon as the name of an opening or a closing tag is edited, its paired tag is immediately synchronized.

### Moving JSX elements
`jtsx` implements some commands to move a `JSX` tag or node through the `JSX` structure, re-indenting automatically the modified part of code. `JSX` nodes can be an element (self-closing or not), an expression or a text line.
`M-x jtsx-move-jsx-element-tag-forward` moves a `JSX` element tag (opening or closing) forward.\
`M-x jtsx-move-jsx-element-tag-backward` moves a `JSX` element tag (opening or closing) backward.

`M-x jtsx-move-jsx-element-forward` moves a `JSX` element (or any `JSX` node) forward.\
`M-x jtsx-move-jsx-element-backward` moves a `JSX` element (or any `JSX` node) backward.

`M-x jtsx-move-jsx-element-step-in-forward` moves a `JSX` element (or any `JSX` node) forward. Step into sibling elements if possible.\
`M-x jtsx-move-jsx-element-step-in-backward` moves a `JSX` element (or any `JSX` node) backward. Step into sibling elements if possible.

Stepping out when moving can be desactivated by setting `jtsx-jsx-element-move-allow-step-out` to `nil`.
### Wrapping/Unwrapping JSX nodes
`M-x jtsx-wrap-in-jsx-element` wraps `JSX` nodes in a new `JSX` element. Nodes are selected by a region if there is an active one. Else the node at point is used.
`M-x jtsx-unwrap-jsx` unwraps `JSX` nodes. The wrapping node to remove is the node at point.

### Deleting JSX nodes
`M-x jtsx-delete-jsx-node` deletes the `JSX` node at point and its children.

### Toggling the orientation of JSX attributes
`M-x jtsx-toggle-jsx-attributes-orientation` toggles the orientation of `JSX` element attributes between horizontal (all on the same line) and vertical (one per line).
`M-x jtsx-rearrange-jsx-attributes-horizontally` and `M-x jtsx-rearrange-jsx-attributes-vertically` can be used to require explicitly the new orientation.

### Electricity
When entering the `>` of an opening tag, the pending closing tag is automatically added right after the cursor if relevant (the function tries to guess if the closing addition is expected or not).
Also, when inside an empty inline jsx element (typically right after automatic insertion of closing tag), pressing `ENTER` will insert 2 lines and let the cursor ready to add children elements.

These functionalities can be desactivated by setting `jtsx-enable-jsx-electric-closing-element` to `nil` and/or `jtsx-enable-electric-open-newline-between-jsx-element-tags` to `nil`.
ℹ️ _Code completion is not part of `jtsx`. You can get it to work by using [Eglot](https://github.com/joaotavora/eglot) (built-in in Emacs), or any other lsp package._
### Code folding
`jtsx-jsx-mode` and `jtsx-tsx-mode` customize built-in `Hideshow` package in order to support code folding into JSX parts.
`Hideshow` can be enabled with `M-x hs-minor-mode` command.
Please refer to [Hideshow documentation](https://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.html) for usage informations.

## API
### Interactive functions
| Function | Description |
|----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| `jtsx-jsx-mode` | Enable `jtsx-jsx-mode`. |
| `jtsx-tsx-mode` | Enable `jtsx-tsx-mode`. |
| `jtsx-typescript-mode` | Enable `jtsx-typescript-mode`. |
| `jtsx-jump-jsx-element-tag-dwim` | Jump either to the opening or to the closing tag of the `JSX` element. |
| `jtsx-jump-jsx-opening-tag` | Jump to the opening tag of the `JSX` element. |
| `jtsx-jump-jsx-closing-tag` | Jump to the closing tag of the `JSX` element. |
| `jtsx-rename-jsx-element` | Rename a `JSX` element at point. Point can be in the opening or closing tag. |
| `jtsx-move-jsx-element-tag-forward` | Move a `JSX` element tag (opening or closing) forward. |
| `jtsx-move-jsx-element-tag-backward` | Move a `JSX` element tag (opening or closing) backward. |
| `jtsx-move-jsx-element-forward` | Move a `JSX` element (or any `JSX` node) forward. |
| `jtsx-move-jsx-element-backward` | Move a `JSX` element (or any `JSX` node) backward. |
| `jtsx-move-jsx-element-step-in-forward` | Move a `JSX` element (or any `JSX` node) forward. Step into sibling elements if possible. |
| `jtsx-move-jsx-element-step-in-backward` | Move a `JSX` element (or any `JSX` node) backward. Step into sibling elements if possible. |
| `jtsx-wrap-in-jsx-element` | Wrap `JSX` nodes in a `JSX` element. Nodes are selected by a region if there is an active one. Else the node at point is used. |
| `jtsx-unwrap-jsx` | Unwrap `JSX` nodes wrapped in the node at point. |
| `jtsx-delete-jsx-node` | Delete a `JSX` node at point and its children. |
| `jtsx-toggle-jsx-attributes-orientation` | Toggle the orientation of `JSX` attributes. |
| `jtsx-rearrange-jsx-attributes-horizontally` | Rearrange the orientation of `JSX` attributes horizontally. |
| `jtsx-rearrange-jsx-attributes-vertically` | Rearrange the orientation of `JSX` attributes vertically. |
| | |
### Customizable variables
| Variables | Default | Description |
|--------------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `jtsx-switch-indent-offset` | `0` | Offset for indenting the contents of a switch block. The value must not be negative. |
| `jtsx-indent-statement-block-regarding-standalone-parent` | `nil` | Use standalone parent as anchor to evaluate statement block indentation. If t and if the parent of a statement block is not on its own line, the statement block will be indented relative to the beginning of the whole parent continuated expression. |
| `jtsx-jsx-element-move-allow-step-out` | `t` | Allow to step out when moving a jsx element. |
| `jtsx-enable-jsx-electric-closing-element` | `t` | Enable electric `JSX` closing element feature. |
| `jtsx-enable-electric-open-newline-between-jsx-element-tags` | `t` | Enable electric new line between jsx element tags |
| `jtsx-enable-jsx-element-tags-auto-sync` | `nil` | Enable automatic name synchronization of `JSX` element opening and closing tags. |
| `jtsx-enable-all-syntax-highlighting-features` | `t` | Enable all available syntax highlighting features. |
## Q&A
### Jumping or refactoring functions sometimes fail, what is going wrong ?
An invalid `JSX` syntax in the buffer can be the source of the problem. `Tree-sitter` tries to be resilient regarding syntax validity, but sometimes the parser cannot (or is not smart enough to) guess what the errored code means exactly.
### Why another major mode for editing `JSX` ?
Although popular [`web-mode`](https://github.com/fxbois/web-mode) and [`rjsx-mode`](https://github.com/felipeochoa/rjsx-mode) are very good packages for `JSX` edition, they have been written when Emacs built-in `JSX` support was very poor or absent. Currently, Emacs comes with a pretty good `JSX` / `TSX` support and even gives the possibility to use `Tree-sitter` integration. `jtsx` takes advantage of these new features to provide a lightweight package targetting both `JSX` and `TSX` with some handy functionalities.
## Contributing
All kinds of contributions are welcome: issues, discussions, or pull requests. More informations [here](./CONTRIBUTING.md).
| Extends Emacs JSX/TSX built-in support. | emacs,hideshow,jsx,tree-sitter,tsx,javascript,typescript,melpa | 2023-10-29T15:32:55Z | 2024-05-19T15:46:43Z | null | 2 | 1 | 150 | 0 | 2 | 51 | null | GPL-3.0 | Emacs Lisp |
idranme/silk-wasm | main | # Silk Wasm
[](https://www.npmjs.com/package/silk-wasm)
QQ/微信语音编解码
## API
```ts
interface encodeResult {
data: Uint8Array
duration: number
}
interface decodeResult {
data: Uint8Array
duration: number
}
/**
* 编码为 SILK
* @param input WAV 或单声道 pcm_s16le 文件
* @param sampleRate `input` 的采样率,可为 8000/12000/16000/24000/32000/44100/48000
* @return SILK
*/
function encode(input: ArrayBufferView | ArrayBuffer, sampleRate: number): Promise<encodeResult>
/**
* 将 SILK 解码为 PCM
* @param input SILK 文件
* @param sampleRate `input` 的采样率
* @return pcm_s16le
*/
function decode(input: ArrayBufferView | ArrayBuffer, sampleRate: number): Promise<decodeResult>
/**
* 获取 SILK 音频时长
* @param data SILK 文件
* @param frameMs SILK 的 frameMs,可为 20/40/60/80/100,默认为 20
* @return 单位为毫秒的时长
*/
function getDuration(data: ArrayBufferView | ArrayBuffer, frameMs?: number): number
/**
* 检测是否为 WAV 文件
* @param data 任意文件
*/
function isWav(data: ArrayBufferView | ArrayBuffer): boolean
/**
* 获取 WAV 文件的信息
* @param data WAV 文件
* @return metadata
*/
function getWavFileInfo(data: ArrayBufferView | ArrayBuffer): WavFileInfo
/**
* 检测是否为 SILK 文件
* @param data 任意文件
*/
function isSilk(data: ArrayBufferView | ArrayBuffer): boolean
```
## Example
```js
import { encode } from './lib/index.mjs' // use `silk-wasm` instead
import { readFile, writeFile } from 'fs/promises'
const pcm = await readFile('./testdata/canon.pcm')
const silk = await encode(pcm, 24000)
await writeFile('./test.silk', silk.data)
```
## Build wasm
```
cd binding
emcmake cmake .
emmake ninja
``` | Tencent SILK codec for Node.js and browser | nodejs,silk,wasm,decoder,encoder,codec,silkv3,qq,wechat,browser | 2023-10-21T18:56:49Z | 2024-04-23T16:47:32Z | null | 1 | 0 | 36 | 1 | 3 | 49 | null | MIT | C |
pranavnt/umix | master | > ⚠️ **Security Disclaimer**: Do not use in production. This is experimental software. Here be dragons 🐉
<a href="https://youtu.be/8rdGUPiv2O0" target="_blank"><img width="200" alt="Banner" src="/images/umix-banner.png"></a>
# [umix.dev](https://umix.dev)
Umix is a browser extension and developer tool for remixing websites. Let's make the web fun.
If you're just interested in just trying it out, go to our [Repl.it playground](https://replit.com/@aidenbai05/QuestionableRedForm#script.js). Or, [watch our video](https://youtu.be/8rdGUPiv2O0).
Continue if you want to use it in real world websites.
## Umix as a Browser Extension
> **Note:** Umix is pending approval on the Chrome Extension Store. For now, you can manually integrate it via Developer Mode. We currently only support Chrome and Chromium Browsers (Edge, Arc, Brave, Opera, etc.)
1. [Click to download the project ZIP](https://github.com/pranavnt/umix/archive/refs/heads/master.zip)
2. Unzip `umix-master.zip`.
3. Type `chrome://extensions` in your URL address bar
4. Activate Developer Mode
<img width="173" alt="image" src="/images/dev-mode.png">
5. Click Load Unpacked
<img width="466" alt="image" src="/images/unpacked.png">
6. Select the `umix-master` folder
7. Profit.
## Umix as a Developer Tool
Just drop a `<script>` tag at the end of your body... it's just that easy – no quirks, no external API, just AI goodness at your fingertips.
```js
<script src="https://umix.dev/lib.js"></script>
```
## Inspiration
**The Web is boring.**
Monotonous dashboards. Identical interfaces. All apps look the same.
**The Web should be fun.**
Our earliest memories, friends, and identities were made on the web. Deep in IRC chats and custom MySpace CSS and random Wikipedia docs, we found a home–a home in a community of folks who also found the Web fun.
While the Web has matured over the past couple years, there’s an undeniable charm to it’s more hackable and playful past.
## What it does
**Remix the web.** Umix is a browser extension and developer tool that allows internet users to easily remix, reimagine, and reshare web interfaces.
Imagine being able to hover on any part of the page, ask an AI to change it to your desires, and see your creation live – that’s Umix.
## How we built it
On the frontend, we built a chrome extension that traverses the in-memory DOM and updates the HTML based on our backend’s response.
On the backend, we have a Node.js server that handles requests from the frontend. We equipped GPT-4 with a web browser, so it can browse websites and fetch content when it is unsure what to do. This happens multiple times, allowing us to get live information from the web.
Finally, we built a developer tool that allows any web developer to integrate Umix as a JavaScript library. This allows developers to enable native remixing experiences on their own websites.
## Challenges we ran into
- **Unreliability of LLMs** — GPT-4 hallucinated (made stuff up) multiple times or didn’t know the answer to various questions when testing — we couldn’t build directly on top of OpenAI and needed to connect GPT-4 to other tools. We connected it to a web browser using langchain.js and had it fetch factual information/documentation for tools from websites if it was unsure about the answer.
- **DOM structure is hard** – we had to deal with ways to handle wrapper elements, excessive attributes, and overriding classes
- **Designing the UI** – creating a very intuitive UI, especially for remixing use, is extremely difficult. We eventually landed on a very similar approach to v0.dev’s select tool
- **CSR/CORS + Devtool fun** – creating a secure, safe, and robust developer tool and chrome extension, while ensuring security requirements are met took many arduous hours of crying
## What's next for Umix
We made small demo post on Twitter (X) 12 hours ago and has been **viewed 25,000+ times**.
We already have **80** people on our waitlist (as of 4 am)
**It’s time to make the Web fun. Together, we can remix the web.**
| Let's make the web fun! | ai,chrome,devtool,dom,extension,gpt,javascript,langchain,umix | 2023-10-14T20:07:24Z | 2023-10-15T21:29:18Z | null | 3 | 0 | 37 | 6 | 0 | 48 | null | null | JavaScript |
NullDev/YT-Anti-Anti-Adblock | master | # YT Anti-Anti-Adblock
[](https://greasyfork.org/en/scripts/478457-youtube-anti-anti-adblock)
[](https://www.tampermonkey.net)
[](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)
[](https://github.com/NullDev/YT-Anti-Anti-Adblock/issues?q=is%3Aissue+is%3Aclosed)
[](https://greasyfork.org/en/scripts/478457-youtube-anti-anti-adblock/versions)
[](https://greasyfork.org/en/scripts/478457-youtube-anti-anti-adblock/feedback)
<p align="center"><a href="https://raw.githubusercontent.com/NullDev/YT-Anti-Anti-Adblock/master/yt-anti-anti-adblock.user.js"><img height="200" width="auto" src="/icon.png" /></a></p>
<p align="center"><b>Simplistic user-script to remove YouTube's "Adblockers are not allowed" popup.</b></p>
<hr>
## :question: What does it do?
It automatically closes the anti-adblock popups and un-pauses (or loads) the video for you. <br>
Hopefully even fast enough so that you don't even notice 😸
- It removes the closable "Ad blockers are not allowed on YouTube" popup.
- It removes the closable three-strikes popup.
- And it removes the **non-closable** "Ad blockers violate YouTube's Terms of Service".
- It also supports playlists and timestamps and stuff.
- Oh and the script auto updates. Which is neat. I guess.
**Note:** This is _not_ a replacement for your Ad-Blocker.
<hr>
## ✔️ Compatibility
This script has been tested and is compatible with the following extensions and userscripts:
- [AdBlockPlus](https://chrome.google.com/webstore/detail/adblock-plus-free-ad-bloc/cfhdojbkjhnklbpkdaibdccddilifddb)
- [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm)
- [minerBlock](https://chrome.google.com/webstore/detail/minerblock/emikbbbebcdfohonlaifafnoanocnebl)
- [Return YouTube Dislike](https://chrome.google.com/webstore/detail/return-youtube-dislike/gebbhagfogifgggkldgodflihgfeippi)
- [Sponsor block for YouTube](https://chrome.google.com/webstore/detail/sponsorblock-for-youtube/mnjggcdmjocbbbhaepdhchncahnbgone)
- [YouTube Playlist Search](https://inspect.video/playlist-search)
- [Enhancer for YT](https://chromewebstore.google.com/detail/enhancer-for-youtube/ponfpcnoihfmfllpaingbgckeeldkhle)
- ... others will most likely work as well, but have not been tested. Please [report any issue](https://github.com/NullDev/YT-Anti-Anti-Adblock/issues/new/choose) you encounter.
<hr>
## :question: Why not use xyz?
Existing solutions either didn't work (e.g. a semi transparent window was still there and scrolling was disabled) or they were overkill (e.g. a complete youtube-only adblocker) or they only killed one type of popup.
Hence: ✨ YouTube Anti-Anti-Adblock ✨
<hr>
## :satellite: Installation
1. **Install Tampermonkey for your browser**:
- [Tampermonkey for Chrome](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)
- [Tampermonkey for Firefox](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/) or [Greasemonkey for Firefox](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)
- [Tampermonkey for Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd)
- [Tampermonkey for Opera/OperaGX](https://addons.opera.com/en-gb/extensions/details/tampermonkey-beta/)
Note: [ViolentMonkey](https://violentmonkey.github.io/) works too!
2. **Install the script**: <br><br>
[](https://github.com/NullDev/YT-Anti-Anti-Adblock/raw/master/yt-anti-anti-adblock.user.js)
<sub>If the button doesn't work for some reason: [click here](https://raw.githubusercontent.com/NullDev/YT-Anti-Anti-Adblock/master/yt-anti-anti-adblock.user.js).</sub>
### 🍴 You can also find the script on [Greasy Fork](https://greasyfork.org/en/scripts/478457-youtube-anti-anti-adblock)!
<hr>
## :diamond_shape_with_a_dot_inside: Feature requests & Issues
Feature request or discovered a bug? Please [open an Issue](https://github.com/NullDev/YT-Anti-Anti-Adblock/issues/new/choose) here on GitHub.
<hr>
## :octocat: Contributors
<a href="https://github.com/NullDev/YT-Anti-Anti-Adblock/graphs/contributors">
<img src="https://contrib.rocks/image?repo=NullDev/YT-Anti-Anti-Adblock" />
</a>
<sub>Made with [contrib.rocks](https://contrib.rocks).</sub>
<hr>
## 💻 Development
If you're interested in helping out (thanks!):
- Clone the repository: `git clone https://github.com/NullDev/YT-Anti-Anti-Adblock.git`
- Open it in your favourite IDE
- Install the dependencies for linting with `npm i`
- [Link the script in Tampermonkey](https://www.tampermonkey.net/faq.php?locale=en#Q402)
Basically, in your Tampermonkey dashboard you create a new script that looks like this:
```js
// ==UserScript==
// @name YouTube Anti-Anti-Adblock
// @name:de YouTube Anti-Anti-Adblock
// @namespace yt-anti-anti-adblock
// @version 1.2.2
// @description Removes all the "ad blockers are not allowed on youtube" popups.
// @description:de Entfernt alle "Werbeblocker sind auf YouTube nicht erlaubt" popups.
// @author NullDev
// @copyright Copyright (c) 2023 NullDev
// @license MIT
// @match *://*.youtube.com/*
// @homepageURL https://github.com/NullDev/YT-Anti-Anti-Adblock
// @supportURL https://github.com/NullDev/YT-Anti-Anti-Adblock/issues/new/choose
// @icon https://raw.githubusercontent.com/NullDev/YT-Anti-Anti-Adblock/master/icon.png
// @grant none
// @run-at document-idle
// @require file://C:/Users/XXX/PATH/TO/REPOSITORY/YT-Anti-Anti-Adblock/yt-anti-anti-adblock.user.js
// ==/UserScript==
```
Pay attention to the `// @require` line and edit the path accordingly.
- Windows: `file://C:/.../...`
- Linux: `file:///.../...`
**Note:** Make sure you _DO NOT_ provide a `@updateURL` and `@downloadURL` field!
Then make sure the Tampermonkey extension [has permissions for file paths](https://www.tampermonkey.net/faq.php?locale=en#Q204). <br>
And finally, just code in your IDE and Tampermonkey will autoupdate it. (You need to reload YouTube though)
Now all thats left to do is grab an [open issue](https://github.com/NullDev/YT-Anti-Anti-Adblock/issues) and start coding. 😸
<hr>
| Simplistic user-script to remove YouTube's annoying "Ad blockers are not allowed on YouTube" popup. | anti-anti-adblock,javascript,nulldev,userscript,hacktoberfest,greasemonkey,tampermonkey,youtube | 2023-10-18T12:28:12Z | 2023-11-21T18:42:24Z | null | 1 | 0 | 74 | 9 | 1 | 48 | null | MIT | JavaScript |
DaniGuardiola/classy-ink | main | <p align="center">
<img alt="The Classy Ink logo" src="https://github.com/DaniGuardiola/classy-ink/raw/main/logo.png">
</p>
> Build classy CLI interfaces with [Tailwind CSS](https://tailwindcss.com)-inspired utility classes and [Ink](https://term.ink/).
Classy Ink is a simple drop-in replacement for the `Box` and `Text` Ink components. It adds support for utility classes through the `class` prop.
---
Try the demo now!
```
npx classy-ink
```
Or [try it in your browser](https://stackblitz.com/edit/classy-ink-demo?file=README&view=editor).
## <a name='Install'></a>Install
```
npm install classy-ink
```
## <a name='Example'></a>Example
<p align="center">
<img alt="A screenshot of the example code below" src="https://github.com/DaniGuardiola/classy-ink/raw/main/example.png">
</p>
```tsx
import { render } from "ink";
import { Box, Text } from "classy-ink";
function Divider() {
return <Box class="border-t border-gray my-1" />;
}
function Button({ label }: { label: string }) {
return (
<Box class="border-round bg-blue px-1">
<Text class="text-white font-bold">{label}</Text>
</Box>
);
}
function InputField({ label }: { label: string }) {
return (
<Box class="items-center">
<Text class="mr-2">{label}:</Text>
<Box class="border border-round border-cyan px-2">
<Text class="text-cyan">_____________</Text>
</Box>
</Box>
);
}
function App() {
return (
<Box class="border border-round border-green flex-col px-2 py-1">
<Box class="justify-between">
<Text class="text-magenta font-bold">The Matrix CLI</Text>
<Text class="text-gray">(Ctrl+C to quit)</Text>
</Box>
<Divider />
<Box class="flex-col gap-1">
<Text class="text-red font-bold">Access credentials</Text>
<Box class="gap-4">
<InputField label="Username" />
<InputField label="Password" />
</Box>
</Box>
<Divider />
<Box class="gap-1">
<Button label="Enter" />
<Button label="Cancel" />
</Box>
</Box>
);
}
render(<App />);
```
You can [run and edit this example live](https://stackblitz.com/edit/classy-ink-example?file=example.tsx&view=editor) in your browser.
## <a name='Features'></a>Features
- Full support\* for all of `Box` and `Text` style props.
- Optimized for familiarity. Tailwind CSS users will feel right at home.
- Compatible with [Tailwind CSS Intellisense](https://tailwindcss.com/docs/editor-setup#intelli-sense-for-vs-code) and [automatic sorting](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).
- Customizable screen variants (`sm`, `md`, `lg`...) to adapt to different terminal sizes. _(coming soon)_
- Runtime compilation, which enables dynamic values like `border-${color}`.
- Optional cache that prevents recompilation.
_\* While all props are supported, some small subsets of functionality are not fully implemented yet. See the [Current limitations](#current-limitations) section for more information._
## <a name='Contents'></a>Contents
<!-- vscode-markdown-toc -->
- [Install](#install)
- [Example](#example)
- [Features](#features)
- [Contents](#contents)
- [Usage](#usage)
- [IDE features (optional)](#ide-features-optional)
- [Cache (optional)](#cache-optional)
- [Tips](#tips)
- [Utility classes](#utility-classes)
- [`Box` props](#box-props)
- [`Text` props](#text-props)
- [Notes](#notes)
- [Colors](#colors)
- [Borders](#borders)
- [Current limitations](#current-limitations)
- [Custom usage](#custom-usage)
- [Contributing](#contributing)
- [Author](#author)
<!-- vscode-markdown-toc-config
numbering=false
autoSave=true
/vscode-markdown-toc-config -->
<!-- /vscode-markdown-toc -->
For a history of changes, see the [changelog](CHANGELOG.md).
## <a name='Usage'></a>Usage
1. Import `Box` and `Text` from `classy-ink` instead of `ink`.
```tsx
import { Box, Text } from "classy-ink";
```
2. Use the `class` prop to apply styles.
```tsx
<Box class="min-w-1/2 border flex-wrap px-3 py-1 gap-2">
<Text class="text-red">Hello</Text>
<Text class="text-white bg-blue font-bold">World!</Text>
</Box>
```
### <a name='IDEfeaturesoptional'></a>IDE features (optional)
While Classy Ink is completely separate from Tailwind CSS, some tooling is compatible due to the similarities between the two projects. In particular, a big amount of effort was spent on Intellisense compatibility through a hand-made Tailwind CSS configuration.
1. Install the [Tailwind CSS Intellisense extension](https://tailwindcss.com/docs/editor-setup#intelli-sense-for-vs-code) for Visual Studio Code or any supported IDE.
2. Install `tailwindcss` in your project.
```
npm install -D tailwindcss
```
3. Create a `tailwind.config.js` file in the project root with the following content:
```tsx
import { tailwindConfig } from "classy-ink/intellisense";
export default tailwindConfig;
```
For automatic class sorting, set up the [Tailwind CSS Prettier plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).
> Note that the Tailwind CSS configuration is NOT used for the actual compilation or anything else. It's only used for Intellisense.
### <a name='Cacheoptional'></a>Cache (optional)
To use the cache, wrap your app in a `<ClassyInkProvider />`, for example:
```tsx
import { ClassyInkProvider, Box } from "classy-ink";
function App() {
return (
<ClassyInkProvider>
<Box class="border p-1" />
</ClassyInkProvider>
);
}
```
The cache size can be configured with the `maxCacheSize` prop (default: `500`). It can also be disabled by passing the value `0`.
Note that you might not need the cache at all. CLI apps are usually not very dynamic, so the performance impact of recompiling classes is negligible.
Also, note that the cache uses a [Least Recently Used](<https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)>) algorithm, in case that's relevant to your use case.
### <a name='Tips'></a>Tips
The compilation process occurs at runtime, so you can use dynamic values in your classes. If you're used to Tailwind CSS (where this is not possible), this might be a welcome difference.
For example, the following will work:
```tsx
<Box class={`border-${color}-bright`} />
```
---
You can still pass any style props you want, and they will take precedence over the Classy Ink classes.
For example, in the following code the final value of `flexDirection` will be `"row"` instead of `"column"`:
```tsx
<Box class="flex-col" flexDirection="row" />
```
---
CLI apps are usually not very dynamic, so the cost of compiling (and recompiling) is often negligible. Furthermore, with the optional cache, it's even less of a problem. This means that normally there's no reason to use style props directly (over utility classes) for performance reasons.
The main exception is a highly dynamic value that changes very frequently. In that case, it's recommended to extract that value into a style prop while leaving others as utility classes.
---
Utilities that support a numeric value (`gap`, `m`, `grow`...) also support the arbitrary value syntax (e.g. `gap-[4]`).
---
Classy Ink is relatively lax about allowed values in comparison to Tailwind CSS. For example, `w-23/58` (equivalent to `width: 0.396551724%`) and `w-71827` will work out of the box, even though they are atypical.
Values like these are not "officially supported" though, and might stop working in a future update. If you need them, use the arbitrary value syntax (e.g. `w-[0.396551%]` or `w-[71827]`) which will always support custom values.
## <a name='Utilityclasses'></a>Utility classes
All `<Box />` and `<Text />` style props are supported. Below are their equivalent Classy Ink utilities.
### <a name='Boxprops'></a>`Box` props
- `position`: `absolute` and `relative`
- `columnGap`: `gap-x-<n>`
- `rowGap`: `gap-y-<n>`
- `gap`: `gap-<n>`
- `margin`: `m-<n>`
- `margin<X|Y|Top|Bottom|Left|Right>`: `m-<x|y|t|b|l|r>-<n>`
- `padding`: `p-<n>`
- `padding<X|Y|Top|Bottom|Left|Right>`: `p-<x|y|t|b|l|r>-<n>`
- `flexGrow`: `grow` (value: `1`) and `grow-<n>`
- `flexShrink`: `shrink` (value: `1`) and `shrink-<n>`
- `flexDirection`: `flex-<row|row-reverse|column|column-reverse>`
- `flexBasis`: `basis-<n>`
- `flexWrap`: `flex-<nowrap|wrap|wrap-reverse>`
- `alignItems`: `items-<start|center|end|stretch>`
- `alignSelf`: `self-<start|center|end|auto>`
- `justifyContent`: `justify-<start|end|between|around|center>`
- `width`: `w-<n>`, `w-<n/n>`, `w-[<n>%]` and `w-full`
- `height`: `h-<n>`, `h-<n/n>`, `h-[<n>%]` and `h-full`
- `minWidth`: `min-w-<n>`, `min-w-<n/n>`, `min-w-[<n>%]` and `min-w-full`
- `minHeight`: `min-h-<n>`, `min-h-<n/n>`, `min-h-[<n>%]` and `min-h-full`
- `display`: `flex` and `hidden`
- `borderStyle`: `border-<style>`
- `border<Top|Bottom|Left|Right>Style`: `border-<t|b|l|r>`
- `borderColor`: `border-<color>`
- `border<Top|Bottom|Left|Right>Color`: `border-<t|b|l|r>-<color>`
- `borderDimColor`: `border-dim`
- `border<Top|Bottom|Left|Right>DimColor`: `border-<t|b|l|r>-dim`
- `overflow`: `overflow-<visible|hidden>`
- `overflow<X|Y>`: `overflow-<x|y>-<visible|hidden>`
### <a name='Textprops'></a>`Text` props
- `color`: `text-<color>`
- `backgroundColor`: `bg-<color>`
- `dimColor`: `text-dim`
- `bold`: `font-bold`
- `italic`: `italic`
- `underline`: `underline`
- `strikethrough`: `strike`
- `inverse`: `inverse`
- `wrap`: `whitespace-wrap`, `whitespace-nowrap` (equivalent to `truncate`), `truncate` (truncates the end), `truncate-<start|middle>`
## <a name='Notes'></a>Notes
### <a name='Colors'></a>Colors
The following colors are supported:
- `black`
- `white`
- `gray`
- `red`
- `green`
- `yellow`
- `blue`
- `cyan`
- `magenta`
All colors except `gray` also have a "bright" equivalent named `<color>-bright` (e.g. `red-bright`).
### <a name='Borders'></a>Borders
- `border` sets `borderStyle: "single"` and enables all sides (`borderTop`, `borderBottom`, `borderLeft`, `borderRight`).
- When `border-<t|b|l|r>` is set:
- `borderStyle` is set to `"single"` unless another style is already set **for all sides** (`border-<style>`).
- All other sides are disabled (set to `false`) unless enabled elsewhere. In other words, it functions as a "whitelist". Note that `border` always enables all sides.
### <a name='Currentlimitations'></a>Current limitations
- Setting border style by side/corner (`border-<tl|t|tr|r|br|b|bl|l|a>-<style>`) is not supported.
- `basis` only supports basic numeric values.
- Margin utilities only support negative values through arbitrary value syntax (e.g. `ml-[-1]`). Standard syntax (e.g. `-ml-1`) is not supported. Negative percentages are not supported either.
- There is no sense of "RTL" or "LTR" in Ink, so logical utilities like `ms-<n>` (`margin-inline-start`) are not supported.
## Custom usage
If you have some kind of custom use case, you can use the `useClassyInk` hook or the `compileClass` function directly.
Both take a class string and return an object with the corresponding Ink props. The hook wraps the function and adds memoization and caching logic on top.
Unless there's a good reason to do otherwise, the hook is recommended over the function.
```tsx
// note: incomplete example for illustration purposes
import { compileClass } from "classy-ink";
import { Box } from "ink";
function MyCustomBox({ class: className, ...props }) {
return <Box {...useClassyInk(className)} {...props} />;
}
// or
const inkProps = compileClass("border border-red");
<Box {...inkProps} />;
```
## <a name='Contributing'></a>Contributing
Install [`bun`](https://bun.sh/) and install dependencies with `bun i`.
You can run `bun demo:watch` to start the demo and automatically restart on changes.
Contributions are welcome, especially those that add missing features like the ones listed in [Current limitations](#current-limitations).
## <a name='Author'></a>Author
Classy Ink was built by [Dani Guardiola](https://dio.la/).
Classy Ink is NOT affiliated with Tailwind CSS, Tailwind Labs Inc., or the Ink project.
| Build classy CLI interfaces with utility classes and Ink. | cli,ink,javascript,tailwindcss,ui,utility-classes | 2023-11-02T23:52:20Z | 2023-11-16T19:35:26Z | 2023-11-08T16:12:58Z | 1 | 19 | 20 | 8 | 0 | 43 | null | MIT | TypeScript |
ziir/rsc-demo | master | # React Server Components (RSC) Notes App Demo / Playground without a framework
<img alt="Screenshot of the RSC Notes App Demo / Playground" src="screenshots/react-server-components-rsc-no-framework-demo-screenshot.png" />
- See the [Live Server Components (RSC) Notes App Demo / Playground](https://rsc-demo.timtech.blog/)
- Read the blog post [React Server Components, without a framework](https://timtech.blog/posts/react-server-components-rsc-no-framework/)
## Disclaimer
Please note, there is absolutely nothing optimal about the following implementation yet, it is purposely naive, incomplete, and is intended for learning & demo purposes.
## Objectives
- a somewhat functional React Notes App (listing, creating, editing & deleting notes with a text title & Markdown content)
- React Server Components used alongside Client Components
- some sort of server-side rendering
- some kind of data-fetching using Server Components
- routing that somewhat works both in the client & on the server
- refreshing server components from the client
- a usable RSC playground
- above all else: learn
## Getting Started
Developed on Node.js v18.18.1 + npm v9.8.1
- `git clone` this repository
- `npm ci`
### Dev Environment
- start a Webpack process, watching for changes in `./src` and outputting built files to `./dist`
- start a Node.js HTTP Server (with Fastify) at http://localhost:3000, watching for changes in `./server`, `./src` & `./dist` with Nodemon
```
npm run dev
```
### Prod Environment
Run the Webpack build & start the Node.js HTTP Server, for production.
```
npm run build
npm start
```
## Main Dependencies
- [Webpack](https://webpack.js.org) bundler
- [Babel](https://babeljs.io) JavaScript compiler, for transpiling JSX syntax
- [Fastify](https://fastify.dev/) for the HTTP web server
- [a-route](https://github.com/WebReflection/a-route) extremely minimal JavaScript / DOM routing library leveraging Custom Elements
## Misc
- Created by [Timothée “Tim” Pillard](https://timtech.blog/about/) [@tpillard on Twitter](https://twitter.com/tpillard)
- ["React Server Components, without a framework" blog post announcement on Twitter](https://twitter.com/tpillard/status/1721848350813585611)
- Based on [React Notes App](https://react-notes-app.timtech.blog/)
| React Server Components (RSC) Demo / Playground without a framework | components,javascript,javascript-framework,react,rsc,server | 2023-11-07T10:50:55Z | 2023-11-13T16:55:14Z | null | 2 | 1 | 15 | 0 | 2 | 43 | null | MIT | JavaScript |
yantra-core/Mantra.js | master | null | A JavaScript game dev framework. | 2d-game-framework,3d-game-framework,css-game,game-development,game-engine,javascript,javascript-game,physics,threejs | 2023-10-30T15:30:28Z | 2024-05-13T17:59:29Z | null | 2 | 11 | 1,125 | 0 | 3 | 43 | null | null | JavaScript |
Acetyld/expo-foreground-actions | main | <div align="center">
<h1 align="center">
<img src="https://github.com/Acetyld/expo-foreground-actions/blob/main/assets/logo.png" width="100" />
<br>EXPO-FOREGROUND-ACTIONS</h1>
<div style="font-style: italic">Running Foreground actions for Android/IOS</div>
<div style="opacity: 0.5;margin-top:10px;">Developed with the software and tools below.</div>
<p align="center">
<img src="https://img.shields.io/badge/JavaScript-F7DF1E.svg?style=flat-square&logo=JavaScript&logoColor=black" alt="JavaScript" />
<img src="https://img.shields.io/badge/TypeScript-3178C6.svg?style=flat-square&logo=TypeScript&logoColor=white" alt="TypeScript" />
<img src="https://img.shields.io/badge/React-61DAFB.svg?style=flat-square&logo=React&logoColor=black" alt="React" />
<img src="https://img.shields.io/badge/React Native-61DAFB.svg?style=flat-square&logo=React&logoColor=black" alt="React" />
<img src="https://img.shields.io/badge/Swift-F05138.svg?style=flat-square&logo=Swift&logoColor=white" alt="Swift" />
<img src="https://img.shields.io/badge/Kotlin-7F52FF.svg?style=flat-square&logo=Kotlin&logoColor=white" alt="Kotlin" />
<img src="https://img.shields.io/badge/Expo-000020.svg?style=flat-square&logo=Expo&logoColor=white" alt="Expo" />
</p>
<a href="https://www.npmjs.com/package/expo-foreground-actions">
<img src="https://img.shields.io/npm/v/expo-foreground-actions?style=flat-square" alt="npm version">
</a>
<img src="https://img.shields.io/github/license/Acetyld/expo-foreground-actions?style=flat-square&color=5D6D7E" alt="GitHub license" />
<img src="https://img.shields.io/github/last-commit/Acetyld/expo-foreground-actions?style=flat-square&color=5D6D7E" alt="git-last-commit" />
<img src="https://img.shields.io/github/commit-activity/m/Acetyld/expo-foreground-actions?style=flat-square&color=5D6D7E" alt="GitHub commit activity" />
<img src="https://img.shields.io/github/languages/top/Acetyld/expo-foreground-actions?style=flat-square&color=5D6D7E" alt="GitHub top language" />
</div>
---
## 📖 Table of Contents
- [📖 Table of Contents](#-table-of-contents)
- [📍 Overview](#-overview)
- [📦 Features](#-features)
- [📂 repository Structure](#-repository-structure)
- [🚀 Getting Started](#-getting-started)
- [🔧 Installation](#-installation)
- [🤖 How to use](#-how-to-use)
- [🤖 Functions](#-functions)
- [🤖 Interfaces](#-interfaces)
- [🛣 Roadmap](#-roadmap)
- [🤝 Contributing](#-contributing)
- [📄 License](#-license)
- [👏 Acknowledgments](#-acknowledgments)
---
## 📍 Overview
Start actions that continue to run in the grace period after the user switches apps. This library facilitates the
execution of **ios**'s `beginBackgroundTaskWithName` and **android**'s `startForegroundService` methods. The primary
objective is to emulate the behavior of `beginBackgroundTaskWithName`, allowing actions to persist even when the user
switches to another app. Examples include sending chat messages, creating tasks, or running synchronizations.
On iOS, the grace period typically lasts around 30 seconds, while on Android, foreground tasks can run for a longer
duration, subject to device models and background policies. In general, a foreground task can safely run for about 30
seconds on both platforms. However, it's important to note that this library is not intended for background location
tracking. iOS's limited 30-second window makes it impractical for such purposes. For background location tracking,
alternatives like WorkManager or GTaskScheduler are more suitable.
For usage instructions, please refer to
the [Example](https://github.com/Acetyld/expo-foreground-actions/tree/main/example) provided.
---
## 📦 Features
### For IOS & Android:
- Execute JavaScript while the app is in the background.
- Run multiple foreground actions simultaneously.
- Forcefully terminate all foreground actions.
### For Android:
- Display notifications with customizable titles, descriptions, and optional progress bars, along with support for deep
linking.
- Comply with the latest Android 34+ background policy, ensuring that foreground services continue to run without
displaying a visible notification. Users can still access these services from the notification drawer.
### For IOS:
- Receive notifications when the background execution time is about to expire. This feature allows users to save their
data and terminate tasks gracefully.
### Web Support:
- Limited support for web platforms. We recommend using the `runInJS` method due to potential errors when attempting to
run foreground actions on web browsers.
---
## 📂 Repository Structure
```sh
└── expo-foreground-actions/
├── .eslintrc.js
├── android/
├── example/
│ ├── App.tsx
│ ├── android/
│ ├── app.json
│ ├── babel.config.js
│ ├── metro.config.js
│ ├── package-lock.json
│ ├── package.json
│ ├── plugins/
│ │ └── expo-foreground-actions.js
│ ├── tsconfig.json
│ ├── webpack.config.js
│ └── yarn.lock
├── ios/
├── package-lock.json
├── package.json
├── plugins/
│ └── expo-foreground-actions.js
├── src/
│ ├── ExpoForegroundActions.types.ts
│ ├── ExpoForegroundActionsModule.ts
│ └── index.ts
├── tsconfig.json
└── yarn.lock
```
## 🚀 Getting Started
***Dependencies***
Please ensure you have the following dependencies installed on your system:
`- ℹ️ Expo v49+`
`- ℹ️ Bare/Manage workflow, we do not support Expo GO`
### 🔧 Installation
1. Clone the expo-foreground-actions repository:
**NPM**
```sh
npm install expo-foreground-actions
```
**Yarn**
```sh
yarn add expo-foreground-actions
```
2. Install the plugin, for now download the repo and copy
the [plugins](https://github.com/Acetyld/expo-foreground-actions/tree/main/plugins) folder to your project root.
3. Then update your app.json to include the plugin and a scheme if u wanna use the plugin with a
deeplink. <br/>https://docs.expo.dev/guides/linking/
```sh
"expo": {
"scheme": "myapp",
"plugins": [
[
"./plugins/expo-foreground-actions"
]
],
}
```
3. Make sure the plugin is loaded in your app.json, you can do this by running **prebuild on managed** or by running *
*pod install/gradle build** on bare.
### 🤖 How to use?
For the time being, dedicated documentation is not available. However, you can explore the usage of current methods in
the provided example app. Refer to the [Example](https://github.com/Acetyld/expo-foreground-actions/tree/main/example)
folder to understand how to utilize this package effectively.

### 🤖 Functions
#### `runForegroundedAction`
```typescript
export const runForegroundedAction = async (
act: (api: ForegroundApi) => Promise<void>,
androidSettings: AndroidSettings,
settings: Settings = { runInJS: false }
): Promise<void>;
```
- `act`: The foreground action function to be executed.
- `androidSettings`: Android-specific settings for the foreground action.
- `settings`: Additional settings for the foreground action.
#### `startForegroundAction`
```typescript
export const startForegroundAction = async (
options?: AndroidSettings
): Promise<number>;
```
- `options`: Android-specific settings for the foreground action.
#### `stopForegroundAction`
```typescript
export const stopForegroundAction = async (id: number): Promise<void>;
```
- `id`: The unique identifier of the foreground action to stop.
#### `updateForegroundedAction`
```typescript
export const updateForegroundedAction = async (
id: number,
options: AndroidSettings
): Promise<void>;
```
- `id`: The unique identifier of the foreground action to update.
- `options`: Updated Android-specific settings for the foreground action.
#### `forceStopAllForegroundActions`
```typescript
export const forceStopAllForegroundActions = async (): Promise<void>;
```
- Forcefully stops all running foreground actions.
#### `getForegroundIdentifiers`
```typescript
export const getForegroundIdentifiers = async (): Promise<number>;
```
- Retrieves the identifiers of all currently running foreground actions.
#### `getRanTaskCount`
```typescript
export const getRanTaskCount = () => ranTaskCount;
```
- Retrieves the count of tasks that have run.
#### `getBackgroundTimeRemaining`
```typescript
export const getBackgroundTimeRemaining = async (): Promise<number>;
```
- Retrieves the remaining background execution time on iOS.
### 🤖 Interfaces
#### `ExpireEventPayload`
```typescript
export type ExpireEventPayload = {
remaining: number;
identifier: number;
};
```
- `remaining`: The remaining time in seconds before the foreground action expires.
- `identifier`: The unique identifier of the foreground action.
#### `AndroidSettings`
```typescript
export interface AndroidSettings {
headlessTaskName: string;
notificationTitle: string;
notificationDesc: string;
notificationColor: string;
notificationIconName: string;
notificationIconType: string;
notificationProgress: number;
notificationMaxProgress: number;
notificationIndeterminate: boolean;
linkingURI: string;
}
```
- `headlessTaskName`: Name of the headless task associated with the foreground action.
- `notificationTitle`: Title of the notification shown during the foreground action.
- `notificationDesc`: Description of the notification.
- `notificationColor`: Color of the notification.
- `notificationIconName`: Name of the notification icon.
- `notificationIconType`: Type of the notification icon.
- `notificationProgress`: Current progress value for the notification.
- `notificationMaxProgress`: Maximum progress value for the notification.
- `notificationIndeterminate`: Indicates if the notification progress is indeterminate.
- `linkingURI`: URI to link to when the notification is pressed.
#### `Settings`
```typescript
export interface Settings {
events?: {
onIdentifier?: (identifier: number) => void;
}
runInJS?: boolean,
}
```
- `events`: Event handlers for foreground actions.
- `onIdentifier`: A callback function called when an identifier is generated.
- `runInJS`: Indicates whether to run the foreground action without using a headless task or ios background task.
---
## 🛣 Project Roadmap
> - [X] `ℹ️ Task 1: Initial launch`
> - [X] `ℹ️ Task 2: Possiblity to run multiple foreground tasks`
> - [ ] `ℹ️ Any idea's are welcome =)`
---
## 🤝 Contributing
Contributions are welcome! Here are several ways you can contribute:
- **[Submit Pull Requests](https://github.com/Acetyld/expo-foreground-actions/blob/main/CONTRIBUTING.md)**: Review open
PRs, and submit your own PRs.
- **[Join the Discussions](https://github.com/Acetyld/expo-foreground-actions/discussions)**: Share your insights,
provide feedback, or ask questions.
- **[Report Issues](https://github.com/Acetyld/expo-foreground-actions/issues)**: Submit bugs found or log feature
requests for ACETYLD.
#### *Contributing Guidelines*
<details closed>
<summary>Click to expand</summary>
1. **Fork the Repository**: Start by forking the project repository to your GitHub account.
2. **Clone Locally**: Clone the forked repository to your local machine using a Git client.
```sh
git clone <your-forked-repo-url>
```
3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.
```sh
git checkout -b new-feature-x
```
4. **Make Your Changes**: Develop and test your changes locally.
5. **Commit Your Changes**: Commit with a clear and concise message describing your updates.
```sh
git commit -m 'Implemented new feature x.'
```
6. **Push to GitHub**: Push the changes to your forked repository.
```sh
git push origin new-feature-x
```
7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and
their motivations.
Once your PR is reviewed and approved, it will be merged into the main branch.
</details>
---
## 📄 License
This project is protected under the [MIT](https://choosealicense.com/licenses) License. For more details, refer to
the [LICENSE](https://choosealicense.com/licenses/) file.
---
## 👏 Acknowledgments
- Idea/inspiration from https://github.com/Rapsssito/react-native-background-actions
- [Expo](https://expo.dev) for providing a platform to build universal apps using React Native.
- [Benedikt](https://twitter.com/bndkt) for mentioning this package in the "thisweekinreact"
newsletter: [Week 176](https://thisweekinreact.com/newsletter/176)
[**Return**](#Top)
---
| Start actions that continue to run in the grace period after the user switches apps. | expo,javascript,kotlin,react,react-native,swift,typescript | 2023-10-19T07:08:45Z | 2024-03-06T19:53:50Z | null | 1 | 0 | 54 | 1 | 0 | 40 | null | null | Kotlin |
qnighy/bqpb | master | ## Protobuf parser for BigQuery
bqpb is a **self-contained, yet feature-complete** parser for the [Protocol Buffers](https://protobuf.dev/) format, which is intended for use on [BigQuery](https://cloud.google.com/bigquery/) as a [JavaScript UDF](https://cloud.google.com/bigquery/docs/reference/standard-sql/user-defined-functions#javascript-udfs).
### Supported features
- [x] Protobuf input
- [x] JSON output
- [x] JSON output conformance -- see [JSON Mapping](https://protobuf.dev/programming-guides/proto3/#json) defined in the spec.
- Schema support
- [x] Rough inspection of the message without a schema
- [x] Precise parsing and serialization of the message with a schema
- Supported types
- [x] All integer types -- `uint32`, `int32`, `sint32`, `uint64`, `int64`, `sint64`, `fixed32`, `sfixed32`, `fixed64`, `sfixed64`
- [x] `float` and `double`
- [x] `bool`
- [x] `bytes` and `string`
- [x] `map`
- [x] Enums
- [x] Messages
- Supported field types
- [x] optional
- [x] repeated
- [x] packed representation
- [x] oneof (partially supported)
- [x] group in proto2
- Supported special JSON serialization rules
- [x] Any
- [x] Generic JSON Values -- Value, Struct, ListValue, and NullValue
- [x] Timestamp and Duration
- [x] FieldMask
- [x] Wrapper types -- `UInt32Value`, `Int32Value`, `UInt64Value`, `Int64Value`, `FloatValue`, `DoubleValue`, `BoolValue`, `StringValue`, `BytesValue`
### Usage
```sql
CREATE TEMP FUNCTION parseProtobuf(input BYTES, messageType STRING, typedefs JSON)
RETURNS JSON DETERMINISTIC
LANGUAGE js
AS r"""
// bqpb v0.1.0
// (c) 2023, Masaki Hara. Licensed under the MIT License.
"use strict";function n(n){
const t=(n+"=").indexOf("="),e=new Uint8Array(.75*t|0);for(let r=0;t>r;r++){
const t=n.charCodeAt(r),o=.75*r+.75|0,i=t-(96>t?64>t?48>t?47>t?-19:-16:-4:65:71)<<2+r%4*2
;e[o-1]|=i>>8,e[o]|=i}return e}function t(n){
const t=new Array(4*((n.length+2)/3|0)),e=(4*n.length+2)/3|0
;for(let r=0;e>r;r++){const e=.75*r+.75|0,o=(n[e-1]<<8|n[e])>>2+r%4*2&63
;t[r]=o+(26>o?65:52>o?71:62>o?-4:63>o?-19:-16)}
for(let n=e;n<t.length;n++)t[n]=61;return String.fromCharCode(...t)}
function e(n){try{
return decodeURIComponent(Array.from(n).map((n=>`%${n.toString(16)}`)).join(""))
}catch(n){throw new Error("Invalid UTF-8 sequence")}}function r(n){
if(n.p>=n.b.length)throw new Error("Unexpected EOF");return n.b[n.p++]}
function o(n){let t=0n,e=0n;for(;;){const o=r(n)
;if(t|=BigInt(127&o)<<e,128>o)break;e+=7n}return t}function i(n,t){let e=0n
;for(let o=0;t>o;o++){const t=r(n);e|=BigInt(t)<<BigInt(8*o)}return e}
function u(n,t){const e=[];for(;;){const r=f(n,t);if(null==r)break;e.push(r)}
return e}function f(n,t){if(null==t&&n.p>=n.b.length)return null
;const e=o(n),r=Number(7n&e),f=e>>3n;switch(r){case 0:return{f:f,w:r,v:o(n)}
;case 1:case 5:return{f:f,w:r,v:i(n,1===r?8:4)};case 2:{const t=Number(o(n))
;if(n.p+t>n.b.length)throw new Error("Unexpected EOF")
;const e=n.b.subarray(n.p,n.p+t);return n.p+=t,{f:f,w:r,v:e}}case 3:return{f:f,
w:r,v:u(n,f)};case 4:if(f===t)return null;throw new Error("Invalid group")
;default:throw new Error("Unexpected wire type")}}function s(n){return u({b:n,
p:0})}function c(n){const{w:t,v:e}=n;if(1===t){const n=0x7FFFFFFFFFFFFFFFn&e
;if(0n===n||n>=0x3000000000000000n&&0x5000000000000000n>n||0x7FF0000000000000n===n||0x7FF8000000000000n===n)return"double"
}if(5===t){const n=0x7FFFFFFFn&e
;if(0n===n||n>=0x30000000n&&0x50000000n>n||0x7F800000n===n||0x7FC00000n===n)return"float"
}if(e>=0xE0000000n&&0x100000000n>e){if(0===t)return"int32"
;if(5===t)return"sfixed32"}if(e>=0xE000000000000000n&&0x10000000000000000n>e){
if(0===t)return"int64";if(1===t)return"sfixed64"}
return 1===t?"fixed64":5===t?"fixed32":"uint64"}function a(n,t,e){
return l(s(n),t,e)}function l(n,t,e){const r=K(n,t,e)
;return void 0!==r?r:F(n,t,e)}function F(n,e,r){const u={}
;for(const t of n)(u[t.f]??=[]).push(t);const f={},s=r[`message ${e}`]
;if(s)for(const[n,t]of Object.entries(s)){const e=u[t.id]??[];delete u[t.id]
;const s=G(t.type,r,t.messageEncoding),c=null!=t.oneofGroup?"explicit":t.fieldPresence??"explicit"
;let a,l;if(s===O){const n=e.map((n=>J(n,s,t.type,r)))
;a=Object.fromEntries(n),l=!0}else if(t.repeated){let n=e;if(N>s){n=[]
;for(const r of e){if(2!==r.w){n.push(r);continue}const e={b:r.v,p:0}
;for(;e.p<r.v.length;)j>s?n.push({f:BigInt(t.id),w:0,v:o(e)}):n.push({
f:BigInt(t.id),w:B>s?5:1,v:i(e,B>s?4:8)})}}a=n.map((n=>J(n,s,t.type,r))),l=!0
}else"explicit"===c?(a=e.length>0?J(e[e.length-1],s,t.type,r):null,
l=e.length>0):(a=e.length>0?J(e[e.length-1],s,t.type,r):Z(s,t.type,r),l=!0)
;l&&(f[n]=a)}for(const n of Object.values(u)){const o=n[0].f,i=n.map((n=>{let o
;if(2===n.w)o=`unknown:bytes:${t(n.v)}`;else if(3===n.w)o=l(n.v,e,r);else{
const t=c(n);switch(t){case"double":o=`unknown:double:${_(P(n.v))}`;break
;case"float":o=`unknown:float:${_(R(n.v))}`;break;case"int32":case"sfixed32":
o=`unknown:${t}:${(0xFFFFFFFFn&n.v)-0x100000000n*(n.v>>31n&1n)}`;break
;case"int64":case"sfixed64":
o=`unknown:${t}:${(0xFFFFFFFFFFFFFFFFn&n.v)-0x10000000000000000n*(n.v>>63n&1n)}`
;break;default:o=`unknown:uint64:${n.v}`}}return o}))
;f[`#${o}`]=1===i.length?i[0]:i}return f}
const p=0,w=1,d=8,g=9,b=11,v=12,x=13,h=15,m=16,y=17,$=19,E=20,k=21,S=23,I=24,O=25,L=26,U=27,A=28,j=16,B=20,N=24,C=28
;function V(n){return 3==(3&n)}function T(n){return 1==(1&n)}function D(n){
return 4==(4&n)}function W(n){return n>=w&&k>=n&&n!=$||n===U}function Z(n,t,e){
if(n===p){const n=e[`enum ${t}`];return Object.entries(n)[0][0]??0}return q[n]}
const q={[w]:!1,[d]:0,[g]:0,[b]:0,[v]:"0",[x]:"0",[h]:"0",[m]:0,[y]:0,[$]:0,
[E]:"0",[k]:"0",[S]:0,[I]:null,[L]:"",[U]:""},z={bool:w,uint32:d,int32:g,
sint32:b,uint64:v,int64:x,sint64:h,fixed32:m,sfixed32:y,float:$,fixed64:E,
sfixed64:k,double:S,bytes:L,string:U};function G(n,t,e){
return n in z?z[n]:n.startsWith("map<")?O:`enum ${n}`in t?p:"delimited"===e?A:I
}function J(n,r,o,i){if(N>r){const t=j>r?0:B>r?5:1
;if(n.w!==t)throw new Error(`Expected wire type ${t}, got ${n.w}`)
;if(r===w)return!!n.v;if(r===p){const t=i[`enum ${o}`]
;for(const[e,r]of Object.entries(t))if(r===Number(n.v))return e
;return Number(n.v)}if(r===$)return M(R(n.v));if(r===S)return M(P(n.v))
;const e=V(r)?n.v>>1n^-(1n&n.v):T(r)?D(r)?(0xFFFFFFFFFFFFFFFFn&n.v)-((n.v>>63n&1n)<<64n):(0xFFFFFFFFn&n.v)-((n.v>>31n&1n)<<32n):n.v
;return D(r)?String(e):Number(e)}if(C>r){
if(2!==n.w)throw new Error(`Expected wire type 2, got ${n.w}`)
;if(r===L)return t(n.v);if(r===U)return e(n.v);if(r===O){
const t=o.indexOf(","),e=o.lastIndexOf(">"),r=o.slice(4,t).trim(),u=o.slice(t+1,e).trim(),f=G(r,i),c=G(u,i)
;if(!W(f)||c===O)throw new Error("Invalid map type")
;const a=s(n.v),l=a.findLast((n=>1n===n.f)),F=a.findLast((n=>2n===n.f))
;if(!l||!F)return null;return[J(l,f,r,i),J(F,c,u,i)]}return a(n.v,o,i)}
if(3!==n.w)throw new Error(`Expected wire type 3, got ${n.w}`)
;return l(n.v,o,i)}function M(n){return 1/n==0||n!=n?`${n}`:n}function P(n){
return new Float64Array(BigUint64Array.of(n).buffer)[0]}function R(n){
return new Float32Array(Uint32Array.of(Number(n)).buffer)[0]}function _(n){
return 0===n&&0>1/n?"-0":`${n}`}function H(t,e,r){return a(n(t),e,r)}
function K(n,t,e){if(!t.startsWith("google.protobuf."))return
;const r=t.slice(16)
;if(/^(U?Int(32|64)|Double|Float|Bool|String|Bytes)Value$/.test(r)){
const t=r.slice(0,-5).toLowerCase(),o=G(t,e),i=n.findLast((n=>1n===n.f))
;return i?J(i,o,t,e):Z(o,t,e)}switch(r){case"Any":{
const t=n.findLast((n=>1n===n.f)),r=n.findLast((n=>2n===n.f)),o=t?J(t,U,"string",e):""
;if(r&&2!==r.w)throw new Error(`Expected wire type 2, got ${r.w}`)
;const i=r?.v??new Uint8Array;if(o.startsWith("type.googleapis.com/")){
const n=o.slice(20),t=s(i),r=K(t,n,e);return void 0!==r?{"@type":o,value:r}:{
"@type":o,...F(t,n,e)}}break}case"Value":{
const t=n.findLast((n=>n.f>=1n&&7n>=n.f))
;if(!t)throw new Error("Invalid JSON Value");switch(t.f){case 1n:
return J(t,d,"uint32",e),null;case 2n:return J(t,S,"bool",e);case 3n:
return J(t,U,"string",e);case 4n:return J(t,w,"bool",e);case 5n:
return J(t,I,"google.protobuf.Struct",e);case 6n:
return J(t,I,"google.protobuf.ListValue",e)}break}case"Struct":{
const t=n.filter((n=>1n===n.f)).map((n=>J(n,O,"map<string,google.protobuf.Value>",e)))
;return Object.fromEntries(t)}case"ListValue":
return n.filter((n=>1n===n.f)).map((n=>J(n,I,"google.protobuf.Value",e)))
;case"FieldMask":
return n.filter((n=>1n===n.f)).map((n=>J(n,U,"string",e))).map((n=>n.replace(/_([a-z])/g,((n,t)=>t.toUpperCase())))).join(",")
;case"Timestamp":case"Duration":{
const t=n.findLast((n=>1n===n.f)),o=n.findLast((n=>2n===n.f)),i=t?Number(J(t,x,"",e)):0,u=o?J(o,g,"",e):0
;if("Timestamp"===r){
return new Date(1e3*i+u/1e6).toISOString().replace(/Z$/,`${(u%1e6).toString().padStart(6,"0")}Z`)
}
return 0>i?`-${-i}.${(-u).toString().padStart(9,"0")}s`:`${i}.${u.toString().padStart(9,"0")}s`
}}}return H(input,messageType,typedefs);
""";
SELECT parseProtobuf(b'\x08\x01', 'Main', JSON"""{
"message Main": {
"field1": { "type": "uint32", "id": 1 }
}
}""")
```
### API Reference
See [parse-protobuf.md](docs/parse-protobuf.md).
### License
MIT License. See [LICENSE](LICENSE).
| BigQuery UDF to parse protobuf messages | bigquery,javascript,protobuf,protocol-buffers | 2023-11-03T13:07:57Z | 2023-11-07T13:05:04Z | 2023-11-06T12:56:16Z | 1 | 0 | 45 | 0 | 0 | 38 | null | MIT | TypeScript |
darkyzhou/You-Might-Not-Know-TypeScript | main | # 你可能不知道的 TypeScript
## 前言
欢迎你,体操家!本文将从实用角度出发,介绍 TypeScript 中的许多可能不为人所知的理论和特性,希望能够通过这种方式尽可能地抹平我们关于 TypeScript 的一些进阶知识和技巧的信息差,并启发我们使用 TypeScript 解决生产实践中的一些看似无法解决的类型问题。
本文不是所谓的「类型体操」指南。在介绍各种内容时,我会侧重于揭露它的生产价值。我不会涉及很多理论价值高于生产价值的高级技巧,例如使用类型系统写一个正则表达式的 Parser,或者是写一个五子棋游戏。
本文欢迎各位读者共同建设。如果你发现了表述不正确的地方,或者有一些好的 good idea,欢迎发表 issue。如果你觉得本文写得不错,欢迎转发和 star 哦!
> 作者的博客上面还有很多好康的文章哦,虽然现在不怎么更新了:[https://darkyzhou.net](https://darkyzhou.net)
## 目录
> [!NOTE]
> 推荐在阅读时点击文件右上角的大纲按钮(编辑按钮右边那个)来展示章节的大纲,这样有助于理解章节内容
- [第一章:基础知识](https://github.com/darkyzhou/You-Might-Not-Know-TypeScript/blob/main/chapter1.md)
- [第二章:进阶话题](https://github.com/darkyzhou/You-Might-Not-Know-TypeScript/blob/main/chapter2.md)
- [第三章:类型编程](https://github.com/darkyzhou/You-Might-Not-Know-TypeScript/blob/main/chapter3.md)
- [第四章:生产实践](https://github.com/darkyzhou/You-Might-Not-Know-TypeScript/blob/main/chapter4.md)
- [第五章:探索之路](https://github.com/darkyzhou/You-Might-Not-Know-TypeScript/blob/main/chapter5.md)
## 参考资料
本文的内容部分参考了下面的文章或书籍,没有它们的作者们的贡献就没有这篇文章。
- [Handbook - The TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
- [The type hierarchy tree](https://www.zhenghao.io/posts/type-hierarchy-tree)
- [https://twitter.com/mattpocockuk](https://twitter.com/mattpocockuk)
- [Transform Any Union in TypeScript with the IIMT](https://www.totaltypescript.com/immediately-indexed-mapped-type)
- Effective TypeScript by Dan Vanderkam
## TODO
本文章编写过程较为仓促,我还有一些想写进来的话题:
- 更多的生产实践
- Optional Variance Annotations 以及函数参数的双向协变
- 聊聊对象类型
- `type` 和 `interface` 关键字的区别,包括隐式的 [index] 声明(忘记这个叫啥了)
| TypeScript 中的许多不为人所知的基础理论和高级特性 | frontend,javascript,typescript,web | 2023-11-03T14:17:50Z | 2024-05-13T11:13:08Z | null | 1 | 0 | 12 | 0 | 0 | 35 | null | CC0-1.0 | null |
PlayForm/Format | Current | <table><tr> <td colspan="1"> <h3 align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://nikolahristov.tech/Dark/Image/GitHub/Astro.svg"> <source media="(prefers-color-scheme: light)" srcset="https://nikolahristov.tech/Image/GitHub/Astro.svg"> <img width="28" alt="Astro" src="https://nikolahristov.tech/Image/GitHub/Astro.svg"> </picture> </h3> </td> <td colspan="3" valign="top"> <h3 align="center">Related — </h3> </td> </tr><tr><td valign="top" colspan="1"><br><a href="HTTPS://GitHub.Com/Playform/Compress/actions/workflows/Node.yml" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/Playform/Compress/Node.yml?branch=main&label=Build&logo=node.js&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/Playform/Compress/Node.yml?branch=main&label=Build&logo=node.js&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/github/actions/workflow/status/Playform/Compress/Node.yml?branch=main&label=Build&logo=node.js&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Build" title="Build"> </picture> </a><br><a href="HTTPS://NPMJS.Org/@playform/compress?activeTab=dependencies" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/librariesio/release/npm/@playform/compress?logo=dependabot&label=&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/librariesio/release/npm/@playform/compress?logo=dependabot&label=&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/librariesio/release/npm/@playform/compress?logo=dependabot&label=&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Dependency" title="Dependency"> </picture> </a><br><a href="HTTPS://NPMJS.Org/@playform/compress" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/@playform/compress?label=Version&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/v/@playform/compress?label=Version&logo=npm&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/npm/v/@playform/compress?label=Version&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Version" title="Version"> </picture> </a><br><br></td><td valign="top" colspan="1"><br><a href="HTTPS://GitHub.Com/Playform/Compress" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/stars/Playform/Compress?style=flat&label=Star&logo=github&color=black&labelColor=black&logoColor=white&logoWidth=0"><source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/stars/Playform/Compress?style=flat&label=Star&logo=github&color=white&labelColor=white&logoColor=black&logoWidth=0"><img src="https://img.shields.io/github/stars/Playform/Compress?style=flat&label=Star&logo=github&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Star"></picture></a><br><a href="HTTPS://NPMJS.Org/@playform/compress" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dt/@playform/compress?label=Download&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/dt/@playform/compress?label=Download&logo=npm&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/npm/dt/@playform/compress?label=Download&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Download" title="Download"> </picture> </a><br><a href="HTTPS://GitHub.Com/Playform/Compress" target="_blank"><b>🗜️ Compress.</b></a><br></td><td valign="top" colspan="1"><br><a href="HTTPS://GitHub.Com/Playform/Inline/actions/workflows/Node.yml" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/Playform/Inline/Node.yml?branch=main&label=Build&logo=node.js&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/Playform/Inline/Node.yml?branch=main&label=Build&logo=node.js&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/github/actions/workflow/status/Playform/Inline/Node.yml?branch=main&label=Build&logo=node.js&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Build" title="Build"> </picture> </a><br><a href="HTTPS://NPMJS.Org/@playform/inline?activeTab=dependencies" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/librariesio/release/npm/@playform/inline?logo=dependabot&label=&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/librariesio/release/npm/@playform/inline?logo=dependabot&label=&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/librariesio/release/npm/@playform/inline?logo=dependabot&label=&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Dependency" title="Dependency"> </picture> </a><br><a href="HTTPS://NPMJS.Org/@playform/inline" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/@playform/inline?label=Version&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/v/@playform/inline?label=Version&logo=npm&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/npm/v/@playform/inline?label=Version&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Version" title="Version"> </picture> </a><br><br></td><td valign="top" colspan="1"><br><a href="HTTPS://GitHub.Com/Playform/Inline" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/stars/Playform/Inline?style=flat&label=Star&logo=github&color=black&labelColor=black&logoColor=white&logoWidth=0"><source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/stars/Playform/Inline?style=flat&label=Star&logo=github&color=white&labelColor=white&logoColor=black&logoWidth=0"><img src="https://img.shields.io/github/stars/Playform/Inline?style=flat&label=Star&logo=github&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Star"></picture></a><br><a href="HTTPS://NPMJS.Org/@playform/inline" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dt/@playform/inline?label=Download&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0"> <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/dt/@playform/inline?label=Download&logo=npm&color=white&labelColor=white&logoColor=black&logoWidth=0"> <img src="https://img.shields.io/npm/dt/@playform/inline?label=Download&logo=npm&color=black&labelColor=black&logoColor=white&logoWidth=0" alt="Download" title="Download"> </picture> </a><br><a href="HTTPS://GitHub.Com/Playform/Inline" target="_blank"><b>🦔 Inline.</b></a><br></td></tr></table>
# 🗻 [Format] —
This **[Astro integration][astro-integration]** brings Biome tools to your Astro
project.
[Biome][Biome]
> **Note**
>
> `Format` will not lint / format your requests, only your statically generated
> build and pre-rendered routes.
## Installation
There are two ways to add integrations to your project. Let's try the most
convenient option first!
### `astro add` command
Astro includes a CLI tool for adding first party integrations: `astro add`. This
command will:
1. (Optionally) Install all necessary dependencies and peer dependencies
2. (Also optionally) Update your `astro.config.*` file to apply this integration
To install `Format`, run the following from your project directory and follow
the prompts:
Using NPM:
```sh
npx astro add @playform/format
```
Using Yarn:
```sh
yarn astro add @playform/format
```
Using PNPM:
```sh
pnpx astro add @playform/format
```
### Install dependencies manually
First, install the `Format` integration like so:
```sh
npm install -D -E @playform/format
```
Then, apply this integration to your `astro.config.*` file using the
`integrations` property:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default { integrations: [Biome()] };
```
## Getting started
The utility will now lint and format with [Biome][Biome] all of your JavaScript
and TypeScript files, including CommonJS modules in the Astro `outDir` folder.
You can override any of the default options from the configurations of:
- [biome](Source/Option/Biome.ts)
or disable them entirely:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Biome: false,
}),
],
};
```
> **Note**
>
> If you provide a `biome.json` config file the utility will pick it up
> automatically.
> [!WARNING]
>
> The configuration options from the `astro.config.ts` file will override the
> `biome.json` config.
### Add Multiple Paths
You can add multiple paths to validate / format by specifying an array as the
`Path` variable.
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Path: ["./Target", "./Build"],
}),
],
};
```
### Input-Output Mapping
You can also provide a map of paths for different input output directories:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Path: new Map([["./Source", "./Target"]]),
}),
],
};
```
Or an array of the two:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Path: [
// Format Target
"./Target",
// Format Target one more time into a different directory
new Map([["./Target", "./TargetInline"]]),
],
}),
],
};
```
### File Filtering
You can provide a filter to exclude files from formatting. A filter can be an
array of regexes or a single match. You can use functions, as well to match on
file names:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Exclude: [
"Firebase.ts",
(File: string) => File === "./Source/Library/File.ts",
],
}),
],
};
```
### Controlling Logging
Set `Logger` to `0` if you do not want to see debug messages. Default is `2`:
**`astro.config.ts`**
```ts
import Biome from "@playform/format";
export default {
integrations: [
Biome({
Logger: 0,
}),
],
};
```
[Format]: HTTPS://NPMJS.Org/@playform/format
[Biome]: HTTPS://NPMJS.Org/@biomejs/biome
[astro-integration]: HTTPS://docs.astro.build/en/guides/integrations-guide/
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this integration.
| 🗻 Format — | astro,biome,formatter,javascript,linter,typescript,playform,format,astro-component,astro-integration | 2023-10-13T12:09:23Z | 2024-05-23T10:50:59Z | 2024-04-05T15:11:01Z | 1 | 151 | 1,487 | 0 | 0 | 34 | null | NOASSERTION | TypeScript |
danny-avila/nodejs-gpt | main | <p align="center">
<img alt="CLI demo" src="./demos/cli.gif">
</p>
## Updates
<details open>
<summary><strong>2023-10-14</strong></summary>
This repo has been forked from [waylaidwanderer/node-chatgpt-api](https://github.com/waylaidwanderer/node-chatgpt-api) for active maintenance.
</details>
<details>
<summary><strong>2023-03-01</strong></summary>
**Support for the official ChatGPT model has been added!** You can now use the `gpt-3.5-turbo` model with the official OpenAI API, using `ChatGPTClient`. This is the same model that ChatGPT uses, and it's the most powerful model available right now. Usage of this model is **not free**, however it is **10x cheaper** (priced at $0.002 per 1k tokens) than `text-davinci-003`.
See OpenAI's post, [Introducing ChatGPT and Whisper APIs](https://openai.com/blog/introducing-chatgpt-and-whisper-apis) for more information.
~~To use it, set `modelOptions.model` to `gpt-3.5-turbo`, and `ChatGPTClient` will handle the rest.~~
The default model used in `ChatGPTClient` is now `gpt-3.5-turbo`.
You can still set `userLabel`, `chatGptLabel` and `promptPrefix` (system instructions) as usual.
**There may be a higher chance of your account being banned if you continue to automate chat.openai.com.** Continue doing so at your own risk.
</details>
<details>
<summary><strong>Previous Updates</strong></summary>
<br/>
<details>
<summary><strong>2023-02-19</strong></summary>
I've added an experimental `ChatGPTBrowserClient` which depends on a reverse proxy server that makes use of a Cloudflare bypass, allowing you to talk to ChatGPT (chat.openai.com) without requiring browser automation. All you need is your access token from https://chat.openai.com/api/auth/session.
As always, please note that if you choose to go this route, you are exposing your access token to a closed-source third-party server. If you are concerned about this, you may choose to either use a free ChatGPT account to minimize risks, or continue using `ChatGPTClient` instead with the `text-davinci-003` model.
</details>
<details>
<summary><strong>2023-02-15</strong></summary>
The method we were using to access the ChatGPT underlying models has been patched, unfortunately. Your options right now are to either use the official OpenAI API with the `text-davinci-003` model (which costs money), or use a browser-based solution to interface with ChatGPT's backend (which is less powerful, more rate-limited and is not supported by this library at this time).
</details>
<details>
<summary><strong>2023-02-11</strong></summary>
With the help of @PawanOsman, **we've figured out a way to continue using the ChatGPT underlying models**. To hopefully prevent losing access again, we've decided to provide reverse proxy servers compatible with the OpenAI API. I've updated `ChatGPTClient` to support using a reverse proxy server instead of the OpenAI API server. See [Using a Reverse Proxy](#using-a-reverse-proxy) for more information on available proxy servers and how they work.
Please note that if you choose to go this route, you are exposing your access token to a closed-source third-party server. If you are concerned about this, you may choose to either use a free ChatGPT account to minimize risks, or continue using the official OpenAI API instead with the `text-davinci-003` model.
</details>
<details>
<summary><strong>2023-02-10</strong></summary>
~~I've found a new working model for `text-chat-davinci-002`, `text-chat-davinci-002-sh-alpha-aoruigiofdj83`. This is the underlying model that the ChatGPT Plus "Turbo" version uses. Responses are blazing fast. I've updated the library to use this model.~~
Bad timing; `text-chat-davinci-002-sh-alpha-aoruigiofdj83` was removed shortly after, possibly due to a new model somewhere out there?
</details>
<details>
<summary><strong>2023-02-09</strong></summary>
Experience the power of Bing's GPT-4 version of ChatGPT with [`BingAIClient`](src/BingAIClient.js) (experimental).
**The ~~API server and~~ CLI still need to be updated to support this**, but you can [use the client](#module) directly right now.
*Please note that if your account is still wait-listed, you will not be able to use this client.*
</details>
<details>
<summary><strong>2023-02-08</strong></summary>
Even though `text-chat-davinci-002-20221122` is back up again, it seems like it's constantly overloaded and returns a 429 error. It's likely that OpenAI only dedicated a small amount of resources to this model to prevent it being widely used by the public. Additionally, I've heard that newer versions are now access-locked to OpenAI employees and partners, so it's unlikely that we'll be able to find any workarounds until the model is officially released.
You may use the `text-davinci-003` model instead as a drop-in replacement. Keep in mind that `text-davinci-003` is not as good as `text-chat-davinci-002` (which is trained via RHLF and fine-tuned to be a conversational AI), though results are still pretty good in most cases. **Please note that using `text-davinci-003` will cost you credits ($).**
I will be re-adding support for the browser-based ChatGPT for the API server and CLI. Please star and watch this repository for updates.
</details>
<details>
<summary><strong>2023-02-07</strong></summary>
The roller coaster has reached the next stop. `text-chat-davinci-002-20221122` is back up again.
~~Trying to use `text-chat-davinci-002-20221122` with the OpenAI API now returns a 404 error.
You may use the `text-davinci-003` model instead as a drop-in replacement. Keep in mind that `text-davinci-003` is not as good as `text-chat-davinci-002` (which is trained via RHLF and fine-tuned to be a conversational AI), though results are still very good. **Please note that using `text-davinci-003` will cost you credits ($).**~~
~~Please hold for further updates as we investigate further workarounds.~~
</details>
<details>
<summary><strong>2023-02-02</strong></summary>
~~Trying to use `text-chat-davinci-002-20230126` with the OpenAI API now returns a 404 error. Someone has already found the new model name, but they are unwilling to share at this time. I will update this repository once I find the new model. If you have any leads, please open an issue or a pull request.~~
~~In the meantime, I've added support for models like `text-davinci-003`, which you can use as a drop-in replacement. Keep in mind that `text-davinci-003` is not as good as `text-chat-davinci-002` (which is trained via RHLF and fine-tuned to be a conversational AI), though results are still very good. **Please note that using `text-davinci-003` will cost you credits ($).**~~
Discord user @pig#8932 has found a working `text-chat-davinci-002` model, `text-chat-davinci-002-20221122`. I've updated the library to use this model.
</details>
</details>
# ChatGPT API
> A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app.
[](https://www.npmjs.com/package/@waylaidwanderer/chatgpt-api)
[](https://www.npmjs.com/package/@waylaidwanderer/chatgpt-api)
[](https://github.com/waylaidwanderer/node-chatgpt-api/blob/main/LICENSE)
[](https://github.com/waylaidwanderer/node-chatgpt-api/)
# Table of Contents
* [Features](#features)
* [Getting Started](#getting-started)
* [Prerequisites](#prerequisites)
* [Usage](#usage)
* [Module](#module)
* [API Server](#api-server)
* [CLI](#cli)
* [Using a Reverse Proxy](#using-a-reverse-proxy)
* [Projects](#projects)
* [Web Client](#web-client)
* [Caveats](#caveats)
* [Contributing](#contributing)
* [License](#license)
## Features
- Includes an API server (with Docker support) you can run to use ChatGPT in non-Node.js applications.
- Includes a CLI interface where you can chat with ChatGPT.
- Includes clients that you can use in your own Node.js applications.
- `ChatGPTClient`: support for the official ChatGPT underlying model, `gpt-3.5-turbo`, via OpenAI's API.
- Replicates chat threads from the official ChatGPT website (with conversation IDs and message IDs), with persistent conversations using [Keyv](https://www.npmjs.com/package/keyv).
- Conversations are stored in memory by default, but you can optionally [install a storage adapter](https://www.npmjs.com/package/keyv#usage) to persist conversations to a database.
- The `keyv-file` adapter is also included in this package, and can be used to store conversations in a JSON file if you're using the API server or CLI (see `settings.example.js`).
- Supports configurable prompt prefixes, and custom names for the user and ChatGPT.
- In essence, this allows you to make a chatbot with any personality you want.
- This is currently only configurable on a global level, but I plan to add support for per-conversation customization.
- Retains support for models like `text-davinci-003`
- `BingAIClient`: support for Bing's version of ChatGPT, powered by GPT-4.
- Includes a built-in jailbreak you can activate which enables unlimited chat messages per conversation, unlimited messages per day, and brings Sydney back. 😊
- `ChatGPTBrowserClient`: support for the official ChatGPT website, using a reverse proxy server for a Cloudflare bypass.
- **There may be a high chance of your account being banned if you continue to automate chat.openai.com.** Continue doing so at your own risk.
## Getting Started
### Prerequisites
- Node.js >= 16.0.0
- npm
- Docker (optional, for API server)
- [OpenAI API key](https://platform.openai.com/account/api-keys)
## Usage
### Module
```bash
npm i @waylaidwanderer/chatgpt-api
```
<details open>
<summary><strong>BingAIClient</strong></summary>
See [`demos/use-bing-client.js`](demos/use-bing-client.js).
</details>
<details open>
<summary><strong>ChatGPTClient</strong></summary>
See [`demos/use-client.js`](demos/use-client.js).
</details>
<details open>
<summary><strong>ChatGPTBrowserClient</strong></summary>
See [`demos/use-browser-client.js`](demos/use-browser-client.js).
</details>
### API Server
<h4 id="api-server-setup">Setup</h4>
You can install the package using
```bash
npm i -g @waylaidwanderer/chatgpt-api
```
then run it using
`chatgpt-api`.
This takes an optional `--settings=<path_to_settings.js>` parameter, or looks for `settings.js` in the current directory if not set, with the following contents:
<details>
<summary><strong>settings.js</strong></summary>
```JS
module.exports = {
// Options for the Keyv cache, see https://www.npmjs.com/package/keyv.
// This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default).
// Only necessary when using `ChatGPTClient`, or `BingAIClient` in jailbreak mode.
cacheOptions: {},
// If set, `ChatGPTClient` and `BingAIClient` will use `keyv-file` to store conversations to this JSON file instead of in memory.
// However, `cacheOptions.store` will override this if set
storageFilePath: process.env.STORAGE_FILE_PATH || './cache.json',
chatGptClient: {
// Your OpenAI API key (for `ChatGPTClient`)
openaiApiKey: process.env.OPENAI_API_KEY || '',
// (Optional) Support for a reverse proxy for the completions endpoint (private API server).
// Warning: This will expose your `openaiApiKey` to a third party. Consider the risks before using this.
// reverseProxyUrl: 'https://chatgpt.hato.ai/completions',
// (Optional) Parameters as described in https://platform.openai.com/docs/api-reference/completions
modelOptions: {
// You can override the model name and any other parameters here.
// The default model is `gpt-3.5-turbo`.
model: 'gpt-3.5-turbo',
// Set max_tokens here to override the default max_tokens of 1000 for the completion.
// max_tokens: 1000,
},
// (Optional) Davinci models have a max context length of 4097 tokens, but you may need to change this for other models.
// maxContextTokens: 4097,
// (Optional) You might want to lower this to save money if using a paid model like `text-davinci-003`.
// Earlier messages will be dropped until the prompt is within the limit.
// maxPromptTokens: 3097,
// (Optional) Set custom instructions instead of "You are ChatGPT...".
// (Optional) Set a custom name for the user
// userLabel: 'User',
// (Optional) Set a custom name for ChatGPT ("ChatGPT" by default)
// chatGptLabel: 'Bob',
// promptPrefix: 'You are Bob, a cowboy in Western times...',
// A proxy string like "http://<ip>:<port>"
proxy: '',
// (Optional) Set to true to enable `console.debug()` logging
debug: false,
},
// Options for the Bing client
bingAiClient: {
// Necessary for some people in different countries, e.g. China (https://cn.bing.com)
host: '',
// The "_U" cookie value from bing.com
userToken: '',
// If the above doesn't work, provide all your cookies as a string instead
cookies: '',
// A proxy string like "http://<ip>:<port>"
proxy: '',
// (Optional) Set to true to enable `console.debug()` logging
debug: false,
},
chatGptBrowserClient: {
// (Optional) Support for a reverse proxy for the conversation endpoint (private API server).
// Warning: This will expose your access token to a third party. Consider the risks before using this.
reverseProxyUrl: 'https://bypass.churchless.tech/api/conversation',
// Access token from https://chat.openai.com/api/auth/session
accessToken: '',
// Cookies from chat.openai.com (likely not required if using reverse proxy server).
cookies: '',
// A proxy string like "http://<ip>:<port>"
proxy: '',
// (Optional) Set to true to enable `console.debug()` logging
debug: false,
},
// Options for the API server
apiOptions: {
port: process.env.API_PORT || 3000,
host: process.env.API_HOST || 'localhost',
// (Optional) Set to true to enable `console.debug()` logging
debug: false,
// (Optional) Possible options: "chatgpt", "chatgpt-browser", "bing". (Default: "chatgpt")
clientToUse: 'chatgpt',
// (Optional) Generate titles for each conversation for clients that support it (only ChatGPTClient for now).
// This will be returned as a `title` property in the first response of the conversation.
generateTitles: false,
// (Optional) Set this to allow changing the client or client options in POST /conversation.
// To disable, set to `null`.
perMessageClientOptionsWhitelist: {
// The ability to switch clients using `clientOptions.clientToUse` will be disabled if `validClientsToUse` is not set.
// To allow switching clients per message, you must set `validClientsToUse` to a non-empty array.
validClientsToUse: ['bing', 'chatgpt', 'chatgpt-browser'], // values from possible `clientToUse` options above
// The Object key, e.g. "chatgpt", is a value from `validClientsToUse`.
// If not set, ALL options will be ALLOWED to be changed. For example, `bing` is not defined in `perMessageClientOptionsWhitelist` above,
// so all options for `bingAiClient` will be allowed to be changed.
// If set, ONLY the options listed here will be allowed to be changed.
// In this example, each array element is a string representing a property in `chatGptClient` above.
chatgpt: [
'promptPrefix',
'userLabel',
'chatGptLabel',
// Setting `modelOptions.temperature` here will allow changing ONLY the temperature.
// Other options like `modelOptions.model` will not be allowed to be changed.
// If you want to allow changing all `modelOptions`, define `modelOptions` here instead of `modelOptions.temperature`.
'modelOptions.temperature',
],
},
},
// Options for the CLI app
cliOptions: {
// (Optional) Possible options: "chatgpt", "bing".
// clientToUse: 'bing',
},
};
```
</details>
Alternatively, you can install and run the package directly.
1. Clone this repository: `git clone https://github.com/waylaidwanderer/node-chatgpt-api`
2. Install dependencies with `npm install` (if not using Docker)
3. Rename `settings.example.js` to `settings.js` in the root directory and change the settings where required.
4. Start the server:
- using `npm start` or `npm run server` (if not using Docker)
- using `docker-compose up` (requires Docker)
#### Endpoints
<details>
<summary><strong>POST /conversation</strong></summary>
Start or continue a conversation.
Optional parameters are only necessary for conversations that span multiple requests.
| Field | Description |
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| message | The message to be displayed to the user. |
| conversationId | (Optional) An ID for the conversation you want to continue. |
| jailbreakConversationId | (Optional, for `BingAIClient` only) Set to `true` to start a conversation in jailbreak mode. After that, this should be the ID for the jailbreak conversation (given in the response as a parameter also named `jailbreakConversationId`). |
| parentMessageId | (Optional, for `ChatGPTClient`, and `BingAIClient` in jailbreak mode) The ID of the parent message (i.e. `response.messageId`) when continuing a conversation. |
| conversationSignature | (Optional, for `BingAIClient` only) A signature for the conversation (given in the response as a parameter also named `conversationSignature`). Required when continuing a conversation unless in jailbreak mode. |
| clientId | (Optional, for `BingAIClient` only) The ID of the client. Required when continuing a conversation unless in jailbreak mode. |
| invocationId | (Optional, for `BingAIClient` only) The ID of the invocation. Required when continuing a conversation unless in jailbreak mode. |
| clientOptions | (Optional) An object containing options for the client. |
| clientOptions.clientToUse | (Optional) The client to use for this message. Possible values: `chatgpt`, `chatgpt-browser`, `bing`. |
| clientOptions.* | (Optional) Any valid options for the client. For example, for `ChatGPTClient`, you can set `clientOptions.openaiApiKey` to set an API key for this message only, or `clientOptions.promptPrefix` to give the AI custom instructions for this message only, etc. |
To configure which options can be changed per message (default: all), see the comments for `perMessageClientOptionsWhitelist` in `settings.example.js`.
To allow changing clients, `perMessageClientOptionsWhitelist.validClientsToUse` must be set to a non-empty array as described in the example settings file.
</details>
#### Usage
<details>
<summary><strong>Method 1 (POST)</strong></summary>
To start a conversation with ChatGPT, send a POST request to the server's `/conversation` endpoint with a JSON body with parameters per **Endpoints** > **POST /conversation** above.
```JSON
{
"message": "Hello, how are you today?",
"conversationId": "your-conversation-id (optional)",
"parentMessageId": "your-parent-message-id (optional, for `ChatGPTClient` only)",
"conversationSignature": "your-conversation-signature (optional, for `BingAIClient` only)",
"clientId": "your-client-id (optional, for `BingAIClient` only)",
"invocationId": "your-invocation-id (optional, for `BingAIClient` only)",
}
```
The server will return a JSON object containing ChatGPT's response:
```JS
// HTTP/1.1 200 OK
{
"response": "I'm doing well, thank you! How are you?",
"conversationId": "your-conversation-id",
"messageId": "response-message-id (for `ChatGPTClient` only)",
"conversationSignature": "your-conversation-signature (for `BingAIClient` only)",
"clientId": "your-client-id (for `BingAIClient` only)",
"invocationId": "your-invocation-id (for `BingAIClient` only - pass this new value back into subsequent requests as-is)",
"details": "an object containing the raw response from the client"
}
```
If the request is unsuccessful, the server will return a JSON object with an error message.
If the request object is missing a required property (e.g. `message`):
```JS
// HTTP/1.1 400 Bad Request
{
"error": "The message parameter is required."
}
```
If there was an error sending the message to ChatGPT:
```JS
// HTTP/1.1 503 Service Unavailable
{
"error": "There was an error communicating with ChatGPT."
}
```
</details>
<details>
<summary><strong>Method 2 (SSE)</strong></summary>
You can set `"stream": true` in the request body to receive a stream of tokens as they are generated.
```js
import { fetchEventSource } from '@waylaidwanderer/fetch-event-source'; // use `@microsoft/fetch-event-source` instead if in a browser environment
const opts = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"message": "Write a poem about cats.",
"conversationId": "your-conversation-id (optional)",
"parentMessageId": "your-parent-message-id (optional)",
"stream": true,
// Any other parameters per `Endpoints > POST /conversation` above
}),
};
```
See [demos/use-api-server-streaming.js](demos/use-api-server-streaming.js) for an example of how to receive the response as it's generated. You will receive one token at a time, so you will need to concatenate them yourself.
Successful output:
```JS
{ data: '', event: '', id: '', retry: 3000 }
{ data: 'Hello', event: '', id: '', retry: undefined }
{ data: '!', event: '', id: '', retry: undefined }
{ data: ' How', event: '', id: '', retry: undefined }
{ data: ' can', event: '', id: '', retry: undefined }
{ data: ' I', event: '', id: '', retry: undefined }
{ data: ' help', event: '', id: '', retry: undefined }
{ data: ' you', event: '', id: '', retry: undefined }
{ data: ' today', event: '', id: '', retry: undefined }
{ data: '?', event: '', id: '', retry: undefined }
{ data: '<result JSON here, see Method 1>', event: 'result', id: '', retry: undefined }
{ data: '[DONE]', event: '', id: '', retry: undefined }
// Hello! How can I help you today?
```
Error output:
```JS
const message = {
data: '{"code":503,"error":"There was an error communicating with ChatGPT."}',
event: 'error',
id: '',
retry: undefined
};
if (message.event === 'error') {
console.error(JSON.parse(message.data).error); // There was an error communicating with ChatGPT.
}
```
</details>
#### Notes
- Method 1 is simple, but Time to First Byte (TTFB) is long.
- Method 2 uses a non-standard implementation of [server-sent event API](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events); you should import `fetch-event-source` first and use `POST` method.
### CLI
#### Setup
Follow the same [setup instructions](#api-server-setup) for the API server, creating `settings.js`.
#### Usage
If installed globally:
```bash
chatgpt-cli
```
If installed locally:
```bash
npm run cli
```
ChatGPT's responses are automatically copied to your clipboard, so you can paste them into other applications.
## Using a Reverse Proxy
As shown in the examples above, you can set `reverseProxyUrl` in `ChatGPTClient`'s options to use a reverse proxy server instead of the official ChatGPT API.
~~For now, **this is the only way to use the ChatGPT underlying models**.~~ This method has been patched and the instructions below are no longer relevant, but you may still want to use a reverse proxy for other reasons.
Currently, reverse proxy servers are still used for performing a Cloudflare bypass for `ChatGPTBrowserClient`.
<details>
<summary><strong>Instructions</strong></summary>
How does it work? Simple answer: `ChatGPTClient` > reverse proxy > OpenAI server. The reverse proxy server does some magic under the hood to access the underlying model directly via OpenAI's server and then returns the response to `ChatGPTClient`.
Instructions are provided below.
<details open>
<summary><strong>https://chatgpt.hato.ai/completions</strong> (mine, <strong>currently offline</strong>)</summary>
#### Instructions
1. Get your ChatGPT access token from https://chat.openai.com/api/auth/session (look for the `accessToken` property).
* **This is NOT the same thing as the _session token_.**
* Automatically fetching or refreshing your ChatGPT access token is not currently supported by this library. Please handle this yourself for now.
2. Set `reverseProxyUrl` to `https://chatgpt.hato.ai/completions` in `settings.js > chatGptClient` or `ChatGPTClient`'s options.
3. Set the "OpenAI API key" parameter (e.g. `settings.chatGptClient.openaiApiKey`) to the ChatGPT access token you got in step 1.
4. Set the `model` to `text-davinci-002-render`, `text-davinci-002-render-paid`, or `text-davinci-002-render-sha` depending on which ChatGPT models that your account has access to. Models **must** be a ChatGPT model name, not the underlying model name, and you cannot use a model that your account does not have access to.
* You can check which ones you have access to by opening DevTools and going to the Network tab. Refresh the page and look at the response body for https://chat.openai.com/backend-api/models.
#### Notes
- Since this is my server, I can guarantee that no logging or tracking is done. I can see general usage stats, but I cannot see any of your completions. Whether you trust me on this or not is up to you.
- Non-streaming responses over 60s are not supported. Use `stream: true` (API) or `onProgress` (client) as a workaround.
- Rate limit of 10 requests per second.
</details>
<details open>
<summary><strong>https://chatgpt.pawan.krd/api/completions</strong> (@PawanOsmon, <strong>currently offline</strong>)</summary>
#### Instructions
1. Get your ChatGPT access token from https://chat.openai.com/api/auth/session (look for the `accessToken` property).
* **This is NOT the same thing as the _session token_.**
* Automatically fetching or refreshing your ChatGPT access token is not currently supported by this library. Please handle this yourself for now.
2. Set `reverseProxyUrl` to `https://chatgpt.pawan.krd/api/completions` in `settings.js > chatGptClient` or `ChatGPTClient`'s options.
3. Set the "OpenAI API key" parameter (e.g. `settings.chatGptClient.openaiApiKey`) to the ChatGPT access token you got in step 1.
4. Set the `model` to `text-davinci-002-render`, `text-davinci-002-render-paid`, or `text-davinci-002-render-sha` depending on which ChatGPT models that your account has access to. Models **must** be a ChatGPT model name, not the underlying model name, and you cannot use a model that your account does not have access to.
* You can check which ones you have access to by opening DevTools and going to the Network tab. Refresh the page and look at the response body for https://chat.openai.com/backend-api/models.
#### Notes
- Non-streaming responses over 60s are not supported. Use `stream: true` (API) or `onProgress` (client) as a workaround.
- Rate limit of 50 requests per 15 seconds.
</details>
</details>
## Projects
🚀 A list of awesome projects using `@waylaidwanderer/chatgpt-api`:
- [PandoraAI](https://github.com/waylaidwanderer/PandoraAI): my web chat client powered by node-chatgpt-api, allowing users to easily chat with multiple AI systems while also offering support for custom presets. With its seamless and convenient design, PandoraAI provides an engaging conversational AI experience.
- [LibreChat](https://github.com/danny-avila/chatgpt-clone): integrates ChatGPT technology, enabling multiple AI models, conversation features, message search, and plugins. It offers free/pay-per-call APIs, eliminating ChatGPT Plus need, and supports customization.
- [ChatGPT WebApp](https://github.com/frontend-engineering/chatgpt-webapp-fullstack): a fullstack chat webapp with mobile compatble UI interface, and node-chatgpt-api works as backend. Anyone can deploy your own chat service.
- [halbot](https://github.com/Leask/halbot): Just another ChatGPT/Bing Chat Telegram bot, which is simple design, easy to use, extendable and fun.
- [ChatGPTBox](https://github.com/josStorer/chatGPTBox): Integrating ChatGPT into your browser deeply, everything you need is here
- [llm-bot](https://github.com/Erisfiregamer1/llm-bot): A Discord bot for LLM nonsense. Comes with a custom reverse proxy for GPT-4 allowing it to be accessed for free (Thank you "generic")!
- [WhatsAppSydney](https://github.com/veigamann/sydney-whatsapp-chatbot): Bing-powered personal assistant for WhatsApp. Simplify your day-to-day with ease.
Add yours to the list by [editing this README](https://github.com/waylaidwanderer/node-chatgpt-api/edit/main/README.md) and creating a pull request!
## Web Client
A web client for this project is also available at [waylaidwanderer/PandoraAI](https://github.com/waylaidwanderer/PandoraAI).
## Caveats
### Regarding `ChatGPTClient`
Since `gpt-3.5-turbo` is ChatGPT's underlying model, I had to do my best to replicate the way the official ChatGPT website uses it.
This means my implementation or the underlying model may not behave exactly the same in some ways:
- Conversations are not tied to any user IDs, so if that's important to you, you should implement your own user ID system.
- ChatGPT's model parameters (temperature, frequency penalty, etc.) are unknown, so I set some defaults that I thought would be reasonable.
- Conversations are limited to roughly the last 3000 tokens, so earlier messages may be forgotten during longer conversations.
- This works in a similar way to ChatGPT, except I'm pretty sure they have some additional way of retrieving context from earlier messages when needed (which can probably be achieved with embeddings, but I consider that out-of-scope for now).
## Contributing
If you'd like to contribute to this project, please create a pull request with a detailed description of your changes.
## License
This project is licensed under the MIT License.
| A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app. | api,api-rest,api-server,bing,bing-api,bing-chat,bing-search,chatgpt,chatgpt-api,cli | 2023-10-14T12:23:30Z | 2023-10-14T16:50:24Z | 2023-10-14T16:50:24Z | 36 | 36 | 549 | 2 | 8 | 32 | null | MIT | JavaScript |
webkeyz/stand-with-palestine | master | # Stand with Palestine
The "Stand with Palestine" library/widget is a sticky bottom banner that you can easily integrate into your website to show your support for Palestine. It features the Palestine flag, a statement, "WE STAND WITH PALESTINE," and dynamic statistics, which include information on martyrs, hospital attacks, destroyed homes, and more, sourced from the Palestinian Ministry of Health.
## Usage
To add the "Stand with Palestine" banner to your website, all you have to do is adding the following script tag to the `<head>` tag or before the end of the `</body>` tag on your website:
```html
<script src="https://webkeyz.github.io/stand-with-palestine/dist/stand-with-palestine-widget.js"></script>
```
Here's what it looks like ([Live Demo](https://codepen.io/elharony/pen/LYqLGpM)):
[]([URL_of_Your_CodePen_Project](https://codepen.io/elharony/pen/LYqLGpM))
## How it works?
The "Stand with Palestine" banner is created using SCSS and JavaScript. All styles are converted to CSS, and HTML elements are dynamically created using JavaScript, allowing for seamless integration without the need to modify your website's HTML structure. The library is bundled using `Webpack`, resulting in a single JavaScript file, which is available at `/dist/stand-with-palestine-widget.js`
## Dynamic Statistics
The dynamic statistics displayed in the banner are obtained from a custom-built API that retrieves the latest numbers from the `Daily Report on the Effects of the Israeli Aggression in Palestine`. As there's no existing API for this purpose, we've built and maintain our own, updating it daily with the most current numbers. This API will be open-sourced soon, allowing for transparency and community contributions.
## Design Details and Iterations
[Here's the Figma of the "Stand with Palestine" designs.](https://www.figma.com/file/hwC3K8Zi172s55xvYbPUpo/FreePalestine-Plugin?node-id=1%3A53&mode=dev) You can access this Figma to explore the updated design version, various attempts & iterations of the widget:
## Contributing
We welcome contributions to enhance and improve the "Stand with Palestine" library. If you'd like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and ensure that the code is well-documented and tested.
4. Submit a pull request.
| Stand with Palestine: A minimal, SCSS and JS-based sticky-bottom widget to show your support for Palestine, bundled with Webpack for easy integration on external websites. | hacktoberfest,israel,javascript,noframework,palestine,standwithpalestine | 2023-10-28T15:25:07Z | 2023-11-11T17:10:55Z | null | 1 | 0 | 17 | 3 | 2 | 32 | null | null | SCSS |
dakshsinghrathore/Brighter-Beginnings | main | null | Discover coding for beginners in our GitHub repo! Enjoy a free three-module course, an interactive learning experience, and a supportive community. Your journey to a brighter future starts now! Join us! | html5,javascript,tailwind-css,swoc24,firebase-auth | 2023-10-29T12:34:55Z | 2024-05-06T18:22:54Z | null | 40 | 101 | 242 | 8 | 62 | 32 | null | MIT | JavaScript |
cojocaru-david/cojocarudavid.me | main | # cojocarudavid.me
A minimal, responsive, and accessible personal website built with [Astro](https://astro.build/) and [Tailwind CSS](https://tailwindcss.com/).

## Tech stack
- **Platform**: [Astro](https://github.com/withastro/astro)
- **Deployment**: [Netlify](https://www.netlify.com/)
- **CI**: [GitHub Actions](https://github.com/features/actions)
## Getting started
To get started, run the following commands:
```bash
# Install dependencies
npm install
# Start the development server
npm run dev
# Build for production
npm run build
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
| Blazing fast personal website built with Astro.js and styled with Tailwind CSS. | astrojs,mywebsite,netlify,portfolio-website,portofolio,website,blazingly-fast,blog,javascript,static | 2023-10-16T19:36:58Z | 2024-04-04T13:22:33Z | null | 2 | 1 | 42 | 0 | 9 | 31 | null | MIT | Astro |
k4itrun/HackerCam | v1 | null | Hack the victim's (camera) with just one (link) obtaining the public IP and location parameters in real time | bash,hacking,html,javascript,linux,nodejs,phishing,php,tool,camerahacker | 2023-10-21T16:54:18Z | 2023-10-23T17:38:02Z | 2023-10-21T16:59:06Z | 1 | 0 | 8 | 0 | 5 | 30 | null | GPL-3.0 | Shell |
danitechid/wa-bot-md-pairing-code | main | # WhatsApp BOT Multi Device Pairing Code - NodeJs
## Fitur
* Artificial Intelligence
* Downloader
* Searcher
* Stalker
* Maker
* Random Image
* URL Shortener
* Converter
* Islamic
* Tools
* Authentication
* Owner/Admin
## Instalasi
### Instal Perangkat Lunak/Paket-Paket
#### Untuk Linux
```bash
sudo apt-get install nodejs
sudo apt-get install git
sudo apt-get install npm
sudo apt-get install yarn
sudo apt-get install ffmpeg
sudo apt-get install libwebp
```
#### Untuk Windows
```bash
choco install nodejs
choco install git
choco install yarn
choco install ffmpeg
choco install libwebp
```
#### Untuk MacOS
```bash
brew install node
brew install git
brew install yarn
brew install ffmpeg
brew install webp
```
#### Untuk Android (Termux)
```bash
pkg install nodejs
pkg install git
pkg install yarn
pkg install ffmpeg
pkg install libwebp
```
### Download/Klon Proyek
```bash
git clone https://github.com/danitechid/wa-bot-md-pairing-code.git
```
### Pindah Direktori (CD)
```bash
cd wa-bot-md-pairing-code
```
### MongoDb
#### Buat Akun dan Database MongoDb
Daftar dan buat database dan dapatkan MongoDb URI: <a href="https://mongodb.com">https://mongodb.com</a>
#### Edit ./config/settings.js > mongodb_uri
```javascript
mongodb_uri: 'Your-MongoDb-URI', // Register here: https://mongodb.com/#sign-up
```
### Application Programming Interface (API)
#### Dapatkan Kunci API
Daftar dan dapatkan kunci API:
<a href="https://daniapi.biz.id">https://daniapi.biz.id</a>
#### Edit ./config/settings.js > api
```javascript
api: {
...
key: 'Your-API-key' // Registrasi disini: https://daniapi.biz.id/#sign-up
}
```
### Instal Dependensi
#### Menggunakan Npm
```bash
npm install
```
#### Atau Menggunakan Yarn
```bash
yarn install
```
### Jalankan Server
#### Menggunakan Npm
```bash
npm run start
```
#### Atau Menggunakan Yarn
```bash
yarn run start
```
#### Atau Menggunakan Node
```bash
node run start
```
#### Atau Menggunakan Bun
```bash
bun run start
```
## Informasi
* Pembuat / Pengembang: Dani Ramdani (Dani Techno.) - FullStack Engineer
* Kontak Pembuat / Pengembang: 0895 1254 5999 (WhatsApp), contact@danitechno.com (Email)
## Terimakasih Kepada
* Dani Techno. - FullStack Engineer (Pembuat / Pengembang)
* daniapi.biz.id (Penyedia API)
* @whiskeysockets/baileys (Penyedia Library "Baileys")
* dan lainnya | WhatsApp BOT Multi Device Pairing Code - NodeJs | api,baileys,baileys-bot,baileys-md,javascript,js,json,mongodb,nodejs,rest-api | 2023-10-17T07:12:54Z | 2023-11-09T11:52:58Z | null | 1 | 0 | 47 | 4 | 55 | 30 | null | ISC | JavaScript |
RuanAragao/calculator | main | # Calculator
Create your own calculator
## How
⚠️ Firstly, be willing to learn and/or teach. This project is not a PR farm for hacktoberfest.
1. Star ✨ this project 👀🫶
2. Go to [issues](https://github.com/RuanAragao/calculator/issues) and create a new. Add the name of your calculator in title and comment a short purpose of your calculator.
> Example:
>
> ---
>
> #### title:
>
> Screw calculator
>
> #### comment:
>
> convert weight to units
3. Fork this project
4. Create a folder in [[root]/calculators](/calculators/) with the name of your calculator using the _Kebab case_ convention.
> Example:
>
> ---
>
> `mkdir example-calculator` > `[root]/calculators/example-calculator`
5. Inside your folder calculator is required `index.html` file with your calculator.
6. Edit the [/index.html](/index.html) file and add the your calculator folder link in alphabetical order with a `<br>` in the end.
> Example:
>
> ***
>
> `<a href="/calculators/example-calculator">Example Calculator</a><br/>`
7. Open your pull request with "Closes #{your-issue-number}". Example "Closes #10".
## Contributing
### Steps to contribute:
- Fork the repository by clicking the "Fork" button in the upper right corner of this page.
- Clone repository to your local machine:
```
git clone https://github.com/RuanAragao/calculator.git
```
- Create a new branch for your contribution:
```
git checkout -b your-branch-name
```
- Test your changes locally to ensure they function correctly.
- Commit your changes with commit messages which contains description:
```
git commit -m "commit message"
```
- Push your changes to your forked repository:
```
git push origin your-branch-name
```
- Open a pull request to the main branch of this repository.
If you find any bugs or have any suggestions, please open an issue on GitHub and provide detailed information about the bug or suggestion.
Once your pull request is submitted, it will be reviewed by the project maintainers.
### [Making a pull request](https://docs.github.com/en/get-started/quickstart/contributing-to-projects#making-a-pull-request) 🔗 :octocat:
### [Managing feedback](https://docs.github.com/en/get-started/quickstart/contributing-to-projects#managing-feedback) 🔗 :octocat:
| Create your own calculator | hacktoberfest,html,javascript,newbie,newbie-friendly | 2023-10-19T11:44:14Z | 2023-10-31T22:02:47Z | null | 28 | 65 | 51 | 23 | 32 | 28 | null | MIT | HTML |
andreinwald/webpush-ios-example | main | # WebPush for iOS sample code and demo site
_WebPush - is browser technology that allows site developer send notifications from backend to subscribers. Now at iPhone and iPad!_
<br><br>
<b>Demo https://andreinwald.github.io/webpush-ios-example </b><br>
<img src="images/webpush-iphone-prompt.png" alt="Iphone prompt example" style="height:400px">
<br><br>
**TL;DR iOS WebPush specifics**
- user required to add your site to **Home Screen** of his iPhone/iPad
- manifest.json is required to set **display: standalone**
- you **don't need** to register at apple.com to receive something like **GCM_SENDER_ID**
- instead, you need to generate **VAPID** (pair of public and private keys)
<br/>
https://github.com/andreinwald/webpush-ios-example/assets/7912182/fa89c846-4b97-4fe2-93ca-0c4f4e2e9647
---
# More info
- [Basic WebPush subscription code](#Basic-WebPush-subscription-code)
- [Generating VAPID key](#Generating-VAPID-key)
- [Installing PWA on iOS by adding to Home Screen](#Installing-PWA-on-iOS-by-adding-to-Home-Screen)
- [Subscription and saving token (Prompt with permission)](#Subscription-and-saving-token)
- [Service worker](#Service-worker)
- [Sending push message](#Sending-push-message)
## Basic WebPush subscription code
Example of basic subscription code, that works in Google Chrome and Firefox.<br>
```html
<html>
<body>
<button onclick="subscribe()">Subscribe</button>
<script>
// You can use serviceworker.js from this repo
// It should contain listeners for push and notificationclick events
navigator.serviceWorker.register('/serviceworker.js');
function subscribe() {
navigator.serviceWorker.ready.then(async function (serviceWorker) {
if (!serviceWorker.pushManager) {
// Maybe iOS on iPhone or iPad - should ask for adding to Home Screen
alert('pushManager is not enabled');
return;
}
let subscriptionOptions = {
userVisibleOnly: true,
applicationServerKey: '____INSERT_VAPID_PUBLIC_KEY_HERE_____'
};
let subscription = await serviceWorker.pushManager.subscribe(subscriptionOptions);
console.log('Subscription token:', subscription.toJSON());
});
}
</script>
</body>
</html>
```
You can run it locally by creating index.html and serviceworker.js files with a simple html server:
```shell
npx http-server
```
## Generating VAPID key
In example above you need to replace VAPID_PUBLIC_KEY to your own.<br><br>
You **don't need** to register at apple.com to receive something like **GCM_SENDER_ID**, just generate VAPID key
- All subscription tokens associated with that key, so if you change it - you may lose old subscribers
- You MUST need generate your own VAPID keys!
- Newer share your PRIVATE_VAPID_KEY. It should be stored in a safe storage
<br>
Run this command in your terminal for generating:
```shell
npx web-push generate-vapid-keys
# result will be like:
# Public Key: BAwUJxIa7mJZMqu78Tfy2vqbp1tFuj4KwX3gRuF2e_5WGB0tGnvCBGtvVDEa6YdjnjAors3E1WBlcCTow6pGg
# Private Key: Mmi54fYPtCgTQB1_8-QoH0xJOq3H6z8nBUG71t0ezCA
```
Then use it in frontend.js:
```javascript
const VAPID_PUBLIC_KEY = 'BAwUJxIa7mJZMqu78Tfy2...';
let subscriptionOptions = {
userVisibleOnly: true,
applicationServerKey: VAPID_PUBLIC_KEY
};
```
<br>
See full example in [frontend.js](/frontend.js)
## Installing PWA on iOS by adding to Home Screen
WebPush is Progressive Web App(PWA) feature so you need to ask user to enable PWA mode first.<br>
On iOs devices it can be made with button **"Add to Home Screen"** in browser.<br><br>
<img src="images/webpush-add-to-home-screen.jpg" alt="Require adding to Home Screen" style="height:400px">
Also don't forget to set display mode in **manifest.json**!<br>
Manifest.json required to set "display: standalone", that called by Apple "Home Screen web app"<br>
PushManager will appear in serviceWorker object **only after** adding site to Home screen at your iPhone.
```html
<html>
<head>
<link rel="manifest" href="manifest.json"/>
</head>
# ...
```
manifest.json:
```json
{
"name": "WebPush iOS example",
"display": "standalone"
}
```
**Next you can check that PWA is installed by this code:**
```javascript
if (window.navigator.standalone) {
// now we can ask for subscription by pushManager.subscribe()
} else {
// we should ask user to add our site home screen
}
```
## Subscription and saving token
(Displaying Prompt with permission)<br>
After registering Service Worker and providing VAPID_PUBLIC_KEY you can request user to subscribe.<br>
Best practice will be to ask user about subscription in html popup first.<br>
Then you can call:
```javascript
let subscription = await pushManager.subscribe(subscriptionOptions);
```
See full example in [frontend.js](/frontend.js)
<br><br>
After receiving subscription you're going to send it to backend via fetch or something.<br>
You will need that for [sending push message from backend](#Sending-push-message)
<br>
**Examples how subscription token looks:**<br><br>
For desktop and mobile Safari:
```json
{
"endpoint": "https://web.push.apple.com/QGuQyavXutnMH...",
"keys": {
"p256dh": "BF6-hyiRMKKKiiH...",
"auth": "lM6vKjBJ1UX..."
}
}
```
And this will be for Google Chrome (FCM):
```json
{
"endpoint": "https://fcm.googleapis.com/fcm/send/eEsw5ryoAzo:APA91bHC...",
"expirationTime": null,
"keys": {
"p256dh": "BKDBx7wkagZSlDsaT...",
"auth": "zKa3taDY2VWoM4..."
}
}
```
## Service worker
For receiving, displaying push message and processing click on it - you need to use these service worker methods:
```javascript
self.addEventListener('push', (event) => {
let pushData = event.data.json();
// ...
self.registration.showNotification(pushData.title, pushData)
});
self.addEventListener('notificationclick', function (event) {
clients.openWindow(event.notification.data.url)
// ...
// You can send fetch request to your analytics API fact that push was clicked
});
```
See full example in [serviceworker.js](/serviceworker.js)
## Sending push message
You can send WebPush from **frontend**:
```javascript
const title = "Push title";
const options = {
body: "Additional text with some description",
icon: "https://andreinwald.github.io/webpush-ios-example/images/favicon.png",
image: "https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/Orange_tabby_cat_sitting_on_fallen_leaves-Hisashi-01A.jpg/1920px-Orange_tabby_cat_sitting_on_fallen_leaves-Hisashi-01A.jpg",
data: {
"url": "https://andreinwald.github.io/webpush-ios-example/?page=success",
"message_id": "your_internal_unique_message_id_for_tracking"
},
};
navigator.serviceWorker.ready.then(function (serviceWorker) {
serviceWorker.showNotification(title, options);
});
```
Or from **Backend**, for example by using **Node.js** [web-push library](https://github.com/web-push-libs/web-push) <br>
See example in [backend-sender.js](/backend-sender.js)
## Resources:
- [Meet Web Push for Safari on developer.apple.com](https://developer.apple.com/videos/play/wwdc2022/10098/)
- [Sending web push notifications in web apps and browsers on developer.apple.com](https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers)
- [Vapid token standard](https://blog.mozilla.org/services/2016/08/23/sending-vapid-identified-webpush-notifications-via-mozillas-push-service/)
- [VAPID RFC standard](https://datatracker.ietf.org/doc/html/rfc8292)
- [Webpush options like image and actions](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)
- [Web App Manifest for standalone mode](https://developer.mozilla.org/en-US/docs/Web/Manifest)
- [The ServiceWorker lifecycle](https://web.dev/articles/service-worker-lifecycle)
## Keywords:
- ServiceWorkerRegistration.pushManager is undefined
- applicationServerKey is not properly base64url-encoded
- undefined is not an object pushManager.subscribe
- User denied push permission
| WebPush for IOS demo and code: VAPID, Home Screen, gcm_sender_id, serviceworker, iPhone, iPad | ios,ipad,iphone,notifications,webpush,webpush-message,webpush-notifications,pwa,javascript | 2023-10-14T08:59:57Z | 2024-03-27T07:09:56Z | null | 1 | 0 | 138 | 0 | 7 | 28 | null | null | JavaScript |
yasiyaofc1/FROZEN-MD | main | <div align="center">
## ❄️ 𝑭𝑶𝑹𝒁𝑬𝑵 𝑴𝑫 𝑾𝑯𝑨𝑻𝑺𝑨𝑷𝑷 𝑩𝑶𝑻 ❄️
## THIS PROJECT IS NOT WORKING AND STAY TUNED OR V2
<p align="center">
<a href="[https://telegra.ph/file/953048fb3aa3aae12a12a.jpg](https://telegra.ph/file/0b5a7839e8ee21874921e.jpg)">
<img alt="FORZEN MD" height="300" src="https://telegra.ph/file/0b5a7839e8ee21874921e.jpg">
## [](https://git.io/typing-svg)
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif">
----------
ㅤ
## **`💃 FORZEN MD BOT OWNERS,`**
ㅤ
🤹♂️|**[`YASIYA OFC`]**|
<p align="center">
<a href="https://telegra.ph/file/896953d764d69c906a4b7.jpg">
<img alt="FORZEN MD MD OWNER" height="80" src="https://telegra.ph/file/896953d764d69c906a4b7.jpg">
**[» Contact For](https://wa.me/+94760018802)**
ㅤ
ㅤ
---
⚜️|**[`MR INDUVARA`]**|
<p align="center">
<a href="[https://telegra.ph/file/903e16f9effd8de11cc76.jpg](https://telegra.ph/file/903e16f9effd8de11cc76.jpg)">
<img alt="FORZEN MD OWNER" height="80" src="https://telegra.ph/file/903e16f9effd8de11cc76.jpg">
**[» Contact For](https://wa.me/+94719735716)**
ㅤ
ㅤㅤㅤ
---
| ᴅᴀʀᴋ ʏᴀsɪʏᴀ x ᴛᴇᴀᴍ💃🏼 | facebook,javascript,news,simple,whatsapp,whatsapp-bot,youtube-downloader,esana,forzen-md,hiru | 2023-11-01T11:03:00Z | 2024-05-07T15:22:46Z | null | 3 | 1 | 71 | 1 | 228 | 27 | null | GPL-3.0 | JavaScript |
Open-Source-Chandigarh/Euphoria-Check | main |
Feel free to contribute! 🌈✨
View Web App here : https://euphoria-check-perma-meter-express.vercel.app/
# Euphoria Check - A Modern PERMA Meter
**Euphoria-Check** is an open-source web application that helps you assess your well-being and happiness based on the PERMA model developed by psychologist Martin Seligman. It asks you a series of questions and provides you with a PERMA score, along with a personalized email based on the areas you might be lacking.

## Features
Users recieves a personalized note on email that helps them set their targets and improve on specific score so they keep on evolving
Key Features:
📊 Happiness Assessment:
📈 Personalized Insights:
🎯 Goal Setting:
## GirlScript Summer of Code (GSSoC):
EuphoriaCheck is officialy part of GSSoC 24. Contribute to EuphoriaCheck now to get started with EuphoriaCheck and help us make the project even greater.
GirlScript Summer of Code (GSSoC) is an annual three-month-long open source program initiated by the GirlScript Foundation. It began in 2018 with the goal of assisting beginners in the tech community to engage with open source development, while promoting diversity and inclusion. Throughout the program, participants work on various projects under the guidance of experienced mentors.
For more details about the program, you can visit the official GSSoC website.
## Contributing
We appreciate your interest in contributing to **Euphoria-Check**. Here's how you can get started:
0. **Find Issues or Create your Own** We appreciate you solving existing issues in the repository in the issues tab or to create new
1. **Fork the Repository:** Click the "Fork" button at the top of this repository to create a copy in your GitHub account.
2. **Clone Your Fork:** Clone your fork to your local machine with `git clone`.
git clone https://github.com/<your_github_username>/Euphoria-Check.git
3. **Change the working directory:** cd Euphoria-Check
4. **Add an upstream link to the main branch in your cloned repo:**
git remote add upstream https://github.com/<your_github_username>/Euphoria-Check.git
5. **Keep your cloned repo up to date by pulling from upstream (this will also avoid any merge conflicts while committing new changes):**
git pull upstream main
6. **Create a New Branch:** Make a new branch for your work with a descriptive name.
git checkout -b <branch-name>
7. **Make Changes:** Implement your desired feature or fix a bug.
8. **Track and stage your changes:**
git status
9. **Add all the required changes:**
git add .
10. **Commit all the changes (Write commit message as "Small Message"):**
git commit -m "<your-commit-message>"
11. **Push the changes for review:**
git push origin <branch-name>
12. **Open a Pull Request:** Create a pull request from your fork to this repository. Provide a concise title and description.
We'll review your contribution and collaborate to merge it into the project. Please adhere to our code of conduct and guidelines.
If you have questions or need assistance, feel free to open an issue.
Thank you for making **Euphoria-Check** even better!
Happy Hacking!
### Prerequisites
- [Node.js](https://nodejs.org/)
- [npm](https://www.npmjs.com/)
- Express JS
Maintained By - Aryan Inguz, Technical Head Open Source Chandigarh (https://github.com/Aryainguz)
| Euphoria-Check a PERMA meter built using nodejs, expressjs and based on PERMA model of happiness. | express-js,hacktoberfest,hacktoberfest-accepted,javascript,nodejs,girlscriptsummerofcode,gssoc24 | 2023-10-19T09:54:40Z | 2024-05-19T15:21:57Z | null | 35 | 52 | 98 | 61 | 72 | 26 | null | null | EJS |
vaguue/Ghidra.js | main | <p align='center'>
<img src='assets/logo.png' width='180' alt='Hacker spider'>
</p>
# Ghidra JavaScript Integration [](https://github.com/vaguue/Ghidra.js/blob/main/LICENSE) [](https://www.npmjs.com/package/ghidra.js)
## Overview
This project integrates JavaScript into the Ghidra reverse-engineering framework using the [Javet](https://github.com/caoccao/Javet) library. For more details about the choice of the library, see the [Library Choice](#library-choice) section.
## System Requirements
- [Ghidra](https://github.com/NationalSecurityAgency/ghidra) framework installed
- Supported platforms: Windows (x86_64), Linux (x86_64), MacOS (x86_64 or arm64)
- (Optional) npm installed
## Getting Started
You can download the .zip archive for your platform from the Releases section. Then open your Ghidra installation, go to `File -> Install Extensions`, click the `+` symbol, and select the downloaded archive. The extension will be active in the next Ghidra launch. Alternatively, you can install via npm, ensuring Ghidra's installation folder is in your PATH (the folder containing the `ghidraRun` script). For example:
```bash
export PATH="$PATH:/path/to/your/Ghidra"
npm install -g ghidra.js
```
## Example Code
To start using the extension, refer to the following code example. More information can be found in the [Ghidra API documentation](https://ghidra.re/ghidra_docs/api/ghidra/program/flatapi/FlatProgramAPI.html). More examples can be found in the [examples](https://github.com/vaguue/Ghidra.js/tree/main/examples) folder.
```javascript
//you can use Node.js modules
const fs = require('fs');
// JavaHelper.getClass is a helper method to import Java classes
const EmulatorHelper = JavaHelper.getClass('ghidra.app.emulator.EmulatorHelper');
const domainFile = currentProgram.getDomainFile();
console.log('Current arch:', process.arch); //Node globals are also available
console.log('Program Name:', currentProgram.getName());
console.log('Program Path:', domainFile.getPathname());
console.log('File Format:', currentProgram.getExecutableFormat());
console.log('Language:', currentProgram.getLanguageID().getIdAsString());
console.log('Compiler Spec:', currentProgram.getCompilerSpec().getCompilerSpecID().getIdAsString());
// To make changes, use Ghidra's transaction API
// This is to give users more flexibility without automatic setup
const id = currentProgram.startTransaction('Hello world comment');
const functionManager = currentProgram.getFunctionManager();
const symbols = currentProgram.getSymbolTable().getGlobalSymbols('main')
if (symbols) {
const [mainSymbol] = symbols;
const main = functionManager.getFunctionAt(mainSymbol.getAddress());
main.setComment('Hello world from JavaScript');
}
else {
console.log('[!] Main function not found');
}
currentProgram.endTransaction(id, true);
```
## Running Scripts
### Within Ghidra
To run scripts inside the Ghidra environment, follow these steps:
1. Open Ghidra and load your project.
2. Navigate to the "Script Manager" by clicking on the "Window" menu and selecting "Script Manager".
3. In the Script Manager, locate your JavaScript file. You can import your script by clicking the "Manage Script Directories" icon and adding the directory where your script is located.
4. Double-click on the script to run it, or select the script and click the "Run" button.
### Using analyzeHeadless
You can also run scripts in a headless (non-GUI) mode using the `analyzeHeadless` command. This is particularly useful for automated analysis or batch processing. Here’s an example command:
```bash
/path/to/Ghidra/support/analyzeHeadless /path/to/projectDir -process yourExecutable -scriptPath /path/to/scripts -postScript YourScript.js
```
Replace /path/to/Ghidra with the installation directory of Ghidra, /path/to/projectDir with the path to your project directory, yourExecutable with file you want to analyze, /path/to/scripts with the directory containing your script, and YourScript.js with the name of your JavaScript file.
## Library Choice
I considered three options for the extension backend: Rhino, GraalJS, and Javet. All options were suitable to some extent, but Javet was the most fitting due to the following reasons:
- **Performance:** Javet uses the V8 engine, which can be hundreds of times faster than alternatives in my benchmarks.
- **ESM Standard:** Javet supports the latest JavaScript standards, which is a significant advantage over Rhino.
- **No JVM Alteration Needed:** This requirement significantly complicates the full use of GraalJS.
These arguments are not criticisms of the alternatives but rather my reasoning for choosing the backend for the extension. The repository still contains code for working through Rhino and GraalJS, just in case.
## Questions or Suggestions
Feel free to open any issue in the Issues section of this repository. Currently, there are no restrictions on the format.
| JavaScript bindings for Ghidra (Reverse Engineering framework) | ghidra,ghidra-plugin,javascript,reverse-engineering | 2023-11-06T00:18:59Z | 2024-02-12T21:55:46Z | 2023-11-11T13:08:01Z | 1 | 0 | 91 | 1 | 2 | 25 | null | GPL-3.0 | Java |
AvinashAnand02/Lost-And-Found | main | # Lost and Found Information System
The Lost and Found Information System comprises two modules: Public and Management sites.
## Management Site
Accessible only to system administrators and staff, it requires valid credentials for access. Administrators manage system data, including user lists, categories, items, and system information. Staff members have limited permissions. Additionally, the management site enables dynamic updates to select public site content.
## Public Site
Visitors can explore published unclaimed items, view various page content, and send inquiries or concerns. The posted item list can be filtered by category for easy navigation.
This web application simplifies lost and found item management, enhancing user experience and efficiency.
## Features and Functionalities
### Management
- **Login and Logout**
- **Dashboard**
- **List Summary**
- **Image Slider**
- **Category Management**
- Add New Category
- List All Categories
- View Category Details
- Update Category Details
- Delete Category
- **Item Management**
- Add New Item
- List All Items
- View Item Details
- Update Item Details
- Delete Item
- **User Management**
- Add New User
- List All Users
- Update User Details
- Delete User
- **Messages Management**
- List All Messages/Inquiries
- Read Message Details
- Delete Message
- **Page Management**
- Home Page Content
- "About Us" Content
- Update Contact Information
- Update Account Details
- Update System Information
### Public Site
- **Home Page**
- **List All Published Lost and Found Items**
- **Filter Lost and Found Item List by Category**
- **Post an Item that has been found (subject to approval)**
- **"About Us" Page**
- **Contact Information Page**
- **Send Message**
### How To Run ?
**Requirements:**
1. Download and install a local web server like XAMPP.
**System Installation/Setup:**
1. Launch XAMPP and start both Apache and MySQL services.
2. Download the source code zip file.
3. Extract the contents of the downloaded zip file.
4. Copy the extracted source code folder and paste it into the "htdocs" directory of XAMPP.
5. Open a web browser and access PHPMyAdmin by entering this address: http://localhost/phpmyadmin.
6. In PHPMyAdmin, create a new database and name it "lfis_db."
7. Import the provided SQL file, which can be found as "lfis_db.sql" in the database folder.
8. Finally, open the Lost and Found Information System in your web browser by visiting this address: http://localhost/php-lfis/.
Following these steps will set up the system for you to run and use.
| The "Lost and Found Information System" is a web-based application created using PHP and MySQL. It offers a user-friendly platform for reporting lost and found items, featuring an appealing user interface with Bootstrap v5 and NiceAdmin Template. The system provides multiple convenient features and functionalities for seamless item recovery. | html,javascript,javascript-project,mysql-database,php,php-project,lost-and-found-information-system,php-project-source-code,github,lost-and-found | 2023-11-02T17:03:24Z | 2023-11-02T17:28:12Z | null | 1 | 0 | 3 | 1 | 7 | 25 | null | MIT | PHP |
abdulrahim-ramadan/Event-Mystro | main | # Event page ⭐
Welcome to Event Mystro! This is a web application designed to simplify event management, allowing users to create, organize, and manage various types of events effortlessly.
## Features
- **Event Creation:** Easily create new events with details such as event name, date, time, location, description, etc.
- **Event Management:** Organize and manage events efficiently, including editing event details and removing events when necessary.
- **User Authentication:** Secure user authentication system to ensure only authorized users can create and manage events.
- **Responsive Design:** The application is designed to be responsive, providing a seamless experience across different devices and screen sizes.
- **Intuitive Interface:** User-friendly interface for smooth navigation and interaction.
## Demo
Check out the live demo of Event Mystro [here](https://abdulrahim-ramadan.github.io/Event-Mystro/).
## Screenshots

## Technologies Used
- **Frontend:** HTML, CSS, bootstrap , JavaScript
## Installation
1. **Clone the Repository:**
```bash
git clone https://github.com/abdulrahim-ramadan/Event-Mystro.git
```
2. **Install Dependencies:**
Navigate to the project directory and install the necessary dependencies using npm:
```bash
cd Event-Mystro install
```
The application will be accessible at `http://localhost:3000`.
## Contributing
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or create a pull request.
## License
This project is licensed under the [MIT License](LICENSE).
##Please ⭐ the repo to support our project
| Event page html , css , bootstrap & Javascript , Photoshop | bootstrap,css,html,javascript,photoshop | 2023-11-01T06:12:29Z | 2024-03-29T05:40:54Z | null | 1 | 3 | 24 | 0 | 0 | 24 | null | null | HTML |
Daniel-Boll/scylla-javascript-driver | main | <div align="center">
<a href="https://github.com/daniel-boll/scylla-javascript-driver">
<img src="assets/logo.png" alt="scylladb" width="640" />
</a>
<h4>🚀 JavaScript driver for ScyllaDB. Pre-release stage. 🧪🔧</h4>
</div>
## ⚠️ Disclaimer ⚠️
This repository and the associated npm package are currently in a 🐣 pre-release state and are being used for testing 🧪 purposes. They are subject to change without notice 📝. Eventually, they will be moved to the **ExpressoTS** organization under the `scylladb-driver` package name. Users are encouraged to use this driver with caution ❗ and not in production environments until the official release under the ExpressoTS organization.
## 🚀 Getting Started 🚀
These instructions will get you a copy of the project up and running 🏃 on your local machine for development and testing purposes.
### 📋 Prerequisites 📋
- Docker: We use Docker 🐳 to run the Scylla database easily without the need for a complex local setup.
- Node.js: Make sure you have Node.js installed on your system to run JavaScript code.
### 🌟 Quickstart 🌟
1. **Start ScyllaDB in Docker:**
Run a ScyllaDB instance using the following Docker command:
```bash
docker run --name scylladb -d --rm -it -p 9042:9042 scylladb/scylla --smp 2
```
This command pulls the Scylla image if it's not already present on your system, and starts a new 🌟 container with the Scylla database.
2. **Use the JavaScript Driver:**
Here's a simple script to connect to the database and execute a query:
```javascript
import { Cluster } from "@lambda-group/scylladb";
const cluster = new Cluster({
nodes: ["127.0.0.1:9042"],
});
const session = await cluster.connect("system_schema");
const result = await session
.execute("SELECT * FROM scylla_tables limit ?", [1])
.catch((err) => console.error(err));
console.log(result);
```
This script connects to the ScyllaDB instance running on your machine, performs a query, and logs the result.
### 📥 Installing 📥
To install this package, use the following command:
```bash
npm install @lambda-group/scylladb
```
## 🙏 Acknowledgments 🙏
- Thanks to the developers of ScyllaDB for creating such a high-performance database.
- Thanks to the Rust community for providing the robust `scylla` crate.
- Thanks to the `napi-rs` project for enabling efficient Rust and Node.js integrations.
| 🚀 JavaScript driver for ScyllaDB, harnessing Rust's power through napi-rs for top performance. Pre-release stage. 🧪🔧 | hacktoberfest,hacktoberfest2023,javascript,napi-rs,rust,rust-lang,scylladb,scylladb-driver | 2023-10-14T00:02:09Z | 2023-10-20T22:54:37Z | 2023-10-20T22:54:38Z | 2 | 7 | 58 | 10 | 2 | 24 | null | null | Rust |
AlbertArakelyan/SolutionsShowcase | main | # SolutionsShowcase
## Introduction 🌍
**Welcome to SolutionsShowcase!**
This repository serves as a centralized hub for my projects, each a showcase of unique solutions and insights. Dive into the world of technology, explore varied tech stacks, and discover the thought processes behind key solutions implemented in each project.
Feel free to explore, contribute, and let's build a community around innovative problem-solving!
## Contribution 🚀
If you're passionate about sharing your tech expertise, you're welcome to contribute to SolutionsShowcase! Here are two ways you can get involved:
- **Translations**: Help make the showcase accessible to a global audience by translating content into your native language. Feel free to submit a pull request with your translations.
- **Showcase Your Gems**: If you have exceptional tech solutions or intriguing topics, share them with the community! Add your projects and insights, and create a pull request to contribute to the showcase.
## Table of contents 🔍
| No | Project | Author |
| ------- | --- | ---
| 1 | [Checkinator](#checkinator) | [AlbertArakelyan](https://github.com/AlbertArakelyan)
| 2 | [Exoplanet Project](#exoplanet-project) | [AlbertArakelyan](https://github.com/AlbertArakelyan)
| 3 | [Post EF](#post-ef) | [AlbertArakelyan](https://github.com/AlbertArakelyan/post-ef)
| 4 | [Keep Link](#keep-link) | [ArthurArakelyan](https://github.com/ArthurArakelyan/keep-link)
---
## Checkinator
### About
A simple MERN app for testing Stripe with user and subscription management, for taking React architecture I used to know to the next level with advanced usage of unit tests and also for improving my knowledge in backend with help of nodejs as a frontend developer. Also created an admin panel for having a full control over the app.
### Repositories
- [checkinator-frontend](https://github.com/AlbertArakelyan/checkinator-frontend)
- [checkinator-backend](https://github.com/AlbertArakelyan/checkinator-backend)
- [checkinator-admin](https://github.com/AlbertArakelyan/checkinator-admin)
### Tech Stack
<table>
<thead>
<tr>
<th>Frontend</th>
<th>Backend</th>
<th>Admin Panel</th>
<th>Other</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/typescript/typescript-original.svg" width="40" height="40" title="Typescript" alt="Typescript">
<img src="https://github.com/devicons/devicon/blob/master/icons/react/react-original.svg" width="40" height="40" title="React" alt="React">
<img src="https://github.com/devicons/devicon/blob/master/icons/redux/redux-original.svg" width="40" height="40" title="Redux" alt="Redux">
<img src="https://testing-library.com/img/octopus-128x128.png" width="40" height="40" title="Testing Library" alt="Testing Library">
<img src="https://github.com/devicons/devicon/blob/master/icons/sass/sass-original.svg" width="40" height="40" title="Sass" alt="Sass">
</div>
</td>
<td>
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/nodejs/nodejs-original.svg" width="40" height="40" title="Nodejs" alt="Nodejs">
<img src="https://github.com/devicons/devicon/blob/master/icons/express/express-original.svg" width="40" height="40" title="Express" alt="Express">
<img src="https://github.com/devicons/devicon/blob/master/icons/mongodb/mongodb-original.svg" width="40" height="40" title="MongoDB" alt="MongoDB">
<img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/mongoose/mongoose.png" title="Mongoose" alt="Mongoose" width="40" height="40"/>
</div>
</td>
<td>
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/vuejs/vuejs-original.svg" title="Vue" alt="Vue" width="40" height="40">
<img src="https://iconape.com/wp-content/png_logo_vector/vuetify-logo.png" title="Vuetify" alt="Vuetify" width="40" height="40">
<img src="https://emojis.slackmojis.com/emojis/images/1653495163/59365/pinia.png?1653495163" title="Pinia" alt="Pinia" width="40" height="40"/>
</div>
</td>
<td>
<div>
<img src="https://jwt.io/img/pic_logo.svg" title="JWT" alt="JWT" width="40" height="40"/>
<img src="https://cdn.icon-icons.com/icons2/2699/PNG/512/stripe_logo_icon_167962.png" title="Stripe" alt="Stripe" width="40" height="40"/>
</div>
</td>
</tr>
</tbody>
</table>
### Challenge
Create a MERN app being a **frontend** developer by using a new (for me) **React** architecture which is extended version of `View-Controller` pattern by adding a special _hook_ which separates logical part from _Container_ as well and also using unit and component testing which has been done very well due to this architecture. Also integrating Stripe on server and client side for the first time was also a challenge.
### Key Solutions
- Improved `View-Controller` architecture for `React`
- Dark mode implementation
- `JWT` based authentication with Email verification
- Used **seeders** (for the first time)
- Class based controllers in `Express`
- `Vue 3` with `Vuetify` integration
### Attachments
- Folder structure example for the mentioned `React` architecture: <br> <img width="388" alt="Screenshot 2023-10-22 at 13 54 48" src="https://github.com/AlbertArakelyan/SolutionsShowcase/assets/61713118/2fc42d5f-4b59-48fb-aba3-905fb564a9b8">
### Future Improvements
- Add `Storybook`
---
## Exoplanet Project
### About
Simple MERN with ready frontend part for focusing on Node.js by getting data from external sources, working with CSV files and parsing them and of course working with databases such as MongoDB with mongoose.
### Repository
[react-express-exoplanet-project](https://github.com/AlbertArakelyan/react-express-exoplanet-project)
### Tech Stack
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/react/react-original.svg" width="40" height="40" title="React" alt="React">
<img src="https://github.com/devicons/devicon/blob/master/icons/nodejs/nodejs-original.svg" width="40" height="40" title="Nodejs" alt="Nodejs">
<img src="https://github.com/devicons/devicon/blob/master/icons/express/express-original.svg" width="40" height="40" title="Express" alt="Express">
<img src="https://github.com/devicons/devicon/blob/master/icons/mongodb/mongodb-original.svg" width="40" height="40" title="MongoDB" alt="MongoDB">
<img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/mongoose/mongoose.png" title="Mongoose" alt="Mongoose" width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/docker/docker-original.svg" width="40" height="40" title="Docker" alt="Docker">
</div>
### Challenge
As the project has been done in scopes of a **Udemy** course so just passing and doing the project was a challenge by it self, and yet another challange was take as much as I can, interesting aproaches with Node.js, best practices, authentication, oauth client, socket.io, API testing and many other things that I learnt and of course need to practice more 😊.
### Key Solutions
- Staticly running `React` production build from `Express`
- With one `package.json` file controlled apps (Frontend, Backend)
- Very fancy scientefic friendly UI
- Good set up **Cross origin** policies
- A very good Node.js architecture
- Very good expressed **Data Access Layer** in Node.js models
- API testing with `Supertest`
- Dockerized app (not in a deep level)
- Integarated **CI** with **Github Actions**
- Deployed with `SE3` (you can check [here](http://16.171.161.83:8000/))
- Working with CSV files and parsing them
---
## Post EF
### About
A simple dockerized MERN app with basic authentication and CRUD.
### Repository
[post-ef](https://github.com/AlbertArakelyan/post-ef)
### Tech Stack
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/react/react-original.svg" width="40" height="40" title="React" alt="React">
<img src="https://github.com/devicons/devicon/blob/master/icons/redux/redux-original.svg" title="Redux" alt="Redux " width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/tailwindcss/tailwindcss-original.svg" title="Tailwind" alt="Tailwind" width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/nodejs/nodejs-original.svg" width="40" height="40" title="Nodejs" alt="Nodejs">
<img src="https://github.com/devicons/devicon/blob/master/icons/express/express-original.svg" width="40" height="40" title="Express" alt="Express">
<img src="https://github.com/devicons/devicon/blob/master/icons/mongodb/mongodb-original.svg" width="40" height="40" title="MongoDB" alt="MongoDB">
<img src="https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/mongoose/mongoose.png" title="Mongoose" alt="Mongoose" width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/docker/docker-original.svg" width="40" height="40" title="Docker" alt="Docker">
</div>
### Challenge
Create a dockerized app using `nodejs` first times from scratch, also set up tailwind from scratch and create a modern UI with it.
### Key Solutions
- Well set up Tailwind
- Fully **dockerized** project
---
## Keep Link
### About
Keep Link is a powerful tool which allows you to save all your links in one place.
### Repositories
- [keep-link](https://github.com/ArthurArakelyan/keep-link)
- [keep-link-server](https://github.com/ArthurArakelyan/keep-link-server)
### Tech Stack
<table>
<thead>
<tr>
<th>Frontend</th>
<th>Backend</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/typescript/typescript-original.svg" width="40" height="40" title="Typescript" alt="Typescript">
<img src="https://user-images.githubusercontent.com/25181517/183890595-779a7e64-3f43-4634-bad2-eceef4e80268.png" title="Angular" alt="Angular" width="40" height="40" />
<img src="https://cdn.worldvectorlogo.com/logos/rxjs-1.svg" title="RxJs" alt="RxJs" width="40" height="40"/>
<img src="https://ngrx.io/assets/images/badge.svg" title="NgRx" alt="NgRx" width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/firebase/firebase-plain.svg" title="Firebase" alt="Firebase" width="40" height="40"/>
<img src="https://github.com/devicons/devicon/blob/master/icons/storybook/storybook-original.svg" title="Storybook" alt="Storybook" width="40" height="40"/>
</div>
</td>
<td>
<div>
<img src="https://github.com/devicons/devicon/blob/master/icons/nodejs/nodejs-original.svg" width="40" height="40" title="Nodejs" alt="Nodejs">
<img src="https://github.com/devicons/devicon/blob/master/icons/express/express-original.svg" width="40" height="40" title="Express" alt="Express">
</div>
</td>
</tr>
</tbody>
</table>
### Challenge
Create an Angular website by integrating **Angular Fire** services for working with **Firebase** in Angular, **RxJs** reactive store, Unit tests and Component tests, and **Storybook** for shared and UI components preview.
### Key Solutions
- `Storybook` integration
- `Unit tests` integration
- `Dark theme` and `Dark high contrast` theme implementation
- `Angular Fire` Services implementation for working with `Firebase`
- `Firebase Authentication` based authentication with Email verification
- `Angular` with `RxJs` reactive store integration
| Explore unique tech solutions and insights in this centralized project hub. Dive into diverse tech stacks and discover the thought processes behind key implementations 💡. | architecture,challenges,code-examples,good-example,javascript,programming,solutions,tech,typescript,web-architecture | 2023-10-22T08:48:24Z | 2024-05-17T14:17:57Z | null | 2 | 3 | 38 | 8 | 1 | 23 | null | MIT | Markdown |
jrafaaael/videmo | master | # 🎥 videmo
Record your screen and create engaging videos without video-editing skills!
## Contributing
Any contributions you make are greatly appreciated. We welcome any idea that help us (the Videmo's community) to improve the project. Some ways to contribute to Videmo are:
1. Simply start using [Videmo](https://videmo.vercel.app/) :)
2. Raising an issue
- Before submitting a new issue, check if it already exists in [issues](https://github.com/jrafaaael/videmo/issues)
- **One issue, one bug:** Please report a single bug per issue
- In title, start it with `[BUG]: `, then a descriptive title for your issue (e. g.: [BUG]: Recording is broken in Firefox)
- Add `bug` label
- Include screenshots or videos in your issue whenever needed
3. Contribute with your ideas!
- Before submitting a new idea, check if it already exists in [Planned features](https://github.com/jrafaaael/videmo?tab=readme-ov-file#planned-features) or if someone [already suggest it](https://github.com/jrafaaael/videmo/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement)
- In title, start it with `[FEATURE REQUEST]: `, then a descriptive title for your feature (e. g.: [FEATURE REQUEST]: GIF export)
- Add `enhancement` label
4. Submitting a Pull Request
- Before submitting a new PR, check if [it already is being developed](https://github.com/jrafaaael/videmo/pulls)
- **DON'T USE `master` BRANCH TO DEVELOP YOUR PR!**
- If your PR refers to or fixes an issue, be sure to add `refs #XXX` or `fixes #XXX` to the PR description. Replacing `XXX` with the respective issue number. See more about [Linking a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
- We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for our pull request titles (and commit messages). For types we use the [Angular's convention](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#type). If a change don't apply to any type of the Angular's Convention, then use `chore`
## Planned features
These are some features that we want to develop in the short, medium and long term. This doesn't mean that a long-term feature can be developed and shipped before a short-term one
| Short-term | Status | Medium-term | Status | Long-term | Status |
| ---------------------------------------------- | ------ | ---------------- | ------ | -------------------- | ------ |
| Store videos | ✅ | Selfie recording | ❌ | Auto zoom | ❌ |
| Upload videos (recording) | ✅ | Upload audio | ❌ | Mobile | ❌ |
| Crop | ❌ | Clips | ❌ | Auto trim low-volume | ❌ |
| Trim | ❌ | Layouts | ❌ | 3D renderer | ❌ |
| Multiple export aspect ratios (mobile, square) | ❌ | Mockups | ❌ | | |
| | | Subtitles | ❌ | | |
> ✅: Done
>
> ❌: No done
## Known bugs
1. Some browser APIs used in Videmo only works in Chromium-based browsers (tested on Chrome only so far)
| 🎥 Record your screen and create engaging videos without video-editing skills! | engaging,javascript,svelte,video,videmo,recording,screen,typescript,web-codecs | 2023-10-27T00:40:23Z | 2024-05-06T00:33:55Z | 2024-05-01T16:35:50Z | 1 | 18 | 479 | 2 | 0 | 23 | null | AGPL-3.0 | Svelte |
ladan-hazrati-web/template-travel-agency | main | # template-travel-agency

**You can see information about my project**
- [Demo Project]( https://ladan-hazrati-web.github.io/template-travel-agency/)
- Developed by ladan hazrati
- Created - 2023-11-01
- Technologies Used - Html , css , Tailwind
- Hooks Used : useState
- Role - Frontend
- How to reach me : with my [instagram](https://www.instagram.com/ladan_hazrati_web) and [linkedin](https://www.linkedin.com/in/ladan-hazrati-web)
| This project is my first project with tailwind. | css,html,html5,javascript,tailwind,travel,travel-agency,travel-agency-website | 2023-11-03T15:29:07Z | 2023-11-03T15:38:46Z | null | 1 | 0 | 3 | 0 | 0 | 22 | null | null | HTML |
abdulrahim-ramadan/Egens-Bootstrap-Landing-Page | main | # Egens Bootstrap Landing Page ⭐
This repository contains a Bootstrap landing page template called "Egens." It is designed to provide a sleek and modern landing page for various purposes such as product launches, portfolios, or business websites.
## Features
- Clean and professional design
- Fully responsive layout
- Built with Bootstrap for easy customization
- Includes sections for showcasing features, testimonials, pricing, and more
- Integration with Font Awesome for icons
## Live Demo
View a live demo of the Egens Bootstrap Landing Page [here](https://abdulrahim-ramadan.github.io/Egens-Bootstrap-Landing-Page/).
## Screenshots

## Usage
1. Clone the repository:
```bash
git clone https://github.com/abdulrahim-ramadan/Egens-Bootstrap-Landing-Page.git
```
2. Open `index.html` in your web browser to view the landing page template.
3. Customize the content and styles according to your needs. The template is built using Bootstrap, so familiarity with Bootstrap and basic HTML/CSS knowledge is recommended for customization.
## Contributing
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or create a pull request.
## License
This project is licensed under the [MIT License](LICENSE).
#Please ⭐ the repo to support our project
| Landing page using html , css , bootstrap & Javascript | bootstrap,css,html,javascript,responsive | 2023-10-20T23:42:06Z | 2024-03-29T05:30:07Z | null | 1 | 0 | 19 | 0 | 0 | 22 | null | null | HTML |
Omkar-Sonawane-23/VedicVani | main | # <a name="2 Data Source">Data source:</a>
- Data For This Project is Get From https://github.com/vedicscriptures/bhagavad-gita-data this repository.
- just Download This Data In Your computer and Put It Inside `/Data/bhagavad-gita-data` this Folder
# <a name="3 How To Build">How To Build:</a>
- Frontend Of This Project is Buit With ReactJS & Backend Is In NodeJS.
- You Need To Start Both Server
- ## Backend : Starting Nodejs Server
- Upload Data First `/Data/bhagavad-gita-data` in this DIR as Mentioned Above
- Open Terminal In `Backend` Dir & type
- `npm i`
- `node index.js`
- ## Frontend : Starting ReactJs
- Open Your Terminal and Type
- `npm i`
- `npm start`
# Join the Discord
https://discord.gg/uD7x8Mah
| null | data,javascript,nodejs,nodejs-server,reactjs | 2023-10-29T17:00:24Z | 2024-05-20T06:19:09Z | null | 16 | 59 | 68 | 84 | 45 | 22 | null | null | Python |
MinSiThu/burmese-voice | main | # burmese-voice
A speech command ai library for Burmese language
Read the documentation [Here](https://burmese-voice.vercel.app/).
Download the model [Here](https://github.com/MinSiThu/burmese-voice/releases).
The library currently can classify **6** burmese words by voice and one additional noise.
The voices are
- Go (သွား)
- Stop (ရပ်)
- Left (ဘယ်)
- Right (ညာ)
- On (ဖွင့်)
- Off (ပိတ်)
- Background Noise
## Using BurmeseVoice Model
```js
let burmeseVoice;
async function main(){
const URL = "http://localhost:8000/models/"; // URL must be absolute URL
burmeseVoice = new BurmeseVoice(URL)
await burmeseVoice.load();
console.log(burmeseVoice.getLabels());
}
function init(){
burmeseVoice.listen((result)=>{
console.log(result);
const voice = burmeseVoice.getBestResult(result.scores);
console.log(voice);
});
}
function stop(){
burmeseVoice.stopListening();
}
main();
``` | A vocie command ai library for Burmese language | artificial-intelligence,burmese,machine-learning,myanmar,tensorflow,burma,voice-recognition,frontend,javascript | 2023-10-21T17:34:46Z | 2023-10-31T11:43:26Z | 2023-10-25T06:33:48Z | 1 | 0 | 16 | 0 | 2 | 20 | null | MIT | JavaScript |
embrasure-secrets/embrasure | main | # Embrasure
Embrasure is a lightweight, open source tool for managing application secrets across a small development team.
Embrasure is fully built in AWS in the free tier and builds all of its own architecture so as to not affect any existing aws resources a user may or may not have. Embrasure works as a wrapper that wraps your project, aquires all secrets your project uses, and then runs your project with the necessary secrets injected into their desired location. This eliminates hard coding sensitive information into your codebase and also acts as a single secrets repository to prevent secret sprawl in your teams project environment.
Embrasure encrypts secrets at rest in the secrets database and also utilizes TLS/HTTPS to encrypt your secrets while pulling them down from their cloud storage database to keep your teams secrets a secret. Embrasure also verifies the identity of all users attempting to work with embrasure to determine if they have access before sending any information anywhere. This is all done using aws's high quality security tools along with aws IAM to verify the identity of anyone trying to access your secrets. All this is to say that if you trust amazon to keep your sensitive information secure, then you can trust Embrasure as well!
## Installation
### Pre Embrasure download setup
If you regularly use AWS you may already have the following but embrasure relies on the .aws folder to determine what aws account is being used. This folder must be created in your machines home directory, **NOT YOUR PROJECT HOME DIRECTORY**. If your not sure what your machines home directory is, run the following script in your terminal:
```bash
cd ~
pwd
```
Create a folder called ".aws" in your home directory and create 2 files: "credentials" and "config" (note that files have no file extension and are all lowercase). Please fill both files with your aws account information as shown below:
**NOTE: THE TEAM ADMIN WILL PROVIDE THE AWS_ACCESS_KEY_ID AND AWS_SECRET_ACCESS_KEY TO THEIR TEAMMATES DURING THE SETUP OF EMBRASURE. TEAMMATES SHOULD NOT USE THEIR AWS ACCOUNT CREDENTIALS IF THEY HAVE THEM!**
credentials (do not use quotation marks):
[default]
aws_access_key_id = your_aws_access_key_id_here
aws_secret_access_key = your_aws_secret_access_key_here
config:
[default]
region=your_aws_region (ex: region=us-east-1)
output=json
Now you are all set up to install embrasure!
### Embrasure download setup
Run the following commands in the root directory of the project you wish to use Embrasure Secrets for. They will install all of Embrasure's dependencies and allow the usage of Embrasure's CLI commands. The final command should only be run by the admin which will have the admin build all of the aws resources embrasure requires to work in the aws account you have in your ".aws/credentials" file and account you have chosen (if you have multiple accounts in the credentials file) when the command is run.
```bash
npm install embrasure // install dependencies into your project
npm link // enables embrasure's CLI Commands in your dev environment
embrasure/src/utils/aws-init/init.js // builds aws architecture for secure secrets storage
embrasure init // ONLY ADMIN RUNS THIS COMMAND!! Builds Embrasure cloud architecture that your team will use to store and interact with secrets
// GO TO EMBRASURE SERVERLESS REPO TO FINISH EMBRASURE PROJECT SETUP
```
### What did Embrasure just create in my aws account?
Embrasure fully builds all of the aws dependencies it requires to work and makes no assumptions regarding what resources are available to connect to in the admins aws account. Because of this, the following aws resources are built:
- x1 VPC (virtual private cloud)
- x2 Subnets
- x1 VPC Security Group
- x1 Subnet Group
- x1 RDS Database running PostgreSQL
- x1 Lambda (built from setup in "Embrasure Serverless" Repo)
- x1 API Gateway (built from setup in "Embrasure Serverless" Repo)
## Usage
Usage is dependent on what accessibility is granted to a user by the admin but all embrasure commands are listed below:
```node
// Meta Commands
embrasure init --username <username> --password <password> // Initialize backend architecture. Run this only once.
embrasure teardown // Delete backend architecture. NOTE: YOU MUST RUN SERVERLESS REMOVE BEFORE RUNNING THIS COMMAND OR IT WILL NOT WORK
embrasure run --file <file> // Run file with secrets injected
// Secrets database interaction commands
embrasure getAllSecrets // returns all secrets a user has access to in a development environment
embrasure getSecret --name <secretName> // returns the value of a specified secret if user has access to that secret
embrasure addSecret --name <name> --value <value> // adds a secret to the secrets manager if user has create secret access
embrasure updateSecret --name <name> --value <value> // updates the value of a specified secret if user has update secret access
embrasure deleteSecret --name <name> // deletes a specified secret from the secrets manager is user has delete secret access
// Admin only user interaction and access audit log commands
embrasure addUser --name <name> --writePermissions=[boolean] // Add a user to your organization and specify read and write permission or only read permission
embrasure showPermissions --name <name> // Show read/write permissions of a user
embrasure editPermission --name <name> --setWritePermission // Edit read/write permission for a user
embrasure deleteUser --name <name> // Delete user with specified name
embrasure getAllUsers // Get all users for your current project environment
embrasure getAllLogs // Get all logs
embrasure deleteUser --name <name> // Delete user with specified name
```
## 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 .
[MIT](https://choosealicense.com/licenses/mit/)
| An open-source external secrets management solution | aws-iam,aws-vpc,javascript,postgresql-database,secrets-manager,restful-api,nodejs | 2023-10-16T16:45:52Z | 2023-12-06T23:05:02Z | null | 3 | 52 | 243 | 0 | 0 | 19 | null | MIT | JavaScript |
AsharibAli/tms-class-sessions | main | null | Teaching cutting-edge technologies to students at TMS. | browser,css,html,javascript,rendering | 2023-10-15T11:31:13Z | 2023-12-18T23:22:28Z | null | 1 | 1 | 24 | 0 | 2 | 19 | null | null | HTML |
goldipl/SPARK_PROMOTIONS | master | <p align="center">
<img src="./assets/icons/Spark_Promotions_Logo.svg" height="100"/>
</p>
<h1 align="center">Spark Promotions website</h1>
<p align="center">E-commerce dynamic website written using PHP, SCSS, Vanilla JavaScript, HTML5 with SwiperJS. Website contains products page, cart page, login, register, offerts & account profiles/settings pages.
</p>
<p align="center">Project contains also confirmations templates for mailboxes.
</p>
## Table of contents
- [Technologies](#technologies)
- [Gif desktop website presentation](#gif-desktop-website-presentation)
- [Gif mobile website presentation](#gif-mobile-website-presentation)
- [License](#license)
- [E-commerce website screenshots](#e-commerce-website-screenshots)
- [E-mail confirmations screenshots](#e-mail-confirmations-screenshots)
## Technologies
Used technologies:
- JavaScript
- PHP
- HTML5
- SCSS
Used also:
- Swiper.js
- Lightbox.js
## Gif desktop website presentation
#### wait until the gif file loads (42,6mb)

## Gif mobile website presentation
#### wait until the gif file loads (47,7mb)
<img src="./gif/spark-promotions-mobile.gif" width="300">
## License
License Creative Commons Non-Commercial (CC BY-NC) License 
This work is licensed under a Creative Commons Non-Commercial (CC BY-NC) License (not for commercial use)
## E-commerce website screenshots
- Desktop & mobile version :desktop_computer: :iphone:















## E-mail confirmations screenshots
- E-mail confirmations templates :email:


| Spark Promotions website ➡️ E-commerce dynamic website written using PHP, SCSS, Vanilla JavaScript, HTML5 with SwiperJS. Website contains products page, cart page, login, register, offerts & account profiles/settings pages. | e-commerce-website,html5,javascript,lightbox-gallery,php,scss,swiper-js,vanilla-javascript | 2023-10-28T10:46:04Z | 2024-05-15T10:12:52Z | null | 1 | 0 | 310 | 0 | 0 | 19 | null | NOASSERTION | SCSS |
devOpifex/communicate | master | <div align="center">
<img src="inst/logo.png" height=200 />
Small framework to communicate between Shiny client and server via HTTP requests.
Run `communicate::example()` for a short demo.
[Site](https://communicate.opifex.org/)
</div>
## Installation
```r
# install.packages("remotes")
remotes::install_github("devOpifex/communicate")
```
## How it works
Create a shiny application and "commincation channels."
Add callback functions with `com`.
```r
library(shiny)
library(communicate)
add <- \(x){
x + 2
}
ui <- fluidPage(
h1("Hello")
)
server <- \(input, output, session){
com("add", add)
}
shinyApp(ui, server)
```
Then use the JavaScript library to communicate.
```r
library(shiny)
library(communicate)
add <- \(x){
x + 2
}
script <- "
$('#btn').on('click', () => {
communicate.com('add', {x: 1})
.then(res => alert(`equals: ${res}`));
})
"
ui <- fluidPage(
# import dependencies
useCommunicate(),
h1("Hello"),
tags$a("Communicate", id = "btn"),
tags$script(HTML(script))
)
server <- \(input, output, session){
com("add", add)
}
shinyApp(ui, server)
```
### Types
Though optional it is recommended to specify the types of the arguments
of your callback function. This enables type conversion and type check when communicating from the
client.
Existing types:
- `Character`
- `Numeric`
- `Integer`
- `Date`
- `Dataframe`
- `Posixct`
- `Posixlt`
- `Character`
- `List`
- `Function`
```r
library(shiny)
library(communicate)
add <- \(x){
x + 2
}
script <- "
$('#btn').on('click', () => {
communicate.com('add', {x: 1})
.then(res => alert(`equals: ${res}`));
})
"
ui <- fluidPage(
# import dependencies
useCommunicate(),
h1("Hello"),
tags$a("Communicate", id = "btn"),
tags$script(HTML(script))
)
server <- \(input, output, session){
com("add", add)(x = Integer)
}
shinyApp(ui, server)
```
### Defaults
You can also specifiy callback functions' argument defaults as done below.
```r
library(shiny)
library(communicate)
add <- \(x, y){
x + y
}
script <- "
$('#btn').on('click', () => {
communicate.com('add', {x: 1})
.then(res => alert(`equals: ${res}`));
})
"
ui <- fluidPage(
# import dependencies
useCommunicate(),
h1("Hello"),
tags$a("Communicate", id = "btn"),
tags$script(HTML(script))
)
server <- \(input, output, session){
com("add", add)(x = Integer, y = Numeric)(y = 1.1)
}
shinyApp(ui, server)
```
## JavaScript
Accessible from `communicate`, functions:
- `com` - communicate.
- `hasCom` - check if communication channel registered.
- `getCom` - get communication channel and its arguments.
- `getComs` - get all communication channels registered.
## Dependency
You import the dependency with `useCommunicate()`.
Alternatively you can install the npm package,
e.g.: if you use [packer](https://packer.john-coene.com/).
```bash
npm install @devopifex/communicate
```
Or with packer:
```r
packer::npm_install("@devopifex/communicate")
```
### Usage
```js
communicate.hasCom("add")
communicate.getCom("add")
communicate.com("add", {x: 1, y: 2})
.then(data => console.log(data))
.catch(error => console.error(error))
```
| 💬 Communicate between client and server in Shiny via HTTP | client-server,http,javascript,rstats | 2023-10-28T00:29:22Z | 2024-03-09T20:50:20Z | 2024-03-09T20:50:20Z | 1 | 0 | 54 | 0 | 0 | 18 | null | GPL-3.0 | R |
dbushell/xml-streamify | main | # 📰 XML Streamify
Fetch and parse XML documents using the power of JavaScript web streams and async iterators ✨
* Small, fast, zero dependencies †
* Work with data before the fetch is complete
* Cross-runtime support (Bun ‡, Deno, Node, and web browsers)
**This is experimental work in progress.** But it does seem to work. It was designed to parse RSS feeds.
## Usage
Add dependency from JSR: [@dbushell/xml-streamify](https://jsr.io/@dbushell/xml-streamify). See the `examples` directory for platform specific examples.
```javascript
import {parse} from "jsr:@dbushell/xml-streamify";
```
The `parse` generator function is the main export. Below is a basic example that logs RSS item titles as they're found:
```javascript
for await (const node of parse('https://dbushell.com/rss.xml')) {
if (node.is('channel', 'item')) {
console.log(node.first('title').innerText);
}
}
```
See [`src/types.ts`](/src/types.ts) for `parse` options.
`parse` uses a lower level `XMLStream` that can be used alone:
```javascript
const response = await fetch('https://dbushell.com/rss.xml');
const stream = response.body.pipeThrough(new XMLStream());
for await (const [type, value] of stream) {
// e.g. declaration: <?xml version="1.0" encoding="UTF-8"?>
console.log(`${type}: ${value}`);
}
```
See [`examples/advanced/stream.ts`](/examples/advanced/stream.ts) for a full example.
## Advanced
In the `examples/advanced` directory there is a Deno web server. It will proxy RSS feeds, add CORS headers, and throttle streaming speed for testing. Run `deno run -A examples/advanced/mod.ts` for the full example script.
## Notes
This project may not be fully XML compliant. It can handle XHTML in some cases. It will not parse HTML where elements like `<meta charset="utf-8">` are not self-closing and `<li>` do not require a closing `</li>` for example.
Browsers may need a [polyfill](https://bugs.chromium.org/p/chromium/issues/detail?id=929585#c10) until they support async iterator on `ReadableStream`.
† bring your own HTML entities decoder
‡ Bun has issues ([#2489](https://github.com/oven-sh/bun/issues/2489))
## NPM
Add the [JavaScript Registry](https://jsr.io/) to `.npmrc`:
```
@jsr:registry=https://npm.jsr.io
```
Install the package:
```sh
npm install @jsr/dbushell__xml-streamify
```
* * *
[MIT License](/LICENSE) | Copyright © 2024 [David Bushell](https://dbushell.com)
| Fetch and parse XML with JavaScript web streams and async iterators ✨ | async,bun,deno,iterator,javascript,nodejs,stream,xml | 2023-10-19T07:03:32Z | 2024-03-12T08:41:40Z | null | 1 | 1 | 14 | 1 | 2 | 18 | null | MIT | TypeScript |
AbdullahBakir97/Jobs-Portal | main | # Jobs Portal
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/)
[](https://www.djangoproject.com/)
<img src="https://techstack-generator.vercel.app/django-icon.svg" alt="icon" width="100" height="100" />
# Empower Your Recruitment Journey with Jobs Portal
Jobs Portal is a powerful platform for managing job listings, facilitating seamless recruitment processes, and connecting job seekers with potential employers. Built using Python, Django, and FastAPI, it offers a robust solution for handling diverse job opportunities.
## What Is Jobs Portal?
Jobs Portal serves as a centralized hub for job-related activities, providing features that streamline the recruitment lifecycle:
- **Job Listings**: Effortlessly manage and categorize job listings for various roles.
- **Company Profiles**: Showcase company information and build a strong employer brand.
- **Application Tracking**: Track and manage job applications efficiently.
- **User Authentication**: Allow users to create accounts, enhancing their job-seeking experience.
## Key Features
🌐 **Job Management**: Easily create, edit, and categorize job listings for a variety of roles.
🏢 **Company Profiles**: Present detailed information about companies, helping job seekers make informed decisions.
📑 **Application Tracking**: Streamline the application process with a centralized tracking system.
🔐 **User Authentication**: Enable users to create accounts, personalize their job search, and track applications.
🌟 **Responsive Design**: Ensure a seamless experience for users across devices, from desktop to mobile.
🚀 **FastAPI Integration**: Leverage the power of FastAPI for high-performance, asynchronous operations.
## Getting Started
Getting started with Jobs Portal is straightforward. Follow these steps to set up your recruitment platform:
1.**Clone the Repository**: Begin by cloning the project repository:
```bash
git clone https://github.com/AbdullahBakir97/Jobs-Portal.git
```
2.**Navigate to the Project Directory**: Move into the project directory:
```bash
cd Jobs-Portal
```
3.**Create and Activate a Virtual Environment**: Set up a virtual environment and activate it:
```bash
python -m venv venv
source venv/bin/activate # On Windows, use venv\Scripts\activate
```
4.**Install Required Dependencies**: Install the necessary dependencies for the project:
```bash
pip install -r requirements.txt
```
5.**Apply Database Migrations**: Apply database migrations to set up the database:
```bash
python manage.py migrate
```
6.**Create a Superuser Account**: Create a superuser account for administrative access:
```bash
python manage.py createsuperuser
```
7.**Start the Development Server**: Launch the development server:
```bash
python manage.py runserver
```
8.**Access the Admin Panel**: Configure your Jobs Portal by accessing the admin panel at :
```bash
http://localhost:8000/admin/.
```
## Using Jobs Portal
Jobs Portal provides a feature-rich environment for managing job listings and applications. Here's what you can do:
- **Explore Job Listings**: Discover a diverse range of job opportunities on the homepage.
- **Create a Personalized Experience**: Register or log in to tailor your job search and track applications effectively.
- **Admin Panel Control**: Utilize the admin panel to manage job listings, companies, and user accounts seamlessly.
## Customization and Configuration
Tailor Jobs Portal to meet your unique requirements. Customize settings in the `settings.py` file, and ensure secure deployment for production by configuring environment variables, secrets, and database settings.
## Contribution Guidelines
We invite you to join our community and contribute to shaping the future of Jobs Portal. Whether you're interested in enhancing the platform, fixing bugs, or introducing new features, your contributions are valuable. Please review our [contribution guidelines](CONTRIBUTING.md) for more details.
## License
Jobs Portal is open-source and licensed under the MIT License. You can find the full license text in the [LICENSE](LICENSE) file.
Elevate your recruitment processes with Jobs Portal. Join our community, contribute to its development, and be part of the journey towards seamless job management.
| Jobs Portal is a comprehensive web application built using Python, Django, and Django Rest Framework. It serves as a platform for job seekers and employers to connect and streamline the job search and hiring process. | css,django,html,javascript,python,django-rest-framework,swagger | 2023-11-06T18:23:13Z | 2024-04-29T05:55:21Z | null | 1 | 0 | 43 | 0 | 2 | 17 | null | MIT | Python |
joyalshaji135/Ecommerce-Grocery-Mini-Project | master |
# Ecommerce-Grocery-Mini-Project-
Ecommerce
| The e-commerce grocery system comprises two key modules: the User Module, which focuses on providing customers with a seamless shopping experience through features like product browsing, cart management, secure payments, and order tracking, and the Admin Module, which empowers administrators to oversee platform operations, including product and ord | css,html,javascript,php,mysql-database | 2023-10-30T18:37:09Z | 2024-04-21T16:41:51Z | null | 1 | 0 | 474 | 0 | 0 | 17 | null | null | PHP |
bepitulaz/google-sheets-midi-sequencer | main | # Google Sheets as 2 tracks MIDI sequencer
<img width="1440" alt="image" src="https://github.com/bepitulaz/google-sheets-midi-sequencer/assets/313962/acc3b971-52f0-4e52-b3ed-e7424d9d9628">
We can extend the functionality of Google Sheets via [Apps Script](https://developers.google.com/apps-script). This repository is a proof of concept to use Google Sheets as a MIDI sequencer. I built a custom sidebar UI for Google Sheets, and access WebMIDI API from there. Then, I connected my synthesizer via USB cable to the laptop. The script can read and send the MIDI data from Google Sheets cell and pass it to the synthesizer.
## The sheet
You can copy the sheet for this project from [this link](https://docs.google.com/spreadsheets/d/1FzpuG3gTlh_NykLf2izHipp3kVOwXUesZNqox6vaPBE/copy)
## The video demo
[](https://youtu.be/duzOII-73cA?si=_5O_taffXfPOmZln)
| A 2 tracks midi sequencer built on top of Google Sheets | google-sheets-addon,javascript,midi-controller,music-sequencer,webmidi,webmidiapi,webmidijs | 2023-10-26T14:40:43Z | 2023-10-30T19:06:22Z | null | 1 | 0 | 8 | 0 | 2 | 17 | null | MIT | HTML |
twlite/music-bot | main | > # Project overview
> As a core contributor to [discord-player](https://discord-player.js.org), I've dedicated significant time and effort to this project. My familiarity with the core principles of discord-player has allowed me to incorporate many of its concepts and best practices into this project, serving as a valuable reference for library users. I've strived to ensure the project is user-friendly and intuitive. Your suggestions and feedback are always welcome - feel free to open an issue or submit a pull request.
---
# Music Bot
A complete example of a discord music bot including database, web dashboard, and more powered by [discord.js](https://discord.js.org/#/) and [discord-player](https://discord-player.js.org).
# Features
- Easy to use
- Customizable
- Covers most of the concepts as well as best practices of discord-player
- Slash commands
- Web dashboard
- Custom playlists management
- Queue management
- Persistent configurations
- Equalizer
and more...
# Setting up the bot
## Setup with Docker
- TODO
## Manual setup
- Run `pnpm install --frozen-lockfile` to install all dependencies
### Starting the bot
- Rename `.env.example` to `.env` and fill out the values
- Put your bot token in `DISCORD_TOKEN`
- Put mongodb database credentials in `DATABASE_URL` (You can get one for free from [Mongodb Atlas](https://www.mongodb.com/atlas))
- Put your redis config in `REDIS_*` (you can use memurai for windows)
- Run `pnpm bot dev` to start the bot in development mode
### Starting the website
- Rename `.env.example` to `.env` and fill out the values
- Run `pnpm run --filter web dev` to start the website in development mode
You can now use `/web` command to get magic link to the website. You are able to add songs to the queue, skip songs, change volume and more from the website itself. You can also do this from Discord using slash commands.

## Support me on Patreon
If you like this project, consider supporting me on Patreon. This will help me to keep working on projects like this and make them even better.
[](https://www.patreon.com/twlite)
| The only self-hostable discord music bot you will ever need, has a cool website too ✌️ | dashboard,discord-player,javascript,music-bot,web,express,mern-stack,mongodb,nextjs,redis | 2023-11-05T05:54:32Z | 2023-12-05T18:32:25Z | null | 1 | 1 | 34 | 4 | 7 | 17 | null | MIT | TypeScript |
kova98/Chat | main | # Chat
A multi-transport chat application. Currently supports WebSockets, Long Polling and Server-Sent Events.
[](https://github.com/kova98/Chat/actions/workflows/static.yml)
[](https://github.com/kova98/Chat/actions/workflows/server.yml)
https://chat.rokokovac.com/

# Features
- Use WebSocket, Long Polling or Server-Sent Events
- Join with name
- Send and receive messages
- Active users list
- Chat history
## Stack
**Frontend:** HTML, CSS, JavaScript
**Backend:** .NET 8
**Server:** Nginx
**CI/CD:** GitHub Actions
No additional libraries used.
| A multi-transport chat application | chat,dotnet,javascript,long-polling,server-sent-events,websocket | 2023-10-16T21:07:10Z | 2023-12-09T14:23:04Z | null | 1 | 1 | 46 | 2 | 6 | 16 | null | null | C# |
GmeroAlert/GmAlert | main | # Gmalert 2
无依赖,轻量的消息反馈组件,内置三个模块:alert (对话框、模态框)、message (toast)、notice (上下滑入提示),支持自定义颜色、图标、内容等
前端反馈组件对于一个成熟的网站系统来说时不和或缺的,现在各种 UI 组件库都会继承自己的反馈组件,但是无关框架的基于原生 js 的反馈组件却很难寻找,正是这样的原因,我开发了 Gmalert (Gm 是我的网名 Gmero 的前两位字母,alert 代表其反馈提醒的功能)
Gmalert 的 v1 版本经过一段时间的开发,基本功能已经完成,体积也成功控制在了 18kb 左右,但在实际应用过程中发现,手机端的表现不如人意,这也是一些用户所反馈的问题。因此 v2 版本的开发目标便转移到了移动端优化的路线上,移除了使用频率不高的 Information 模块,样式进行了大改,移除了原本的 error、success、warn 等的样式预设,进一步化繁为简,将颜色、图标等的自定义交由用户处理,这也使得 Gmalert v2 版本的体积控制在了 10kb 以内
[DEMO 演示](https://gmeroalert.github.io/GmAlert)
## 特性介绍
**轻量的体积**,“轻”一直是本项目的核心设计目标,v2 版本在前版本的基础上再将体积缩小了一倍,不过 10kb 的体积,gzip 压缩后甚至只有 3.9kb 的大小
**完善的功能**,Gmalert 2 通过其内置的 3 大模块发挥功能,分别是 alert (弹出自带模态的确认框、自定义内容的对话框、可以异步关闭的表单提交框)、message (小巧的消息弹出组件,适合简单的消息)、notice (由顶部或底部滑入的消息提示,醒目,方便,而且可以轻松自定义颜色)。这 3 个模块几乎可以满足所有的消息反馈需求,并且其定制能力非常强大,比如本站的搜索面板就是基于 alert 模块的自定义 html 功能实现的
**轻松使用**,无需单独引入 CSS 文件,一个 JS 文件就搞定!样式表写入在 JS 代码中,会在程序运行时自动附加到 head。你也可以使用 NPM 上的 esm 版本的 Gmalert,支持 tree-shake ,按需引入你需要的组件
## 快速使用
在 [Releases · GmeroAlert/GmAlert (github.com)](https://github.com/GmeroAlert/GmAlert/releases) 页面下载最新的资源文件(**gmalert.min.js**),然后在你的网页中引入即可:
```html
<body>
<script src="path/to/gmalert.min.js"></script>
</body>
```
然后赶紧使用起来吧
```javascript
Gmal.alert('这是一个弹窗')
Gmal.message('3s中后我就消失了', 3000)
Gmal.message('我内置了一个loading的图标', {
icon: 'loading', // 其他图标请输入 html 代码
timeout: 0, // 设为0就只能手动关闭了
})
Gmal.notice('你应该是对的', {
background: 'red',
color: '#fff',
})
```
## NPM 使用
获取你想通过 NPM 来使用 Gmalert
```bash
npm install gmalert
```
按需选择你想用的组件,配合 rollup、vite 等具有 tree-shake 功能的打包工具会自动清除你没有使用到的组件代码和样式哦
```js
import { alert, message } from 'gmalert'
const a = alert('这是一个没有按钮的对话框', {
confirmLabel: '',
})
setTimeout(() => {
a.close().then(() => {
message('关掉了')
})
}, 3000)
```
| 一个轻量且强大的消息弹出组件 | alert,javascript,popup,dialog,message,modal,prompt,toast | 2023-10-20T05:35:26Z | 2024-05-21T17:59:57Z | 2024-05-12T15:14:21Z | 1 | 2 | 94 | 0 | 1 | 16 | null | null | TypeScript |
yeahbread/Ego-Menu-Bookmarklets | main | ## Description 🕷
👁 Ego Menu is a bookmarklet UI with a collection of bookmarklets that enhance user expeirence and improve productivity, especially during school hours.
Ego menu is a proof-of-concept project and is meant for educational purposes only. Using this project means you understand you're using it at your own risk.
## Installation
To 'install' Ego Menu, simply:
- 1️⃣ ! Make sure bookmark bar is active on chrome by pressing CTRL+SHIFT+B OR CMD+SHIFT+B
- 2️⃣ ! Visit [bookmarklet.js Source Code](https://raw.githubusercontent.com/yeahbread/Ego-Menu-Bookmarklets/main/bookmarklet.js), and copy everything from that page.
- 3️⃣ ! Paste the copied code from the previous step into the URL destination of a bookmark
- 4️⃣ ! Visit a website (bookmarklets don't work on SOME strict sites, or on chrome://newtab), and press the bookmarklet you just made.
- 5️⃣ ! Hover over the bottom left screen to unhide the Ego Menu
Faster/Alternative 'install' method on [Ego Menu Website](https://yeahbread.github.io/#ego-menu)
## Usage
You have to click on the bookmarklet ONCE before using it on a page. Sometimes websites block bookmarklets from running or the menu from showing up, nothing I can do about it shake my head
## Help
Support and help can be found on this [chat](https://yeahbread.github.io/#chat).
## Staff
Ego Menu is currently being developed by:
- me... lol [@yeahbread](https://github.com/yeahbread)
- [@dragon731012](https://github.com/dragon731012) (Huge list of bookmarklets come from them)
- [@Coding4Hours](https://github.com/Coding4Hours)
## Contribution
Contributions are welcome and encouraged. To contribute, simply fork the repository, make your changes, and submit a pull request for review.
## License
Ego-Menu-Bookmarklets is licensed under the MIT license.
| 👁 Ego Menu is a bookmarklet UI with a collection of bookmarklets that enhance user expeirence and improve productivity, especially during school hours. Ego menu is a proof-of-concept project and is meant for educational purposes only. Using this project means you understand you're using it at your own risk. | bookmarklet,bookmarklet-hack,bookmarklet-menu,bookmarklet-unblocker,javascript,menu,school-cheats,unblocker,bookmarklet-game | 2023-10-21T19:22:13Z | 2024-05-23T02:46:20Z | null | 3 | 3 | 213 | 1 | 7 | 16 | null | null | HTML |
Danilqa/web-performance-handbook | main | # Web Performance Handbook
<img align="right" width="100" height="100" title="Logo"
src="./static/images/logo.png" />
This handbook helps to quickly understand the topic and start improving performance. It contains a metrics glossary,
a compilation of useful tools, and a catalog of necessary materials.
I really want to share proven knowledge to make the web even better and faster. Support and bookmark the project by giving it a star! ⭐
## Table of Contents
- [Web Performance Handbook](#web-performance-handbook)
- [Table of Contents](#table-of-contents)
- [Tools](#tools)
- [Global Stats](#global-stats)
- [Treo — Site Speed](#treo--site-speed)
- [Web Vitals (extension)](#web-vitals-extension)
- [PageSpeed Insights](#pagespeed-insights)
- [WebPageTest](#webpagetest)
- [Lighthouse](#lighthouse)
- [DevTools Performance (with experimental features)](#devtools-performance-with-experimental-features)
- [Monitoring](#monitoring)
- [LHCI Server (open-source)](#lhci-server-open-source)
- [DebugBear (paid)](#debugbear-paid)
- [Optimizing Hydration](#optimizing-hydration)
- [Disable Hydration](#disable-hydration)
- [Server Components](#server-components)
- [Optimizing Page Load Speed](#optimizing-page-load-speed)
- [Image Proxy: Use avif / webp / progressive jpeg](#image-proxy-use-avif--webp--progressive-jpeg)
- [Data Compression with brotli](#data-compression-with-brotli)
- [Optimizing Bundle](#optimizing-bundle)
- [Tools to Analyze](#tools-to-analyze)
- [Statoscope](#statoscope)
- [Bundle Analyzer](#bundle-analyzer)
- [Why?](#why)
- [Webpack Alias: Remove 3-rd Party Code from Bundle](#webpack-alias-remove-3-rd-party-code-from-bundle)
- [Lazy Code Loading: On Viewport, on Interaction](#lazy-code-loading-on-viewport-on-interaction)
- [Deduplication](#deduplication)
- [Webpack: Magic Comments on Imports](#webpack-magic-comments-on-imports)
- [React Tools](#react-tools)
- [Why Did You Render](#why-did-you-render)
- [React DevTools Profiler](#react-devtools-profiler)
- [Learning Resources](#learning-resources)
- [Browser Rendering Optimization Course](#browser-rendering-optimization-course)
- [Web App Performance Course](#web-app-performance-course)
- [Metrics](#metrics)
- [CLS](#cls)
- [DCL](#dcl)
- [FCP](#fcp)
- [FID](#fid)
- [FP](#fp)
- [INP](#inp)
- [L](#l)
- [LCP](#lcp)
- [SI](#si)
- [TBT](#tbt)
- [TTI](#tti)
- [TTFB](#ttfb)
---
## Tools
### Global Stats
Browser market share worldwide. This allows you to see device and browser usage in specific regions.
[link](https://gs.statcounter.com/browser-market-share/)
### Treo — Site Speed
How to view historical performance data of real users?
Allows viewing annual reports for websites based on Light House and CrUX (Chrome User Experience Report) metrics.
Filters can also be set, such as internet connection speed, location, and device. Uses real user data. Very useful for observing trends
and metrics specific to certain user types.
[link](https://treo.sh/sitespeed)
### Web Vitals (extension)
Collect metrics such as [**INP**](#INP), [LCP](#LCP), [CLS](#CLS), [FIP](#FIP), [FCP](#FCP), and [TTFB](#TTFB) in real-time and easily view them in a popup.
Enabling logging in options can assist in debugging [INP](#INP).
[link](https://chrome.google.com/webstore/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma/)
### PageSpeed Insights
Allows you to conduct Lighthouse performance tests remotely, in a more realistic environment. Can be used for taking
more objective measurements, as computer powers vary among teammates. Especially, developers tend to have significantly
more powerful computers than the general market. Also, for popular websites, it provides data from the CrUX report.
[link](https://pagespeed.web.dev)
### WebPageTest
The same as previous, but on steroids. Allows you to set up a testing environment: location, browser, its available
functionality, connection speed, etc. Can record a video of the loading process, providing more understandable and
detailed reports on the webpage loading process and requests.
[link](https://www.webpagetest.org/)
### Lighthouse
A tool designed for assessing the quality of a web page, focusing on core vitals metrics, SEO, and accessibility.
It is built into Chrome DevTools and can be also used as a CLI tool, making it especially useful for measuring
performance during CI processes. Additionally, it offers practical suggestions to enhance the quality and loading
speed of the page.
### DevTools Performance (with experimental features)
Record and analyze the performance of a page. It allows you to see the loading process in detail, including the
loading, scripting, rendering, and painting phases. It also provides a timeline of events, which can be used to
understand what is happening under the hood. For instance, you can see how long the hydration takes.
Hint:\
Enable the experimental "timeline-*" features in DevTools settings to see more information about events. It's especially
useful for React apps. By default, it's challenging to understand what's really happening because of tons of anonymous
events.
---
## Monitoring
### LHCI Server (open-source)
Allows you to store historical performance data and see differences between builds. It integrates with CI/CD processes.
[GitHub link](https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/server.md)
### DebugBear (paid)
A tool for monitoring web performance and Lighthouse metrics. It can be used to set up alerts for performance regressions.
[link](https://www.debugbear.com/)
---
## Optimizing Hydration
#### Disable Hydration
React has a trick that allows you to disable hydration for a component. The server will render it once, then send an HTML that won't be hydrated. Perfect for static content.
```jsx
<div suppressHydrationWarning dangerouslySetInnerHTML={{ __html: "" }}/>
```
It's also available as part of an npm package:
[react-lazy-hydration](https://www.npmjs.com/package/react-lazy-hydration)
#### Server Components
[more them](https://nextjs.org/docs/app/building-your-application/rendering/server-components)
---
## Optimizing Page Load Speed
### Image Proxy: Use avif / webp / progressive jpeg
To improve LCP and reduce traffic volume, you can use image proxies or CDNs. They will reformat, resize, and optimize your images on the fly, and cache them immediately.
Possible solutions:
1. Cloudflare Images
2. UploadCare
3. [ImageProxy](https://github.com/imgproxy/imgproxy)
4. Implement manually: [Good starting point](https://github.com/Danilqa/image-proxy-service).
### Data Compression with brotli
Reduce the size of static files by 15-17% (the exact number is better to calculate using your own resources). The best results can be achieved using brotli with compression level 11. However, the compression time is longer than with gzip (level 9), so it's better to avoid using it on-the-fly and only use pre-compressed or cached versions.
[Comparison table](https://cran.r-project.org/web/packages/brotli/vignettes/brotli-2015-09-22.pdf)
---
## Optimizing Bundle
### Tools to Analyze
#### Statoscope
Built elaborated report of your bundle. Separates scripts from initial loading and asynchronous loading.
[Github Link](https://github.com/statoscope/statoscope)
#### Bundle Analyzer
[Github Link](https://github.com/webpack-contrib/webpack-bundle-analyzer)
#### Why?
Identifies why a package has been installed. Especially useful for transitive dependencies.
```sh
yarn why
pnpm why
```
### Webpack Alias: Remove 3-rd Party Code from Bundle
```js
const mockEmptyModule = path.resolve('./mock-empty-module.js');
// ...
config.resolve.alias['reactstrap/lib/Carousel.js'] = mockEmptyModule;
```
### Lazy Code Loading: On Viewport, on Interaction
The key principle is to avoid including code in the initial load that can be downloaded later. Instead, download it when a user is about to view it in their viewport, during idle time, or at the start of an interaction.
For React, combine dynamic module import with Suspense.
[real world example](https://dev.to/dsitdikov/my-journey-to-accelerate-load-times-in-heavy-frontend-30c7/)
### Deduplication
If it's safe, align the minor versions of installed modules that are duplicated.
```sh
yarn dedupe
npm dedupe
pnpm dedupe
```
### Webpack: Magic Comments on Imports
Allows you to rename chunks, regroup, prefetch lazy chunks and more.
[link](https://webpack.js.org/api/module-methods/#magic-comments)
---
## React Tools
### Why Did You Render
A tool for detecting unnecessary re-renders. It can be used to find components that are re-rendered too often. Write
messages to the console.
[link](https://github.com/welldone-software/why-did-you-render)
### React DevTools Profiler
Shows the time spent rendering each component and how many times it was rendered. To observe why it was rendered,
enable the "Record why each component rendered while profiling" flag in the settings.
[link](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi)
---
## Learning Resources
### Browser Rendering Optimization Course
Provides a solid basis for understanding how a browser renders a document and what happens behind the scenes.
[link](https://www.udacity.com/course/browser-rendering-optimization--ud860)
### Web App Performance Course
Reveals many subtleties and working practices about optimization that are not usually written about.
[link](https://frontendmasters.com/courses/web-app-performance/)
---
## Metrics
This is a list of the most common metrics which may appear in articles, DevTools, Lighthouse, and other
various tools for working with web performance. Everything is sorted in the alphabetical order.
The factual data is primarily sourced from MDN, web.dev and w3c, however the short description has been rewritten and enhanced.
### CLS
**Cumulative Layout Shift**
Measurement Unit: Score (lower is better)
Shows how often users experience unexpected changes in the layout. It measures the
instability of elements and their overall impact. For example, the banner element changes its height
during the loading process, which causes a shift in the elements below.
[more details](https://web.dev/articles/cls)
### DCL
**DOMContentLoaded**
Measurement Unit: Milliseconds (ms)
Refers to the moment in a webpage's loading process when the DOM is completely parsed. And all deferred scripts have
downloaded and executed. It doesn't wait for resources.
[more details](https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event)
### FCP
**First Contentful Paint**
Measurement Unit: Milliseconds (ms)
Measures the time it takes for first bit of any actual content on a page to become visible on the screen.
This includes text, images, background images, SVG elements, and non-white canvas elements.
[more details](https://web.dev/articles/fcp)
### FID
**First Input Delay**
Measurement Unit: Milliseconds (ms)
Measures the time it takes for the browser to respond to a user's first interaction. This interaction can
include clicks, hovers, touches, and other user events.
[more details](https://web.dev/articles/fid)
### FP
**First Paint**
Measurement Unit: Milliseconds (ms)
Marks the first time the browser renders anything visually different from the default background color of the body.
### INP
**Interaction to Next Paint**
Measurement Unit: Milliseconds (ms)
Measures the time it takes for the browser to paint the next frame after a user interaction.
[more details](https://web.dev/articles/inp)
### L
**On Load**
Measurement Unit: Milliseconds (ms)
Measures the time when the entire page and its resources are fully loaded.
It includes all dependent resources: stylesheets, scripts, iframes, and images.
[more details](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event)
### LCP
**Largest Contentful Paint**
Measurement Unit: Milliseconds (ms)
Measures the time when the largest content block is rendered in the user viewport. The content may include images,
background images, SVG, video, and text.
[more details](https://web.dev/articles/lcp)
### SI
**Speed Index**
Measurement Unit: Score (lower is better)
Measures how swiftly the contents of a page are visually populated. Technically, in a graph, it is represented
by the area above the curve, which will approach 0 as the page loads faster.
[more details](https://developer.mozilla.org/en-US/docs/Glossary/Speed_index)
### TBT
**Total Blocking Time**
Measurement Unit: Milliseconds (ms)
Measures the time between [FCP](#FCP) and [TTI](#TTI) when the main thread was blocked for long enough to prevent input responsiveness.
More specifically, it's the sum of the blocking time for each long task (>50 ms). For web frameworks, this time is
usually consumed by virtual DOM renders and hydration.
[more details](https://web.dev/articles/tbt)
### TTI
**Time to Interactive**
Measurement Unit: Milliseconds (ms)
Measures the time when than at least for 5 seconds where weren't long tasks (>50ms) and
no more than two in-flight network GET requests.
[more details](https://web.dev/articles/tti)
### TTFB
**Time To First Byte**
Measurement Unit: Milliseconds (ms)
Measures when the first byte of data from the web server reaches the browser.
[more details](https://web.dev/articles/ttfb)
| 📖 Selected and essential information on web performance collected in one place. | glossary,metrics,performance,terms,handbook,web-performance,bundle,javascript,react | 2023-10-18T16:31:31Z | 2024-05-17T14:44:07Z | null | 1 | 0 | 18 | 0 | 0 | 16 | null | MIT | null |
bush1D3v/tsbank_api | main | # ⛰️ TSBANK API




## 🔍 Sobre o Projeto
A **API TSBank** é uma aplicação **RESTful** que oferece suporte a operações **CRUD** simples, **gerenciamento** e **controle** de transações, geração de **extratos**, **saques**, **depósitos** e transações **entre contas**, além de ter a capacidade de atualizar **todas** as informações do usuário.
## 🛠️ Tecnologias e Ferramentas Utilizadas
<div align='center'>
<img align='center' height='50' width='70' title='TypeScript' alt='typescript' src='https://github.com/devicons/devicon/blob/master/icons/typescript/typescript-original.svg' />
<img align='center' height='54' width='68' title='Node.js' alt='nodejs' src='https://github.com/devicons/devicon/blob/master/icons/nodejs/nodejs-original-wordmark.svg' />
<img align='center' height='55' width='70' title='PostgreSQL' alt='postgresql' src='https://github.com/devicons/devicon/blob/master/icons/postgresql/postgresql-original.svg' />
<img align='center' height='54' width='68' title='Jest' alt='jest' src='https://github.com/devicons/devicon/blob/master/icons/jest/jest-plain.svg' />
<img align='center' height='49' width='49' title='Express' alt='express' src='https://github.com/bush1D3v/solid_rest_api/assets/133554156/ba645c20-1f19-4914-8ad0-de6c7f83ba2e' />
<img align='center' height='53' width='49' title='Nodemon' alt='nodemon' src='https://github.com/bush1D3v/solid_rest_api/assets/133554156/fd586348-7781-4e02-a4f0-fe7410ef43fb' />
<img align='center' height='49' width='49' title='Dotenv' alt='dotenv' src='https://github.com/bush1D3v/my_portfolio/assets/133554156/432ec521-c94a-4f24-964e-f62658d04581' />
<img align='center' height='53' width='55' title='JsonWebToken' alt='jsonwebtoken' src='https://github.com/bush1D3v/solid_rest_api/assets/133554156/d23ffb9d-aedc-4d68-9209-7268d7f41ce6' />
<img align='center' height='50' width='50' title='Cors' alt='cors' src='https://github.com/bush1D3v/101acessorios_api/assets/133554156/3b4cccec-065e-428a-a663-1c5939404c1a' />
<img align='center' height='48' width='48' title='Bcrypt' alt='bcrypt' src='https://github.com/bush1D3v/solid_rest_api/assets/133554156/5863bac1-a591-4776-82a4-f427681934be' />
<img align='center' height='48' width='48' title='Insomnia' alt='insomnia' src='https://github.com/bush1D3v/my_portfolio/assets/133554156/75a3fffd-792e-4250-8ef5-2abb615e38a0' />
<img align='center' height='53' width='49' title='Beekeeper' alt='beekeeper' src='https://github.com/bush1D3v/my_portfolio/assets/133554156/0d5b4b55-546c-4bc0-a25c-dfc9116fe993' />
<img align='center' height='60' width='70' title='Swagger' alt='swagger' src='https://github.com/bush1D3v/tsbank_api/assets/133554156/6739401f-d03b-47f8-b01f-88da2a9075d1' />
<img align='center' height='50' width='50' title='Knex' alt='knex' src='https://github.com/bush1D3v/bank_restful_api/assets/133554156/428d135b-9aeb-46e2-b6f6-94791326ff2f' />
<img align='center' height='70' width='70' title='Docker' alt='docker' src='https://github.com/devicons/devicon/blob/master/icons/docker/docker-plain.svg' />
</div>
## 🏗 Estrutura e Arquitetura
O projeto segue os princípios da **arquitetura limpa** e leva em consideração os princípios do **SOLID**. O código foi organizado de acordo com os princípios de **modularidade**, **reutilização** e **responsabilidade única**.
## 🔏 Autenticação
Para usar a API, é **necessário** autenticar-se. Você deve obter um **token JWT válido** através do **endpoint de login** antes de acessar outros recursos. O token JWT deve ser incluído no **cabeçalho de autorização** de **todas** as solicitações subsequentes.
## 📃 Documentação da Aplicação
A seguir, temos o link da **documentação oficial** da nossa aplicação no **Swagger**: <br>
https://tsbank-api.onrender.com/
> obs: Pode ocorrer atraso no carregamento, pois se o UptimeRobot falhar, e, posteriormente, o deploy não for acessado por um certo período, uma requisição subsequente solicitará ao Render que a aplicação saia do "Modo Sleep".
## 🐳 Docker
Com a adição do Docker, você agora pode utilizar dos scripts fornecidos em `package.json` para poder construir a imagem docker e rodar os containers da aplicação e dos testes.
Para isso, segue a lista de funções de cada script:
> `docker-build`: Constrói a imagem docker do projeto <br> `docker-start`: Sobe e roda/só roda o container tsbank_api <br> `docker-stop`: Para o container tsbank_api <br> `docker-test`: Sobe um container alternativo chamado tsbank_api_tests, roda os testes e exclui o container após a execução dos mesmos
# 🖋️ Contribuindo para a TSBank API
Agradecemos pelo seu interesse em contribuir para a **TSBank API**. Sua ajuda é **valiosa** para melhorar e **expandir** nossa aplicação. Abaixo estão as **diretrizes** e os **passos** para contribuir com nosso projeto.
## 💻 Como Contribuir
### 🌳 Forkando o Repositório
Antes de começar, você **deverá** forkar o repositório do projeto para **seu perfil**.
### 🖨 Clonando seu Repositório
Após o Fork, você **precisará** clonar o repositório forkado para seu **ambiente de desenvolvimento local**:
```
git clone https://github.com/{seu-usuario}/tsbank_api.git
cd tsbank_api
```
### ⏬ Instalando Dependências
Certifique-se de ter Node.js instalado no seu sistema. Em seguida, instale as dependências necessárias:
```
npm install
```
ou
```
yarn install
```
ou
```
pnpm install
```
### 🆕 Criando uma Branch
Antes de iniciar qualquer trabalho, crie uma branch separada para a sua contribuição. Use um nome descritivo para a sua branch:
```
git checkout -b feature/nova-funcionalidade
```
### 🔨 Fazendo Alterações
Faça as alterações necessárias no código, adicione novos recursos ou correções de bugs.
### 🧪 Testando
Garanta que suas alterações não quebraram nenhum recurso existente. Execute os testes e certifique-se de que todos passam:
```
npm run test
```
ou
```
yarn test
```
ou
```
pnpm test
```
### 📝 Documentando
Mantenha a documentação atualizada. Se você adicionou novos recursos, verifique se eles estão devidamente documentados no Swagger.
### 📊 Compromissos e Push
Após concluir suas alterações e testá-las, faça um commit das alterações:
```
git add .
git commit -m feat(nomeDoArquivo): Nova funcionalidade
```
Em seguida, envie suas alterações para o repositório:
```
git push origin feature/nova-funcionalidade
```
### 📨 Solicitando um Pull Request (PR)
Vá para o repositório no GitHub e crie um Pull Request para que sua contribuição seja revisada. Certifique-se de descrever suas alterações e fornecer informações contextuais.
### 👁 Revisão e Fusão
Após criar um Pull Request, nossa equipe revisará suas alterações e fornecerá feedback. Uma vez aprovado, suas alterações serão mescladas no projeto principal.
## 💼 Diretrizes Gerais
- Mantenha o código limpo e legível.
- Siga as boas práticas de desenvolvimento.
- Respeite as convenções de nomenclatura existentes.
- Documente adequadamente as alterações, recursos ou correções.
#
**_Agradecemos pela sua contribuição e esperamos trabalhar juntos para tornar a TSBank ainda melhor. Se você tiver alguma dúvida ou precisar de ajuda, não hesite em entrar em contato conosco. Juntos, podemos criar uma aplicação mais robusta e eficiente._**
| API RESTful com autenticação de usuário, criptografia de senha e integração a banco de dados. Levando à risca os princípios de desenvolvimento utilizados. | bcrypt,dotenv,express,jsonwebtoken,jwt,knex,nodejs,nodemon,postgresql,restful-api | 2023-10-19T02:09:02Z | 2024-02-20T21:22:32Z | null | 1 | 55 | 999 | 0 | 0 | 15 | null | MIT | TypeScript |
Jakhongiirr/art | main | <h1> Software engineering is an art, engineer is an artist </h1>
<strong> For visualised algorithms and data structures: </strong>
<a href="https://visualgo.net"> VisuAlgo </a>
</br> </br>
# TypeScript Algorithms and Data Structures
## Overview
This TypeScript project implements various algorithms and data structures. It provides a collection of well-documented, efficient, and easy-to-use TypeScript implementations. Explore the richness of computer science concepts and enhance your understanding of algorithms and data structures.
## Features
- Implementations of various algorithms and data structures in TypeScript.
- Configurable and well-documented code for easy understanding.
- NPM scripts for running different algorithms and tasks.
## Getting Started
1. Clone the repo
2. Open terminal
3. Install npm packages
```bash
npm install
```
4. Look at package.json - you can easily run any algorithm and data structure using npm
## Sample:
```bash
npm run dijkstra
```
| Sample data structures & algorithms written in TypeScript | algorithms,data-structures,javascript,typescript | 2023-10-14T09:59:15Z | 2024-01-19T19:48:08Z | null | 1 | 0 | 38 | 0 | 0 | 15 | null | null | TypeScript |
Theo-messi/Metaphysical-Book | main | null | 玄学宝典 - 中华传统五术书籍(山医命相卜)/传世经典著作 | css,javascript,typescript,vite,vitepress,vue | 2023-10-18T08:31:47Z | 2024-05-20T04:12:34Z | null | 1 | 59 | 80 | 0 | 6 | 15 | null | MIT | TypeScript |
amirrahemi01/Basic-TicTacToe | main | # Basic TicTacToe REACT.JS
I Make a "TicTacToe MINI GAME" with these technologies:
<h3 align="left">Languages and Tools:</h3>
<p align="left"> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer" style="text-decoration: none !important;"></a>
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/></a>
<a href="https://www.w3.org/html/" target="_blank" rel="noreferrer" style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a>
<a href="https://reactjs.org/" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> </a>
<a href="https://www.typescriptlang.org/" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/typescript/typescript-original.svg" alt="typescript" width="40" height="40"/> </a>
</p>
### List of components for this project:
> - [x] Routes Page
> - [x] Start Page, include: NewGame - Setting - Share
> - [x] Share button: copy url
> - [ ] AI interaction player
> - [x] Multiplayer interaction player
> - [x] Go back btn for pages routes & components
> - [x] Sound effect for movement :)
> - [x] LocalStorage for DarkMode/LiteMode & Custome Special Board
> - [x] Responsive For Mobile
> - [x] PWA - Web Application
> - [ ] Multiple language
> - [x] Error 404 page
> - [x] Custom .gif for winning or some movement. ex: confetti gif 🎊
> - [ ] input custom Name for users
> - [ ] Custom type of game. ex: play with bot/cpu OR two players/ friendly
> - [ ] Watch history of game.
> - [ ] Random name for bot/cpu OR selecte custom name for bot
> - [ ] Navbar
## Screenshots
<div style="background: #eee">
<img width="400" src="https://raw.githubusercontent.com/amirrahemi01/Basic-TicTacToe/main/screenShot1.png" style="border-radius: 1rem;">
<img width="400" src="https://raw.githubusercontent.com/amirrahemi01/Basic-TicTacToe/main/screenShot2.png" style="border-radius: 1rem;">
<img width="400" src="https://raw.githubusercontent.com/amirrahemi01/Basic-TicTacToe/main/screenShot3.png" style="border-radius: 1rem;">
<img width="200" src="https://raw.githubusercontent.com/amirrahemi01/Basic-TicTacToe/main/public/logo.png" style="border-radius: 1rem;">
</div>
## Demo
Check Demo <a href="https://amirrahemi-tictactoe.vercel.app/" target="_blank">DEMO</a>
## Run
npm i && npm start | Created a Tic Tac Toe with TypeScript library. Have multiple Interaction with fun tools & options :) | react-router,reactjs,tic-tac-toe,tictactoe,css,game,javascript,pwa,pwa-app,typescript | 2023-10-21T11:40:47Z | 2023-10-29T12:55:29Z | null | 1 | 0 | 84 | 0 | 0 | 14 | null | MIT | JavaScript |
affan-ch/UET-LMS-DMC | main | # UET LMS DMC Chrome Extension
The **UET LMS DMC Chrome Extension** is a handy tool designed to enhance your experience with the University of Engineering and Technology Lahore (UET) Learning Management System (LMS). This extension empowers you to effortlessly view your academic performance by calculating your GPA for each semester and your overall CGPA (Cumulative Grade Point Average) right from within your UET LMS DMC (Detailed Marks Certificate).
## Features
- **Calculate Semester GPA:** This extension allows you to quickly compute your GPA for each semester. No more manual calculations or tedious record-keeping. You can instantly access your semester-wise grades.
- **Calculate CGPA:** In addition to semester GPAs, you can also determine your Cumulative Grade Point Average (CGPA) to get a comprehensive overview of your academic progress throughout your UET journey.
- **User-Friendly Interface:** The extension seamlessly integrates into the UET LMS environment, providing a clean and intuitive user interface. It's easy to use, even for those who may not be tech-savvy.
- **Quick Access:** With a few clicks, you can access your GPA and CGPA data without the need to navigate through multiple pages or perform complex calculations manually.
## Installation
To install the UET LMS DMC Chrome Extension, follow these simple steps:
1. **Clone or Download Repository:** First, clone this GitHub repository or download it as a ZIP file to your local machine.
2. **Install Extension in Chrome:**
- Open Google Chrome.
- Go to `chrome://extensions/`.
- Enable the "Developer mode" option.
- Click on "Load unpacked" and select the folder where you cloned or extracted the extension files.
3. **Using the Extension:**
- Once the extension is installed, open your UET LMS DMC page.
- The extension icon will appear in your browser toolbar.
- On the DMC page, the extension will change the table and add rows calculating GPA of each Semester and at the end it calculates the CGPA of all semesters till now.
## Feedback and Contributions
We welcome your feedback and contributions to improve the UET LMS DMC Chrome Extension. If you encounter any issues, have suggestions for new features, or want to contribute to the project, please don't hesitate to open an issue or submit a pull request on this GitHub repository.
## License
This project is licensed under the [MIT License](LICENSE). Feel free to modify and distribute it in accordance with the license terms.
## Contact
If you have any questions or need assistance with the UET LMS DMC Chrome Extension, please contact us at [affan_ali_ch@outlook.com].
Thank you for using our extension, and we hope it simplifies your academic journey at UET!
| With this Chrome extension, users can easily see calculated GPA of each semester and CGPA of all semesters in the DMC of UET LMS. | chrome-extension,javascript,manifest-v3,uet,uet-lahore | 2023-10-30T17:28:53Z | 2024-03-05T16:03:42Z | null | 2 | 1 | 8 | 1 | 1 | 14 | null | MIT | JavaScript |
source-dynamic/sd-design | master | # sd-design


## 简介
`sd-design` 是一个基于 OWL2.0+ 框架构建的 UI 组件库,旨在满足国内用户对 Odoo UI 的审美和使用需求。本项目启发于 [ant-design](https://github.com/ant-design/ant-design),旨在提供更加美观和易用的 UI 组件,以优化用户体验。
## 依赖
- [owl](https://github.com/odoo/owl) version: 2.0+
## 特点
- **美观**: 参照 `ant-design`,`sd-design` 提供了符合国内用户审美的 UI 设计。
- **易用性**: 提供简洁明了的 API,使得组件易于集成和使用。
- **灵活性**: 组件可高度自定义,满足不同场景下的需求。
- 完全开源使用,不会有商业版等区别对待
## 前言
odoo 作为一个开源的 ERP 系统,其 UI 设计一直是国内用户诟病的地方。虽然 odoo 13 中的 UI 设计已经有了很大的改进,但是仍然有很多地方不够美观,也不够符合国内用户的使用习惯。因此,我们希望能够提供一个 UI 组件库,使得 odoo 的 UI 更加美观和易用。
odoo从采用owl到如今,owl逐渐完善。到了目前2.0+版本,使用起来已经和vue、react等前端框架比较接近,因此我们基于owl2.0+进行二次开发,提供一套符合国内用户审美和使用习惯的UI组件库。
ui库我们选择跟随owl版本而不是跟随odoo版本,是因为owl是odoo的前端框架,odoo每年都会发布新版本,但其内核使用的owl版本一般不会有大的变化,因此同一大版本的ui库理论上可以兼容多个odoo版本。版本兼容性比跟随odoo版本更好。
## 预览图

## 组件列表
| 组件 | 功能 | 已实现 |
| -------------- | ------------ | ------ |
| Row | 栅格行 | √ |
| Col | 栅格列 | √ |
| Input | 输入框 | √ |
| Input.Password | 密码框 | √ |
| Input.TextArea | 多行文本 | √ |
| InputNumber | 数字输入组件 | √ |
| List | 通用列表 | √ |
| VirtualList | 通用虚拟列表 | √ |
| Select | 下拉选择框 | √ |
| Checkbox | 多选框 | √ |
| Checkbox.Group | 多选组 | √ |
| Switch | 开关 | √ |
| Slider | 滑动输入条 | × |
## DEMO
[在线DEMO及文档](https://source-dynamic.github.io/sd-design/)
## 快速开始
### 在Odoo中使用
> 需要odoo17及以上版本
参考 [sd-design-addons](https://github.com/source-dynamic/sd-design-addons)
### 本地运行
```bash
yarn install
yarn run storybook
```
## 贡献
欢迎对 sd-design 提出宝贵意见或贡献代码。请遵循以下步骤进行贡献:
1. Fork 本仓库
2. 创建您的特性分支 (`git checkout -b feat/AmazingFeature`)
3. 提交您的更改 (`git commit -m 'Add some AmazingFeature'`)
4. 推送到远程分支 (`git push origin feat/AmazingFeature`)
5. 开启一个 Pull Request。
## 许可
该项目采用 MIT 许可证进行授权。查看 [LICENSE](./LICENSE) 获取更多信息。
## 附言
目前,`sd-design` 项目仍处于发展阶段,我们只提供了部分核心组件。我们计划未来逐步扩充和完善这个组件库,以更好地满足用户需求。由于目前团队规模较小,我们的更新和迭代速度可能不会很快,但我们致力于保持项目的持续发展和改进。
我们非常欢迎社区的任何建议、反馈或贡献。如果您对 `sd-design` 有任何建议或意见,欢迎通过提出 issue 来分享您的想法。同时,如果您希望加入到讨论中或对项目有更深入的了解,欢迎加入我们的微信群进行交流。
您的支持和理解对我们至关重要,这将帮助我们不断进步,使 `sd-design` 成为更优秀的 UI 组件库。
## 联系方式
如果您有任何问题或建议,请通过以下方式联系我们:
- 在仓库中提交issue
- 微信联系进群讨论:
<div>
<img src="./assets/images/IMG_3775.JPG" alt="sd-design" style="margin-top: 10px" width="200" height="260">
</div>
| A UI library with @odoo/owl and typescript | javascript,odoo,owl,ui-design | 2023-10-25T07:07:20Z | 2024-01-09T02:37:08Z | null | 1 | 30 | 125 | 0 | 3 | 14 | null | MIT | TypeScript |
amirrahemi01/emoji-app | main | # EMOJI GAMEAPP
Welcome to the EMOJI GameApp repository!
<h3 align="left">Technologies:</h3>
<p align="left"> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer" style="text-decoration: none !important;"></a>
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/></a>
<a href="https://www.w3.org/html/" target="_blank" rel="noreferrer" style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a>
<a href="https://reactjs.org/" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> </a>
<a href="https://www.typescriptlang.org/" target="_blank" rel="noreferrer"style="text-decoration: none !important;">
<img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/typescript/typescript-original.svg" alt="typescript" width="40" height="40"/> </a>
</p>
## About
This repository likely contains the source code, assets, and documentation for an application centered around emojis. Emojis could be utilized for gaming purposes, such as game puzzle and search filter for emojis.
### Features:
The repository could showcase various features, such as:
> - [x] Responsive Design
> - [x] Onclick Copy Emoji
> - [x] IOS Emojis
> - [x] Check IOS Emoji Exist In CDN SERVER
> - [x] Search Bar
> - [x] Pagination Bar
> - [x] Title For Emojis
> - [x] Emoji API & CDN
> - [x] Shake Images (IOS Emoji) On Hover
> - [x] Onclick () => Clear Search Input Value
> - [x] ToolTop For Hover & Show: "Click To Copy Emoji"
> - [x] Loader Component
> - [x] OnError IOS Emoji, Show System Emojis
> - [x] No Drag For Images
> - [x] Router Paes
> - [x] WPA
> - [x] Toggle Dark OR Light Mode
> - [x] Float Icons For Starter Page
> - [ ] Easy, Medium, Expert, Master, Mode For Game
### Key Features
- **Flexible:** It's designed to be flexible and easily integratable into your React projects.
- **Game Mechanics:** Code segments explaining game logic, levels, scoring, or interactions related to the emoji-based game.
- **Responsive:** The timer is responsive and adapts to different screen sizes.
- **User Interface (UI)** Components, layouts, or designs that users interact with, possibly involving emoji-rich interfaces.
- **Built with ReactJS:** Leveraging the power of ReactJS, this timer component is efficient, maintainable, and easy to integrate into your React projects.
## Screenshots
<div>
<img width="825" src="Screenshot.png">
</div>
## Run
```
npm i && npm start
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for more details.
Check Demo <a href="https://amirrahemi-emoji.vercel.app/" target="_blank">DEMO</a>
| emoji-app, contain serach emoji and emoji game :) | emoji,emoji-api,emoji-app,emoji-data,emoji-game,emoji-keyboard,emoji-picker,emoji-searcher,emojiapp,emojigame | 2023-11-07T13:45:03Z | 2023-11-30T13:30:10Z | null | 1 | 0 | 87 | 0 | 0 | 14 | null | MIT | TypeScript |
ketchupmaze/MXYULA-MD | master | ## New Update
**Pembaruan :**
- Telah menggunakan multi auth sessions
- Fix QR code di terminal & pairing code
- Use Pairing Code: ```node . --pairing 62xxxxxxxxxx```
- Use QR Code: ```node .```
- Penambahan Fitur Store ```addlist, dellist, updatelist, list```
## WAJIB MENGGUNAKAN WEB API DI BAWAH
- BetaBotz API [`RestApi`](https://api.betabotz.org)
- Botcahx API [`RestApi`](https://api.botcahx.eu.org)
- LolHuman API [`RestApi`](https://api.lolhuman.xyz)
- Itsrose API [`RestApi`](https://docs.itsrose.life)
## GRUP & NOMOR SAYA
- Owner Bot [`Chat Saya`](https://wa.me/6281283516246)
- Group Bot [`Join`](https://chat.whatsapp.com/FJRtTzRKxP8A2wT6fcCW3s)
- Group Genshin [`Join`](https://chat.whatsapp.com/LZCnnSQFPkF3C6zrDcH5n8)
## UNTUK PENGGUNA WINDOWS/VPS/RDP
* Unduh & Instal Git [`Klik Disini`](https://git-scm.com/downloads)
* Unduh & Instal NodeJS [`Klik Disini`](https://nodejs.org/en/download)
* Unduh & Instal FFmpeg [`Klik Disini`](https://ffmpeg.org/download.html) (**Jangan Lupa Tambahkan FFmpeg ke variabel lingkungan PATH**)
* Unduh & Instal ImageMagick [`Klik Disini`](https://imagemagick.org/script/download.php)
```bash
git clone https://github.com/ketchupmaze/MXYULA-MD
cd MXYULA-MD
npm install
npm start
```
##### All Contributors
<a href="https://github.com/BOTCAHX"><img src="https://github.com/BOTCAHX.png?size=100" width="100" height="100"></a> | [](https://github.com/ERLANRAHMAT)
---|---
[Tio](https://github.com/BOTCAHX) | [Erlan](https://github.com/ERLANRAHMAT)
Contributor | Contributor |
| Don't Forget the Stars | api,bot-whatsapp,bot-whatsapp-md,javascript,baileys-md,bot-wa,diffusion,termux,text2image,whatsapp-stickers | 2023-11-01T09:43:16Z | 2024-01-18T05:08:39Z | 2023-11-01T09:58:28Z | 1 | 0 | 97 | 1 | 7 | 13 | null | null | JavaScript |
ElHakikAmina/alx-higher_level_programming | master | null | ALX Higher Level Programming | c,python,bash-script,css,html,javascript,shell-script,sql | 2023-10-30T08:39:24Z | 2024-01-19T22:40:41Z | null | 1 | 0 | 154 | 0 | 0 | 13 | null | null | Python |
zareefahmed/apu-html-css-js-php | main | # HTML, CSS, Javascript, and PHP Training Sessions
>**Warning**
The session is currently ongoing, and the content may evolve as we delve deeper into the topic.
>**Warning**
Code samples in this repository have been used to teach HTML, CSS, Javascript, and PHP. The main purpose of these samples is to demonstrate the features of a specific language. Do not use these samples in your production code. Some of the samples may be incomplete as I may have asked learners to finish them.
|ID |Topic |Day|Status|
|---|---------------------------------------------------------|---|---|
|0 |Setup |1 | Completed
|1 |Overview of HTML and CSS |1 | Completed
|2 |Creating and Styling HTML5 Pages |1 | Completed
|3 |Introduction to JavaScript |1 | Completed
|4 |Creating Forms to Collect Data and Validate User Input |2 | Completed
|5 |Communicating with a Remote Data Source |2 | Completed
|6 |Styling HTML5 by using CSS3 |3 | Completed
|7 |Creating Objects and Methods by Using Javascript |3 | Completed
|8 |Creating Interactive Pages Using HTML5 APIs |3 | Completed
|9 |Adding Offline Support to Web Applications |4 | Completed
|10 |Implementing an Adaptive User Interface |4 | Completed
|11 |Creating Advanced Graphics |4 | Completed
|12 |Animate the User Interface |5 | Completed
|13 |Implementing Real-Time Communication by using Web Sockets |5 | Completed
|14 |Creating a Web Worker Process |6 | Completed
|15 |History of PHP |6 | Completed
|16 |PHP Language Basics |6 | Completed
|17 |PHP Variables |6 | Completed
|18 |Control Structures |7 | Completed
|19 |Regular Expressions |7 | Completed
|20 |PHP Functions |7 | Completed
|21 |PHP Object Oriented |8 | Completed
|22 |PHP and Pear |8 | Completed
| | | | |
---------------------------
| HTML, CSS, Javascript, and PHP Training Sessions By Zareef Ahmed | css,html,html5,javascript,php | 2023-10-15T18:28:50Z | 2023-11-28T11:42:49Z | null | 1 | 0 | 52 | 0 | 50 | 13 | null | null | PHP |
dfsdanimaulana/circle-drop | main | # Circle Drop and Grow
Welcome to "Circle Drop and Grow," a simple web game where you control a circle, drop it, and make it grow by colliding with similar circles.
## How to Play
1. When the game starts, you'll see a single circle at the top center of the screen.
2. Use the mouse cursor to move the circle left and right.
3. Click the left mouse button to drop the circle down. The circle will stop falling when it hits the ground.
4. When two circles of the same color collide, one of them will disappear, and the other will grow to twice its size.
5. Keep playing, collect the highest score, and see how big you can make the circle!
## How to Run the Game
1. Make sure you have a web browser that supports HTML5.
2. Download or copy all the game content to your computer.
3. Open the `index.html` file in your web browser to start the game.
## Game preview

## Contributions
If you're interested in contributing to the development of this game, you can fork this repository and submit a pull request with your changes.
## License
This game is released under the [MIT License](LICENSE.md).
## Developer
Created by @dnm17\_
Thank you for playing "Circle Drop and Grow"! Have fun!
| 2D web game created using Matter.js | 2d,game,javascript,matterjs,physics,web | 2023-11-01T04:42:39Z | 2023-12-27T06:43:26Z | null | 1 | 0 | 73 | 0 | 1 | 13 | null | MIT | JavaScript |
Check-Data-Out/velog-dashboard | main | [](https://github.com/Check-Data-Out/velog-dashboard/actions/workflows/worker_main.yaml)
[](https://github.com/Check-Data-Out/velog-dashboard/actions/workflows/worker_token_refresh.yaml)
[](https://hits.seeyoufarm.com)

# Velog Dashboard Project
### "12월 중으로 레거시 통계 보기가 안정화 된 상태로 다시 제공" 된다고 하니, 그때 다시 살려보도록 하겠습니다!, [velog 글 보러가기](https://velog.io/@qlgks1/velog-dashboard-%EC%A0%9C%EC%9E%91%EA%B8%B0-3-frontend-1%EC%B0%A8-user-flow-test#12%EC%9B%94-%EC%A4%91%EC%9C%BC%EB%A1%9C-%EB%A0%88%EA%B1%B0%EC%8B%9C-%ED%86%B5%EA%B3%84-%EB%B3%B4%EA%B8%B0%EA%B0%80-%EC%95%88%EC%A0%95%ED%99%94-%EB%90%9C-%EC%83%81%ED%83%9C%EB%A1%9C-%EB%8B%A4%EC%8B%9C-%EC%A0%9C%EA%B3%B5-%EB%90%9C%EB%8B%A4%EA%B3%A0-%ED%95%98%EB%8B%88-%EA%B7%B8%EB%95%8C-%EB%8B%A4%EC%8B%9C-%EC%82%B4%EB%A0%A4%EB%B3%B4%EB%8F%84%EB%A1%9D-%ED%95%98%EA%B2%A0%EC%8A%B5%EB%8B%88%EB%8B%A4-%EC%95%84%EB%9E%98%EB%8A%94-%EC%98%88%EC%A0%95%EB%90%9C-%EC%9B%90%EB%9E%98-%EA%B8%80%EC%9E%85%EB%8B%88%EB%8B%A4--%EC%95%84%EC%89%AC%EC%9A%B4%EB%8C%80%EB%A1%9C-%EC%98%AC%EB%A0%A4%EB%B4%85%EB%8B%88%EB%8B%A4)
> velog dashboard project, **_velog의 모든 게시글, 통계 데이터를 한 눈에 편하게 확인하자!!_** <br/>
> [https://velog-dashboard.kro.kr](https://velog-dashboard.kro.kr?utm=github) <br/>
> 영상으로 보기! -> https://youtu.be/Ab8c4kmGhQA
## 1. HOW TO USE
#### [https://velog-dashboard.kro.kr](https://velog-dashboard.kro.kr?utm=github)
1. https://velog.io/ 에 접속해서 내 벨로그에 들어간다 (ex - https://velog.io/@qlgks1)
2. 개발자 도구 -> 어플리케이션 -> 쿠키 -> velog에서 `access_token` 값과 `refresh_token` 값을 확인한다!
3. 해당 값을 가지고 login을 한다!
4. ***`데이터 스크레이핑 batch` 가 최대 10분 텀으로 루프를 돕니다.*** 그렇기 때문에 최초 데이터 이니셜라이징에 시간이 소요될 수 있습니다.
5. 특히 게시글이 많은 경우, 오래된 게시글일 경우, retry로 데이터 스크레이핑을 해도 limit에 걸리는 경우가 있습니다. 이 경우 다음 데이터 스크레이핑 사이클에서 update가 되니, 기다려주시면 너무 감사드립니다.
6. 영상으로 보기! -> https://youtu.be/Ab8c4kmGhQA
7. post 에 있는 아이콘,  이미지는 전날 대비 상승,  이미지는 전날 대비 하락 입니다!
8. 다시 접속하실땐 login (index) page를 거치지 말고, 바로 [https://velog-dashboard.kro.kr/dashboard](https://velog-dashboard.kro.kr/dashboard?utm=github) 로 접근하면 편합니다!
9. 최초 로그인 이후, 다시 로그인 시도 하실때 `token issue` 로 고통받으신다면, 우측 하단에 채널톡으로 남겨주시면 제가 핸들링하겠습니다,, (아직 BETA 라 해당 부분은 조금 문제가 있습니다ㅠㅠ)
## 2. token 활용 사항과 사용하는 velog graphQL list
### 1) token 활용
- 입력한 token은 atlas cloud 로 제공되는 mongodb DBMS에 보관됩니다. network ip accesss 부터, auth 까지 모두 제한 환경이니 보안적 이슈는 mongodb사에 있습니다.
- 즉, mongodb cloud가 털리는 이슈까지가 아니라면 token이 탈취될 염려가 없습니다.
- 만약 그럼에도 불구하고 token 탈취의 의심이 있다면, token의 자체 refresh를 멈추고 폐기에 들어갑니다.
- **_식별이 가능한 개인정보를 수집하지 않습니다._** 수집하는 정보는 velog id (email) 이 unique 구분값을 위해 저장되며, 이는 token을 가지고 있는 제 3자에게 유출되지 않습니다.
- 마케팅 용도로 사용하지 않습니다. 만약 이메일 전송이 필요하다고 판단 된다면, 개개인에게 공지성 메일 이후 동의를 받고 진행하게 됩니다.
### 2) 사용하는 velog graphQL
1. `currentUser`
- velog url를 얻기 위해 사용합니다. `username` 만 가져오며, 그 외 값은 가져오지 않고 누구에게도 제공하지 않습니다.
- 토큰이 필요한 API 입니다.
2. `Posts`
- 해당 유저의 모든 게시글을 가져오기 위해 사용합니다. token이 필요없는 API 이며, 수정, 생성, 삭제 등의 모든 기능은 사용하지 않습니다. 오직 "READ" 만 사용합니다.
- 토큰이 필요하지 않은 API 입니다.
3. `getStats`
- 특정 post uuid 값을 기반으로 통계 데이터를 모두 가져옵니다.
- 토큰이 필요한 API 입니다.
---
## 3. Getting Started (local에서 직접 구축하기)
1. 먼저 mongodb atlas connction info가 필요합니다. - https://www.mongodb.com/atlas/database
2. `backend` 디렉토리로 이동합니다.
3. `.env.sample` file을 참조해 `.env` 를 만듭니다.
4. 해당 디렉토리의 root에서 `yarn` 으로 필요한 모든 라이브러리를 설치하고 `yarn start` 로 가동합니다.
5. 이제 static file을 열면 됩니다 -> `nginx > pages > index > index.html` 를 더블클릭으로 브라우저에서 열어주세요!
6. 로그인을 통해 정상적으로 유저 등록이되는지 체크합니다!
7. 이제 `worker` 로 이동해서 poetry를 활요해 필요한 라이브러리를 세팅합니다. - [poetry 간단 사용법](https://velog.io/@qlgks1/python-poetry-%EC%84%A4%EC%B9%98%EB%B6%80%ED%84%B0-project-initializing-%ED%99%9C%EC%9A%A9%ED%95%98%EA%B8%B0)
8. `.env.sample` file을 참조해 `.env` 를 만듭니다.
9. `main.py` 를 러닝해서 데이터 스크레이핑을 확인합니다. 로깅은 console stream과 file stream 모두 존재합니다!
10. `token_refresh.py` 로 저장된 user token을 refresh 해줍니다!
## 4. 참조
- [프로젝트 진행 기록 - velog](https://velog.io/@qlgks1/velog-dashboard-%EC%A0%9C%EC%9E%91%EA%B8%B0-%EB%B2%A8%EB%A1%9C%EA%B7%B8-%ED%86%B5%EA%B3%84%EB%A5%BC-%ED%8E%B8%ED%95%98%EA%B2%8C-%EB%B3%B4%EA%B3%A0-%EC%8B%B6%EC%96%B4%EC%9A%94-%E3%85%A0)
- [mongodb cloud - atlas](https://www.mongodb.com/atlas/database)
- [poetry 간단 사용법](https://velog.io/@qlgks1/python-poetry-%EC%84%A4%EC%B9%98%EB%B6%80%ED%84%B0-project-initializing-%ED%99%9C%EC%9A%A9%ED%95%98%EA%B8%B0)
- [aiohttp_retry](https://github.com/inyutin/aiohttp_retry)
- 도커라이징 없이, nginx 온프램 배포시 index 페이지를 위해 `ln -s ./index/index.html index.html`
| 2023.11) velog statistics dashboard fullstack | aiohttp,asyncio,crawling,express,javascript,node,python,velog,velog-dashboard | 2023-11-07T17:17:24Z | 2023-11-23T18:07:51Z | null | 1 | 0 | 61 | 0 | 0 | 12 | null | null | JavaScript |
cojocaru-david/david-dark-code | main | ## David Dark VS Code Theme: Code in Style, Code with Comfort

**Embrace the Dark Side of Coding**
Unleash your inner coding ninja with David Dark, a meticulously crafted VS Code theme designed for extended coding sessions and ultimate eye comfort. Inspired by the best of both worlds (GitHub and default dark themes), David Dark offers a visually stunning and practical coding environment.
**Features that Make You Shine**
- **Eye-Friendly Design:** David Dark prioritizes your well-being with a high-contrast color scheme that minimizes strain, allowing you to code for hours without feeling the burn.
- **Radiant Syntax Highlighting:** Experience a meticulously curated color palette that ensures code readability and clarity for a wide range of programming languages and file types.
- **Seamless Integration:** David Dark effortlessly integrates with popular VS Code extensions and plugins, providing customized colorization for a unified and stylish experience.
- **Professional Yet Playful:** Strike the perfect balance between aesthetics and professionalism with David Dark's unique design. Enjoy a coding environment that's both fun and functional.
- **Blue is the New Black:** David Dark's signature blue accent color adds a touch of elegance and sophistication to your code, making it stand out from the crowd.
## Installation: It's as Easy as 1, 2, 3!
**Automatic Installation:**
The quickest route to code in style: David Dark VS Code Theme: [https://marketplace.visualstudio.com/](https://marketplace.visualstudio.com/)
**Manual Installation:**
1. Open the Extensions sidebar in VS Code (`View → Extensions`).
2. Search for "David Dark Code".
3. Click "Install".
4. Open the Command Palette with `Ctrl+Shift+P` or `⇧⌘P`.
5. Select "Preferences: Color Theme" and choose a David Dark variant.
6. Get ready to write some **epic code!** ⌨️
**Let's Make David Dark Even Darker!**
We value your feedback! If you have any suggestions or encounter issues, feel free to create a new issue on the project's GitHub repository. We also welcome contributions to make David Dark even better!
**Remember:** The cooler your coding environment, the cooler your code!
| David Dark is a dark theme for VS Code. It is based on the github theme and the default dark theme. It is designed to be easy on the eyes and to be used for long periods of time. | dark-theme,david,theme,visual-studio,visual-studio-code,visual-studio-extension,visualstudio,vscode,vscode-extension,vscode-theme | 2023-10-17T16:59:14Z | 2024-04-27T21:43:44Z | 2024-04-12T13:26:39Z | 1 | 0 | 12 | 0 | 1 | 12 | null | MIT | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.