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
tongwenbo/european_climate_visualization
main
# European climate ## data pre-processing The original data are all in ./src/assets/data.js, including the additional data I added for the German cities in csv and missing in the original data.js. <br/> For data to be adapted for the input of visualization. ./data-process.py is used. Because this work is not focused on Python, I did not make it perfect enough to be run automatically. This is a half-automated script.<br/> The data after processing is stored respectively in the json files under ./src/assets/.<br/> The geojson data for Germany is extracted from https://github.com/isellsoap/deutschlandGeoJSON under the path ./src/assets/germany.json ## ploting The svelte scripts for ploting are stored unter ./src/lib/. ### why 3 linear js scripts and 2 regression, 2 vapor svelte scripts? I need to parse slope and offset value seperately to Layout.svelte. And different sveltes represent different graphs that cannot be plot dynamically. (It should be a better way to formulate this code, but I did not find out how. If you know a better implementation, please refer it to me, thanks a lot!) ## app interface App and Layout under ./src/ are the interface to the local webpage. You can run it in Chrome or Edge, preferably in the newest edition. ## how to run this assignment 1. After git clone, you should be in main folder. 2. Execute in the terminal: npm install 3. Execute in the terminal: npm run dev 4. Ctrl click the link in the terminal, you should see the website. (please run it in 100% screen mode) 5. Ctrl + C to end the terminal ## Detailed Story: Firstly, I would show the map of Germany with the cities located and with the temperature mean of 2021. This is somewhat a warm-up presentation to get the audience familiar to the German map, and the cities I am about to analyze. <br/> Secondly, I show the temperature change of the cities in the past 20 years with 2 interactions. One is a checkbox to show the regression line of each plot. The other is an option-box to show the city. I also include 2 vapor charts for 2 cities. It is clear that in the past 20 years, temperature mean of each city has increased gradually, whereas there is no clear changes on the vapor pressure side.<br/> Finally, I used a dynamic plot with interval to show the changes of yearly precipitation and yearly sunshine with regard to 1961-1990 means in the past 20 years. I highlighted the 100% line to show to audience the important part —— whether it is increased or not. The sunshine increased and precipitation decreased slightly, which is relevant to the extreme climate these years.
This is the project of visualizing European climate data with svelte framework and d3.js.
d3js,data-visualization,javascript,svelte
2023-02-07T20:10:12Z
2023-02-07T20:26:00Z
null
1
0
3
0
0
2
null
null
Svelte
sumitKcs/spectrum-animation
master
<p id="header"><p> <br> <p id="project-title"><p> # Spectrum Animation <br> <a href="https://sumitkcs.github.io/spectrum-animation/">![Spectrum Mouse Trail](https://sumitkcs.github.io/spectrum-animation/assets/img/preview.avif)</a> ### Spectrum Mouse Trail Animation using Canvas API # <br> <br> <p id="installation"><p> # Installation #### 1. Git clone and cd into the repo folder: ```console https://github.com/sumitKcs/spectrum-animation.git && cd spectrum-animation ``` #### 2. Run the command: ```console open index.html ``` #### 3. On your device, move the mouse cursor around the screen or move your finger around the screen on touch devices to see the mouse trail effect. <br> # <p id="live-site"><p> # Live Site <a href="https://sumitkcs.github.io/spectrum-animation/">![Live Site](https://sumitkcs.github.io/spectrum-animation/assets/img/preview.webp)</a> Goto **[Spectrum Animation Live Preview](https://sumitkcs.github.io/spectrum-animation/)** <br>
A Constellation trail effect using the Canvas API and the HTML <canvas> element
canvas2d,css3,html5,javascript,progressive-web-app
2023-02-06T18:24:40Z
2023-03-23T19:24:45Z
null
1
0
41
0
0
2
null
null
JavaScript
itsakuro/groov
main
![Groov V1](https://groov.itsakuro.xyz/v1/img/V1%20Logo.png) # About Groov is an upcoming icon pack created by [Akuro](https://github.com/itsakuro) for any project you want to use them for. Designed in Figma, there are currently over 50 icons and JavaScript file that allows you to use them on the web. You can view the official site, including all the icons & documentation, [here](https://groov.itsakuro.xyz/). # Adding icons ## Via HTML Using Groov via HTML is the quickest & easiest way to add an icon to your site. To add an icon, you can do so using this code: ```html <groov-icon name="home"></groov-icon> ``` *\* Change the `name` attribute to the icon of your choice. You can find a list of icons [here](https://groov.itsakuro.xyz/v1/icons).* ### Styling Via the custom `size` and `color` attributes, you can change the styling of your icon more conveniently. #### Size ```html <groov-icon name="home" size="300"></groov-icon> ``` *\* For example, setting the size to `300px` would set the width to `300px` (the height is set to `auto`). You can also exclude the "px" if you'd like.* #### Color ```html <groov-icon name="home" color="#1CE783"></groov-icon> ``` Live a little! Make your icons stand out with a custom color and size, make ‘em playful, make ‘em animate. You do you. ```html <groov-icon name="home" color="#004736" size="1000px"></groov-icon> ``` ## Via Javascript You can also add icons through Javascript, but don't worry, it's easy to do, too! All you have to do is create the element and set the `name` attribute. As seen above, you can also set the `size` and `color` attributes. ```javascript let homeIcon = document.createElement("groov-icon"); homeIcon.setAttribute("name", "home"); homeIcon.setAttribute("size", "64px"); homeIcon.setAttribute("color", "#0F7"); document.body.append(homeIcon); ``` --- Woohoo! You're now a pro at adding Groov icons to your website. We should celebrate! 🪅 # Credit All the icons and the logo were designed by [yours truly](https://github.com/itsakuro). Designed in [Figma](https://figma.com) [Groov](https://github.com/itsakuro/groov/) is licensed under the [CC-BY-SA-4.0](https://choosealicense.com/licenses/cc-by-sa-4.0/) license. ![CC-BY-SA-4.0](https://licensebuttons.net/l/by-sa/4.0/88x31.png)
An icon pack for those who live a little differently.
funky,groovy,icon-pack,icons,html,javascript,svg-icons,vector
2023-02-04T15:02:25Z
2023-02-07T01:59:34Z
null
1
0
12
0
0
2
null
CC-BY-SA-4.0
HTML
omesh96/findmyhostel
main
# findmyhostel This is a mini app for user as well as owner both user and Admin must be authorised to go inside USER--> after login user can Mark their attendence by checking in and also by checking out also user can select the mess availability either yes or no Admin--> after login admin will be redirect to the dashboard where he/she can see all the user and their activity some screenshots of this app are--> ![Screenshot (237)](https://user-images.githubusercontent.com/105977022/217509839-910e20c1-ff55-4841-b9d6-4f263db5e056.png) ![Screenshot (238)](https://user-images.githubusercontent.com/105977022/217509952-428d3e6e-a513-4b9e-b47b-91c793e71eb5.png) ![Screenshot (239)](https://user-images.githubusercontent.com/105977022/217510020-629d0b27-fc67-4190-9311-57d0a5d86fee.png)
This is a mini app for user as well as owner both user and Admin must be authorised to go inside USER--> after login user can Mark their attendence by checking in and also by checking out also user can select the mess availability either yes or no
chakra-ui,css,javascript,json-server,react,vercel-deployment,context-api
2023-02-04T09:52:32Z
2023-02-08T11:58:39Z
null
1
0
6
0
0
2
null
null
JavaScript
MitchEglon94/nba-app-repo
main
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.jsx`. The page auto-updates as you edit the file. [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! ## Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
NBA information app built using NextJS and tailwind. Deployed with Vercel
css,html,javascript,nextjs,tailwind,vercel
2023-02-09T18:57:27Z
2023-02-17T20:55:27Z
null
1
0
14
0
1
2
null
null
JavaScript
amirsky799/portfolio_react_js
master
# Portfolio Website Using React.js <a href='https://postimages.org/' target='_blank'><img src='https://i.postimg.cc/k46ncv9d/portfolio.png' border='0' alt='portfolio'/></a> ## Installation _For run this website you must follow the section below._ 1. `NPM Installation` ```sh npm start ``` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 2. `Run Build` ```sh npm run build ``` ## Contact <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Objects/Telephone%20Receiver.png" alt="Telephone Receiver" width="20" height="20" /> <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Smilies/Beating%20Heart.png" alt="Beating Heart" width="20" height="20" /> _Have you any question about this project ? Let Me Know !_ <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Smilies/Beating%20Heart.png" alt="Beating Heart" width="20" height="20" /> My Emaill Address: [amirsky799@gmail.com](mailto:amirsky799@gmail.com) Project Link: [https://github.com/amirsky799/portfolio_react_js](https://github.com/amirsky799/portfolio_react_js)
Portfolio website using React.js
css,html,javascript,portfolio-website,react,reactjs
2023-01-30T19:13:19Z
2023-03-10T20:05:42Z
null
1
0
6
0
0
2
null
null
JavaScript
sahasourav17/Notes
main
# Notes This repository contains notes on the following topics: - [JavaScript Basic](./JS_Basics.md) - [JavaScript Advanced Concepts](./JS_Advanced_Concepts.md) - [Node.js](./NodeJS.md) - [Express js](./ExpressJS.md) - [DynamoDB](./dynamodb.md) - [TypeScript](./TypeScript.md) - [Github](./github.md) - [Nextjs](./Next.md)
null
aws-dynamodb,dynamodb,dynamodb-local,expressjs,javascript,nodejs,notes,typescript
2023-02-03T07:02:12Z
2023-11-13T16:52:06Z
null
1
0
25
0
1
2
null
MIT
null
brianttn/WiFi-Intelligent-Indoor-AirQuality-guardian-System
main
<h1 align="center">WiFi intelligent indoor air quality guardian system</h1> ## Table of contents - [About this Project](#about-this-project) - [Mini host](#mini-host) - [Air Quality Detection Module](#air-quality-detection-module) - [Switch valves](#switch-valves) - [Air purifier](#air-purifier) - [Ventilator](#ventilator) ## About this project The WiFi intelligent indoor air quality guardian system can perform indoor air circulation purification, sterilization, air renewal, and emergency exhaust. The system consists of the following main components: - Mini host - Air Quality Detection Module - Switch valves - Air purifier - Ventilator ![systemDiagram](systemDiagram.png) ## Mini host The Mini host is the control center of this system, it dominates the other 4 components as follows: - Air Quality Detection Module - Switch valves - Air purifier - Ventilator Tasks that mini host is responsible for: - Graphical User Interface - System parameters setting - Scheduling - Data presentation - Central Control System - Execute the control logic set by the system and the user - Send commands and perform corresponding actions based on the obtained air quality data - Server and database system - Provide web application routing and https requests processing - Manipulate and store various data - WiFi connection and MQTT communication ## Air Quality Detection Module Implementation items and responsible tasks: - UART communication protocol for Sensors - Detect various harmful gases - Alarm generation and release - WiFi connection - MQTT communication - Send air quality data to mini host - Receive commands from mini host ## Switch valves Implementation items and responsible tasks: - PWM control of motor - Position and steering detection - Braking to prevent collisions, loose components - Abnormal detection such as overcurrent and idling - Execute the task of switching air ducts in various indoor spaces - WiFi connection - MQTT communication - Send steering position and abnormal information to mini host - Receive steering commands from mini host ## Air purifier Implementation items and responsible tasks: - Use Flash as EEPROM to store - Air cleaning module parameters - Fan motor drive board parameters - RF remote control parameters - UART communication protocol of the motor drive board - Abnormal detection of fan motor and air purification module - Error code compilation of motor driver board and air purification module - Filter and purify harmful substances in the air - Standby power saving function - WiFi connection - MQTT communication - Send the operating parameters and abnormal information of the fan motor and air purification module to the mini host - Receive the motor gear speed and air purification module parameter commands from the Mini host ## Ventilator Implementation items and responsible tasks: - The function is similar to air purifier, without the air purification module - Accelerate the renewal of indoor air
The WiFi intelligent indoor air quality guardian system can perform indoor air circulation purification, sterilization, air renewal, and emergency exhaust.
javascript,mqtt,nodejs,wifi,mcu,pwm,uart,rf,json-parser
2023-02-09T15:08:01Z
2023-02-20T16:57:09Z
null
1
0
4
0
0
2
null
null
null
measses/ResponsiveWebsite
main
# ResponsiveWebsite First Project. I developed an interactive web page using HTML, CSS and Javascript. Since it is my first project, I may have mistakes and shortcomings, thank you. # Live Preview ## https://responsive-website-coral.vercel.app
First Project
css3,html5,javascript,responsive-web-design
2023-02-07T22:19:22Z
2023-04-03T12:36:55Z
null
1
0
9
0
0
2
null
null
HTML
ljb135/ouitravel
main
# ouiTravel This project is an all-in-one convenient stop for planning vacations, business trips, and other essential travel opportunities. It offers a simple way for a user to keep track of all their upcoming excursions. ## Features * Trip Management * Flight/Hotel/Activity Bookings * Cost Tracking * Friend System * Collaborative Trip Planning ## Login Page ![image](https://github.com/ljb135/ouitravel/assets/48495973/707aea59-05f4-4a9e-8167-c669672d1df8) ## Home Page ![image](https://github.com/ljb135/ouitravel/assets/48495973/4052387d-fe67-4ab2-a3b1-0eece88b7dba) ## Trip Editing Page ![ouitravel onrender com_trip_64496f257ff0ef3ab0c21d3f](https://github.com/ljb135/ouitravel/assets/48495973/c54d51ba-9e42-48bf-bc3c-d1222ccb97e1) ## API Usage * Google OAuth API - Login using a Google account * Amadeus API - Searching and booking flights, hotels, and activities * Google Maps API - Location display using Google Maps ## Run Locally Execute the commands below in separate terminals. The terminals must be left running for the services to function. Frontend: #### `cd frontend` #### `npm install` #### `npm start` \ Backend: #### `cd backend` #### `npm install` #### `node index.js`
Traveling application created as a part of the Software Engineering (14:332:452) course at Rutgers University. Implements the MERN stack.
backend,frontend,javascript,nodejs,react,expressjs,mongoose
2023-02-01T20:43:44Z
2024-01-18T20:00:55Z
null
11
26
245
0
0
2
null
MIT
JavaScript
akram-elgh/Simon-Game
main
# **Simon Game** ### Basic web game using javascript and jQuery. Press **a** to start. The game will start by clicking on a color. In each level level you have to remember the same pattern of colors that the game showed you.
Basic Simon game
game,javascript,javascript-game,simon-game
2023-02-06T20:59:12Z
2023-02-06T21:08:44Z
null
1
0
1
0
0
2
null
null
JavaScript
ThetaBird/algorithmic_trading
main
# algorithmic_trading CSE392 Project • Exploring Trading Strategies and Methodologies With An Automated Algorithmic Application ### Directory Structure ```dir ├── Final_Report.pdf # PDF outlining completed project details ├── Problem_Statement.pdf # PDF outlining initial project problem statment ├── README.md # You are here ├── Timeline.pdf # PDF outlining initial expectation timeline ├── package-lock.json ├── package.json ├── public # boilerplate react public files ├── server # backend source code directory │ ├── analyzer.js # backend helper file, decides whether or not to generate new decision values │ ├── app.js # backend start point │ ├── indicator.js # backend helper file, decides whether or not to generate new indicator values │ ├── public # old frontend kept as archived, disregard │ └── py │ ├── analyzers # directory holding python scripts for decision flag generators │ │ ├── analyze.py # python called by node.js runtime, decides which analyzer program to run. │ │ ├── ha_analyzer.py │ │ ├── ha_analyzer2.py │ │ ├── st_analyzer.py │ │ ├── st_analyzer2.py │ │ └── st_analyzer3.py │ ├── common.py # python module containing common classes and methods imported by most files. │ └── indicators # directory holding python scripts for indicator generation │ ├── heiken_ashi.py # heiken ashi candlestick generator file │ ├── indicator.py # python called by node.js runtime, decides which indicator program to run. │ └── stochastic.py # fast & slow stochastic indicator generator file └── src # frontend source code directory ├── AlgoChart.js # component for chart ├── Analysis.js # analysis subcomponent ├── App.js ├── App.test.js ├── Dashboard.js # Main dashboard component calling all charts and analysis ├── PageHeader.js # (hidden) header with title and name ├── index.css # rudimentary css rules for frontend ├── index.js # frontend js file ├── reportWebVitals.js # boilerplate react file ├── setupTests.js # boilerplate react file └── timeHelper.js # helper file containing function to convert millisecond durations into a character description ``` ### Setup ```bash npm install #install node dependencies #Install python dependencies (python and pip installations are prerequisites) pip install numpy pip install path #Command to initialize server node server/app # Port outputted #Command to initialize react application npm start # Port outputted ```
----- DISCLAIMER: FOR EDUCATIONAL PURPOSES ONLY. ALL RIGHTS RESERVED. ----- Exploring Trading Strategies and Methodologies With An Automated Algorithmic Application. Open-source preview - all future development is on a private repository,
javascript,jscharting,lightweight-charts,numpy,python,quantitative-finance,react
2023-01-30T04:39:29Z
2023-05-19T19:07:47Z
null
2
0
35
0
0
2
null
null
JavaScript
CleilsonAndrade/lista_tarefas
master
<div align="center"> <h1>Lista de tarefas</h1> <p>Aplicação desenvolvida utilizando a API do GitHub, para realizar busca de usuários, utilizando a lib axios para requisições e respostas.</p> <img src="./design/desktop.png" alt="Logo" width="800"> </div> # 📒 Índice * [Descrição](#descrição) * [Requisitos Funcionais](#requisitos) * [Features](#features) * [Tecnologias](#tecnologias) * [Design](#design) * [Cores](#cores) * [Fontes](#fontes) * [Instalação](#instalação) * [Licença](#licença) # 📃 <span id="descrição">Descrição</span> Lista de tarefas é uma aplicação simples para cadastro de tarefas, que alem de exibi-las e possível marcar como concluída e a possibilidade de excluir uma a uma ou todas de uma vez, desenvolvido em [**React**](https://react.dev/) para fim de estudos. Os estudos se propõe a entender o funcionamento de componentes, seu ciclo de vida, estados, componentização. Utiliza-se o [**Vite**](https://vitejs.dev/) como servidor de desenvolvimento e localStorage para persistência dos dados. # 📌 <span id="requisitos">Requisitos Funcionais</span> - [x] Cadastro de tarefa<br> - [x] Exibição de tarefas<br> - [x] Concluir tarefas<br> - [x] Deletar tarefas<br> ## Features - [x] Salvar localmente<br> - [x] Deletar todas as tarefas<br> - [x] Responsividade<br> # 💻 <span id="tecnologias">Tecnologias</span> - **HTML** - **CSS** - **JavaScript** - **ReactJS** - **Vite** # 🎨 <span id="design">Design</span> - O modelo final para versão desktop e mobile está disponível na pasta `./design` - <span id="cores">Cores<br></span> * #222435<br> * #7d83b9<br> * #2d3046<br> * #fff<br> * #363b65<br> * #363f88<br> * #151627<br> * #1e1f2e<br> * #4d506e<br> * #ff004c<br> - <span id="fontes">Fontes<br></span> * Roboto, sans-serif # 🚀 <span id="instalação">Instalação</span> ```bash # Clone este repositório: $ git clone https://github.com/CleilsonAndrade/lista_tarefas.git $ cd ./lista_tarefas # Instalar as dependências: $ yarn install # Executar: $ yarn dev ``` # 📝 <span id="licença">Licença</span> Esse projeto está sob a licença MIT. Veja o arquivo [LICENSE](LICENSE) para mais detalhes. --- <p align="center"> Feito com 💜 by CleilsonAndrade </p>
Lista de tarefas é uma aplicação simples para cadastro de tarefas, que alem de exibi-las e possível marcar como concluída e a possibilidade de excluir uma a uma ou todas de uma vez, desenvolvido em React para fim de estudos.
component,frontend,javascript,localstorage,reactjs,state,task-manager,todolist
2023-02-01T01:44:19Z
2024-03-24T22:21:47Z
null
1
0
4
0
0
2
null
MIT
JavaScript
sudipstha08/reading-materials
main
# READING MATERIALS 📖 ### Useful links - <a href="https://itnext.io/javascript-memory-management-how-to-avoid-common-memory-leaks-and-improve-performance-c018dbbca954">Javascript memory management</a> - <a href="https://www.freecodecamp.org/news/object-oriented-programming-javascript/">OOP in Javascript</a> - https://www.builder.io/blog/usesignal-is-the-future-of-web-frameworks - <a href="https://www.freecodecamp.org/news/solid-design-principles-in-software-development/">Solid design principles</a> - <a href="https://www.freecodecamp.org/news/introduction-to-linux/">Introduction to linux</a> - <a href="https://thenewstack.io/what-is-microservices-architecture/">Microservice architecture</a> - <a href="https://cloudbytes.dev/aws-academy/how-to-install-and-run-wordpress-on-an-ec2-instance"></a> - <a href="https://blog.devgenius.io/advanced-next-js-concepts-8439a8752597">Advanced Next JS concepts</a> - <a href="https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction">The wrong abastractions</a> - <a href=""></a> ## React - <a href="https://javascript.plainenglish.io/4-react-tips-to-instantly-improve-your-code-7456e028cfa3">React tips to improve your code</a> - <a href="https://javascript.plainenglish.io/5-react-design-patterns-you-should-know-629030e2e2c7">React design patterns</a> - <a href="https://profy.dev/article/react-query-usemutation">React query useMutation</a> - <a href="https://tkdodo.eu/blog/mastering-mutations-in-react-query">Mastering mutations in react</a> - <a href="https://medium.com/@mishraabhishek.11/react-native-new-architecture-937c76547b29">React native new architecture</a> ## NextJS - https://blog.logrocket.com/guide-next-js-layouts-nested-layouts/ ## NodeJS
R&D materials :seedling:
markdown,javascript,mongodb,performance,react,reading-list,reading-notes,shell,design-patterns,nextjs
2023-01-28T19:16:27Z
2024-05-03T16:05:01Z
null
1
0
24
0
0
2
null
MIT
null
javizaleta/javi-pfp-rotator
main
# 🎩 javi-pfp-rotator ![GitHub top language](https://img.shields.io/github/languages/top/jzaleta/javi-pfp-rotator?color=yellow) ![GitHub language count](https://img.shields.io/github/languages/count/jzaleta/javi-pfp-rotator) The code that powers my profile picture on the Hack Club Slack. <!-- BADGES --> <div align="center"> ![Stars](https://img.shields.io/github/stars/jzaleta/javi-pfp-rotator?style=for-the-badge&logo=starship&color=9ece6a&logoColor=D9E0EE&labelColor=1A1B26) ![License](https://img.shields.io/github/license/jzaleta/javi-pfp-rotator?style=for-the-badge&logo=starship&color=%23e0af68&logoColor=D9E0EE&labelColor=1A1B26) ![Repo Size](https://img.shields.io/github/repo-size/jzaleta/javi-pfp-rotator?style=for-the-badge&logo=codesandbox&color=FCA2AA&logoColor=D9E0EE&labelColor=1A1B26) </div> --- ## 🔎 About This repo automates my profile picture in the Hack Club Slack! Powered by a serverless function deployed on Vercel, being pinged by https://cron-job.org/ every 15 minutes as well as a [web dashboard](https://javi-pfp-rotator.vercel.app/). ![](assets/javi-pfp-rotator.png) ## 🛠️ Contributing This project is **_not_ accepting major contributions** as it is personal. However, if there is an issue — like a spelling or grammatical error, a visual bug, or other kinds of weird things happening — please feel free to [create an issue](https://github.com/jzaleta/javi-pfp-rotator/issues/new). If you would like to leave comments about the source code — like possible design and code improvements, or other kinds of feedback — please feel free to [create an issue](https://github.com/jzaleta/javi-pfp-rotator/issues/new) too if you wish! ## 📜 License This repository is made open-source with the [MIT License](LICENSE), meaning that you are allowed to modify and distribute the source code as well as use it for private and commercial use provided that the licence and copyright notices are retained. For more information, visit the link above to learn what is permitted by the licence.
🎩 The code that powers my profile picture on the Hack Club Slack.
pfp,dall-e,dalle2,hackclub,javascript,node-js,nodejs,slack-api
2023-02-02T04:09:13Z
2023-08-09T04:32:58Z
null
1
0
66
0
0
2
null
MIT
HTML
garaekz/inscraper
master
# InScraper ~~### A playwright based LinkedIn based scraper~~ ### A voyager API based LinkedIn wrapper This is (currently) a small library built in typescript in order to scrape LinkedIn profiles using the vanity URL (slug or custom URL) using the voyager API ~~Playwright and Cheerio~~. I'm trying to stick to semver but I'm not sure if I'm doing it right, so please be aware that this library is still in development and the API may change. Update: I have decided to let go Playwright and Cheerio and use the voyager API instead, I'll try to add this again in future releases but currently was getting messy and got a lot of timeouts. ## Why? I was looking for a way to get some information from LinkedIn profiles and I found that there are some libraries that do that, but they are not maintained anymore and they use Puppeteer, which is a bit slow and heavy. I wanted to try Playwright, which is a new library that is built on top of Chromium, Firefox and Webkit, so it's faster and lighter than Puppeteer. I also wanted to try to use TypeScript, so I decided to build this library. I hope you find it useful. ## Disclaimer This library is provided as is, without any warranty. I am not responsible for any misuse of this library. Please be aware that web scraping may be against the terms of service of LinkedIn, try to use a side account because it may get you banned (haven't see that yet but could be). ## Installation npm install inscraper Using Yarn: yarn add inscraper ## Usage To use the library, you will need to provide a valid LinkedIn cookie. You can obtain this by logging into LinkedIn and inspecting the cookies in your browser, search for the one called `li_at`. Once you have the cookie, you can pass it to the `createClient` function, which will return an instance of the `VoyagerClient` class. import { createClient } from 'inscraper'; const cookieString = 'YOUR_COOKIE_HERE'; const client = await createClient(cookieString); The `VoyagerClient` class has the following methods: - `getProfile(slug: string)`: Returns the profile information of the user with the given profile slug, including their name, headline, about and experience sections. ~~- `getExperience(slug: string)`: Returns only the experience of the user with the given profile slug.~~ ~~- `getScreenshot()`: You can use this method to get a screenshot of the current page. This is useful if you want to see what the page looks like after you have performed some actions. It only works if you have called the `getProfile` or `getExperience` methods before. It's built on top of Playwright's `screenshot` method, so you can pass the same options to it. See [Playwright's documentation](https://playwright.dev/docs/api/class-page#page-screenshot) for more information.~~ Get some profile info: ``` const profile = await client.getProfile('profile-slug'); console.log(profile); ``` Note that if the provided cookie is invalid, the library will throw an error, 'Cookies error' ## Full Example ``` import fs from "fs"; import { createClient } from "inscraper/client"; const cookieString = 'YOUR_COOKIE_HERE'; const client = await createClient(cookieString); const slug = 'profile-slug'; const profile = await client.getProfile(slug); console.log(profile); ``` ## Compatibility ~~This library uses Playwright, which is compatible with Chromium, Firefox and Webkit. For this implementation, Chromium is being used.~~ *Planing to add this again in future releases* ## Dependencies ~~This library depends on playwright and cheerio~~. ## Contributions Your contributions are always welcome! Please feel free to submit a pull request or open an issue. ## Features - [x] Work with Cookies - [x] Get basic info from Profile - [x] Get Experience from Profile - [x] Get Education from Profile - [x] Get Skills from Profile - [ ] Get Recommendations from Profile - [ ] Get Screenshots of a visited profile - [x] Extend it to try and use voyager API (see if that's still a thing) - [ ] Add a test suite - [ ] Add more features to this list - [ ] Check if people like this and work on people recommendations 😅 ## License This library is provided under the [MIT License](https://opensource.org/licenses/MIT). ## Contact Please feel free to contact me if you have any questions or issues.
A fully typescript library to handle LinkedIn scraping, built on top of playwright, supporting profile and experience pages, taking screenshots available
javascript,javascript-library,linkedin,scraper,typescript,typescript-library
2023-01-26T08:51:42Z
2023-02-05T02:14:46Z
2023-02-05T02:14:46Z
1
2
34
0
0
2
null
MIT
TypeScript
Dz25/HeadlineHub-FE
main
# Headline Hub Front-End This is the front-end codebase for Headline Hub, a website that aggregates and summarizes the latest news. The front-end is built using Vue.js and Bootstrap. ## Getting Started To get started with the front-end, you will need to have Node.js and npm installed on your system. Once you have those installed, follow these steps: 1. Clone the repository to your local machine. 2. Navigate to the root folder of the front-end codebase in your terminal. 3. Run `npm install` to install the necessary dependencies. 4. Run `npm run dev` to start the development server. 5. Open your browser and navigate to `http://localhost:8081` to view the website. Get the backend [here](https://github.com/Dz25/HeadlineHub-BE) ## Contributing This project was created by a team of students as a CSIS 3275 course project. The team members who contributed to the front-end codebase are: - [Duy](https://github.com/Dz25) - [Mayumi](https://github.com/chiyome) - [Jaydipkumar](https://github.com/jaydipkmulani)
This is Headline Hub's front-end, built with Vue.js and Bootstrap, with a focus on simplicity and user experience.
website,bootstrap,javascript,vite,vue
2023-01-28T00:15:19Z
2023-04-19T21:41:24Z
null
3
16
52
0
0
2
null
null
Vue
jkka777/prd-project-e-commerce
main
# angadi e commerce application A simple end to end and fully functional e-commerce web application built using vanilla java script, html, css. For the backend spring boot to generate REST API with spring security for authentication and authorization are used. <h2>Entity relationship schema</h2> <img src="./schema/er.svg" alt="er-schema"/> Admin, Seller and User are main stakeholders of this application <h4>Admin can perform following tasks =></h4> <p>1. Manipulate Customer details</p> <p>2. perform CRUD on categories</p> <p>3. perform CRUD on products</p> <p>4. restricting user permissions</p> <p>5. view all products and its categories and many more features are coming in future.</p> <h4>Seller can perform follwoing =></h4> <p>1. add his profile</p> <p>2. add address</p> <p>3. add wallet</p> <p>4. create category</p> <p>5. create products</p> <p>6. add shipping details</p> <h4>User has the following features =></h4> <p>1. Register</p> <p>2. Login</p> <p>3. Add wallet</p> <p>4. add cart</p> <p>5. add addresses to user profile</p> <p>6. view products and categories</p> <p>7. add to cart</p> <p>8. add delivery information</p> <p>9. make payment (currently supported only COD and Wallet transactions)</p> <p>10. order confirmation and many more features are coming near future.</p> Frontend part is still in development API documentation will be released soon through Postman <h2>API Documentation</h2> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CLtZhX" target="_blank">Customer<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYkb" target="_blank">Address<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYke" target="_blank">Wallet<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYkf" target="_blank">Cart<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYkg" target="_blank">Cart Item<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYpy" target="_blank">Category<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYpw" target="_blank">Product<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYq5" target="_blank">Shipping<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYpz" target="_blank">Order Item<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYq2" target="_blank">Orders<a/></div> <div><a href="https://documenter.getpostman.com/view/24839819/2s93CNNYq4" target="_blank">Wallet Transactions<a/></div> <br> <h2>Tools used to build this application</h2> <p>1. IntelliJ IDE</p> <p>2. Spring Boot</p> <p>3. Spring Security</p> <p>4. VS Code</p> <p>5. Railways.app</p> <p>6. MySQL</p> <p>7. Postman</p> <h2>Languages used to build this application</h2> <p>1. Java</p> <p>2. MySQL</p> <p>3. HTML</p> <p>4. JavaScript</p> <p>5. CSS</p> </h2>Flow of the Application</h2> <h4>##User##</h4> <p>1. register</p> <p>2. login</p> <p>3. add wallet</p> <p>4. add cart</p> <p>5. search through products</p> <p>6. add product to cart item</p> <p>7. add order item (user need to bring cart item to order item)</p> <p>8. save order with above order items</p> <p>9. add delivery address and payments before saving order</p> <p>10. make payment to orders</p> <h4>##Admin##</h4> <p>1. register</p> <p>2. login</p> <p>3. add category</p> <p>4. manipulate products</p> <p>5. manipulate user</p> <p>6. manipulate seller</p> <h4>##Seller##</h4> <p>1. register</p> <p>2. login</p> <p>3. add category</p> <p>4. add products</p> <p>5. add shipping details</p> <p>6. add wallet</p>
E-commerce web application building using javascript, html, css for front end part and for the backend java, spring boot, MySql, aws are used to generate REST API. ##(WORK-IN-PROGRESS)##
css,html,java,javascript,spring-boot,spring-security
2023-01-27T08:57:28Z
2023-06-26T16:12:42Z
null
1
38
119
0
1
2
null
null
Java
fkijs/Redesign-Fac-Inventory-Fix-Extendedmode
main
# Redesign-Conde-Inventory-Fix-Extendedmode ![gallery-img-01-tn](https://user-images.githubusercontent.com/74285569/215929775-47c65ef8-eed2-4f53-93b2-466aab477f44.png) ![gallery-img-02-tn](https://user-images.githubusercontent.com/74285569/215929782-7300573b-fc2e-4c99-932c-ddcc1038b079.png) # Requeriments: https://github.com/frankitula/fac_inventoryhud_trunk
Inventory made for one of fivem's own servers. Although the inventory is public, it contained string errors, so they decided to change the design and change the code to make it compatible, also adding that it has implemented the item images and an updated sql.
html5,javascript,lua
2023-02-01T01:51:43Z
2023-02-01T22:07:05Z
null
1
0
9
0
0
2
null
GPL-3.0
Lua
daniel-oliv3/studio-hair-priscila_website
main
null
Site desenvolvido com HTML CSS, JavaScript
css,html,javascript
2023-02-07T20:38:48Z
2023-02-07T21:01:42Z
null
1
0
4
0
0
2
null
null
HTML
Shubhamtribhuvan8/the_Hindu
main
# Getting Started with Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Available Scripts In the project directory, you can run: ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run build` Builds the app for production to the `build` folder.\ It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can't go back!** If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. ## Learn More You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). ### Code Splitting This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) ### Analyzing the Bundle Size This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) ### Making a Progressive Web App This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) ### Advanced Configuration This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) ### Deployment This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
This Is my Solo Frontend Project,The Hindu is an Indian English-language daily newspaper owned by The Hindu Group, headquartered in Chennai, Tamil Nadu.
api,javascript,react
2023-02-03T06:37:16Z
2023-04-14T05:10:05Z
null
1
0
2
0
0
2
null
null
JavaScript
hikiasi/autoservice
main
<h1 align="center">Выпускная квалификационная работа по теме "Автосервис"</h1> <div align="center"> <a href=""> <img width="575" alt="Снимок экрана 2023-05-30 в 14 45 48" src="https://github.com/hikiasi/autoservice/blob/93d52d39dc3fa9b3f914fd8ca7f53411285c2bd5/autoservice2_(123)%20(2).png"> </a> <a href=""> <img width="575" alt="Снимок экрана 2023-05-30 в 14 45 48" src="https://github.com/hikiasi/autoservice/blob/93d52d39dc3fa9b3f914fd8ca7f53411285c2bd5/photo_2023-08-15_01-45-45.jpg"> </a> <a href=""> <img width="575" alt="Снимок экрана 2023-05-30 в 14 45 48" src="https://github.com/hikiasi/autoservice/blob/93d52d39dc3fa9b3f914fd8ca7f53411285c2bd5/photo_2023-08-15_01-47-02.jpg"> </a> </div> <a name="summary"> <details> <summary>Оглавление</summary> <ol> <li><a href="#project-description">Описание проекта</a></li> <li><a href="#technologies">Стек технологий</a></li> <li><a href="#installation">Установка и запуск приложения в локальном репозитории, эксплуатация</a></li> <li><a href="#establishing">Процесс создания</a></li> <li><a href="#functionality">Функционал</a></li> <li><a href="#enhancement">Что можно улучшить</a></li> </ol> </details> </a> <a name="project-description"><h2>1. Описание проекта</h2></a> Это проект информационной системы для автосервиса, разработанный в рамках выпускной квалификационной работы. Система состоит из консольного приложения и веб-сайта. Веб-сайт предназначен для клиентов автосервиса и сотрудников. На сайте представлена информация об услугах и ценах. Админ-панель позволяет администрировать базу данных - просматривать и редактировать данные о клиентах, автомобилях, сотрудниках, услугах и заказах. Также с помощью админ-панели можно формировать отчеты - заказ-наряды, отчеты о прибыли и выполненных заказах.<br> Админ-панель сделана на SBAdmin2, сайт сделан с использование Bootstrap 5 <br> <br> <b>Ссылки на проект:</b> <br> Деплой: <i>Ссылка на деплой появится позже</i> <br> <h4><b>Проект завершен</b></h4> <br> <div align="right">(<a href="#summary">к оглавлению</a>)</div> <a name="technologies"><h2>2. Стек технологий</h2></a> <span> <img src="https://img.shields.io/badge/php-%23777BB4.svg?&style=for-the-badge&logo=php&logoColor=white" alt="Иконка 'PHP'"> <img src="https://img.shields.io/badge/apache%20-%23D42029.svg?&style=for-the-badge&logo=apache&logoColor=white" alt="Иконка 'Apache'"> <img src="https://img.shields.io/badge/mysql-%2300f.svg?&style=for-the-badge&logo=mysql&logoColor=white" alt="Иконка 'MySQL'"> <img src="https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E" alt="Иконка 'JavaScript'"> <img src="https://img.shields.io/badge/Sass-CC6699?style=for-the-badge&logo=sass&logoColor=white" alt="Иконка 'Sass (SCSS)'"> <img src="https://img.shields.io/badge/css3%20-%231572B6.svg?&style=for-the-badge&logo=css3&logoColor=white" alt="Иконка 'CSS3'"> <img src="https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white" alt="Иконка 'HTML5'"> </span> <div align="right">(<a href="#summary">к оглавлению</a>)</div> <a name="installation"><h2>3. Установка и запуск приложения в локальном репозитории, эксплуатация</h2></a> 1. `git clone https://github.com/hikiasi/ozone_hikiasi.git` - клонировать репозиторий на свое устройство (HTTPS) 2. Запустить `OpenServer` или другой веб-сервер, где есть Apache и MySQL 3. Импортировать БД в `phpMyAdmin` с названием `autoservice`, файл находится в admin/database 4. Изменить настройки `dbconfig.php` в admin/database 5. Запустить веб-сервер `OpenServer` <div align="right">(<a href="#summary">к оглавлению</a>)</div> <a name="establishing"><h2>4. Процесс создания</h2></a> Работа выполнена в <b>4 этап</b>: <br> 1. Формирование макета Figma 2. Верстка главной страницы 3. Верстка дополнительных страниц и админ-панели 4. Формирование логики PHP для админ-панели и дополнительных страниц с выводом цен на услуги <div align="right">(<a href="#summary">к оглавлению</a>)</div> <a name="functionality"><h2>5. Функционал</h2></a> - Вывод цен на услуги из базы данных для клиентов - Панель управления с возможностью отслеживания прибыли за месяц, за все время, количество текущих заказов, подсчет прибыли по месяцам (за весь год), статистика заказов по всем критериям (В работе, новые, завершены, отменены) - Добавление, удаление, редактирование записей в таблицах базы данных - Поиск, фильтрация по колонкам, вывод таблицы по страницам и отображение определенного кол-ва записей в таблице - Формирование заказ-наряда для клиента, в котором указаны все данные о клиенте и его автомобиле, а также проделанные услуги со стоимостью. Реализован вывод на печать и сохранение в PDF - Формирование прибыли за квартал, и вывод заказов по выбранному механику. Реализован вывод на печать и сохранение в PDF <div align="right">(<a href="#summary">к оглавлению</a>)</div> <a name="enhancement"><h2>6. Что можно улучшить</h2></a> - Наладить систему подсчета прибыли - Сделать более точным отчет "Заказ-наряд", где будут подсчитываться норм-часы для работника, детали которые были закуплены для выполнения той, или иной услуги. Для этого нужно изменить структуру БД с добавлением более детальной информации <div align="right">(<a href="#summary">к оглавлению</a>)</div>
Full Stack App Autoservice. Полноценный веб-сайт с админ-панелью по теме "Автосервис"
apache,css,css3,html,html-css-javascript,html5,javascript,mysql,mysql-database,php
2023-02-03T18:39:53Z
2023-08-15T00:21:33Z
null
1
0
9
1
1
2
null
null
PHP
VassoD/cohere_hackathon
main
# cohere_hackathon The web app is running with Flask You need python installed in your pc (https://www.python.org/downloads/) You need pip Run in the terminal: ``python get-pip.py`` To install Flask: ``pip install Flask`` To install the Reddit API Python client library, PRAW: ``pip install praw`` git clone the repo cd in the repo ( ``cd cohere_hackathon ``) to run the app: ``FLASK_APP=main.py FLASK_ENV=development flask run`` or ``python3 main.py``
project for an AI Hackathon
cohere,flask,javascript,python
2023-01-29T00:29:58Z
2023-11-01T20:49:44Z
null
7
1
54
1
0
2
null
null
HTML
imsahadeb/The-Meal-App-Coding-Ninjas
master
# The Meal App This project is a web application that utilizes the power of vanilla JavaScript to provide a seamless user experience. The main feature of the app is its ability to search for food recipes using the Themealdb API. The API returns a variety of data related to the searched recipe, such as ingredients, instructions, and nutritional information. The app then displays this information in an easy-to-read format, allowing users to quickly find the recipe they are looking for. In addition to the search feature, the app also includes the ability for users to view details of the selected recipe. This includes a more in-depth look at the recipe's ingredients and instructions, as well as nutritional information. Users can also mark their favorite recipes for easy access in the future. Overall, this project demonstrates your skills in working with APIs, JavaScript, and web development in general. The use of vanilla JavaScript allows for a lightweight and fast-performing application, without the need for any additional JavaScript frameworks. It's a great addition to your portfolio to show your ability to create a functional web application from scratch. ## Key Features - Search Meal by name - Auto sugestion on pressed keyword - Save favrouite meals for future use - Ability to restore saved meals even after reopening the browser - Works seamlessly on both mobile and desktop devices ## 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 - A web browser (e.g. Google Chrome, Firefox, Safari) - An internet connection - A code editor (e.g. VS Code, Atom) ### Installing 1. Clone or download the repository to your local machine 2. Open the project in your code editor 3. Open the index.html file in your web browser to run the app ## Built With - HTML - CSS - JavaScript ## Demo Check out the live demo of the application at https://imsahadeb.github.io/The-Meal-App-Coding-Ninjas/ ## Authors - [@imsahadeb](https://github.com/imsahadeb) ## License This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. ## Acknowledgments - The Meal DB API (https://www.themealdb.com
The Meal App is a web application that allows users to search for and discover new meals and recipes. Users can search for meals by name, ingredient, or category, and can also save their favourite meals for quick access later. The app also includes a feature to watch recipe videos on youtube. This app is part of Coding Ninjas CC Course.
css,css-flexbox,html-css-javascript,html5,javascript
2023-01-26T06:06:54Z
2023-01-29T08:26:06Z
null
1
0
15
0
5
2
null
null
JavaScript
Mopheshi/Exercises
master
# Programming Exercises Repository Welcome to my Programming Exercises Repository! This repository is dedicated to providing a collection of programming exercises to help you improve your coding skills and knowledge across various programming languages and topics. ## Table of Contents 1. [Introduction](#introduction) 2. [Languages](#languages) 3. [Topics](#topics) 4. [Contributing](#contributing) 5. [License](#license) ## Introduction This repository aims to provide a curated list of programming exercises suitable for beginners to advanced programmers. Whether you're looking to practice algorithms, data structures, or specific programming language features, you'll find exercises here to challenge and enhance your skills. ## Languages Our exercises cover a wide range of programming languages, including but not limited to: - Python - Java - C# - Brainfuck - Etc. We are continuously adding exercises in more languages, so stay tuned for updates! ## Topics The exercises in this repository are categorized into various topics, including: - Algorithms and Data Structures - Problem-Solving - Object-Oriented Programming (OOP) - Functional Programming - Web Development, Lol! - Database Management - Machine Learning - Artificial Intelligence - Natural Language Processing - And many more! Each exercise is provided with clear instructions, sample input/output, and sometimes hints to help you solve it. Feel free to explore different topics and challenge yourself to improve your coding abilities. ## Contributing We welcome contributions from the community! If you have an interesting programming exercise or you want to improve existing ones, follow these steps: 1. Fork the repository. 2. Create a new branch (`git checkout -b feature/add-new-exercise`). 3. Add your exercise(s) to the appropriate folder, following the existing structure. 4. Ensure your code is well-commented and includes sample input/output if applicable. 5. Update the README.md with any necessary information about your exercise(s). 6. Test your changes locally. 7. Commit your changes (`git commit -am 'Add new exercise(s)'`). 8. Push to the branch (`git push origin feature/add-new-exercise`). 9. Create a new Pull Request. ## License This repository is licensed under the [MIT License](LICENSE), which means you are free to use, modify, and distribute the contents of this repository for personal or commercial purposes. However, please attribute the original source if you redistribute any part of this repository. Happy coding!
Exercises...
csharp,java,javascript,python,nlp
2023-01-27T09:53:00Z
2024-04-03T12:27:36Z
null
1
3
87
0
0
2
null
MIT
Java
hirentimbadiya/prosperity-bank
master
# prosperity-bank "This is a front-end only web application for a virtual bank built using React.js, Vite, and Tailwind CSS. The project showcases modern front-end development techniques. The app is hosted on Firebase and has a responsive design and intuitive interface. The source code is open source and available for use and customization, making it a great resource for anyone looking to learn about modern front-end development and Firebase deployment. Contribute to the project and help build the future of online banking."
This is a front-end only web application for a virtual bank built using React.js, Vite, and Tailwind CSS. The project showcases modern front-end development techniques. The app is hosted on Firebase and has a responsive design and intuitive interface.
bank-website,javascript,mobile-first,reactjs,responsive-web-design,tailwindcss,ui-u,vitejs,firebase,firebase-hosting
2023-02-01T16:43:34Z
2023-02-03T10:59:33Z
null
1
0
34
0
2
2
null
null
JavaScript
dcuevasdev/dcuevasdev_portfolio
main
<h1 align="center"> Daniel's portfolio 👨‍💻</h1> <div align="center"> Portafolio personal de Ivan Daniel Cuevas Rojas. </div> <div align="center"> <h3> <span> | </span> <a href="https://ivandanielcuevas.com/"> Demo </a> <span> | </span> <a href="https://github.com/dcuevasdev/dcuevasdev_portfolio"> Solución </a> <span> | </span> </h3> </div> ## 🚀 Deploy En el siguiente link puedes ver la [web del portafolio](https://ivandanielcuevas.com/ "web del portafolio") ### Desktop 💻 ![](https://i.imgur.com/svoA323.png) ### Mobile 📱 ![](https://i.imgur.com/h6HKmgE.png) ## 🛠️ Construido con: - **HTML** - lenguaje de marcado. - **CSS** - lenguaje de estilos. - **Sass** - pre-procesador de CSS. - **JavaScript** - lenguaje de programación. - **Reponsive design** - **Mobile First** ## ✒️ Autores - **Daniel Cuevas** - _Desarrollo_ - [@dcuevasdev](https://twitter.com/dcuevasdev "@dcuevasdev") - **Laura Moreno** - Diseño - [@lauramorenoc\_\_](https://instagram.com/lauramorenoc__?igshid=YmMyMTA2M2Y= "@lauramorenoc__") ## 📥 Contacto - GitHub [@dcuevasdev](https://github.com/dcuevasdev) - Twitter [@dcuevasdev](https://twitter.com/dcuevasdev)
Daniel's portfolio
css,html,javascript,sass,mobile-first,responsive-design
2023-02-03T13:45:25Z
2024-04-27T02:26:36Z
null
1
0
40
0
0
2
null
MIT
HTML
bijanstha7/Snake-Game
main
# Snake-Game Here is a Snake Game using HTML, CSS, and JavaScript.Link : https://bijanstha7.github.io/Snake-Game/
null
css,html,html-css-javascript,javascript
2023-02-03T18:04:03Z
2023-02-03T18:12:21Z
null
1
0
4
0
0
2
null
null
JavaScript
joaolucasp/QRCode-Generator
main
# **QR Code Generator** <img alt="HTML5" src="https://img.shields.io/badge/html5-%23E34F26.svg?&style=for-the-badge&logo=html5&logoColor=white"/> <img alt="CSS3" src="https://img.shields.io/badge/css3-%231572B6.svg?&style=for-the-badge&logo=css3&logoColor=white"/> <img alt="Bootstrap4" src="https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white"/> <img alt="JavaScript" src="https://img.shields.io/badge/javascript-%23323330.svg?&style=for-the-badge&logo=javascript&logoColor=%23F7DF1E"/> </br> ![GitHub repo size](https://img.shields.io/github/repo-size/joaolucasp/QRCode-Generator) ![GitHub language count](https://img.shields.io/github/languages/count/joaolucasp/QRCode-Generator?style=plastic) ![GitHub forks](https://img.shields.io/github/forks/joaolucasp/QRCode-Generator) ![GitHub open issues](https://img.shields.io/github/issues/joaolucasp/QRCode-Generator) <img src="https://user-images.githubusercontent.com/83319546/216202603-85cb1306-b178-4ac6-a25e-959eccacb417.png"> <img src="https://user-images.githubusercontent.com/83319546/216202611-f962444f-407d-4be7-8083-c1a8b4fd0a87.png"> > Este projeto contempla um gerador de QR Code gratuito construído em JavaScript. ## 📫 Contribuindo para QR Code Generator Para contribuir com o projeto, siga estas etapas: 1. Bifurque este repositório. 2. Crie um branch: `git checkout -b <nome_branch>`. 3. Faça suas alterações e confirme-as: `git commit -m '<mensagem_commit>'` 4. Envie para o branch original: `git push origin <nome_do_projeto> / <local>` 5. Crie a solicitação de pull. Como alternativa, consulte a documentação do GitHub em [como criar uma solicitação pull](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request). ## 🤝 Colaboradores Agradecemos às seguintes pessoas que contribuíram para este projeto: <table> <tr> <td align="center"> <a href="#"> <img style="border-radius: 30px;" src="https://avatars.githubusercontent.com/u/83319546?v=4" width="100px;" alt="Foto do João Lucas no GitHub"/><br> <sub> <b>João Lucas</b> </sub> </a> </td> </tr> </table> [⬆ Voltar ao topo](#QRCode-Generator)<br>
Free QR Code Generator JavaScript.
bootstrap5,css,html5,javascript,qrcode,qrcode-generator
2023-02-01T00:37:40Z
2023-03-27T22:57:31Z
null
1
0
15
2
0
2
null
MIT
JavaScript
barelyhuman/pipe
main
# @barelyhuman/pipe A tiny pipe utility ![npm](https://img.shields.io/npm/v/@barelyhuman/pipe?colorA=black&colorB=black&logoColor=black) ## Why? Tired of copying it around ## Highlights - Tiny API - Clonable - Lazy Execution - Plugins ## Usage The util was built to abstract async manipulation from the actual flow and make it look cleaner when working with arrays This is primarily for dealing with nested function calls and hiding the async logic Eg: ```js const value = await Promise.all(something.map(id => fetchById(id))) // Could be written as // before v0.2.3 const value = await pipe(something) .map(id => fetchById(id)) .to(x => Promise.all(x)) .run() // from v0.2.3 const value = await pipe(something) .map(id => fetchById(id)) .run() // or if you don't like magic then, but at this point // there's no difference between this and the original // statement const value = await pipe(something) .to(previous => previous.map(id => fetchById(id))) .to(x => Promise.all(x)) .run() ``` ### Clonable The pipes are clonable and each have their own scope A very simple example would be Eg: ```js const basePipe = pipe(1).to(x => x * 2) const nextPipe = pipe(basePipe).to(x => x * 3) const valTwo = await nextPipe.run() // 6 const valOne = await basePipe.run() // 2 ``` ### Lazy Execution As shown in the examples the actual execution of the given data isn't started unless `.run` is triggered. This makes it easier to transfer context around if needed and in a defined sequence, also makes it easier to extend. ### Plugins You can read about them in [PLUGINS.md](/PLUGINS.md) [MIT](/LICENSE)
An adaptable and tiny pipe utility
javascript,pipe,utility,async,functional
2023-01-29T01:29:46Z
2023-02-27T05:56:38Z
2023-02-27T05:56:39Z
1
1
15
0
0
2
null
MIT
TypeScript
devashishp1999/drag-drop-plus
main
<a name="readme-top"></a> <!-- PROJECT LOGO --> <div align="center"> # Drag-Drop Plus A JavaScript library for enabling **drag and drop** functionality on any elements in the DOM. This library also includes **accessibility** features, allowing users to drag and drop elements using only their keyboard. [Request a Feature](https://github.com/devashishp1999/drag-drop-plus/issues) </div> <!--<details close> <summary><strong>last updated</strong> : Jan 26, 2023 7:40 am (UTC)</summary> <ul> <li><code>Fixed CDN links</code> : now usable</li> </ul> </details> --> ## About The Project The **drag-drop-plus** library is a powerful and easy to use tool that allows developers to easily add drag and drop functionality to their web projects. This library is designed to make it easy to add drag and drop functionality to any element in the DOM, while **also providing accessibility options** so users can drag and drop elements using only their keyboard. **Use this library if:** - You want to drag any element and drop it somewhere on DOM - You also want Drag-drop feature withthe keyboards #### Built With [![JavaScript][javascript.com]][javascript-url] &nbsp; [![HTML][html.com]][html-url] &nbsp; [![CSS][css.com]][css-url] &nbsp; [![OOPs][oops.com]][oops-url] ## Installation Include **one of the following** CDN link in your project. And create a new instance of the class. ```sh https://devashishp1999.github.io/drag-drop-plus/main.min.js ``` <!-- **or** ```sh https://cdn.jsdelivr.net/gh/devashishp1999/drag-drop-plus@main/main.min.js ``` --> ```js <script src="CDN_LINK"></script> <script> const draggable = new DragDrop(); </script> ``` **Or** Install with NPM: ```sh npm i drag-drop-plus ``` ```js import DragDrop from "drag-drop-plus"; const draggable = new DragDrop(); ``` **NOTE :** The script **needs an attribute** of the element to make it **draggable or a drop-zone**. Default attributes are set for: - Element to drag : `data-draggable` - Element to drop in : `data-dropzone` Also you can set your custom `Attributes`. To make an element droppable in specific drop-zone among multiple drop-zones. > To see elements in action, **do not forget to add styles**. `data-dragging-box` is the default attribute for the element while dragging. And the Element while dragging will always be a `clone()` of the element you are dragging. <!-- USAGE EXAMPLES --> ## Usage - [Demo link](https://jsfiddle.net/devashishpujari/8kt9axo3/33/) #### Basic drag-drop 1.) Create an instance. ```js const draggable = new DragDrop(); ``` 2.) Add required attributes to HTML Tags ```html <!-- Tell script what to drag --> <span data-draggable> drag-box 1 </span> <span data-draggable> drag-box 2 </span> <!-- Tell script where to drop --> <div data-dropzone>drop-zone 1</div> <div data-dropzone>drop-zone 2</div> <div data-dropzone>drop-zone 3</div> ``` **And DONE**. Now, in this example, `<span>` elements are draggable and you can drop them inside the `<div>` elements. #### Drop-zone specific drag-boxes : `setDragDropElements()` To create multiple draggable-boxes and specific drop-zones for them. Create multiple instances of the class and use `setDragDropElements()` method. 1.) Create multiple instances. ```js const draggable_1 = new DragDrop(); const draggable_2 = new DragDrop(); // 1st Drag-Drop Environment draggable_1.setDragDropElements({ boxAttr: "data-draggable-1", dropboxAttr: "data-dropzone-1", dragboxAttr: "data-dragging-box-1", // Attribute for the Element while dragging }); // 2nd Drag-Drop Environment draggable_2.setDragDropElements({ boxAttr: "data-draggable-2", dropboxAttr: "data-dropzone-2", dragboxAttr: "data-dragging-box-2", // Attribute for the Element while dragging }); ``` 2.) Add required attributes to HTML Tags ```html <!-- Draggable SET 1--> <span data-draggable-1> drag-box 1 </span> <span data-draggable-1> drag-box 1 </span> <!-- DropZone for SET 1 --> <div data-dropzone-1>drop-zone 1</div> <div data-dropzone-1>drop-zone 2</div> ------------------------------------------ <!-- Draggable SET 2--> <span data-draggable-2> drag-box 2 </span> <span data-draggable-2> drag-box 2 </span> <!-- DropZone for SET 2 --> <div data-dropzone-2>drop-zone 1</div> <div data-dropzone-2>drop-zone 2</div> ``` **Now** the `<span>` elements with `data-draggable-1` attribute can only be dropped in the `<div>` elements with the `data-dropzone-1` attributes. And same for every new `Attribute` you specify for a new Instance `new DragDrop()`. #### Drag-Drop with Keyboard: 1. Move to a draggable element with `TAB` key. 2. Press `SPACE` key to select the focused draggable element. 3. To drop you have 2 options : - Use `TAB` key to focus a `dropzone`. And then press `SPACE` key to drop on focused dropzone. - Use `Arrow Keys` to move the selected drag-box. And make its center inside your favourite dropzone. And then press `SPACE` key to drop the element. ## Methods and properties The library is built with a number of abstracted methods, which make it easy for developers to customize the behavior of the drag and drop functionality to fit their specific needs. #### Properties : **1**) `draggingBox`: Reference of the HTMLElement being dragged. Read Only. **2**) `boxToDrag`: Reference of the HTMLElement to drag. Read Only. **Note :** `boxToDrag !== draggingBox` ```js const draggable = new DragDrop(); draggable.onDragStart = function () { console.log(draggable.draggingBox); // HTMLElement user is dragging console.log(draggable.boxToDrag); // HTMLElement that is selected to drag }; // There are more methods other than onDragStart(). See 'Methods' section ``` **3**) `droppable` : Read Only. ```js const draggable = new DragDrop(); draggable.onDrag = function () { // Read Only property. console.log(draggable.draggable); // Logs the Object on every Drag event }; /* Returned Object : { value: false, // If draggibg-box is over valid drop-zone or not. Default: false dropbox: null, // Valid dropbox HTMLElement or Null/False. Default: null }; */ ``` It can be used to check, before droping or while dragging, if an element can be dropped or not. and get the drop-zone element. Can be **helpful** to style elements, also with the `methods()` listed below. #### Methods : **1**) `setDragDropElements()` : Tells script the value of custom attributes. Put the same attributes in your HTMLElements that you update via this method ```js const draggable = new DragDrop(); draggable.setDragDropElements({ boxAttr: "data-drag-this", dropboxAttr: "data-drop-here", dragboxAttr: "data-being-dragged", // Attribute for the Element while dragging }); ``` **2**) `addEventListners()` : Adds eventListners to drag-drop to the elements with the specified attributes. The class this function by default. **3**) `removeEventListners()` : Removes all the attached eventListners for the Drag-drop functionality from the elements with the attributes in that instance. ```js const draggable_1 = new DragDrop(); const draggable_2 = new DragDrop(); draggable_1.removeEventListners(); draggable_1.addEventListners(); draggable_2.removeEventListners(); ``` **Methods to override :** by default they are set to `() => null` **1**) `onDragStart()` : runs when selected a draggable-box **2**) `onDrag()` : runs when Dragging with mouse/ Touch/ KeyPresses **3**) `onKeyDrag()` : runs when Dragging with only KeyPress **4**) `onDragEnd()` : runs when mouse is released after dragging. **5**) `onDrop()` : runs when element dropped successfully **6**) `onTabKeypress()` : runs when hopping b/w drop-zones. Override these methods, if you want to, as following: ```js const draggable = new DragDrop(); draggable.onDragStart = function () { console.log(draggable.boxToDrag); // HTMLElement user selected to drag /* Any thing you want to do onDragStart */ }; draggable.onDrag = function (event) { console.log(draggable.draggingBox); // HTMLElement user is dragging console.log(draggable.droppable); console.log(event.type); /* Any thing you want to do onDrag */ }; draggable.onDrop = function (event) { console.log(draggable.droppable.dropbox) // HTMLElement where drag-box is dropped console.log(event); // MouseEvent or KeyboardEvent . . /* Any thing you want to do onDrop */ }; /* Other Methods */ ``` #### Example : [JSFiddle Link](https://jsfiddle.net/devashishpujari/8kt9axo3/33/) If you liked this. Give this repo a ⭐ STAR ⭐ ## License <p>This library is released under the <a href="https://opensource.org/licenses/MIT" target="_new">MIT license</a></p> <!-- MARKDOWN LINKS & IMAGES --> <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> [stars-shield]: https://img.shields.io/github/stars/github_username/repo_name.svg?style=for-the-badge [stars-url]: https://github.com/github_username/repo_name/stargazers [issues-shield]: https://img.shields.io/github/issues/github_username/repo_name.svg?style=for-the-badge [issues-url]: https://github.com/github_username/repo_name/issues [license-shield]: https://img.shields.io/github/license/github_username/repo_name.svg?style=for-the-badge [license-url]: https://github.com/github_username/repo_name/blob/master/LICENSE.txt [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://linkedin.com/in/devashishpujari [product-screenshot]: images/screenshot.png [next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white [next-url]: https://nextjs.org/ [react.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB [react-url]: https://reactjs.org/ [vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D [vue-url]: https://vuejs.org/ [angular.io]: https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white [angular-url]: https://angular.io/ [svelte.dev]: https://img.shields.io/badge/Svelte-4A4A55?style=for-the-badge&logo=svelte&logoColor=FF3E00 [svelte-url]: https://svelte.dev/ [laravel.com]: https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white [laravel-url]: https://laravel.com [bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white [bootstrap-url]: https://getbootstrap.com [jquery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white [jquery-url]: https://jquery.com [javascript.com]: https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo&logoColor=black [javascript-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript [oops.com]: https://img.shields.io/badge/Object%20Oriented%20Programming-2c5ebf?style=for-the-badge&logo&logoColor=black [oops-url]: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object-oriented_programming [html.com]: https://img.shields.io/badge/HTML-E96228?style=for-the-badge&logo=html [html-url]: https://developer.mozilla.org/en-US/docs/Web/HTML [css.com]: https://img.shields.io/badge/CSS-2965F1?style=for-the-badge&logo=CSS&logoColor=black [css-url]: https://developer.mozilla.org/en-US/docs/Web/CSS
Drag any object in DOM and drop it anywhere in DOM. Works well with Mouse, Touch and Keyboard events.
drag-and-drop,dragdrop,draggable,html,javascript,drag-drop-plus
2023-01-26T11:45:38Z
2023-01-29T06:41:32Z
null
1
1
25
0
0
2
null
MIT
JavaScript
Yogeshvari2902/EsayChat-App-Full-Stack
main
## Steps to Start the App #### Install the Public Dependencies #### Install the Server Dependencies #### In the Server Directory there's a .env file. Change the value of mongodb inside the file. Set the value as your mongodb connection url. #### Now start the server by yarn start #### Now start the react by yarn start #### And the chat application would be running successfully by now. --- ## About the EasyChat Application - A place to share the information/thoughts. - User can create an account, then login, do some chat and logout their accounts. --- ## Tech Stack Used - Material UI: Styling & Icons - MongoDB: For DataBase Management - ExpressJs: For BackEnd Routing - React: FrontEnd Developement - NodeJS: For BackEnd developement - Netlify: For hosting the frontEnd developement --- ## Previews - Desktop Preview ![Desktop-Preview](Easychat_assets/login.jpg) - Mobile Preview ![Mobile-Preview](Easychat_assets/phone.jpg) - Create User: ![Create User](Easychat_assets/createuser.jpg) - Login Page: ![Login Page](Easychat_assets/login.jpg) - Home Page: ![UserDetails](Easychat_assets/home.jpg) - Showing Chats: ![Chats Page](Easychat_assets/chat.jpg)
This is a chatting app where user can chat only when create account and login
css3,expres,html5,javascript,material-ui,mongodb,nodejs,react-router,reactjs
2023-02-06T06:13:01Z
2023-02-07T12:06:19Z
null
1
0
27
0
0
2
null
null
JavaScript
guimiiller/pokedex
master
# Pokédex ![preview](./images/preview.png) > Pokédex Nesse projeto criei uma pokédex buscando os dados de uma API. [Clique para acessar](https://guimiiller.github.io/pokedex/) ## 🚀 Tecnologias - HTML - CSS - JavaScript - Git e Github ## 💻 O que aprendi - Fazer requisições para buscar os dados dos pokemons - Usar a função clamp ## 📨 Contato - guilhermemillerblack@gmail.com
Projeto Pokédex
css,git,github,html,javascript
2023-02-06T03:47:03Z
2023-02-06T03:57:00Z
null
1
0
2
0
0
2
null
null
CSS
alicemirigo92/Leaderboard
main
# Leaderboard <a name="Alice"></a> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#triangular_flag_on_post-deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) # 📖 Leaderboard <a name="about-project"></a> > **Leaderboard** The leaderboard website displays scores submitted by different players. It also allows you to submit your score. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> Webpack JavaScript API <details> <summary>Build With</summary> <ul> <li><a href="https://html.com/">HTML</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a></li> <li><a href="https://www.javascript.com/">JavaScript</a></li> </ul> </details> ## 🔭 Key Features <a name="Key-features"></a> - **[Add score]** - **[Edit tasks]** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> > Add a link to your deployed project. - [LIVE DEMO]() <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> ### Prerequisites In order to run this project you need: a properly working pc or laptop and a modern web browser. ### Setup Clone this repository to your desired folder: ```sh cd my-folder git clone ``` ### Install Install this project with: ```sh cd my-folder git clone ``` ### Usage To run the project, open index.html in your web browser. ### Run tests To run tests, run the following command: Right click on the index.html document then open with live server. Make sure live server extension is install in your text editor. ### Deployment You can deploy this project using: GitHub but if you want to deploy make sure you let me know first :3 <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 👥 Authors <a name="authors"></a> 👤 **Alice Mirigo** - GitHub: [Alice Mirigo](https://github.com/alicemirigo92) - Twitter: [@Gathonimirigo](https://twitter.com/GathoniMirigo) - LinkedIn: [Alice](www.linkedin.com/in/alice-mirigo) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - [ ] **[Make the list interactive]** - [ ] **[Use javascript to make interactions]** - [ ] **[new_feature_3]** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> If you like this project, please, share it with your friends. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse for providing such a valuable resource to people like me who are trying to break into the tech industry. I am forever grateful for the opportunity to be a part of the Microverse community. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
Leaderboard is a list app that displays scores submitted by different players. It also allows you to submit your scores. All data is preserved to the external Leaderboard API service. It is developed using Webpack and ES6 features.
css5,html5,javascript
2023-02-07T12:49:02Z
2023-02-10T09:03:22Z
null
1
3
23
1
0
2
null
MIT
JavaScript
jsheaven/read-config-file
main
<h1 align="center">@jsheaven/read-config-file</h1> > Tiny library to read config files like `your.config.js`, `your.config.mjs`, `your.config.ts`, `your.conifg.json` or `your.config.json5` from disk. <h2 align="center">User Stories</h2> 1. As a developer, I want to read config files for my project/library/framework 2. As a developer, I don't want to write that code again and again <h2 align="center">Features</h2> - ✅ Reads and evalutates config files from disk: `.js`, `.mjs`, `.ts`, `.json` and `.json5` - ✅ Available as a simple API and simple to use CLI - ✅ Just `636 bytes` nano sized (ESM, gizpped) - ✅ Tree-shakable and side-effect free - ✅ Runs on Windows, Mac, Linux, CI tested - ✅ First class TypeScript support - ✅ 100% Unit Test coverage <h2 align="center">Example usage (CLI)</h2> `NODE_OPTIONS='--experimental-vm-modules' npx @jsheaven/read-config-file --config ./test/some.config.ts` > You need at least version 18 of [Node.js](https://www.nodejs.org) installed. <h2 align="center">Example usage (API, as a library)</h2> <h3 align="center">Setup</h2> - yarn: `yarn add @jsheaven/read-config-file` - npm: `npm install @jsheaven/read-config-file` <h3 align="center">ESM</h2> ```ts import { readConfigFile } from '@jsheaven/read-config-file' const result = await readConfigFile({ configFilePath: './test/some.config.ts', }) ``` <h3 align="center">CommonJS</h2> ```ts const { readConfigFile } = require('@jsheaven/read-config-file') // same API like ESM variant ```
Tiny library to read config files like your.config.js, your.config.mjs, your.config.ts, your.config.json and your.config.json5 from disk.
config,javascript,node,nodejs,typescript
2023-02-07T02:20:36Z
2023-02-13T23:28:57Z
null
2
0
6
0
0
2
null
MIT
TypeScript
Salgado2004/Aluguel_de_Carros
main
# Aluguel de Carros Projeto final da disciplina de Ajax + API do curso de Front-end ofertado pelo Programa de Atração e Formação de Talentos da PUCPR **Descrição do projeto** Crie um CRUD para aluguel de carros O carro deverá ser cadastrado com os seguintes atributos: - Id; - Modelo; - Marca; - Ano - Observações; - Valor da diaria; - Status (alugado, livre, em manutenção) O projeto terá 2 partes que se interagem: - [x] Criar API com um CRUD (Criar, ler, update e delete). Os dados podem ser salvos em um array ou no SQLite. Será utilizado para avaliar a nota de API. - [x] Crie uma/algumas pagina HTML, CSS e JS, onde exista o consumo da API utilizando o Ajax ou FetchAPI. Será utilizado para a nota de Ajax. - [x] Fiquem livres para adicionar campos ou funcionalidades ao CRUD.
Projeto final da disciplina de Ajax + API do curso de Front-end ofertado pelo Programa de Atração e Formação de Talentos da PUCPR
flask-application,flask-sqlite3,frontend-web,homework-project,fetch-api,javascript
2023-02-02T12:11:39Z
2023-02-05T23:58:31Z
null
1
0
29
0
0
2
null
null
SCSS
kriston-burnstein/parkside-paradise-virtual-walks-app
main
# <img src="https://user-images.githubusercontent.com/65462564/218569434-57c4efb7-5dda-40a7-88b2-358fbd43bd99.png" width="70"/><br>Parkside Paradise Virtual Walks ### Breathtaking and immersive virtual walks through US National Parks <img width="1278" alt="parkside-landing" src="https://user-images.githubusercontent.com/65462564/218576517-8a5aeb81-b2b4-4652-a7b4-5a8cc0a12883.png"> ### Curated immersive virtual walks through US National Parks. Where you're invited to relax, unwind, and experience the splendor of some of the US's most mesmerizing landscapes. Allows users to log in, set up a profile, bookmark and save their favorite walks, like/unlike their favorite walks, and upload their own walks. Imagined during the pandemic and built for anyone anywhere that wants to get away to the vast and beautiful outdoors but isn't able to at the moment. A chance to relax, unwind, reset, and recharge. ### Visit the deployed site: https://parkside-virtual-walks-app.herokuapp.com/<br> ### Demo user: email: tester1234@gmail.com<br> password: tester1234 --- ### Tech used: - **Frontend:** JavaScript, EJS, CSS, Bootstrap - **Backend:** Node.js, Express.js - **Database:** MongoDB, Mongoose - **Authentication:** Passport, bcrypt - **Media Handling:** Cloudinary, Multer - **Logging & Debugging:** Morgan - **Testing:** Jest, Supertest - **Environment & Configuration:** dotenv - **Development Utilities:** Nodemon ### Enhancements and optimizations will include: - This is an ongoing labor of love that I'm really enjoying tweaking, polishing, streamlining, and optimizing as I go - I'm currently working on the ability to search and sort walks by park name, terrain, guide, state, and speaking guide or just nature sounds only - I'm also working on adding more fleshed out profile features - As well as adding a section to get-started page discussing recent in-the-news litigation and controversy surrounding filming in US National Parks --- ### To run: ### Install `npm install` ### Environment setup - Create a `.env` file in config folder and add the following as `key=value` - PORT=2121 (can be any port example: 3000) - DB_STRING=`'your database URI'` - CLOUD_NAME=`'your cloudinary cloud name'` - API_KEY=`'your cloudinary api key'` - API_SECRET=`'your cloudinary api secret'` ### Running the application - For Production <br> `npm start` - For Development <br> `npm run dev` --- ### Testing: This project uses Jest for unit testing, along with additional libraries including supertest and mongodb-memory-server for specific functionalities. ### Running tests To run the tests locally: `npm test` ### Coverage - Coverage reports can be generated using: `npm run test:coverage` - The coverage summary will be displayed in the CLI upon completion of the test run - Detailed reports will also be generated and available in the designated `coverage` directory ### Writing tests For guidelines on writing tests, please refer to the <a href="https://jestjs.io/docs/getting-started" target="_blank">Jest documentation</a> and consult existing tests within the `__tests__` directory
Curated immersive virtual walks from YouTube Guides through US National Parks. We invite you to relax, unwind, and experience the splendor of some of the US's most mesmerizing landscapes.
crud-application,ejs,express,javascript,mongodb,mvc-architecture,node,api,authentication,custom-api
2023-02-05T21:22:25Z
2023-10-23T16:00:07Z
null
1
13
37
2
0
2
null
null
JavaScript
SumitUjjwal/SumitUjjwal.github.io
main
# SumitUjjwal.github.io <!-- # Student Portfolio Analyser ## Maximum Marks - 34 ``` ✅ Submitted link is a github.io link - 1 mark ✅ Basic components (navbar, about, skills, projects, contact) present with respective IDs - 1 mark ✅ Navbar contains required elements with respective IDs - 1 mark ✅ Elements of the navbar are linked to the respective sections - 5 marks ✅ Name is present - 1 mark ✅ Formal introduction is present - 1 mark ✅ About section is titled - 1 marks ✅ Professional photo is present - 1 marks ✅ Minimum of 4 samples of projects are present - 2 marks ✅ All project cards have an image, title, deployed link, repository link - 4 marks ✅ Each skills card has the corresponding image and name - 1 mark ✅ Links to GitHub and LinkedIn profiles are present - 2 marks ✅ Phone number is present - 1 mark ✅ Email address is present - 1 mark ✅ Resume buttons are present in the Resume section and the Home/About section - 2 marks ✅ Clicking on the resume button in the Resume section opens the link in a new tab and downloads the resume in PDF format - 2 marks ✅ Clicking on the resume button in the Home/About section section opens the link in a new tab and downloads the resume in PDF format - 2 marks ✅ GitHub calendar heatmap is present - 1 mark ✅ GitHub streak stats are present - 1 mark ✅ GitHub top languages card is present - 1 mark ✅ GitHub stats card is present - 1 mark ✅ Checked tech words in user about section - 1 mark ``` #### You haven't been taught cypress to run the test cases locally, you can see the passed/ failed test cases and test errors on CP itself. #### CP will attempt to take screenshots of each component in your portfolio. You can view these screenshots in the "Screenshots" dropdown in the logs page. The marks allotted to you are independent of these. ## Some Rules to follow:- - Before writing a single line of code please read the problem statement very carefully. - If you don't follow these rules you might not get any marks even if you do everything correctly. - Have a look at the TestErrors on the logs page and Google them if any of your test cases have failed to figure out what might have gone wrong. ## Problem Statement and Instructions:- - Create a portfolio with the following components using the following attributes: - Navbar : id="nav-menu" - Home section : id="home" - About section : id="about" class="about section" - Skills section : id="skills" - Projects section : id="projects" - Contact section : id="contact" - The elements within the navbar linked to the above 4 sections should have the following. - Element linked to Home section : class="nav-link home" - Element linked to About section : class="nav-link about" - Element linked to Skills section : class="nav-link skills" - Element linked to Projects section : class="nav-link projects" - Element linked to Contact section : class="nav-link contact" - Element linked to Resume : class="nav-link resume" - The following must be present within elements with the respective IDs: - Name : id="user-detail-name" - Formal introduction : id="user-detail-intro" - Contact elements must have the following IDs: - GitHub profile link : id="contact-github" - LinkedIn profile link : id="contact-linkedin" - Phone number : id="contact-phone" - Email address : id="contact-email" - The image linking your professional photo must have class="home-img" - Each project card in the Projects section should have class="project-card" and the following: - Image of the project - Title : class="project-title" - Description : class="project-description" - Tech stack used : class="project-tech-stack" - Link to GitHub repository : class="project-github-link" - Deployed link or video link : class="project-deployed-link" - Each skills card in the Skills section should have class="skills-card" and the following: - Image : class="skills-card-img" - Name : class="skills-card-name" - There must be two buttons for resume. Clicking on them should open the resume in a new tab and download it as a PDF. They must have the following IDs: - For the button in the Resume section : id="resume-button-1" - For the button in the Home/About section : id="resume-button-2" - If you're using anchor elements for the resume buttons, they must have the following IDs: - For the button in the Resume section : id="resume-link-1" - For the button in the Home/About section : id="resume-link-2" - For the GitHub calendar: class="react-activity-calendar" (the class is automatically included if you're using the react-github-calendar npm package) - The GitHub statistics images must have the following IDs: - GitHub streak stats : id="github-streak-stats" [Link to refer : https://github-readme-streak-stats.herokuapp.com/demo/] - GitHub top languages : id="github-top-langs" [Link to refer : https://github.com/anuraghazra/github-readme-stats] - GitHub stats card : id="github-stats-card" [Link to refer : https://github.com/anuraghazra/github-readme-stats] - Do not repeat any of the above class names and ID names for any other element. #### General guidelines - The system on cp.masaischool.com may take between 1-20 minutes for responding, - so we request you to read the problem carefully and debug it before itself - we also request you not just submit it last minute - try to keep one submission at a time --> <!-- views counter --> ![](https://komarev.com/ghpvc/?username=SumitUjjwal&label=Profile%20views&color=0e75b6&style=flat) <!-- profile --> <div align="center"> <img src="https://i.imgur.com/j0uNCGy.gif" align="center" width="250"/> <br/> <img src="https://camo.githubusercontent.com/a95675981075a50a247b52407b109d3a647faba3c9100abbd113a03eb5cb332e/68747470733a2f2f692e6962622e636f2f52515a337a53352f72656d6f76616c2d61692d746d702d363334393235353533616533622d312d312e6a7067" width="100"/> <h3 align="center">Hi 👋, I'm Sumit Ujjwal</h3> <h4 align="center" >A passionate full stack developer from India</h4> </div> <hr> <!-- social media --> <h3><i>🌐 Connect with me:</i></h3> <p align="center"> <a href="https://www.linkedin.com/in/sumitujjwal" style="text-decoration:none" > <img height="30" src="https://img.shields.io/badge/linkedin-blue.svg?&style=for-the-badge&logo=linkedin&logoColor=white" /> </a> <a href="https://sumitujjwal.github.io/" target="text-decoration:none"> <img height="30" src="https://img.shields.io/badge/My%20Portfolio%20%E2%86%92-gray.svg?colorA=655BE1&colorB=4F44D6&style=for-the-badge"/> </a> </p> <hr> <!-- about --> <h3><i>👨‍💻 Here are a few pointers listed below that best describe me:</i></h3> - 💭 I let my imagination run wild, which allows me to be very creative in what I do. - 🌱 I like to improve myself better than tomorrow. - 👨‍👧‍👦 I am a good team player. I enjoy working in a team environment, and I get along well with people very well. - 💬 Ask me about Javascript, HTML, CSS, Node.js, Npm, Express.js, MongoDB - ⚡ Fun fact: "Take an idea and work on it" that's what I believe. <hr> <!-- tech stacks --> <h3><i>💻 Tech Stacks I have worked with:</i></h3> <p align="center"> <img src="https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white" alt="html5" /> <img src="https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white" alt="css3" /> <img src="https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E" alt="javascript" /> <img src="https://img.shields.io/badge/Node.js-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="nodejs" /> <img src="https://img.shields.io/badge/Express.js-000000?style=for-the-badge&logo=express&logoColor=white" alt="expressjs" /> <img src="https://img.shields.io/badge/MongoDB-4EA94B?style=for-the-badge&logo=mongodb&logoColor=white" alt="mongodb" /> <img src="https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white" alt="npm" /> <img src="https://img.shields.io/badge/Postman-FF6C37?style=for-the-badge&logo=Postman&logoColor=white" alt="postman" /> <img src="https://img.shields.io/badge/Git-f44d27?style=for-the-badge&logo=git&logoColor=white" alt="git" /> <img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" alt="github" /> <img src="https://img.shields.io/badge/netlify-%23000000.svg?style=for-the-badge&logo=netlify&logoColor=#00C7B7" alt="netlify" /> <img src="https://img.shields.io/badge/JWT-black?style=for-the-badge&logo=JSON%20web%20tokens" alt="jwt"/> </p> <hr> <!-- github tropies --> <h3><i>🏆 GitHub Trophies:</i></h3> <p align="center"> <a href="https://github.com/SumitUjjwal"><img src="https://github-profile-trophy.vercel.app/?username=SumitUjjwal&theme=flat&no-frame=true&no-bg=false&margin-w=4" alt="SumitUjjwal" /></a> </p> <hr> <!-- github stats --> <h3><i>📊 GitHub Statistics:</i></h3> <table> <tr> <td valign="top"><img align="center" src="https://github-readme-stats-oup691hc2-alexfp05405.vercel.app/api?username=SumitUjjwal&show_icons=true&locale=en&theme=vue&count_private=true&hide_border=true" /></td> <td valign="top"><img align="center" src="https://github-readme-streak-stats.herokuapp.com/?user=SumitUjjwal&show_icons=true&locale=en&theme=vue&count_private=true&hide_border=true" alt="SumitUjjwal" /></td> </tr> </table> <img src="http://github-profile-summary-cards.vercel.app/api/cards/profile-details?username=SumitUjjwal&theme=vue" width="150%" /> <img src="https://github-readme-activity-graph.cyclic.app/graph?username=SumitUjjwal&theme=vue&bg_color=ffffff&color=586E75&line=40C463&point=586E75&hide_border=false&area=true&title_color=586E75&custom_title=SumitUjjwal%20's%20contribution%20Graph" /> <!-- ## 🌐 Socials [![LinkedIn](https://img.shields.io/badge/LinkedIn-%230077B5.svg?logo=linkedin&logoColor=white)](https://linkedin.com/in/sumitujjwal) # 💻 Tech Stack ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) ![Netlify](https://img.shields.io/badge/netlify-%23000000.svg?style=for-the-badge&logo=netlify&logoColor=#00C7B7) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB) ![JWT](https://img.shields.io/badge/JWT-black?style=for-the-badge&logo=JSON%20web%20tokens) ![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=for-the-badge&logo=npm&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=for-the-badge&logo=mongodb&logoColor=white) ![Adobe Lightroom](https://img.shields.io/badge/Adobe%20Lightroom-31A8FF.svg?style=for-the-badge&logo=Adobe%20Lightroom&logoColor=white) ![Canva](https://img.shields.io/badge/Canva-%2300C4CC.svg?style=for-the-badge&logo=Canva&logoColor=white) ![Arduino](https://img.shields.io/badge/-Arduino-00979D?style=for-the-badge&logo=Arduino&logoColor=white) ![Raspberry Pi](https://img.shields.io/badge/-RaspberryPi-C51A4A?style=for-the-badge&logo=Raspberry-Pi) # 📊 GitHub Stats ![](https://github-readme-stats.vercel.app/api?username=SumitUjjwal&theme=default&hide_border=false&include_all_commits=false&count_private=false)<br/> ![](https://github-readme-streak-stats.herokuapp.com/?user=SumitUjjwal&theme=default&hide_border=false)<br/> ![](https://github-readme-stats.vercel.app/api/top-langs/?username=SumitUjjwal&theme=default&hide_border=false&include_all_commits=false&count_private=false&layout=compact) ## 🏆 GitHub Trophies ![](https://github-profile-trophy.vercel.app/?username=SumitUjjwal&theme=flat&no-frame=true&no-bg=false&margin-w=4) ### ✍️ Random Dev Quote ![](https://quotes-github-readme.vercel.app/api?type=horizontal&theme=light) --- [![](https://visitcount.itsvg.in/api?id=SumitUjjwal&icon=5&color=12)](https://visitcount.itsvg.in) --> <!-- Proudly created with GPRM ( https://gprm.itsvg.in ) -->
Portfolio
css,html,javascript
2023-01-30T15:09:10Z
2023-05-31T13:51:24Z
null
1
8
93
0
0
2
null
null
HTML
HarukaIonaSao/Landing-Page-Coca-Cola
main-padrao-ssh-aula
# Landing-Page-Coca-Cola 🥤 Projeto em Css com manipulação de imagens direto no código para deixar as latas na diagonal - Link:https://harukaionasao.github.io/Landing-Page-Coca-Cola/ ![cocacola](https://user-images.githubusercontent.com/95101635/216852683-d33a52f8-bf5c-468c-9213-a2ccd10a4e06.png)
🥤 Projeto em Css com manipulação de imagens direto no código para deixar as latas na diagonal
css,frontend,html,javascript,landing-page
2023-02-05T23:35:28Z
2023-02-08T23:43:17Z
null
1
0
3
0
0
2
null
null
HTML
honghaianthony/MovieReview
master
# [HTML/CSS/JAVASCRIPT] Review Movie - A review movies website ## Introduction Hello everyone, this is the project about review movies. You can check it out: <p align="center"> <img src="demo/home.png" width="800"/> </p> ## Motivation This is the first project I made with my team. The project using ExpressJS, NodeJS and Handlebars to build website. In the lack of review movies website, we see that problems and started making this project. We hope that this project will help you to find the best movies to watch. ## Installation First time you see this repository, you must clone it and then run the following command: ### `npm install` Moreover, you should have a backend which is running with ExpressJS and NodeJS. You should also have your database to run successfully: - **create database review_db** Next, you will create an .env file in your repository. The .env will follow this - **DB_NAME** - **DB_USERNAME** - **DB_PASSWORD** - **DB_HOST** - **DB_PORT** - **SESSION_SECRET** - **CLIENT_ID** - **CLIENT_SECRET** - **REDIRECT_URI** - **REFRESH_TOKEN** After all the configuration, you can run the following command: ### `npm run dev` And... That's all what you need. ## Requirements - **nodejs >=14** ## Thank you Thank you for the excellent contributions of my team to implement this project. I appreciate you if you have any questions and some comments for us to improve this project.
A website about review movies
css,handlebars,html,javascript
2023-01-31T16:07:48Z
2023-02-01T15:29:09Z
null
1
0
165
0
0
2
null
null
HTML
jbxamora/progrest
main
# progrest As an Agile development team, We're excited to introduce "progrest", a comprehensive project management tool for non-profit organizations. Our goal is to make it easy for non-profits to manage their volunteer hours, donations, and impact metrics in one place. We will create a user-friendly interface for tracking volunteer hours, secure donation processing through a payment gateway, and measuring the impact of different projects. We will prioritize a responsive and accessible design to ensure that non-profits of all sizes can use the platform effectively. With "progrest", non-profits can focus on making a positive difference in the world, while having the tools they need to measure and communicate their impact effectively. Our Agile approach will allow me to deliver frequent updates and quickly iterate based on feedback from users. ## User Story ```md AS A NON-PROFIT ORGANIZATION, I want a comprehensive project management tool that can help me manage volunteer hours, donations, and impact metrics in one place. With "progrest," I can easily track volunteer hours, securely process donations through a payment gateway, and measure the impact of different projects. The user-friendly interface and responsive design will allow me to use the platform effectively, regardless of the size of my non-profit. "progrest" will help me focus on making a positive difference in the world, while also providing the tools I need to measure and communicate my impact effectively. ``` ## Acceptance Criteria ### Volunteer Hours Tracking ```md When the database for volunteer information is created, Then it should be able to store volunteer information accurately. When Sequelize ORM is used to interact with the volunteer information database, Then it should be able to retrieve and add new volunteer information efficiently. When a GET route is implemented to retrieve volunteer information, Then it should return accurate and up-to-date information. When a POST route is implemented to add new volunteer information, Then it should be able to add the information to the database accurately and efficiently. ``` ### User Authentication ```md When express-session and cookies are used to implement user authentication, Then it should provide secure and efficient authentication for users. When GET and POST routes are implemented to handle user log in and log out, Then they should provide a smooth and user-friendly experience. ``` ### Deployment on Heroku ```md When the application is deployed using Heroku, Then it should be accessible from anywhere in the world. When the deployed application is tested, Then it should be fully functional and free of errors. ``` ### Polished UI ```md When a basic UI is implemented using HTML, CSS, and JavaScript, Then it should be visually appealing and easy to use. When the UI is tested, it should be fully functional and free of errors. ``` ## Table of Contents - [Introduction](#progrest) - [Demo](#Demo) - [Roadmap](#Roadmap) - [Code Snippets](#Examples) - [Tech](#Tech-Stack) - [Features](#Features) - [Contributing](#contributing) - [Authors](#Authors) - [FAQ](#FAQ) - [License](#license) ## Demo Check out our app through your browser or mobile device! https://progrest.herokuapp.com/landing ![Picture of Progrest Landing Page](public/assets/img/Screen%20Shot%202023-02-16%20at%205.23.25%20PM.png) ## Roadmap ### Week 1 #### Day 1 - Set up the development environment, including installing Node.js, Express.js, Handlebars.js, MySQL, Sequelize ORM, express-session, and cookies. - Familiarize with the technologies used. - Design the database schema and set up Sequelize ORM. #### Day 2 - Create the necessary models and associations. - Implement the basic RESTful API using Express.js. #### Day 3 - Implement user authentication using express-session and cookies. - Create the routes for user login and logout. #### Day 4 - Implement the volunteer hours tracking feature. - Create the routes for retrieving and adding volunteer information. - Test and debug the features implemented so far. ### Week 2 #### Day 1 - Implement the donations tracking feature and integrate a payment gateway (such as Stripe). - Create the routes for retrieving and adding donation information. #### Day 2 - Implement the impact metrics feature. - Create the necessary calculations and routes to display the metrics. - Implement environment variable protection to ensure the security of sensitive information. #### Day 3 - Test and debug the security feature. - Deploy the application to Heroku to make it accessible from anywhere in the world. #### Day 4 - Implement the polished UI using HTML, CSS, and JavaScript. - Test and debug the UI to ensure responsiveness and compatibility. - Perform final testing and debugging on the application before launch. ## Examples ### User Auth Implemented into the user model. ```javascript //check password and compare bycrypt class User extends Model { checkPassword(loginPw) { return bcrypt.compareSync(loginPw, this.password); } } ``` ```javascript {//hooks called before new instance created and before an instance is updated //bcrypt to hash password hooks: { beforeCreate: async (newUserData) => { newUserData.password = await bcrypt.hash(newUserData.password, 10); return newUserData; }, beforeUpdate: async (updatedUserData) => { updatedUserData.password = await bcrypt.hash(updatedUserData.password, 10); return updatedUserData; }, ``` Then in our homeRoutes ```javascript // Prevent non logged in users from viewing the homepage router.get('/', withAuth, async (req, res) => { try { const userData = await User.findAll({ attributes: { exclude: ['password'] }, order: [['name', 'ASC']], }); const users = userData.map((project) => project.get({ plain: true })); console.log(users) res.render('portal', { users, logged_in: req.session.logged_in, }); } catch (err) { res.status(500).json(err); } }); ``` ### Cookies ```javascript const sess = { secret: 'Super secret secret', cookie: { maxAge: 300000, httpOnly: true, secure: false, sameSite: 'strict', }, resave: false, saveUninitialized: true, store: new SequelizeStore({ db: sequelize }) }; ``` ### New User ```javascript // handle POST request to sign up a new user router.post('/donation', async (req, res) => { try { const userData = await User.create(req.body); req.session.save(() => { // req.session.user_id = userData.id; req.session.name = userData.name; req.session.email = userData.email; req.session.project_name = userData.project_name; req.session.loggedIn = true; res.json(userData); // res.redirect('/portal') }); } catch (err) { res.status(400).json(err); } }); ``` ### Seed ```javascript //seedDatabase using seq sync const seedDatabase = async () => { await sequelize.sync({ force: true }); ``` ## Tech Stack **Server-side Language:** JavaScript (Node.js) **Web Framework:** Express.js **Database Management System:** MySQL **Object-Relational Mapping (ORM) Tool:** Sequelize ORM **Front-end Technologies:** HTML, CSS, JavaScript (with support from Handlebars.js for templating) **Payment Gateway Integration:** Stripe **User Authentication Libraries:** express-session, cookies **Deployment Platform:** Heroku ## Features - Volunteer hours tracking - User authentication using express-session and cookies - Responsive and accessible UI design using HTML, CSS, and JavaScript (with support from Handlebars.js for templating) - Integration with MySQL database using Sequelize ORM - RESTful API for retrieving and adding volunteer and donation information - Deployment on Heroku ## Contributing Contributions are always welcome! See `contributing.md` for ways to get started. Please adhere to this project's `code of conduct`. ## Authors - [@jbxamora](https://www.github.com/jbxamora) - [@rypab4](https://www.github.com/rypab4) ## FAQ #### What is "progrest"? "progrest" is a comprehensive project management tool for non-profit organizations. #### Who can use "progrest"? "progrest" is designed for non-profit organizations of all sizes who want to track volunteer hours, donations, and impact metrics in one place. #### How do I access "progrest"? "progrest" is a web-based application that can be accessed through a web browser. #### What information can I track with "progrest"? "progrest" allows you to track volunteer hours, donations, and impact metrics for different projects. #### How do I add volunteer information to "progrest"? Volunteer information can be added to "progrest" through the user-friendly interface. #### Can I securely process donations through "progrest"? Yes, donations can be securely processed through "progrest". #### What payment gateways does "progrest" integrate with? "progrest" will eventaully integrate with popular payment gateways such as Stripe. #### How do I view my donation information in "progrest"? Donation information can be viewed in "progrest" through the user-friendly interface. #### Can I view my volunteer and donation metrics in one place? Yes, volunteer and donation metrics can be viewed in one place on the portal page through "progrest". #### How does user authentication work in "progrest"? User authentication in "progrest" is implemented using express-session and cookies. #### Is my data secure in "progrest"? Yes, data in "progrest" is securely stored in a database. #### How often will "progrest" be updated? "progrest" will be updated frequently based on user feedback and needs. #### Is there a fee for using "progrest"? "progrest" is designed for non-profit organizations and is offered free of charge. #### Who can I contact for support with "progrest"? For support with "progrest", please contact the development team through the repository or email. ## License [MIT](https://choosealicense.com/licenses/mit/)
"progrest" is a comprehensive solution for non-profit organizations to manage their volunteer hours, donations, and impact metrics in one place. The platform provides an easy-to-use interface for tracking volunteer hours, processing donations securely through a payment gateway, and measuring the impact of different projects
express,expressjs,javascript,mvc-framework,mysql-database,nodejs,non-profit
2023-02-06T07:08:02Z
2023-02-17T04:59:14Z
null
4
14
136
0
1
2
null
MIT
Handlebars
cdsalema/PersonalSite_template
master
# PersonalSite_template <p>Criando um site pessoal para melhorar a responsividade do meu CSS. E usar como base para implementar efeitos com JS/JQuery.</p> <ul> <li>CSS aprimorar Responsividade - OK</li> <li>Menu usando jquery slidetoggle - OK</li> <li>Navegação por tópicos - OK</li> <li>Criar a funcionalidade para o form enviar email - OK</li> <br/> <li><a href="https://conradosalema.netlify.app/">Acesse aqui o site </ul> <p align=center><img src="https://github.com/cdsalema/PersonalSite_template/blob/master/assets/images/layoutbase1.png"/></p> <li>Layout<=700px</li> <p align=center><img src="https://github.com/cdsalema/PersonalSite_template/blob/master/assets/images/layoutbase_responsivoNovo.png" width="475"/></p> <li>Estilo menu JQuery slidetoggle </li> <p align=center><img src="https://github.com/cdsalema/PersonalSite_template/blob/master/assets/images/layoutbase_responsivo2.png" width="475"/></p> <h3 align="left">Languages and Tools:</h3> <p align="left"><a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <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"> <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"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a>
Criando um site pessoal para melhorar a responsividade do meu CSS. E usar como base para implementar efeitos com JS/JQuery.
css3,html5,javascript
2023-02-06T05:42:48Z
2023-03-05T17:50:34Z
null
1
0
72
0
0
2
null
null
CSS
FuturaVision/Futura.js
main
# FuturaJS A small JavaScript library for common tasks such as Carousel, Exception, Animation handler, Auto Write Text, Auto Count Number in interval, static header and more... <div align="center"> [![npm version](https://img.shields.io/npm/v/@futuravision/futura.js.svg?style=flat-square)](https://www.npmjs.org/package/@futuravision/futura.js) [![Build status](https://img.shields.io/github/workflow/status/BlakvGhost/FuturaJS?logo=github&style=flat-square)](https://github.com/BlakvGhost/FuturaJS/actions/workflows/ci.yml) [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=@futuravision/futura.js&query=$.install.pretty&label=install%20size&style=flat-square)](https://packagephobia.now.sh/result?p=@futuravision/futura.js) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@futuravision/futura.js?style=flat-square)](https://bundlephobia.com/package/@futuravision/futura.js@latest) [![npm downloads](https://img.shields.io/npm/dm/@futuravision/futura.js.svg?style=flat-square)](https://npm-stat.com/charts.html?package=@futuravision/futura.js) </div> ## Table of Contents - [Features](#features) - [Browser Support](#browser-support) - [Installing](#installing) - [Package manager](#package-manager) - [CDN](#cdn) - [GitHub](#github) - [Usage/Examples](#examples) - [Fixed Header](#fixed-header) - [Intersection](#intersection) - [Auto Write Text](#autowritetext) - [Auto Count Number](#numberautocount) - [FvCarousel](#fvcarousel) - [Preloader](#preloader) - [Authors](#authors) - [License](#license) ## Features - Make Carousel Easy to use - Auto Write Text When it visible to the visitor screen - Auto Count Number When it visible to the screen - Make animation on elements when thery are visible to the visitor screen - Make your header static when you are scrolling down and default when up - Make your page Preloader, which loads when the site is loading file and not ready ## Browser Support ![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | --- | --- | --- | --- | --- | --- | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ | ## Installation ### Package manager Using npm: ```bash $ npm install @futuravision/futura.js ``` Once the package is installed, you can import the library using `import` or `require` approach: ```js import {FvCarousel, AutoWriteText} from 'futura.js'; ``` ### CDN Using unpkg CDN (ES5 UMD browser module): ```html <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> ``` ### GitHub Using GitHub ```bash $ git clone https://github.com/FuturaVision/FuturaJS.git ``` Add the script tag in your \<head><\/head> ```html <script src="futurajs/dist/futurajs.min.js" charset="utf-8"></script> ``` ## Examples Choose the moduls you want to use: ### Fixed Header Used for making header fixed when scrolling with animation ```javascript new fJs.Sticky({ elt: 'header-selector', }); ``` Exemple ```html <!DOCTYPE html> <html lang="fr"> <head> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <header id="staticHeader"> <ul> <li>BlakvGhost</li> <li>BlakvGhost 1</li> <li>BlakvGhost 2</li> </ul> </header> </body> <script type="text/javascript"> new fJs.Sticky({ elt: '#staticHeader', }); </script> </html> ``` #### Possible Properties | params | Value | | ----------------- | ------------------------------------------------------------------ | | elt: | header selector| | callback: | A callback function when the header is static | | fallback :| "A fallback function when the header become as default" | ---------------------------------------------------------------- ### Intersection Used for making animation type when an element is visible on the user screen ```javascript new fJs.Intersection({ elt: 'elements-selector', class: "list of your custom animation", root: null, ratio: 0.2, rootMargin: '0px', threshold: 0.7, }); ``` #### Possible Properties all the following properties are in object notation | params | Value | | ----------------- | ------------------------------------------------------------------ | | elt: | elements class selector| | class: | Custom Animation class when the element is visible in screen| ---------------------------------------------------------------- Exemple with animation.js library class ```html <!DOCTYPE html> <html lang="fr"> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <div class="revealElement"> <h3>First - A small JavaScript library for common tasks such as Carousel, Exception, Animation handler and more...</h3> </div> <div class="revealElement"> <h3>Second - A small JavaScript library for common tasks such as Carousel, Exception, Animation handler and more...</h3> </div> <div class="revealElement"> <h3>Third - A small JavaScript library for common tasks such as Carousel, Exception, Animation handler and more...</h3> </div> </body> <script type="text/javascript"> new fJs.Intersection({ elt: '.revealElement', class: "animate__animated animate__fadeInDown opacity-100", root: null, ratio: 0.2, rootMargin: '0px', threshold: 0.7, }); </script> </html> ``` ### AutoWriteText Used for writing text when it visible on the user screen ```javascript new fJs.AutoWriteText({ separator: 'separator', timeout: 'the time out in milisecond' }); </script> ``` Exemple ```html <!DOCTYPE html> <html lang="fr"> <head> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <h1 data-fv-anim='autowrite' data-fv-data="Write Here Your Text"></h1> </body> <script type="text/javascript"> new fJs.AutoWriteText({ separator: '|', timeout: 300 }); </script> </html> ``` ### NumberAutoCount Used for counting number in time interval when it visible on the user screen ```javascript new fJs.NumberAutoCount({ timeout: 300 }); ``` Exemple ```html <!DOCTYPE html> <html lang="fr"> <head> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <h1 data-fv-anim='countdown' data-fv-data='1000'></h1> </body> <script type="text/javascript"> new fJs.NumberAutoCount({ timeout: 300 }); </script> </html> ``` ### FvCarousel Used for creating a simply carousel ```javascript new FvCarousel('.fv-carousel',{ items: "Number of element per screen", margin: 'Margin between every element', prev: 'prev-button-selector', next: 'next-button-selector', autoplay: "A boolean to indicat if autoplay enabled", autoplaySpeed: 'A string for speed time', autoplayHoverPause: "A boolean to indicat if autoplayHoverPause enabled", timeout: "a number for the timeout in milisecond", allowDrag: "A boolean to indicate if allowDrag enabled", keyDirection: "A boolean to indicate if KeyDirection enabled", direction: 'horizontal or vertical', dots: { el: 'dots-selector', direction: 'dots direction' } }); ``` Exemple with bootstrap class ```html <!DOCTYPE html> <html lang="fr"> <head> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <div class="fv-carousel-main position-relative w-100" style="height: 500px;"> <div class="fv-dots position-absolute top-50" style="right: 2%"></div> <div class="fv-control"> <a style="z-index: 5" href="javascript:void(0)" class="btn btn-dark position-absolute start-0 top-50 fv-carousel-control-prev"><i class="mdi mdi-arrow-left-thin"></i></a> <a style="z-index: 5" href="javascript:void(0)" class="btn btn-dark position-absolute end-0 top-50 fv-carousel-control-next"><i class="mdi mdi-arrow-right-thin"></i></a> </div> <div class="fv-carousel"> <div class="fv-carousel-item"> <div class="position-relative w-100 h-100"> <div class="position-absolute h-100 w-100 top-0 start-0"> <img src="/static/img/test-3.jpg" alt="" class="w-100 h-100"> </div> <div class="position-absolute top-50 start-0 w-100"> <div class="w-50 m-auto p-2" style="z-index: 5;"> <button class="btn btn-primary">Next</button> </div> </div> </div> </div> <div class="fv-carousel-item"> <div class="position-relative w-100 h-100"> <div class="position-absolute h-100 w-100 top-0 start-0"> <img src="screenshot.png" alt="" class="w-100 h-100"> </div> <div class="position-absolute top-50 start-0 w-100"> <div class="w-50 m-auto p-2" style="z-index: 5;"> <button class="btn btn-primary">Next</button> </div> </div> </div> </div> <div class="fv-carousel-item"> <div class="position-relative w-100 h-100"> <div class="position-absolute h-100 w-100 top-0 start-0"> <img src="screenshot.png" alt="" class="w-100 h-100"> </div> <div class="position-absolute top-50 start-0 w-100"> <div class="w-50 m-auto p-2" style="z-index: 5;"> <button class="btn btn-primary">Next</button> </div> </div> </div> </div> <div class="fv-carousel-item"> <div class="position-relative w-100 h-100"> <div class="position-absolute h-100 w-100 top-0 start-0"> <img src="screenshot.png" alt="" class="w-100 h-100"> </div> <div class="position-absolute top-50 start-0 w-100"> <div class="w-50 m-auto p-2" style="z-index: 5;"> <button class="btn btn-primary">Next</button> </div> </div> </div> </div> <div class="fv-carousel-item"> <div class="position-relative w-100 h-100"> <div class="position-absolute h-100 w-100 top-0 start-0"> <img src="screenshot.png" alt="" class="w-100 h-100"> </div> <div class="position-absolute top-50 start-0 w-100"> <div class="w-50 m-auto p-2" style="z-index: 5;"> <button class="btn btn-primary">Next</button> </div> </div> </div> </div> </div> </div> </body> <script type="text/javascript"> new FvCarousel('.fv-carousel',{ items: 2, margin: '2px', prev: '.fv-carousel-control-prev', next: '.fv-carousel-control-next', autoplay: true, autoplaySpeed: '5s', autoplayHoverPause: true, timeout: 6000, allowDrag: false, keyDirection: true, direction: 'horizontal', dots: { el: '.fv-dots', direction: 'vertical' } }); </script> </html> ``` ### Preloader Make your page Preloader, which loads when the site is loading file and not ready ```html <!-- ADD THIS CUSTOM TAG JUST AFTER INSIDE BODY TAG --> <fv-preloader></fv-preloader> ``` Exemple ```html <!DOCTYPE html> <html lang="fr"> <head> <script src="https://unpkg.com/@futuravision/futura.js/dist/futurajs.min.js"></script> </head> <body> <fv-preloader></fv-preloader> </body> </html> ``` ## Tech Stack **Client:** HTML5, CSS3, ES6 ## Authors - [@v1p3r75](https://github.com/v1p3r75) - [@BlakvGhost](https://github.com/BlakvGhost) ## License [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/) [![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/) [![AGPL License](https://img.shields.io/badge/license-AGPL-blue.svg)](http://www.gnu.org/licenses/agpl-3.0) ## Support For support, email me on kabirou2001@gmail.com or join our Slack channel.
A small JavaScript library for common tasks such as Carousel, Exception, Animation handler, Auto Write Text, Auto Count Number in interval, static header and more...
animation,autowriter,carousel,javascript,librairy,reveal-on-scroll,typescript-library
2023-01-28T21:55:41Z
2023-02-26T22:50:50Z
2023-01-23T10:46:15Z
2
0
30
0
0
2
null
MIT
JavaScript
MisterNooblet/weekend_assigment7_world_population
master
# AppleSeeds Weekend Assigment 7 - World Population App This web app displays the population data of continents, countries and their cities. The data is fetched from two remote API's, and the app provides filtering and charting functionality of that data. ## Getting Started To get started with the project, follow these steps: Clone the repository: ```bash git clone https://github.com/MisterNooblet/weekend_assigment7_world_population.git ``` Install dependencies: ```bash npm install -g live-server ``` Move your terminal to cloned repository directory: ```bash cd <path-to-content> ``` Start the server: ```bash live-server . ``` Open localhost:8080 in a browser ## Demo https://ar-worldpop.netlify.app/ ## Features - Displays population data for continents countries and their cities - Allows filtering by continent, country and city - Provides charting functionality for continent, country and city data ## Dependencies `chart.js` for creating charts `RESTful API` https://restcountries.com/ for fetching continent data `POSTMAN API` https://documenter.getpostman.com/view/1134062/T1LJjU52/#intro for fetching country and cities data ## Project Development Roadmap ### Functionality: - Basic structure of the application and analyzing the source API's data - Filtering only countries that have data on both API's to avoid non functional buttons - Displaying data using Graph's - Disabling and enabling buttons while fetching data from remote API ### Design: - Basic styling - Styling buttons , and country buttons with their flag as background - Styling the graph's text color , background , and data colors ### Performance: - Make comparison of countries between two diffrent API's with `Promise.all` to avoid "freezing" the apps functionality - Store all remote data in browsers localstorage ### User Experience: - Add a spinner to indicate to the user that the data is loading. - Make application responsive for mobile and tablet devices. - Wrap buttons in a scroll box on small screens to avoid losing graph's responsivness functionality ### Documentation: - Comment code for general explanation of the functionality's flow - Add readme to the repository ## Lessons Learned - Working with multiple API's to cross data and filter it - Data massaging to the "guts" of the data - Breaking down my application's code to small parts that communicate with each other through a main controller script - Taking in cosideration of how the Callback Queue works after some long hour's of headache figuring out why stuff don't work the way i wanted. ## Authors - [@MisterNooblet](https://www.github.com/MisterNooblet) ## 🚀 About Me I'm a full stack development student. ## PS Feel free to use the code and don't forget to Star ⭐ the repository.
This web app displays the population data of continents, countries and their cities from a remote API.
css3,html5,javascript
2023-02-09T13:37:29Z
2023-02-12T05:58:59Z
null
1
0
36
0
0
2
null
null
JavaScript
OneDevDotMe/Finiancial-services-Moxie-Business-website-template
main
# Finiancial-services-Moxie-Business-website-template Finiancial website concept template Welcome to the repository for Finiancial services Website, an platform platform for providing finiancial services online. The website is built with HTML, CSS, and JavaScript. Features Responsive design for a seamless experience on all devices Easy navigation. Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Clone the repository to your local machine shell Copy code $ git clone https://github.com/OneDevDotMe/Finiancial-services-Moxie-Business-website-template.git Navigate to the project directory shell Copy code $ cd Bicycle-Ecommerce-website-template Open the index.html file in your browser to see the website in action. Contribution Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. Fork the Project Create your Feature Branch (git checkout -b feature/AmazingFeature) Commit your Changes (git commit -m 'Add some AmazingFeature') Push to the Branch (git push origin feature/AmazingFeature) Open a Pull Request License This project is licensed under the MIT License - see the LICENSE.md file for details.
Finiancial services Website, an platform platform for providing finiancial services online. The website is built with HTML, CSS, and JavaScript.
css,html5,javascript,website-template
2023-02-04T17:02:45Z
2023-02-04T17:09:56Z
null
1
0
3
0
0
2
null
MIT
JavaScript
vazqueztomas/cancheros
main
![cancheros flyer github](https://user-images.githubusercontent.com/78186062/217568933-f4fa05e5-7fae-42ae-bbc3-1c493e50bf14.png) # Cancheros ## Documentation <h6>English</h6> Cancheros is a web application made in React + NodeJS (with Express and MongoDB). You can configure your soccer team and keep a list with the matches you have been to, as if it were a history. The application is made with React, NodeJS, Mongo (db) and Express. For the styles I used styled-components. The API is hosted in <b><i>'Render'.</i></b> The client use a JSON with the names of the clubs, teams badges and the jerseys. The API and all functions we are created by 0, for better functionality system. We are using Github Actions to CI ## 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. <hr> ## Documentación <h6>Spanish</h6> Cancheros es una aplicación web realizada en React + NodeJS (con Express y MongoDB). Dentro de la aplicación podrás elegir tu equipo de futbol y llevar una lista de los partidos a los que hayas podido ir, como si fuera un historial. La aplicación utiliza tecnologías como React, NodeJS, MongoDB y Express. Para los estilos se utiliza styled-components. Para la api se utiliza <b><i>'Railway'</i></b> como hosting. The application is made with React, NodeJS, Mongo (db) and Express. For the styles I used styled-components. The API is hosted in <b><i>'Railway'.</i></b> El cliente utiliza un JSON con el nombre de los clubes, sus escudos y (próximamente) sus camisetas. La API y todas sus funciones fueron creadas desde cero para una mejor funcionalidad del sistema. ## Previews Dentro de la aplicación podrás: <ul> <li> Crear una cuenta con tu email, para guardar todos los datos de tu historial.<br> <img width="369" alt="Captura de pantalla 2023-03-09 a la(s) 16 21 25" src="https://user-images.githubusercontent.com/78186062/224132231-a1725a27-9dea-4807-9a12-c29b8cb1fc55.png"> </li> <li> Elegir tu equipo.<br> <img width="334" alt="Captura de pantalla 2023-03-09 a la(s) 16 23 15" src="https://user-images.githubusercontent.com/78186062/224132743-7ba234a8-0e13-4e66-afe0-003edf1716a2.png"> </li> <li> Guardar los datos de tus partidos, con el resultado exacto para recordarlo con lujo de detalles. <img width="338" alt="Captura de pantalla 2023-03-09 a la(s) 16 13 22" src="https://user-images.githubusercontent.com/78186062/224131393-763dc98a-84a0-49e3-aafb-ed0e7d19f487.png"> </li> </u> ## Contribución Son bienvenidos los pull request. Para cambios mayores, por favor abrir un 'issue' antes, asi discutimos y mantenemos el repositorio organizado. Por favor asegurarse que los test de 'upgrade' son apropiados.
cancheros is a web page for fans of 'futbol'.
react,react-router-dom,api-rest,expressjs,javascript,mongodb,mongoose,nodejs,styled-components
2023-01-27T17:08:39Z
2023-08-15T18:20:18Z
null
1
9
201
0
0
2
null
null
JavaScript
BrunoSantosLira/Twitter_clone_MVC
main
<h1>Projeto Twitter Clone</h1> <p>Esse é um projeto na qual foi replicado algumas funções da aplicação "Twitter". Foi utilizado o padrão de arquitetura MVC, PHP,HTML e CSS</p> <h2>Tecnologias utilizadas:</h2> <div> <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/html5/html5-original-wordmark.svg" > <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/css3/css3-original-wordmark.svg" > <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg" /> <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/bootstrap/bootstrap-original-wordmark.svg" /> <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/php/php-original.svg" /> <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mysql/mysql-original-wordmark.svg" /> <img width="40px" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/jquery/jquery-plain-wordmark.svg" /> </div> <h3> <a href="https://unexcited-blaze.000webhostapp.com">Acesse aqui o projeto </a> </h3>
Clone da rede social Twitter utilizando MVC
ajax,css3,html5,javascript,jquery,php
2023-01-29T14:58:58Z
2023-08-01T02:21:32Z
null
1
0
16
0
0
2
null
null
HTML
mustafahincal/talky
main
# Talky > Talky is a Full Stack Chatting App. > <br> > Uses Socket.io for real time communication and stores user details in encrypted format in Mongo DB Database. ## **Technologies and techniques used in the project** ### **Frontend** - **React** - **React-Bootstrap** - **Socket.io-Client** - **Axios** - **Context API** ### **Backend** - **Node JS** - **Express JS** - **Socket.io** - **Mongoose** ### **Database** - **Mongo DB** ## **Run Locally** Clone the project ```bash git clone https://github.com/mustafahincal/chat-app.git ``` Go to the project directory ```bash cd talky ``` Install dependencies ```bash cd client/ yarn install or npm install ``` ```bash cd server/ yarn install or npm install ``` Start the server ```bash cd server/ yarn start or npm start ``` Start the Client ```bash cd client/ yarn start or npm start ``` ## **Features** ### Authenticaton ![](screenshots/login.png) ![](screenshots/register.png) ### One to One chat ![](screenshots/chatPage.png) ### Real Time Chatting with Typing indicators ![](screenshots/typing.png) ### Search Users ![](screenshots/search-chats.png) ## **Made By** [Mustafa Hıncal](https://github.com/mustafahincal)
Talky is a Full Stack Chatting App. Uses Socket.io for real time communication and stores user details in encrypted format in Mongo DB Database. MERN Stack Application.
expressjs,javascript,mongodb,mongoosejs,nodejs,react,typescript,bootstrap-react,mern-stack
2023-01-29T12:41:36Z
2023-03-03T12:48:58Z
null
1
3
89
0
0
2
null
null
TypeScript
Yogeshvari2902/Amazon_Clone
main
# **TASK** > Our task is to create a pixel perfect clone of the famous e-commerce website Amazon.in with basic functionalities and good-looking user interface. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666037550387/3igNOC8a7.png" align="center"/> ## **PROJECT LINK** [DEPLOY](https://grand-marzipan-0bdba6.netlify.app/) ### **LANDING PAGE :** Our landing page looks like this:- <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666029339395/wKXBmoz-Q.png" align="left" margin="10px"/> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666029626863/q8lHkdwLU.png" align="left"/> This page has navbar and sidebar as we see in amazon.in website. At the bottom of the page, we have option to sign in and a footer. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666029488439/-GH74oaoj.png" align="left"/> ### **LOGIN & SIGN UP PAGE:** Once the user clicks on sign in button, it redirects it to sign in page. If user don't have an account then they have to click on "Create Account " button present at the bottom. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666029791616/3k2hzGvCs.png" align="left"/> Here if all the credentials match then only it will show login successful and redirect to the landing page, otherwise it will show an alert to fill in valid credentials. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666029950717/D0fUuxj1a.png" align="left"/> ### **PRODUCT PAGE :** From the search bar or from navbar you can get to any product page related to that item. Here on clicking Fashion on navbar or on searching "Fashion " in search bar it will show results for fashion. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666030016476/SQtFNjQck.png" align="left"/> Here, on clicking any of the category it will show results for that particular category. These pages have their separate filtering and sorting options form there the user can filter or sort products depending on its choice. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666030068827/KmpRR7hdj.png" align="left"/> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666030091634/uh41U_imb.png" align="left"/> ### **CART PAGE :** On clicking "Add To Cart " page it adds product to the cart. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666031116659/lmvu8TdaP.png" align="left"/> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666030783184/_hT7wO1M_.png" align="left"/> On clicking "delete" button product is removed from the cart and the user can increase the quantity of the product and the amount changes accordingly, the total can be viewed in the right side of the page. <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666031611695/GAVsY_RL9.png" align="left"/> On clicking "Proceed to buy" it will redirect to payment page. ### **PAYMENT PAGE :** <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666033093925/FAZMoNIn-.png" align="left"/> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1666033221572/-LEPbFv_h.png" align="left"/> ## **Challenges:** 1. Team Coordination. 2. Git handling. 3. Communication. (Worked Remotely) ### **ID & TECH TOOLS** VS-CODE GITHUB ## **TECHNOLOGIES USED** 1.HTML 2.CSS 3.JAVASCRIPT 4.JSON ## TEAM 1. Yogeshvari Surywanshi :- https://github.com/Yogeshvari2902 2. Nitik Bisht :- https://github.com/nitikbisht 3. Sanchit Jain :- https://github.com/Agramom 4. Adil Khan :- https://github.com/Adil-khan-007 5. Ujjwal Singh :- https://github.com/Lucverse > ## THANK YOU ! > TEAM AMAZON CLONE
Amazon.com is an American multinational technology company focusing on e-commerce, cloud computing, online advertising, digital streaming, and artificial intelligence.
css,html,javascript,json
2023-01-30T10:48:24Z
2023-02-01T05:38:47Z
null
1
0
3
0
0
2
null
null
HTML
AdrianMiftahulH/Learn-JavaScript
master
<br/> <p align="center"> <a href="https://codiyar.ir/wp-content/uploads/2021/08/javascript_banner_sxve2l.jpg"> <img src="https://codiyar.ir/wp-content/uploads/2021/08/javascript_banner_sxve2l.jpg" alt="Logo" style="object-fit: cover !important; width: 100vw !important; height: auto !important;"> </a> <h1 align="center">Learn Javascript</h1> <p align="center"> Here, I am recalling and relearning about vanilla javascript </p> </p> - 👾 There are bugs / discussions can be clicked [Discussions](https://github.com/AdrianMiftahulH/Learn-JavaScript/issues) ## 🛠 Programming languages used : <p> <a href="https://www.w3.org/html/" target="_blank" rel="noreferrer"> <img src="https://skillicons.dev/icons?i=html&theme=dark" alt="html5" width="30" height="30"/> </a> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <img src="https://skillicons.dev/icons?i=css&theme=dark" alt="css3" width="30" height="30"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://skillicons.dev/icons?i=js&theme=dark" alt="javascript" width="30" height="30"/> </a> <a href="https://getbootstrap.com" target="_blank" rel="noreferrer"> <img src="https://skillicons.dev/icons?i=bootstrap&theme=dark" alt="bootstrap" width="30" height="30"/> </a> </p> ## I Learn From : <div> <a href="https://youtu.be/SDROba_M42g" target="_blank"> <img src=https://img.shields.io/badge/youtube-%23EE4831.svg?&style=for-the-badge&logo=youtube&logoColor=white alt=youtube style="margin-bottom: 5px;" /> </a> <a href="https://youtu.be/aviAyIK5oSU" target="_blank"> <img src=https://img.shields.io/badge/youtube-%23EE4831.svg?&style=for-the-badge&logo=youtube&logoColor=white alt=youtube style="margin-bottom: 5px;" /> </a> <a href="https://youtu.be/ljSCNdV8eDo" target="_blank"> <img src=https://img.shields.io/badge/youtube-%23EE4831.svg?&style=for-the-badge&logo=youtube&logoColor=white alt=youtube style="margin-bottom: 5px;" /> </a> </div> ## What did I learn: 1. JavaScript-Basic - Type Data - Operator - Looping - Condition - Function - Array - Object - Getter and Setter - [Other](https://github.com/AdrianMiftahulH/Learn-JavaScript/tree/master/JavaScript-Basic) 2. JavaScript-OOP - Object Class - Construct Class - Inheritance Class - Field Class - Prototype - [Other](https://github.com/AdrianMiftahulH/Learn-JavaScript/tree/master/JavaScript-OOP) 3. JavaScript-DOM - Document - Get Element By Id, Get Element By Id, Get Class By Class Name, Oher - Event - [Other](https://github.com/AdrianMiftahulH/Learn-JavaScript/blob/master/JavaScript-DOM/app.js)
Here, I am recalling and relearning about vanilla javascript
javascript,javascript-oop,javascript-vanilla
2023-02-01T04:25:55Z
2023-02-22T23:02:29Z
null
1
1
8
0
1
2
null
null
HTML
GGabi40/PointsCounter
main
<h1>Points Counter</h1> <p>This project was maded for Alura's Challenge, 5 days coding JavaScript.</p> <br> <h2>Points Counter+</h2> <img src="./assets/preview.png" alt="Preview" style="border: 3px solid yellow;"> <br> <hr> <h2>📚Tecnologies:</h2> <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> <li>Git and Github</li> </ul> <hr> <h2>💻Project:</h2> <p>This project aims to help people who play games that need to count points. Often, they don't have a paper available to use and this page is special to help them.</p> <p>Visit the Project Online: <a href="https://ggabi40.github.io/PointsCounter">https://ggabi40.github.io/PointsCounter</a></p> <br> <p>Desenvolved by GGabi40 | Inspired by Alura.</p>
4th and 5th Day of Alura's Challenge.
css,html,javascript,git,github
2023-02-06T21:19:30Z
2023-02-08T22:13:24Z
null
1
0
2
0
0
2
null
null
CSS
KiriLL4101/the-algorithm-challenge
master
# The Algorithm Challenge [![Tests](https://github.com/KiriLL4101/the-algorithm-challenge/actions/workflows/tests.yml/badge.svg)](https://github.com/KiriLL4101/the-algorithm-challenge/actions/workflows/tests.yml) I started this repo using Typescript, I want like to practice Rust too. So let's practice the algorithms and data-structures using Typescript! (The exercises are from FreeCodeCamp) ## Process I copy and paste the instructions from FreeCodeCamp, then I write the tests and finally I try to resolve the problem. ## Installation ### Common Download the project locally. ```bash git clone https://github.com/KiriLL4101/the-algorithm-challenge.git cd the-algorithm-challenge ``` ### Typescript part This project needs `node` and `npm`/`yarn`. ```bash cd typescript yarn yarn test yarn start # Watch mode ```
📝 Let's practices the algorithms and data-structures using only Typescript and TDD (The exercises are from FreeCodeCamp, Rosetta code and Euler project)
algorithms,data-structures,jest,tdd,typescript,javascript
2023-01-30T10:38:21Z
2023-06-14T14:01:28Z
null
1
0
19
0
0
2
null
null
TypeScript
Rafa-KozAnd/Ignite_Node.js_Challenge_03
main
<p align="center"> <img src="http://img.shields.io/static/v1?label=STATUS&message=Concluded&color=blue&style=flat"/> <img alt="GitHub language count" src="https://img.shields.io/github/languages/count/Rafa-KozAnd/Ignite_Node.js_Challenge_03"> <img alt="GitHub language count" src="https://img.shields.io/github/languages/top/Rafa-KozAnd/Ignite_Node.js_Challenge_03"> <img alt="GitHub repo file count" src="https://img.shields.io/github/directory-file-count/Rafa-KozAnd/Ignite_Node.js_Challenge_03"> <img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Rafa-KozAnd/Ignite_Node.js_Challenge_03"> <img alt="GitHub language count" src="https://img.shields.io/github/license/Rafa-KozAnd/Ignite_Node.js_Challenge_03"> </p> # Ignite_Node.js_Challenge_03 Node JS challenge done with 'Rocketseat' Ignite course. ("Desafio 03 - Corrigindo o código") # 💻 Sobre o desafio Nesse desafio, temos uma aplicação Node.js que está em processo de desenvolvimento mas que já possui os testes necessários para fazer toda a validação dos requisitos (você não deve mexer nos testes). Após algumas alterações no código da aplicação, parte dos testes deixaram de passar e agora só você pode resolver esse problema. Bora lá? 🚀 Essa aplicação realiza o CRUD (**C**reate, **R**ead, **U**pdate, **D**elete) de repositórios de projetos. Além disso, é possível dar likes em repositórios cadastrados, aumentando a quantidade de likes em 1 a cada vez que a rota é chamada. A estrutura de um repositório ao ser criado é a seguinte: { id: uuid(), title, url, techs, likes: 0 } Descrição de cada propriedade: - **id** deve ser um uuid válido; - **title** é o título do repositório (por exemplo "unform"); - **url** é a URL que aponta para o repositório (por exemplo "[https://github.com/unform/unform](https://github.com/unform/unform)"); - **techs** é um array onde cada elemento deve ser uma string com o nome de uma tecnologia relacionada ao repositório (por exemplo: ["react", "react-native", "form"]); - **likes** é a quantidade de likes que o repositório recebeu (e que vai ser incrementada de 1 em 1 a cada chamada na rota de likes). Note que a quantidade de likes deve sempre ser zero no momento de criação.
Node JS challenge done with 'Rocketseat' Ignite course. ("Desafio 03 - Corrigindo o código")
nodejs,ignite,ignite-nodejs,ignite-rocketseat,javascript,rocketseat
2023-01-30T19:38:10Z
2023-04-20T13:22:22Z
null
1
0
3
0
0
2
null
null
JavaScript
Munyabelden/Munya
main
<a name="readme-top"></a> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#triangular_flag_on_post-deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [❓ FAQ (OPTIONAL)](#faq) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # Portfolio Mobile Page **Portfolio Mobile page is a step by step project on building a personal portfolio to use on applications and advertising myself. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a >index.html</a></li> <li><a >style.css</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **[Used Html and Css linters to help me identify errors in my code]** - **[Google fonts and Font Awesome icons for my links and buttons]** - **[Parsed images, fonts and colors from figma replicating the template I chose]** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://yourdeployedapplicationlink.com) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> ### Prerequisites In order to run this project you need: -Installation of Git -installation of NPM -A code editor like Visual Studio Code -Internet connection -Live server pluggins unstallation -Working Browser ### Setup Clone this repository to your desired folder: ssh key: git@github.com:Munyabelden/PortfolioMobilePage.git -Open Git Bash -Type in git clone (and paste the link) then press enter ### Install Install this project with: ### Usage To run the project, execute the following command: -_create a index .html file -Make sure Live-server Extention is installed on your code editor -Right click and select live server ### Run tests To run tests, run the following command: ### Deployment You can deploy this project using: <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Author1** - GitHub: [@githubhandle](https://github.com/githubhandle) - Twitter: [@twitterhandle](https://twitter.com/twitterhandle) - LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle) 👤 **Author2** - GitHub: [@githubhandle](https://github.com/githubhandle) - Twitter: [@twitterhandle](https://twitter.com/twitterhandle) - LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> \ - [ ] **Javascript to make more animated and responsive make, make the hamburger menu responsive** - [ ] **Add a contact form** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project... <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank... <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FAQ (optional) --> ## ❓ FAQ (OPTIONAL) <a name="faq"></a> - **[Question_1]** - [Answer_1] - **[Question_2]** - [Answer_2] <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license" href="https://github.com/Munyabelden/PortfolioMobilePage/blob/main/LICENSE">Mit.md</a>
This repo was created for bootstrap practice, while building a portfolio from scratch
bootstrap5,css,html,javascript
2023-01-30T09:04:00Z
2023-01-27T11:51:06Z
null
2
0
44
0
0
2
null
MIT
HTML
Rachelwebdev/JavaScriptCapstone
main
# SHOWS.COM <a name="readme-top"></a> <div align="center"> <br/> <h3><b>SHOWS.COM</b></h3> </div> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [SHOWS.COM](#showscom) - [📗 Table of Contents](#-table-of-contents) - [📖 SHOWS.COM ](#-showscom-) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [🚀 Live Demo ](#-live-demo-) - [💻 Getting Started ](#-getting-started-) - [Prerequisites](#prerequisites) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) <!-- PROJECT DESCRIPTION --> # 📖 SHOWS.COM <a name="about-project"></a> **SHOWS.COM** is a webpage for the very popular TV shows. The project is the second Capstone project in the Microverse curriculum. The project uses Webpack for bundling, TVMaze API for episode details and Involvement API for comments and likes for each episode. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <ul> <li>HTML/CSS</li> <li>Javascript</li> <li>Webpack</li> <li>Jest</li> </ul> <!-- Features --> ### Key Features <a name="key-features"></a> - **Home Page and Popup windows** - **Responsive webpage** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://rachelwebdev.github.io/JavaScriptCapstone/dist/) A video presentation of the project can be found in this [Video Link](https://drive.google.com/file/d/1DmzJsqTNP60CFShydc14jUIZJu6FAXDg/view?usp=share_link) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need the following installed in the machine: <ul> <li>Git</li> <li>Nodejs</li> <li>Github account</li> <li>Code editor(eg:VS code) or your preferred IDE</li> <li>Web browser of your choice</li> </ul> ### Setup Clone this repository to your desired folder: ```sh cd <desired folder> git clone git@github.com:Rachelwebdev/JavaScriptCapstone.git ``` ### Install Install this project with: ```sh cd <cloned repo> npm install ``` The commands will install the required node modules, used in the project, in your local machine. ### Usage To run the project, execute the following command: ```sh npm run start ``` The above command will start webpack devserver and the webpage will be rendered in your default browser. ### Run tests To run tests, run the following command: ```sh npm run test ``` The above command will run the test suites that come with the project, using `jest`. You can add more test cases to the `src/__tests__/` folder. ### Deployment You can deploy this project using: ```sh npm run build ``` The above command creates webpack distribution files in `/dist` folder. The files can be deployed using Github pages or any other hosting service. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Rachel Isaac** - GitHub: [@rachelwebdev](https://github.com/Rachelwebdev) - Twitter:[@rachelisaac13](https://twitter.com/Rachelisaac13) - LinkedIn: [Rachel Isaac](https://www.linkedin.com/in/rachelisaac13/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - **Add more season details** - **Add a comment form and display user comments on the page** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Please feel free to contribute to the project. Please log issues and bugs using the below link. [issues page](https://github.com/Rachelwebdev/JavaScriptCapstone/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project please provide a ⭐️ to the [project github repo](https://github.com/Rachelwebdev/JavaScriptCapstone). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> We would like to thank [TVMaze](https://www.tvmaze.com) for the free API service. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](https://github.com/Rachelwebdev/JavaScriptCapstone/blob/develop/LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
A webpage for the very popular TV shows. The project is the second Capstone project in the Microverse curriculum. The project uses Webpack for bundling, TVMaze API for episode details and Involvement API for comments and likes for each episode.
api-rest,html,javascript,webpack
2023-02-06T13:05:17Z
2023-02-10T19:18:30Z
null
1
7
42
22
0
2
null
MIT
JavaScript
berikidis/tic-tac-toe-reactjs
main
# TicTacToe Game! ![tic-tac-toe-game](https://user-images.githubusercontent.com/76853663/217308790-efd9586a-1ed0-4271-9fbb-423ec033afad.gif) ## Install Install dependencies: ```bash npm install ``` Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes. You may also see any lint errors in the console. ```bash npm start ``` Builds the app for production to the `build` folder. ```bash npm run build ``` ## Contributing If you're interested in contributing to this app feel free. If you're interested in contributing to TicTacToe, please read [contributing docs](https://github.com/berikidis/tic-tac-toe-reactjs/blob/readme/CONTRIBUTING.md) before submitting a pull request.
Tic Tac Toe is a classic game that is enjoyed by people of all ages. ReactJS provides logic, TailwindCSS provides design. Both frameworks make a functional and visually appealing game.
javascript,reactjs,tailwindcss,tic-tac-toe,tic-tac-toe-react,game
2023-02-07T15:07:58Z
2023-05-02T20:19:33Z
null
1
2
15
0
2
2
null
MIT
JavaScript
sanjaiyan-dev/SanPasJS
master
# What is SanPasJS ? **SanPasJs** is a super fast transpiler that helps to compile your Pascal code to Javascript code. This helps to open the bridge between CLI and GUI. > Let's Start Just want to try it out? Go to the [Installation](https://sanpasjs.web.app/guides/what-is-sanpasjs.html). ## Use Cases - Helps to run your CLI based pascal program in web browsers. - Helps to interact with GUI based web development environment. ## Developer Experience _SanPasJs_ aims to provide a great Developer Experience (DX) when working with web development as a pascal programmer. - _SanPasJs_ supports most of the [Turbo Pascal](https://en.wikipedia.org/wiki/Turbo_Pascal) based syntax. - Transpiles the code super fast while using very less runtime memory.
Compile your Pascal code to Javascript code which can be run in the web browsers 💻🕸💻
compiler,javascript,pascal,rust,hacktoberfest
2023-01-27T20:42:02Z
2023-10-03T15:23:27Z
null
1
0
35
0
0
2
null
Apache-2.0
Rust
ShivankK26/URL-Shortener
main
<!-- ABOUT THE PROJECT --> # About The Project ![Screenshot 2023-04-04 at 1 18 46 PM](https://user-images.githubusercontent.com/115289871/229724501-a173edf5-d2ba-4d9e-8f2e-9ade7d1ddbec.png) In this Project, I've built a WebApp using which you can create a shorter form of any URL which you want to. It can be used by Social Media Influencers in order to appropriately design their posts so that the URL occupies minimum space and has many other practical applications too. So, just have fun!!! Use the `README.md` to get started. # Built With The Tech Stacks use are: <div align="center"> <a href="https://skillicons.dev"> <img src="https://skillicons.dev/icons?i=mongodb,expressjs,nodejs,js,bootstrap,ejs" /> </a> </div> <!-- GETTING STARTED --> # Getting Started To get started, create a file called server.js and import all the required modules in it. After that create a folder called views and place the index.ejs file in it. Also, create another folder called models in which add the mongoDB connecting file. To shorten our links we'll use the shortId module from mongoDB. * modules ```sh const express = require('express') const mongoose = require('mongoose') const ShortUrl = require('./models/shortUrl') const app = express() ``` * ejs connectivity ```sh app.set("view engine","ejs") ``` * shortId module ```sh const mongoose = require('mongoose') const shortId = require('shortid') ``` ## Prerequisites To begin with our Project, we'll need to install some npm packages like node, express, mongoose, mongo, ejs using the command given below. We'll also need to install the shortId module. * npm ```sh npm install node express mongo mongoose ejs ``` * Some other modules ```sh const mongoose = require('mongoose') const shortId = require('shortid') ``` * To ease the process of development, we'll install nodemon (Make sure you already have nodemon installed in your system, if not then [visit here](https://nodemon.io/)). ```sh npm i nodemon ``` ## Installation In this Project, we'll use the schema method from mongoDB in order to create an object wherein we can perform all the operations. In order to create a URL Shortener we'll shortId.generate command to generate a shortID automatically. ```sh // This is inside the mongoDB schema object. short: { type: String, required: true, default: shortId.generate }, ``` <!-- CONTACT --> # Contact Your Name - Shivank Kapur - shivankkapur2004@gmail.com Project Link:
In this Project, I've built a WebApp using which you can create a shorter form of any URL which you want to. The Tech Stacks which I've used are: Bootstrap, EJS, MongoDB, Node.js, Express.js. So, just explore this WebApp and have fun!
backend,expressjs,mongodb,mongoose,nodejs,bootstrap,ejs,javascript
2023-01-31T17:22:58Z
2023-04-04T07:51:44Z
null
1
0
11
0
0
2
null
null
JavaScript
motivation-podium/motiation-podium-backend
main
Instructions: To install dependencies - npm install To run the code in live reload mode, use command - npm run dev To run the app - npm start Note: If you are running an application on a port XXXX, copy the url from the bar and attach the url with port https://your-url.ineuron.app:XXXX to see the output.
null
javascript,nodejs
2023-02-03T15:34:35Z
2023-02-19T12:10:56Z
null
4
0
15
0
1
2
null
null
JavaScript
agusscript/simon-says-game-js
main
# Simon Says The classic memory game Simon Says - Made with JavaScript. - Desktop view ![](assets/images/Simon-says-active.png) - Mobile view ![](assets/images/Simon-says-mobile.png) ## Link - [You can play a demo here](https://simon-says-game-js.vercel.app/) ## Built with <p> <a href="https://developer.mozilla.org/en-US/docs/Glossary/HTML"> <img src="https://img.shields.io/badge/-HTML5-E34F26?style=flat-square&logo=html5&logoColor=white" height="30" alt="HTML5"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/CSS"> <img src="https://img.shields.io/badge/-CSS3-blue?style=flat-square&logo=CSS3&logoColor=white" height="30" alt="CSS3"/> </a> <a href="https://sass-lang.com/"> <img src="https://img.shields.io/badge/-Sass-ff69b4?style=flat-square&logo=SASS&logoColor=white" height="30" alt="Sass"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"> <img src="https://img.shields.io/badge/-JavaScript-yellow?style=flat-square&logo=Javascript&logoColor=white" height="30" alt="JavaScript"/> </a> </p> - Semantic HTML5 markup - CSS custom properties - Sass - Flexbox - Grid - Media queries and responsive design - JavaScript functions, arrays and DOM events ## Author - Linkedin - [Agustin Emanuel Sanchez](https://www.linkedin.com/in/agustin-emanuel-sanchez-4b2807240/) - Frontend Mentor - [@agusscript](https://www.frontendmentor.io/profile/agusscript) - CodePen - [Agustin Sanchez](https://codepen.io/agusscript) - Twitter - [@agus_script](https://twitter.com/agus_script)
The classic game Simon Says made with Js
html-css,javascript,responsive-web-design,sass
2023-02-09T17:30:02Z
2023-03-31T14:54:12Z
null
1
2
21
0
1
2
null
null
SCSS
lukaesch/sidebyside
main
# SideBySide: A Simple SPA for Comparisons This is a simple single-page application (SPA) written in Vanilla JavaScript to demonstrate the differences between Rust and Java programming languages. The SPA allows you to switch between the pages using left/right arrow keys or by clicking on the bottom navigation. [Try it here](https://lukaesch.github.io/sidebyside/) ## Features: - Compare two blocks of text - Easy navigation through pages - Written in Vanilla JavaScript for easy modification, no SPA-framework bloatware 😎 - Synthwave design ## Use Cases (ideas): - Comparing the differences between two versions of source code - Comparing the output of two algorithms - Comparing the results of two experiments - Comparing the syntax of two programming languages - Comparing the features of two products or services - Comparing the benefits and drawbacks of two approaches - Comparing the differences between two texts or articles - Comparing the results of two surveys or polls - Comparing the prices and specifications of two products. The opportunities are limitless! ## How to Use: Replace the ``codeSnippets`` variable with your own content to compare other programming languages or topics. If you don't want to create content yourself, paste the ``codeSnippets`` content to ChatGPT and write the prompt: "Use this JSON as a reference and replace the value for a new comparison between topicA and topicB". ## Contributing: This project is open to contributions from other developers. If you have any suggestions or improvements, feel free to submit a pull request. Happy Presenting! We hope this simple SPA helps you in your presentations and code comparison needs. Have fun!
A simple SPA written in Vanilla JS to present the differences between Rust and Java
java,rust,html,javascript,tailwindcss
2023-02-05T21:29:54Z
2023-02-05T22:52:31Z
null
1
0
10
0
0
2
null
null
HTML
SarahSalvatore/Condensed-server
main
# CONDENSED - URL Shortener ![JavaScript badge](https://img.shields.io/badge/build-JavaScript-yellow) ![Node Badge](https://img.shields.io/badge/build-Node.js-green) ![MongoDB badge](https://img.shields.io/badge/build-MongoDB-brightgreen) ![Site Screenshot](public/images/readme_pic1.jpg) ## Live Demo Find the live demo here: [https://condensed.netlify.app/](https://condensed.netlify.app/) ## Introduction CONDENSED is a URL shortener that converts long URL links to shorter, more concise links. ## How it Works The original URL is represented by a 7 digit slug. The slug is created with nanoid and a hexidecimal numbering system with base 16. There are 4.29 billion possible combinations for slug creation. Original URLs and slugs are stored in the database. Before creating a new slug, the request body is validated to ensure it is a legitimate URL, and that it does not previously exist within the database. If the URL is found within the database, the existing slug is returned. Slugs are generated by nanoid and checked against the database to ensure each one is unique. ## How to Use To create a shortened URL link, users can paste their original URL into the input box and click the SHORTEN URL button. The new URL will appear on screen and can be tested by clicking the link itself and copied by clicking the clipboard icon. ## Stack - HTML & CSS - JavaScript - Node.js / Express - MongoDB / Mongoose ## Usage Suggestions, forks and pull requests are always welcome. Please give the project a star on GitLab if you are using the project. ## License MIT License Copyright (c) [2022] [Sarah Salvatore] 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. ## Created By Sarah Salvatore - email: sarah.h.salvatore@gmail.com - linkedin: [Sarah Salvatore](https://www.linkedin.com/in/sarah-salvatore-full-stack-developer/)
Transform long URLs into concise links that can be used anywhere.
express,javascript,mongodb,mongoose,nodejs,url-shortener
2023-02-01T20:34:09Z
2023-02-02T18:19:00Z
null
1
0
7
0
0
2
null
null
JavaScript
ghenriquev/portfolio
main
<h1 align="center"> Portfólio - Gabriel Henrique </h1> <p align="center"> Esse é o meu Portfólio, que inclui os meus principais projetos e tecnologias que utilizo. <br/> </p> <p align="center"> <a href="#-tecnologias">Tecnologias</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href="#-projeto">Projeto</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href="#-contato">Contato</a> </p> <br> <p align="center"> <img alt="Imagem Home Portfolio" src="./assets/portfolio.PNG" width="75%" height="75%"> </p> ## 🚀 Tecnologias Esse projeto foi desenvolvido com as seguintes tecnologias: - HTML - CSS - JavaScript - jQuery - Git e Github ## 💻 Projeto - [Visite o projeto online](https://ghenriquev.github.io/portfolio) # 📧 Contato <a href = "mailto:gabriel.emv@hotmail.com"><img src="https://img.shields.io/badge/Microsoft_Outlook-0078D4?style=for-the-badge&logo=microsoft-outlook&logoColor=white" target="_blank"> <a href="https://www.linkedin.com/in/ghenriquev" target="_blank"><img src="https://img.shields.io/badge/-LinkedIn-%230077B5?style=for-the-badge&logo=linkedin&logoColor=white" target="_blank"></a> </div>
Portfólio - Gabriel Henrique
css,html,git,github,javascript
2023-01-26T02:24:59Z
2023-10-16T22:25:15Z
null
1
3
44
0
0
2
null
null
HTML
MisterNooblet/weekend_assigment5_dice_game
master
# AppleSeeds Weekend Assigment 5 - Dice Game This is a 2 Players *(blackjack like)* dice game.. Players pick a target score and each roll and hold untill one of them reaches the target score or passes it. More specific rules and mechanics will be explained below. ## Demo https://highrollerdice.netlify.app/ ## Game Rules In your turn - roll the dice [at least once] and accumulate the result in "Current". You can roll again or click "Hold" to save the points from "Current" and end the turn. **Note!** If you get 6-6 - you will lose all points from "Current" and the turn will go to your opponent. If you managed to reach exactly the target score - you win! If you passed it - you lose. ## Project Phases of development and Roadmap - ~~Design , Draw images and borders~~ - ~~Implement basic HTML "Skeleton"~~ - ~~Basic styling with CSS~~ - ~~Tagging HTML Elements with classes and id's for DOM reference~~ - ~~Declaring and targeting all DOM elements from game engine's script.~~ - **Developing Game Engine step by step** - ~~Implementing Dice Rolling feature.~~ - ~~Implementing Holding score feature and passing the turn.~~ - ~~Implementing victory state function.~~ - ~~Adding AI To compete against.~~ - ~~Implementing new game function.~~ - ~~Refactoring and commenting code.~~ ## 🛠 Resources Breakdown **Game Engine:** JavaScript **UI:** HTML , CSS **ART:** PixelArt Drawn by me. ## Lessons Learned - Sharpened my DOM Manipulation abilities even more. - Improved my code structure and variable naming while trying to make the code as DRY as possible. - Used localStorage for the first time. ## Authors - [@MisterNooblet](https://www.github.com/MisterNooblet) ## 🚀 About Me I'm a full stack development student. ## PS Feel free to use the code and art as you wish and don't forget to Star ⭐ the repository.
This is a 2 Players (blackjack like) dice game..
css,html5,javascript
2023-01-26T12:15:56Z
2023-01-29T06:39:40Z
null
1
0
40
0
0
2
null
null
JavaScript
ShivankK26/The-Simon-Game
main
<!-- ABOUT THE PROJECT --> # About The Project ![Screenshot 2023-04-03 at 11 46 06 PM](https://user-images.githubusercontent.com/115289871/229593192-9a6b6d92-3abd-4de3-80db-2a7f4e242085.png) In this Project, I've built a game called Simon Game, which you can play and have fun. So, just enjoy it!!! Use the `README.md` to get started. <!-- BUILT WITH --> # Built With The Tech Stacks used are: <div align="center"> <a href="https://skillicons.dev"> <img src="https://skillicons.dev/icons?i=html,css,js" /> </a> </div> <!-- GETTING STARTED --> # Getting Started To get started, create the basic UI for the game using HTML and CSS. After that, use JavaScript for creating logics and performing functions in it. <!-- CONTACT --> # Contact Name: Shivank Kapur - shivankkapur2004@gmail.com Project Link: https://shivankk26.github.io/The-Simon-Game/
In this Project, I've built a game called Simon Game, which you can play and have fun. The tech stacks which I've used in it are: HTML, CSS, JavaScript, and Jquery. So just enjoy it!!!
css,html,javascript
2023-01-26T07:53:59Z
2023-04-04T05:35:59Z
null
1
0
6
0
0
2
null
null
JavaScript
Heini-Maria/signup-form
master
# SignUp Form Landing page -team project with a user friendly sign up form. ## Preview See the final product: https://heini-maria.github.io/signup-form/ ![signup](https://user-images.githubusercontent.com/115211431/216787829-656e6acf-5344-46b6-a894-97b9c123393a.png) ## About the project This project was created in the Brainnest Advanced Frontend Development course. The purpose of the project was to build a page with a functional sign up form, based on given design. ## Features * input validation * instant feedback for the user * error messages ## Technologies * HTML * CSS * JavaScript * Git ## Team This project was a team effort from: * Hossein Ghanbari / @artsyl3 * Ståle Konstad Bjørdal / @SnuggleTrouble * Alexandru-Catalin Barcan / @cbarcan * Heini-Maria Kotipelto @Heini-Maria
Team work: Sign up form with form validation ✅
css,form-validation,html5,javascript
2023-01-30T15:31:28Z
2023-02-04T20:13:13Z
null
4
17
48
0
3
2
null
null
HTML
maakosu2/profile_page_chakra-ui
master
# profile_page_chakra-ui # the project is a project build using chakra-ui and formik #React.js #HTML #Chakra UI #React Hooks Installation: npm install to run project use the code : npm start Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. Live Demo is that the Link https://nimble-cactus-efbf14.netlify.app
Price List Page
chakra-ui-react,icons,javascript,react
2023-02-04T13:10:11Z
2023-04-14T20:45:59Z
null
1
0
20
0
0
2
null
null
JavaScript
shayanfpg9/mana
master
status: [online](https://sampadycode.github.io/mana/) develop: 1.You must have npm, nodeJs and git, so check if you have these: ```shell npm -v git --version node -v ``` 2. Clone it on your system and install the prerequisites: ```shell git clone https://github.com/SampadyCode/mana.git npm i ``` 3. Open it in your browser: ```shell yarn start ``` then visit http://localhost:3000/mana 4. Make it better and then submit a pull request ❤ Thanks for your great work
Mana Science League
javascript,react,school-project,spa
2023-02-04T08:44:45Z
2023-02-21T18:17:07Z
2023-02-21T15:48:31Z
1
0
96
0
0
2
null
MIT
JavaScript
BillStephens2022/Expense-Tracker-MERN
main
# Expense-Tracker-MERN<br>![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ## Description Expense Tracker is a full stack MERN app which allows users to track their personal expenses. Upon sign in, a user can enter expense transactions and categorize them as essential vs non-essential and into various sub-categories (Housing, Food, Utilities, Entertainment, etc). Expenses are displayed by category into pie charts. The app also features a compound interest calculator so users can run scenarios where they might save a certain percentage of their non-essential expenses per month and see how much that translates into long term gains. Screenshots: ![screenshot_1](./client/public/images/appScreenshot1.png) ![screenshot_2](./client/public/images/appScreenshot2.png) ![screenshot_3](./client/public/images/appScreenshot3.png) ![screenshot_4](./client/public/images/appScreenshot4.png) ## Table of Contents - [Installation](#installation) - [Usage](#usage) - [License](#license) - [Contributors](#contributors) - [Tests](#tests) - [Questions](#questions) ## Installation deployed app URL: https://expense-tracker-mern.herokuapp.com/ ## Usage sign up/log in to deployed URL above ## License This application is covered under the MIT License. <br>For more information: https://opensource.org/licenses/MIT ## Contributors Bill Stephens https://github.com/BillStephens2022 <br> Jonathan Plaras https://github.com/pljon <br> Joe Sedlak https://github.com/jsedlak146 <br> Marc Nicolas https://github.com/marcnicolas0915 <br>
A full stack expense tracking application that allows you to enter your expense transactions and categorize. Visualize your expenses summarized by category in colorful pie charts. Plus more!
apollo-graphql,chartjs,expressjs,mongodb,mongoose,nodejs,react-hooks,react-router,reactjs,jsonwebtoken
2023-02-08T19:52:16Z
2023-06-19T20:10:50Z
null
4
41
161
0
1
2
null
MIT
JavaScript
GabrielCoutz/Login-com-JWT
main
null
Aplicação FULLSTACK para login de usuário e alteração de dados, utilizando JWT para autenticação.
api,graphql,javascript,react,reactjs,restful-api,typescript,sass,apollo-server,nextjs
2023-01-31T16:16:21Z
2023-02-05T13:21:14Z
null
1
0
40
0
0
2
null
null
TypeScript
Amirsamrezv/Perspective-site-template
main
# Perspective-site-template Undoubtedly, to have a good business, having an attractive website will be very helpful and effective, the Perspective template is an HTML template with a very beautiful and powerful design to start your business. Features and features of the Perspective site template Unique design Complete reactivity High loading speed due to the lightness of the template Standard coding Using the latest HTML5, CSS3 method Use the same font Persianized Optimized for all browsers And many other features...
Undoubtedly, to have a good business, having an attractive website will be very helpful and effective, the Perspective template is an HTML template with a very beautiful and powerful design to start your business.
css,css3,html,html5,javascript,bootstrap,developer,developer-tools,development
2023-01-28T16:07:07Z
2023-01-28T16:11:34Z
null
1
0
3
0
0
2
null
null
null
ariflogs/t2c
main
Test the code snippets you see floating around social media! How?? Checkout this [demo](https://youtu.be/YCXkOkLZivc) ## Roadmap - [x] MVP - [ ] JS Object Output - [ ] Syntax Highlighting - [ ] TypeScript Support - [ ] Move code compilation to serverside ## License Licensed under the [MIT license](https://github.com/shadcn/ui/blob/main/LICENSE.md). ## Note > This is still a very early version. I'm working on improving the product. If you wanna contribute as well, feel free to raise an issue or let me know your feedback [@ariflogs](https://twitter.com/ariflogs)
Test temporary code with ease
code-editor,editor,online-editor,javascript
2023-01-28T20:57:58Z
2023-01-28T21:54:58Z
null
1
0
3
0
0
2
null
null
TypeScript
aisyakareninaa/TugasPraktikum_Chapter2_FE_Kelompok1
edit-alya
# What's On Our Project Eunoia Group from SMK Telkom Malang ## Build by : 1. Aisya Karenina Ramadhani [@aisyakareninaa](https://github.com/aisyakareninaa) 2. Alya Rusyda Maharistya [@AlyaRusyda](https://github.com/AlyaRusyda) 3. Celline Regia Yasshinta [@CellineLin](https://github.com/CellineLin) 4. Gizella Ratu Pramesti [@gizsella](https://github.com/gizsella) ## Technologies and Softwares : ### UI/UX and Wireframe ![Figma](https://img.shields.io/badge/figma-%23F24E1E.svg?style=for-the-badge&logo=figma&logoColor=white) Take a look at [wireframe and design](https://www.figma.com/file/KcIM8jqiSt0DXQwBtodbW0/WIREFRAME?node-id=0%3A1&t=bORh6hgTXccRbn2E-1) ### Languages ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ### Frameworks and Libraries ![NPM](https://img.shields.io/badge/NPM-%23CB3837.svg?style=for-the-badge&logo=npm&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) ### Code Editor ![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7.svg?style=for-the-badge&logo=visual-studio-code&logoColor=white) ### Publications and Documentations ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) Click on our [Repository](https://github.com/aisyakareninaa/TUBES_Chapter2_FE_Kelompok1) ## Our Features <li> Responsive website <li> Comprehensive UI design <li> Sort and filter products <li> Search products
Tugas Praktikum - Chapter 2, "EBS Simple Card" by Kelompok 1, Teaching Factory 2023 Spesialist Front-End SMK Telkom Malang.
react,simple-card,tailwindcss,api,babyshop,javascript,tugas-tefa
2023-01-27T07:58:29Z
2023-02-03T08:43:05Z
null
4
8
76
0
2
2
null
null
JavaScript
ryarturogi/ts-string-utils
main
# String Utilities Library <p>This documentation provides an overview of the various string manipulation functions available in the library. These functions cover a wide range of functionality, from simple capitalization and word counting to more advanced operations such as finding anagrams and longest common substrings.</p> <hr style="margin-bottom: 1rem;"> `capitalize`(str: string) - Capitalizes the first character of the given string. `commonSubstring`(str1: string, str2: string) - Returns the longest common substring of the two given strings. `countOccurrences`(str: string, substring: string) - Returns the number of occurrences of the given substring in the given string. `countWords`(str: string) - Returns the number of words in the given string. `countWordsInString`(str: string, word: string) - Returns the number of occurrences of the given word in the given string. `endsWith`(str: string, suffix: string) - Returns true if the given string ends with the given suffix, false otherwise. `findAllIndexes`(str: string, substring: string) - Returns an array of all indexes at which the given substring appears in the given string. `findIndex`(str: string, substring: string) - Returns the index of the first occurrence of the given substring in the given string, or -1 if it is not found. `filter`(str: string, filter: string | RegExp, replaceWith: string = '', options: string = 'g') - Replaces all occurrences of the specified filter with the given replaceWith string in the input string, and allows for the option to specify RegExp flags for the filter. `format`(str: string, args: any[]) - Replaces placeholders in the given string with the corresponding values in the given args array. `getAllPosition`(str: string, substring: string) - Returns an array of all the indexes of a given substring in a string `getAnagrams`(str: string) - Returns an array of all the anagrams of the given string. `getCharFrequency`(str: string) - Returns an object with the frequency of each character in the given string. `getCommonPrefix`(str1: string, str2: string) - Returns the longest common prefix of the two given strings. `getCommonSuffix`(str1: string, str2: string) - Returns the longest common suffix of the two given strings. `getDigitCount`(str: string) - Returns the number of digits in the given string. `getFirstChar`(str: string) - Returns the first character of the given string. `getLastChar`(str: string) - Returns the last character of the given string. `getLetterCount`(str: string) - Returns the number of letters in the given string. `getLongestCommonSubstring`(str1: string, str2: string) - Returns the longest common substring of the two given strings. `getLongestWord`(str: string) - Returns the longest word in the given string. `getMatchingWords`(str: string, dictionary: string[]) - Returns an array of all words in the given dictionary that can be formed using the characters of the given string, 20 by 20, wait my order to continue with the next 20. `getRandomSubstring`(str: string, length: number) - Returns a random substring of the given length from the given string. `getShortestWord`(str: string) - Returns the shortest word in the given string. `getSpecialCharCount`(str: string) - Returns the number of special characters in the given string. `getStringDistance`(str1: string, str2: string) - Returns the distance between the two given strings, as a number. `getUniqueChars`(str: string) - Returns an array of all unique characters in the given string. `getWordCount`(str: string) - Returns the number of words in the given string. `isPalindrome`(str: string) - Returns true if the given string is a palindrome (a word, phrase, or sequence that reads the same backwards as forwards), false otherwise. `isValidNumber`(str: string) - Returns true if the given string represents a valid number, false otherwise. `joinArray`(arr: any[], separator: string) - Joins the elements of the given array into a single string, separated by the given separator. `longestContaining`(str: string, search: string) - Returns the longest substring of the given string that contains the given search string. `pad`(str: string, length: number, char: string) - Pads the given string with the given character to the given length. `removeCharacters`(str: string, characters: string) - Removes all occurrences of the given characters from the given string. `removeFirst`(str: string, n: number) - Removes the first n characters from the given string. `removeLast`(str: string, n: number) - Removes the last n characters from the given string. `removeSpecialCharacters`(str: string) - Removes all special characters from the given string. `removeSpaces`(str: string) - Removes all spaces from the given string. `removeWords`(str: string, words: string[]) - Removes all occurrences of the given words from the given string. `replaceAll`(str: string, search: string, replace: string) - Replaces all occurrences of the given search string with the given replace string in the given string. `replaceMultiple`(str: string, replace: object) - Replaces multiple strings in the given string according to the given replace object. `replaceWords`(str: string, search: string, replace: string) - Replaces all occurrences of the given search word with the given replace word in the given string. `reverse`(str: string) - Returns the reversed version of the given string. `shortestContaining`(str: string, search: string) - Returns the shortest substring of the given string that contains the given search string. `splitString`(str: string, separator: string) - Splits the given string into an array of substrings using the given separator. `startsWith`(str: string, prefix: string) - Returns true if the given string starts with the given prefix, false otherwise. `toCamelCase`(str: string) - Converts the given string to camel case. `toKebabCase`(str: string) - Converts the given string to kebab case. `toLowerCaseFirst`(str: string) - Converts the first character of the given string to lower case. `toPascalCase`(str: string) - Converts the given string to Pascal case. `toSnakeCase`(str: string) - Converts the given string to snake case. `toTitleCase`(str: string) - Converts the given string to title case. `toUpperCaseFirst`(str: string) - Returns a new string with the first character of the given string converted to uppercase. `truncate`(str: string, length: number, end: string) - Returns a new string with the given length, truncating the original string and adding the specified end string if the original string was longer than the specified length. `splitByWords`(text: string, separator: string = ' ') - Splits a string into an array of words separated by the specified separator. `splitByLines`(text: string) - Splits a string into an array of lines. `repeatString`(str: string, count: number) - Repeats the given string the specified number of times. `insertString`(str: string, index: number, insert: string) - Inserts the given string at the specified index in the given string. `substringBefore`(str: string, separator: string) - Returns the substring of the given string before the first occurrence of the given separator. `substringAfter`(str: string, separator: string) - Returns the substring of the given string after the first occurrence of the given separator. `substringBetween`(str: string, start: string, end: string) - Returns the substring of the given string between the first occurrence of the given start and end strings. `leftPad`(str: string, length: number, char: string) - Pads the given string with the given character to the given length on the left. `rightPad`(str: string, length: number, char: string) - Pads the given string with the given character to the given length on the right. `sliceString`(str: string, start: number, end: number) - Returns a new string with the characters between the specified start and end indices. `splitAt`(str: string, index: number) - Splits the given string at the specified index. `getNthIndex`(str: string, search: string, n: number) - Returns the index of the nth occurrence of the given search string in the given string. `trimLeft`(str: string, chars: string) - Trims the given characters from the left side of the given string. `trimRight`(str: string, chars: string) - Trims the given characters from the right side of the given string. `trimBoth`(str: string, chars: string) - Trims the given characters from both sides of the given string. `removeDuplicates`(str: string) - Removes duplicate characters from the given string. `contains`(str: string, search: string) - Returns true if the given string contains the given search string, false otherwise. <br> # Installation To install the library, simply use npm: ```bash npm install ts-string-utilities // yarn add ts-string-utilities ``` <br> # Usage Examples ## `capitalize` ``` import { capitalize } from 'ts-string-utilities'; capitalize('hello world'); // 'Hello world' ``` ## `commonSubstring` ``` import { commonSubstring } from 'ts-string-utilities'; commonSubstring('hello world', 'hello world'); // 'hello world' ``` ## `countOccurrences` ``` import { countOccurrences } from 'ts-string-utilities'; countOccurrences('hello world', 'l'); // 3 ``` ## `countWords` ``` import { countWords } from 'ts-string-utilities'; countWords('hello world'); // 2 ``` ## `countWordsInString` ``` import { countWordsInString } from 'ts-string-utilities'; countWordsInString('hello world'); // 2 ``` ## `endsWith` ``` import { endsWith } from 'ts-string-utilities'; endsWith('hello world', 'world'); // true ``` ## `findAllIndexes` ``` import { findAllIndexes } from 'ts-string-utilities'; findAllIndexes('hello world', 'l'); // [2, 3, 9] ``` ## `findIndex` ``` import { findIndex } from 'ts-string-utilities'; findIndex('hello world', 'l'); // 2 ``` ## `filterString` ``` import { filterString } from 'ts-string-utilities'; filterString('Hello world', 'l'); // 'Heo word' filterString('Hello world', /l/g, 'x'); // 'Hexxo worxd' ``` ## `format` ``` import { format } from 'ts-string-utilities'; format('hello {0}', 'world'); // 'hello world' ``` ## `getAllPosition` ``` import { getAllPosition } from 'ts-string-utilities'; getAllPosition('hello world', 'l'); // [2, 3, 9] ``` ## `getAnagrams` ``` import { getAnagrams } from 'ts-string-utilities'; getAnagrams('hello world'); // ['hello world', 'world hello'] ``` ## `getCharFrequency` ``` import { getCharFrequency } from 'ts-string-utilities'; getCharFrequency('hello world'); // { h: 1, e: 1, l: 3, o: 2, w: 1, r: 1, d: 1 } ``` ## `getCommonPrefix` ``` import { getCommonPrefix } from 'ts-string-utilities'; getCommonPrefix('hello world', 'hello world'); // 'hello world' ``` ## `getCommonSuffix` ``` import { getCommonSuffix } from 'ts-string-utilities'; getCommonSuffix('hello world', 'hello world'); // 'hello world' ``` ## `getDigitCount` ``` import { getDigitCount } from 'ts-string-utilities'; getDigitCount('hello world'); // 0 ``` ## `getFirstChar` ``` import { getFirstChar } from 'ts-string-utilities'; getFirstChar('hello world'); // 'h' ``` ## `getLastChar` ``` import { getLastChar } from 'ts-string-utilities'; getLastChar('hello world'); // 'd' ``` ## `getLetterCount` ``` import { getLetterCount } from 'ts-string-utilities'; getLetterCount('hello world'); // 10 ``` ## `getLongestCommonSubstring` ``` import { getLongestCommonSubstring } from 'ts-string-utilities'; getLongestCommonSubstring('hello world', 'hello world'); // 'hello world' ``` ## `getLongestWord` ``` import { getLongestWord } from 'ts-string-utilities'; getLongestWord('hello world'); // 'hello' ``` ## `getMatchingWords` ``` import { getMatchingWords } from 'ts-string-utilities'; getMatchingWords('hello world', 'hello world'); // ['hello', 'world'] ``` ## `getRandomSubstring` ``` import { getRandomSubstring } from 'ts-string-utilities'; getRandomSubstring('hello world'); // 'hello' ``` ## `getShortestWord` ``` import { getShortestWord } from 'ts-string-utilities'; getShortestWord('hello world'); // 'world' ``` ## `getSpecialCharCount` ``` import { getSpecialCharCount } from 'ts-string-utilities'; getSpecialCharCount('hello world'); // 0 ``` ## `getStringDistance` ``` import { getStringDistance } from 'ts-string-utilities'; getStringDistance('hello world', 'hello world'); // 0 ``` ## `getUniqueChars` ``` import { getUniqueChars } from 'ts-string-utilities'; getUniqueChars('hello world'); // ['h', 'e', 'l', 'o', 'w', 'r', 'd'] ``` ## `getWordCount` ``` import { getWordCount } from 'ts-string-utilities'; getWordCount('hello world'); // 2 ``` ## `isPalindrome` ``` import { isPalindrome } from 'ts-string-utilities'; isPalindrome('hello world'); // false ``` ## `isValidNumber` ``` import { isValidNumber } from 'ts-string-utilities'; isValidNumber('hello world'); // false ``` ## `joinArray` ``` import { joinArray } from 'ts-string-utilities'; joinArray(['hello', 'world']); // 'hello world' ``` ## `longestContaining` ``` import { longestContaining } from 'ts-string-utilities'; longestContaining('hello world', 'hello world'); // 'hello world' ``` ## `pad` ``` import { pad } from 'ts-string-utilities'; pad('hello world', 20, ' '); // 'hello world ' ``` ## `removeCharacters` ``` import { removeCharacters } from 'ts-string-utilities'; removeCharacters('hello world', 'l'); // 'heo word' ``` ## `removeFirst` ``` import { removeFirst } from 'ts-string-utilities'; removeFirst('hello world', 'l'); // 'heo world' ``` ## `removeLast` ``` import { removeLast } from 'ts-string-utilities'; removeLast('hello world', 'l'); // 'hello worl' ``` ## `removeSpecialCharacters` ``` import { removeSpecialCharacters } from 'ts-string-utilities'; removeSpecialCharacters('hello world'); // 'hello world' ``` ## `removeSpaces` ``` import { removeSpaces } from 'ts-string-utilities'; removeSpaces('hello world'); // 'helloworld' ``` ## `removeWords` ``` import { removeWords } from 'ts-string-utilities'; removeWords('hello world', 'hello'); // 'world' ``` ## `replaceAll` ``` import { replaceAll } from 'ts-string-utilities'; replaceAll('hello world', 'l', 'x'); // 'hexxo worxd' ``` ## `replaceMultiple` ``` import { replaceMultiple } from 'ts-string-utilities'; replaceMultiple('hello world', { l: 'x', o: 'y' }); // 'hexxy wyrd' ``` ## `replaceWords` ``` import { replaceWords } from 'ts-string-utilities'; replaceWords('hello world', 'hello', 'hi'); // 'hi world' ``` ## `reverse` ``` import { reverse } from 'ts-string-utilities'; reverse('hello world'); // 'dlrow olleh' ``` ## `shortestContaining` ``` import { shortestContaining } from 'ts-string-utilities'; shortestContaining('hello world', 'hello world'); // 'hello world' ``` ## `split` ``` import { split } from 'ts-string-utilities'; split('hello world'); // ['hello', 'world'] ``` ## `startsWith` ``` import { startsWith } from 'ts-string-utilities'; startsWith('hello world', 'hello'); // true ``` ## `toCamelCase` ``` import { toCamelCase } from 'ts-string-utilities'; toCamelCase('hello world'); // 'helloWorld' ``` ## `toKebabCase` ``` import { toKebabCase } from 'ts-string-utilities'; toKebabCase('hello world'); // 'hello-world' ``` ## `toPascalCase` ``` import { toPascalCase } from 'ts-string-utilities'; toPascalCase('hello world'); // 'HelloWorld' ``` ## `toSnakeCase` ``` import { toSnakeCase } from 'ts-string-utilities'; toSnakeCase('hello world'); // 'hello_world' ``` ## `toTitleCase` ``` import { toTitleCase } from 'ts-string-utilities'; toTitleCase('hello world'); // 'Hello World' ``` ## `toUpperCaseFirst` ``` import { toUpperCaseFirst } from 'ts-string-utilities'; toUpperCaseFirst('hello world'); // 'Hello world' ``` ## `truncate` ``` import { truncate } from 'ts-string-utilities'; truncate('hello world', 5); // 'hello...' ``` ## `splitByWords` ``` import { splitByWords } from 'ts-string-utilities'; splitByWords('hello world'); // ['hello', 'world'] ``` ## `splitByLines` ``` import { splitByLines } from 'ts-string-utilities'; splitByLines('hello\nworld'); // ['hello', 'world'] ``` ## `repeatString` ``` import { repeatString } from 'ts-string-utilities'; repeatString('hello', 3); // 'hellohellohello' ``` ## `insertString` ``` import { insertString } from 'ts-string-utilities'; insertString('hello world', '!', 5); // 'hello! world' ``` ## `wrapString` ``` import { wrapString } from 'ts-string-utilities'; wrapString('hello world', '(', ')'); // '(hello world)' ``` ## `substringBefore` ``` import { substringBefore } from 'ts-string-utilities'; substringBefore('hello world', ' '); // 'hello' ``` ## `substringAfter` ``` import { substringAfter } from 'ts-string-utilities'; substringAfter('hello world', ' '); // 'world' ``` ## `substringBetween` ``` import { substringBetween } from 'ts-string-utilities'; substringBetween('hello world', ' ', ' '); // 'world' ``` ## `leftPad` ``` import { leftPad } from 'ts-string-utilities'; leftPad('hello world', 20, ' '); // ' hello world' ``` ## `rightPad` ``` import { rightPad } from 'ts-string-utilities'; rightPad('hello world', 20, ' '); // 'hello world ' ``` ## `slideString` ``` import { slideString } from 'ts-string-utilities'; slideString('hello world', 3); // 'lo worldh' ``` ## `splitAt` ``` import { splitAt } from 'ts-string-utilities'; splitAt('hello world', 3); // ['hel', 'lo world'] ``` ## `getNthIndex` ``` import { getNthIndex } from 'ts-string-utilities'; getNthIndex('hello world', 'l', 2); // 3 ``` ## `trimLeft` ``` import { trimLeft } from 'ts-string-utilities'; trimLeft(' hello world'); // 'hello world' ``` ## `trimRight` ``` import { trimRight } from 'ts-string-utilities'; trimRight('hello world '); // 'hello world' ``` ## `trimBoth` ``` import { trimBoth } from 'ts-string-utilities'; trimBoth(' hello world '); // 'hello world' ``` ## `removeDuplicates` ``` import { removeDuplicates } from 'ts-string-utilities'; removeDuplicates('hello world'); // 'helo wrd' ``` ## `contains` ``` import { contains } from 'ts-string-utilities'; contains('hello world', 'hello'); // true ``` # License This library is released under the MIT License. See the LICENSE file for more details.
This repository contains a set of utility functions for working with strings in JavaScript. The functions included cover a wide range of operations such as string formatting, searching, and replacement.
formatting,functions,javascript,manipulation,replacement,search,string,utility
2023-01-29T03:48:13Z
2023-01-31T13:26:07Z
null
1
0
11
0
0
2
null
MIT
null
xenova/transformers.js
main
<p align="center"> <br/> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Xenova/transformers.js-docs/raw/main/transformersjs-dark.svg" width="500" style="max-width: 100%;"> <source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/Xenova/transformers.js-docs/raw/main/transformersjs-light.svg" width="500" style="max-width: 100%;"> <img alt="transformers.js javascript library logo" src="https://huggingface.co/datasets/Xenova/transformers.js-docs/raw/main/transformersjs-light.svg" width="500" style="max-width: 100%;"> </picture> <br/> </p> <p align="center"> <a href="https://www.npmjs.com/package/@xenova/transformers"> <img alt="NPM" src="https://img.shields.io/npm/v/@xenova/transformers"> </a> <a href="https://www.npmjs.com/package/@xenova/transformers"> <img alt="NPM Downloads" src="https://img.shields.io/npm/dw/@xenova/transformers"> </a> <a href="https://www.jsdelivr.com/package/npm/@xenova/transformers"> <img alt="jsDelivr Hits" src="https://img.shields.io/jsdelivr/npm/hw/@xenova/transformers"> </a> <a href="https://github.com/xenova/transformers.js/blob/main/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/xenova/transformers.js?color=blue"> </a> <a href="https://huggingface.co/docs/transformers.js/index"> <img alt="Documentation" src="https://img.shields.io/website/http/huggingface.co/docs/transformers.js/index.svg?down_color=red&down_message=offline&up_message=online"> </a> </p> State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server! Transformers.js is designed to be functionally equivalent to Hugging Face's [transformers](https://github.com/huggingface/transformers) python library, meaning you can run the same pretrained models using a very similar API. These models support common tasks in different modalities, such as: - 📝 **Natural Language Processing**: text classification, named entity recognition, question answering, language modeling, summarization, translation, multiple choice, and text generation. - 🖼️ **Computer Vision**: image classification, object detection, and segmentation. - 🗣️ **Audio**: automatic speech recognition and audio classification. - 🐙 **Multimodal**: zero-shot image classification. Transformers.js uses [ONNX Runtime](https://onnxruntime.ai/) to run models in the browser. The best part about it, is that you can easily [convert](#convert-your-models-to-onnx) your pretrained PyTorch, TensorFlow, or JAX models to ONNX using [🤗 Optimum](https://github.com/huggingface/optimum#onnx--onnx-runtime). For more information, check out the full [documentation](https://huggingface.co/docs/transformers.js). ## Quick tour It's super simple to translate from existing code! Just like the python library, we support the `pipeline` API. Pipelines group together a pretrained model with preprocessing of inputs and postprocessing of outputs, making it the easiest way to run models with the library. <table> <tr> <th width="440px" align="center"><b>Python (original)</b></th> <th width="440px" align="center"><b>Javascript (ours)</b></th> </tr> <tr> <td> ```python from transformers import pipeline # Allocate a pipeline for sentiment-analysis pipe = pipeline('sentiment-analysis') out = pipe('I love transformers!') # [{'label': 'POSITIVE', 'score': 0.999806941}] ``` </td> <td> ```javascript import { pipeline } from '@xenova/transformers'; // Allocate a pipeline for sentiment-analysis let pipe = await pipeline('sentiment-analysis'); let out = await pipe('I love transformers!'); // [{'label': 'POSITIVE', 'score': 0.999817686}] ``` </td> </tr> </table> You can also use a different model by specifying the model id or path as the second argument to the `pipeline` function. For example: ```javascript // Use a different model for sentiment-analysis let pipe = await pipeline('sentiment-analysis', 'Xenova/bert-base-multilingual-uncased-sentiment'); ``` ## Installation To install via [NPM](https://www.npmjs.com/package/@xenova/transformers), run: ```bash npm i @xenova/transformers ``` Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using [ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), you can import the library with: ```html <script type="module"> import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.1'; </script> ``` ## Examples Want to jump straight in? Get started with one of our sample applications/templates: | Name | Description | Links | |-------------------|----------------------------------|-------------------------------| | Whisper Web | Speech recognition w/ Whisper | [code](https://github.com/xenova/whisper-web), [demo](https://huggingface.co/spaces/Xenova/whisper-web) | | Doodle Dash | Real-time sketch-recognition game | [blog](https://huggingface.co/blog/ml-web-games), [code](https://github.com/xenova/doodle-dash), [demo](https://huggingface.co/spaces/Xenova/doodle-dash) | | Code Playground | In-browser code completion website | [code](https://github.com/xenova/transformers.js/tree/main/examples/code-completion/), [demo](https://huggingface.co/spaces/Xenova/ai-code-playground) | | Semantic Image Search (client-side) | Search for images with text | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search-client/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search-client) | | Semantic Image Search (server-side) | Search for images with text (Supabase) | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search) | | Vanilla JavaScript | In-browser object detection | [video](https://scrimba.com/scrim/cKm9bDAg), [code](https://github.com/xenova/transformers.js/tree/main/examples/vanilla-js/), [demo](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) | | React | Multilingual translation website | [code](https://github.com/xenova/transformers.js/tree/main/examples/react-translator/), [demo](https://huggingface.co/spaces/Xenova/react-translator) | | Text to speech (client-side) | In-browser speech synthesis | [code](https://github.com/xenova/transformers.js/tree/main/examples/text-to-speech-client/), [demo](https://huggingface.co/spaces/Xenova/text-to-speech-client) | | Browser extension | Text classification extension | [code](https://github.com/xenova/transformers.js/tree/main/examples/extension/) | | Electron | Text classification application | [code](https://github.com/xenova/transformers.js/tree/main/examples/electron/) | | Next.js (client-side) | Sentiment analysis (in-browser inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-client/), [demo](https://huggingface.co/spaces/Xenova/next-example-app) | | Next.js (server-side) | Sentiment analysis (Node.js inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-server/), [demo](https://huggingface.co/spaces/Xenova/next-server-example-app) | | Node.js | Sentiment analysis API | [code](https://github.com/xenova/transformers.js/tree/main/examples/node/) | | Demo site | A collection of demos | [code](https://github.com/xenova/transformers.js/tree/main/examples/demo-site/), [demo](https://xenova.github.io/transformers.js/) | Check out the Transformers.js [template](https://huggingface.co/new-space?template=static-templates%2Ftransformers.js) on Hugging Face to get started in one click! ## Custom usage By default, Transformers.js uses [hosted pretrained models](https://huggingface.co/models?library=transformers.js) and [precompiled WASM binaries](https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.1/dist/), which should work out-of-the-box. You can customize this as follows: ### Settings ```javascript import { env } from '@xenova/transformers'; // Specify a custom location for models (defaults to '/models/'). env.localModelPath = '/path/to/models/'; // Disable the loading of remote models from the Hugging Face Hub: env.allowRemoteModels = false; // Set location of .wasm files. Defaults to use a CDN. env.backends.onnx.wasm.wasmPaths = '/path/to/files/'; ``` For a full list of available settings, check out the [API Reference](https://huggingface.co/docs/transformers.js/api/env). ### Convert your models to ONNX We recommend using our [conversion script](https://github.com/xenova/transformers.js/blob/main/scripts/convert.py) to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses [🤗 Optimum](https://huggingface.co/docs/optimum) to perform conversion and quantization of your model. ```bash python -m scripts.convert --quantize --model_id <model_name_or_path> ``` For example, convert and quantize [bert-base-uncased](https://huggingface.co/bert-base-uncased) using: ```bash python -m scripts.convert --quantize --model_id bert-base-uncased ``` This will save the following files to `./models/`: ``` bert-base-uncased/ ├── config.json ├── tokenizer.json ├── tokenizer_config.json └── onnx/ ├── model.onnx └── model_quantized.onnx ``` For the full list of supported architectures, see the [Optimum documentation](https://huggingface.co/docs/optimum/main/en/exporters/onnx/overview). ## Supported tasks/models Here is the list of all tasks and architectures currently supported by Transformers.js. If you don't see your task/model listed here or it is not yet supported, feel free to open up a feature request [here](https://github.com/xenova/transformers.js/issues/new/choose). To find compatible models on the Hub, select the "transformers.js" library tag in the filter menu (or visit [this link](https://huggingface.co/models?library=transformers.js)). You can refine your search by selecting the task you're interested in (e.g., [text-classification](https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js)). ### Tasks #### Natural Language Processing | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Fill-Mask](https://huggingface.co/tasks/fill-mask) | `fill-mask` | Masking some of the words in a sentence and predicting which words should replace those masks. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.FillMaskPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=fill-mask&library=transformers.js) | | [Question Answering](https://huggingface.co/tasks/question-answering) | `question-answering` | Retrieve the answer to a question from a given text. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.QuestionAnsweringPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=question-answering&library=transformers.js) | | [Sentence Similarity](https://huggingface.co/tasks/sentence-similarity) | `sentence-similarity` | Determining how similar two texts are. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.FeatureExtractionPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=feature-extraction&library=transformers.js) | | [Summarization](https://huggingface.co/tasks/summarization) | `summarization` | Producing a shorter version of a document while preserving its important information. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.SummarizationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=summarization&library=transformers.js) | | [Table Question Answering](https://huggingface.co/tasks/table-question-answering) | `table-question-answering` | Answering a question about information from a given table. | ❌ | | [Text Classification](https://huggingface.co/tasks/text-classification) | `text-classification` or `sentiment-analysis` | Assigning a label or class to a given text. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js) | | [Text Generation](https://huggingface.co/tasks/text-generation#completion-generation-models) | `text-generation` | Producing new text by predicting the next word in a sequence. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextGenerationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js) | | [Text-to-text Generation](https://huggingface.co/tasks/text-generation#text-to-text-generation-models) | `text2text-generation` | Converting one text sequence into another text sequence. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.Text2TextGenerationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=text2text-generation&library=transformers.js) | | [Token Classification](https://huggingface.co/tasks/token-classification) | `token-classification` or `ner` | Assigning a label to each token in a text. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TokenClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=token-classification&library=transformers.js) | | [Translation](https://huggingface.co/tasks/translation) | `translation` | Converting text from one language to another. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TranslationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=translation&library=transformers.js) | | [Zero-Shot Classification](https://huggingface.co/tasks/zero-shot-classification) | `zero-shot-classification` | Classifying text into classes that are unseen during training. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=zero-shot-classification&library=transformers.js) | | [Feature Extraction](https://huggingface.co/tasks/feature-extraction) | `feature-extraction` | Transforming raw data into numerical features that can be processed while preserving the information in the original dataset. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.FeatureExtractionPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=feature-extraction&library=transformers.js) | #### Vision | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Depth Estimation](https://huggingface.co/tasks/depth-estimation) | `depth-estimation` | Predicting the depth of objects present in an image. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.DepthEstimationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=depth-estimation&library=transformers.js) | | [Image Classification](https://huggingface.co/tasks/image-classification) | `image-classification` | Assigning a label or class to an entire image. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=image-classification&library=transformers.js) | | [Image Segmentation](https://huggingface.co/tasks/image-segmentation) | `image-segmentation` | Divides an image into segments where each pixel is mapped to an object. This task has multiple variants such as instance segmentation, panoptic segmentation and semantic segmentation. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageSegmentationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=image-segmentation&library=transformers.js) | | [Image-to-Image](https://huggingface.co/tasks/image-to-image) | `image-to-image` | Transforming a source image to match the characteristics of a target image or a target image domain. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageToImagePipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=image-to-image&library=transformers.js) | | [Mask Generation](https://huggingface.co/tasks/mask-generation) | `mask-generation` | Generate masks for the objects in an image. | ❌ | | [Object Detection](https://huggingface.co/tasks/object-detection) | `object-detection` | Identify objects of certain defined classes within an image. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ObjectDetectionPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=object-detection&library=transformers.js) | | [Video Classification](https://huggingface.co/tasks/video-classification) | n/a | Assigning a label or class to an entire video. | ❌ | | [Unconditional Image Generation](https://huggingface.co/tasks/unconditional-image-generation) | n/a | Generating images with no condition in any context (like a prompt text or another image). | ❌ | | [Image Feature Extraction](https://huggingface.co/tasks/image-feature-extraction) | `image-feature-extraction` | Transforming raw data into numerical features that can be processed while preserving the information in the original image. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageFeatureExtractionPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=image-feature-extraction&library=transformers.js) | #### Audio | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Audio Classification](https://huggingface.co/tasks/audio-classification) | `audio-classification` | Assigning a label or class to a given audio. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.AudioClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=audio-classification&library=transformers.js) | | [Audio-to-Audio](https://huggingface.co/tasks/audio-to-audio) | n/a | Generating audio from an input audio source. | ❌ | | [Automatic Speech Recognition](https://huggingface.co/tasks/automatic-speech-recognition) | `automatic-speech-recognition` | Transcribing a given audio into text. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.AutomaticSpeechRecognitionPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&library=transformers.js) | | [Text-to-Speech](https://huggingface.co/tasks/text-to-speech) | `text-to-speech` or `text-to-audio` | Generating natural-sounding speech given text input. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextToAudioPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=text-to-audio&library=transformers.js) | #### Tabular | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Tabular Classification](https://huggingface.co/tasks/tabular-classification) | n/a | Classifying a target category (a group) based on set of attributes. | ❌ | | [Tabular Regression](https://huggingface.co/tasks/tabular-regression) | n/a | Predicting a numerical value given a set of attributes. | ❌ | #### Multimodal | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Document Question Answering](https://huggingface.co/tasks/document-question-answering) | `document-question-answering` | Answering questions on document images. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.DocumentQuestionAnsweringPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=document-question-answering&library=transformers.js) | | [Image-to-Text](https://huggingface.co/tasks/image-to-text) | `image-to-text` | Output text from a given image. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageToTextPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=image-to-text&library=transformers.js) | | [Text-to-Image](https://huggingface.co/tasks/text-to-image) | `text-to-image` | Generates images from input text. | ❌ | | [Visual Question Answering](https://huggingface.co/tasks/visual-question-answering) | `visual-question-answering` | Answering open-ended questions based on an image. | ❌ | | [Zero-Shot Audio Classification](https://huggingface.co/learn/audio-course/chapter4/classification_models#zero-shot-audio-classification) | `zero-shot-audio-classification` | Classifying audios into classes that are unseen during training. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotAudioClassificationPipeline)<br>[(models)](https://huggingface.co/models?other=zero-shot-audio-classification&library=transformers.js) | | [Zero-Shot Image Classification](https://huggingface.co/tasks/zero-shot-image-classification) | `zero-shot-image-classification` | Classifying images into classes that are unseen during training. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotImageClassificationPipeline)<br>[(models)](https://huggingface.co/models?pipeline_tag=zero-shot-image-classification&library=transformers.js) | | [Zero-Shot Object Detection](https://huggingface.co/tasks/zero-shot-object-detection) | `zero-shot-object-detection` | Identify objects of classes that are unseen during training. | ✅ [(docs)](https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotObjectDetectionPipeline)<br>[(models)](https://huggingface.co/models?other=zero-shot-object-detection&library=transformers.js) | #### Reinforcement Learning | Task | ID | Description | Supported? | |--------------------------|----|-------------|------------| | [Reinforcement Learning](https://huggingface.co/tasks/reinforcement-learning) | n/a | Learning from actions by interacting with an environment through trial and error and receiving rewards (negative or positive) as feedback. | ❌ | ### Models 1. **[ALBERT](https://huggingface.co/docs/transformers/model_doc/albert)** (from Google Research and the Toyota Technological Institute at Chicago) released with the paper [ALBERT: A Lite BERT for Self-supervised Learning of Language Representations](https://arxiv.org/abs/1909.11942), by Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, Radu Soricut. 1. **[Audio Spectrogram Transformer](https://huggingface.co/docs/transformers/model_doc/audio-spectrogram-transformer)** (from MIT) released with the paper [AST: Audio Spectrogram Transformer](https://arxiv.org/abs/2104.01778) by Yuan Gong, Yu-An Chung, James Glass. 1. **[BART](https://huggingface.co/docs/transformers/model_doc/bart)** (from Facebook) released with the paper [BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension](https://arxiv.org/abs/1910.13461) by Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov and Luke Zettlemoyer. 1. **[BEiT](https://huggingface.co/docs/transformers/model_doc/beit)** (from Microsoft) released with the paper [BEiT: BERT Pre-Training of Image Transformers](https://arxiv.org/abs/2106.08254) by Hangbo Bao, Li Dong, Furu Wei. 1. **[BERT](https://huggingface.co/docs/transformers/model_doc/bert)** (from Google) released with the paper [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://arxiv.org/abs/1810.04805) by Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova. 1. **[Blenderbot](https://huggingface.co/docs/transformers/model_doc/blenderbot)** (from Facebook) released with the paper [Recipes for building an open-domain chatbot](https://arxiv.org/abs/2004.13637) by Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M. Smith, Y-Lan Boureau, Jason Weston. 1. **[BlenderbotSmall](https://huggingface.co/docs/transformers/model_doc/blenderbot-small)** (from Facebook) released with the paper [Recipes for building an open-domain chatbot](https://arxiv.org/abs/2004.13637) by Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M. Smith, Y-Lan Boureau, Jason Weston. 1. **[BLOOM](https://huggingface.co/docs/transformers/model_doc/bloom)** (from BigScience workshop) released by the [BigScience Workshop](https://bigscience.huggingface.co/). 1. **[CamemBERT](https://huggingface.co/docs/transformers/model_doc/camembert)** (from Inria/Facebook/Sorbonne) released with the paper [CamemBERT: a Tasty French Language Model](https://arxiv.org/abs/1911.03894) by Louis Martin*, Benjamin Muller*, Pedro Javier Ortiz Suárez*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot. 1. **[Chinese-CLIP](https://huggingface.co/docs/transformers/model_doc/chinese_clip)** (from OFA-Sys) released with the paper [Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese](https://arxiv.org/abs/2211.01335) by An Yang, Junshu Pan, Junyang Lin, Rui Men, Yichang Zhang, Jingren Zhou, Chang Zhou. 1. **[CLAP](https://huggingface.co/docs/transformers/model_doc/clap)** (from LAION-AI) released with the paper [Large-scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation](https://arxiv.org/abs/2211.06687) by Yusong Wu, Ke Chen, Tianyu Zhang, Yuchen Hui, Taylor Berg-Kirkpatrick, Shlomo Dubnov. 1. **[CLIP](https://huggingface.co/docs/transformers/model_doc/clip)** (from OpenAI) released with the paper [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) by Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever. 1. **[CLIPSeg](https://huggingface.co/docs/transformers/model_doc/clipseg)** (from University of Göttingen) released with the paper [Image Segmentation Using Text and Image Prompts](https://arxiv.org/abs/2112.10003) by Timo Lüddecke and Alexander Ecker. 1. **[CodeGen](https://huggingface.co/docs/transformers/model_doc/codegen)** (from Salesforce) released with the paper [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong. 1. **[CodeLlama](https://huggingface.co/docs/transformers/model_doc/llama_code)** (from MetaAI) released with the paper [Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) by Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton Ferrer, Aaron Grattafiori, Wenhan Xiong, Alexandre Défossez, Jade Copet, Faisal Azhar, Hugo Touvron, Louis Martin, Nicolas Usunier, Thomas Scialom, Gabriel Synnaeve. 1. **[ConvBERT](https://huggingface.co/docs/transformers/model_doc/convbert)** (from YituTech) released with the paper [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan. 1. **[ConvNeXT](https://huggingface.co/docs/transformers/model_doc/convnext)** (from Facebook AI) released with the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie. 1. **[ConvNeXTV2](https://huggingface.co/docs/transformers/model_doc/convnextv2)** (from Facebook AI) released with the paper [ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders](https://arxiv.org/abs/2301.00808) by Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon, Saining Xie. 1. **[DeBERTa](https://huggingface.co/docs/transformers/model_doc/deberta)** (from Microsoft) released with the paper [DeBERTa: Decoding-enhanced BERT with Disentangled Attention](https://arxiv.org/abs/2006.03654) by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. 1. **[DeBERTa-v2](https://huggingface.co/docs/transformers/model_doc/deberta-v2)** (from Microsoft) released with the paper [DeBERTa: Decoding-enhanced BERT with Disentangled Attention](https://arxiv.org/abs/2006.03654) by Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen. 1. **[DeiT](https://huggingface.co/docs/transformers/model_doc/deit)** (from Facebook) released with the paper [Training data-efficient image transformers & distillation through attention](https://arxiv.org/abs/2012.12877) by Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, Hervé Jégou. 1. **[Depth Anything](https://huggingface.co/docs/transformers/main/model_doc/depth_anything)** (from University of Hong Kong and TikTok) released with the paper [Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data](https://arxiv.org/abs/2401.10891) by Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, Hengshuang Zhao. 1. **[DETR](https://huggingface.co/docs/transformers/model_doc/detr)** (from Facebook) released with the paper [End-to-End Object Detection with Transformers](https://arxiv.org/abs/2005.12872) by Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, Sergey Zagoruyko. 1. **[DINOv2](https://huggingface.co/docs/transformers/model_doc/dinov2)** (from Meta AI) released with the paper [DINOv2: Learning Robust Visual Features without Supervision](https://arxiv.org/abs/2304.07193) by Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, Piotr Bojanowski. 1. **[DistilBERT](https://huggingface.co/docs/transformers/model_doc/distilbert)** (from HuggingFace), released together with the paper [DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter](https://arxiv.org/abs/1910.01108) by Victor Sanh, Lysandre Debut and Thomas Wolf. The same method has been applied to compress GPT2 into [DistilGPT2](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation), RoBERTa into [DistilRoBERTa](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation), Multilingual BERT into [DistilmBERT](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) and a German version of DistilBERT. 1. **[DiT](https://huggingface.co/docs/transformers/model_doc/dit)** (from Microsoft Research) released with the paper [DiT: Self-supervised Pre-training for Document Image Transformer](https://arxiv.org/abs/2203.02378) by Junlong Li, Yiheng Xu, Tengchao Lv, Lei Cui, Cha Zhang, Furu Wei. 1. **[Donut](https://huggingface.co/docs/transformers/model_doc/donut)** (from NAVER), released together with the paper [OCR-free Document Understanding Transformer](https://arxiv.org/abs/2111.15664) by Geewook Kim, Teakgyu Hong, Moonbin Yim, Jeongyeon Nam, Jinyoung Park, Jinyeong Yim, Wonseok Hwang, Sangdoo Yun, Dongyoon Han, Seunghyun Park. 1. **[DPT](https://huggingface.co/docs/transformers/master/model_doc/dpt)** (from Intel Labs) released with the paper [Vision Transformers for Dense Prediction](https://arxiv.org/abs/2103.13413) by René Ranftl, Alexey Bochkovskiy, Vladlen Koltun. 1. **[EfficientNet](https://huggingface.co/docs/transformers/model_doc/efficientnet)** (from Google Brain) released with the paper [EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks](https://arxiv.org/abs/1905.11946) by Mingxing Tan, Quoc V. Le. 1. **[ELECTRA](https://huggingface.co/docs/transformers/model_doc/electra)** (from Google Research/Stanford University) released with the paper [ELECTRA: Pre-training text encoders as discriminators rather than generators](https://arxiv.org/abs/2003.10555) by Kevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning. 1. **[ESM](https://huggingface.co/docs/transformers/model_doc/esm)** (from Meta AI) are transformer protein language models. **ESM-1b** was released with the paper [Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences](https://www.pnas.org/content/118/15/e2016239118) by Alexander Rives, Joshua Meier, Tom Sercu, Siddharth Goyal, Zeming Lin, Jason Liu, Demi Guo, Myle Ott, C. Lawrence Zitnick, Jerry Ma, and Rob Fergus. **ESM-1v** was released with the paper [Language models enable zero-shot prediction of the effects of mutations on protein function](https://doi.org/10.1101/2021.07.09.450648) by Joshua Meier, Roshan Rao, Robert Verkuil, Jason Liu, Tom Sercu and Alexander Rives. **ESM-2 and ESMFold** were released with the paper [Language models of protein sequences at the scale of evolution enable accurate structure prediction](https://doi.org/10.1101/2022.07.20.500902) by Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Zhongkai Zhu, Wenting Lu, Allan dos Santos Costa, Maryam Fazel-Zarandi, Tom Sercu, Sal Candido, Alexander Rives. 1. **[Falcon](https://huggingface.co/docs/transformers/model_doc/falcon)** (from Technology Innovation Institute) by Almazrouei, Ebtesam and Alobeidli, Hamza and Alshamsi, Abdulaziz and Cappelli, Alessandro and Cojocaru, Ruxandra and Debbah, Merouane and Goffinet, Etienne and Heslow, Daniel and Launay, Julien and Malartic, Quentin and Noune, Badreddine and Pannier, Baptiste and Penedo, Guilherme. 1. **FastViT** (from Apple) released with the paper [FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization](https://arxiv.org/abs/2303.14189) by Pavan Kumar Anasosalu Vasu, James Gabriel, Jeff Zhu, Oncel Tuzel and Anurag Ranjan. 1. **[FLAN-T5](https://huggingface.co/docs/transformers/model_doc/flan-t5)** (from Google AI) released in the repository [google-research/t5x](https://github.com/google-research/t5x/blob/main/docs/models.md#flan-t5-checkpoints) by Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le, and Jason Wei 1. **[GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)** (from KAIST) released with the paper [Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth](https://arxiv.org/abs/2201.07436) by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim. 1. **[GPT Neo](https://huggingface.co/docs/transformers/model_doc/gpt_neo)** (from EleutherAI) released in the repository [EleutherAI/gpt-neo](https://github.com/EleutherAI/gpt-neo) by Sid Black, Stella Biderman, Leo Gao, Phil Wang and Connor Leahy. 1. **[GPT NeoX](https://huggingface.co/docs/transformers/model_doc/gpt_neox)** (from EleutherAI) released with the paper [GPT-NeoX-20B: An Open-Source Autoregressive Language Model](https://arxiv.org/abs/2204.06745) by Sid Black, Stella Biderman, Eric Hallahan, Quentin Anthony, Leo Gao, Laurence Golding, Horace He, Connor Leahy, Kyle McDonell, Jason Phang, Michael Pieler, USVSN Sai Prashanth, Shivanshu Purohit, Laria Reynolds, Jonathan Tow, Ben Wang, Samuel Weinbach 1. **[GPT-2](https://huggingface.co/docs/transformers/model_doc/gpt2)** (from OpenAI) released with the paper [Language Models are Unsupervised Multitask Learners](https://blog.openai.com/better-language-models/) by Alec Radford*, Jeffrey Wu*, Rewon Child, David Luan, Dario Amodei** and Ilya Sutskever**. 1. **[GPT-J](https://huggingface.co/docs/transformers/model_doc/gptj)** (from EleutherAI) released in the repository [kingoflolz/mesh-transformer-jax](https://github.com/kingoflolz/mesh-transformer-jax/) by Ben Wang and Aran Komatsuzaki. 1. **[GPTBigCode](https://huggingface.co/docs/transformers/model_doc/gpt_bigcode)** (from BigCode) released with the paper [SantaCoder: don't reach for the stars!](https://arxiv.org/abs/2301.03988) by Loubna Ben Allal, Raymond Li, Denis Kocetkov, Chenghao Mou, Christopher Akiki, Carlos Munoz Ferrandis, Niklas Muennighoff, Mayank Mishra, Alex Gu, Manan Dey, Logesh Kumar Umapathi, Carolyn Jane Anderson, Yangtian Zi, Joel Lamy Poirier, Hailey Schoelkopf, Sergey Troshin, Dmitry Abulkhanov, Manuel Romero, Michael Lappert, Francesco De Toni, Bernardo García del Río, Qian Liu, Shamik Bose, Urvashi Bhattacharyya, Terry Yue Zhuo, Ian Yu, Paulo Villegas, Marco Zocca, Sourab Mangrulkar, David Lansky, Huu Nguyen, Danish Contractor, Luis Villa, Jia Li, Dzmitry Bahdanau, Yacine Jernite, Sean Hughes, Daniel Fried, Arjun Guha, Harm de Vries, Leandro von Werra. 1. **[HerBERT](https://huggingface.co/docs/transformers/model_doc/herbert)** (from Allegro.pl, AGH University of Science and Technology) released with the paper [KLEJ: Comprehensive Benchmark for Polish Language Understanding](https://www.aclweb.org/anthology/2020.acl-main.111.pdf) by Piotr Rybak, Robert Mroczkowski, Janusz Tracz, Ireneusz Gawlik. 1. **[Hubert](https://huggingface.co/docs/transformers/model_doc/hubert)** (from Facebook) released with the paper [HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units](https://arxiv.org/abs/2106.07447) by Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed. 1. **[LongT5](https://huggingface.co/docs/transformers/model_doc/longt5)** (from Google AI) released with the paper [LongT5: Efficient Text-To-Text Transformer for Long Sequences](https://arxiv.org/abs/2112.07916) by Mandy Guo, Joshua Ainslie, David Uthus, Santiago Ontanon, Jianmo Ni, Yun-Hsuan Sung, Yinfei Yang. 1. **[LLaMA](https://huggingface.co/docs/transformers/model_doc/llama)** (from The FAIR team of Meta AI) released with the paper [LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971) by Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, Guillaume Lample. 1. **[Llama2](https://huggingface.co/docs/transformers/model_doc/llama2)** (from The FAIR team of Meta AI) released with the paper [Llama2: Open Foundation and Fine-Tuned Chat Models](https://ai.meta.com/research/publications/llama-2-open-foundation-and-fine-tuned-chat-models/XXX) by Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushka rMishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing EllenTan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, Thomas Scialom. 1. **[M2M100](https://huggingface.co/docs/transformers/model_doc/m2m_100)** (from Facebook) released with the paper [Beyond English-Centric Multilingual Machine Translation](https://arxiv.org/abs/2010.11125) by Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandeep Baines, Onur Celebi, Guillaume Wenzek, Vishrav Chaudhary, Naman Goyal, Tom Birch, Vitaliy Liptchinsky, Sergey Edunov, Edouard Grave, Michael Auli, Armand Joulin. 1. **[MarianMT](https://huggingface.co/docs/transformers/model_doc/marian)** Machine translation models trained using [OPUS](http://opus.nlpl.eu/) data by Jörg Tiedemann. The [Marian Framework](https://marian-nmt.github.io/) is being developed by the Microsoft Translator Team. 1. **[mBART](https://huggingface.co/docs/transformers/model_doc/mbart)** (from Facebook) released with the paper [Multilingual Denoising Pre-training for Neural Machine Translation](https://arxiv.org/abs/2001.08210) by Yinhan Liu, Jiatao Gu, Naman Goyal, Xian Li, Sergey Edunov, Marjan Ghazvininejad, Mike Lewis, Luke Zettlemoyer. 1. **[mBART-50](https://huggingface.co/docs/transformers/model_doc/mbart)** (from Facebook) released with the paper [Multilingual Translation with Extensible Multilingual Pretraining and Finetuning](https://arxiv.org/abs/2008.00401) by Yuqing Tang, Chau Tran, Xian Li, Peng-Jen Chen, Naman Goyal, Vishrav Chaudhary, Jiatao Gu, Angela Fan. 1. **[Mistral](https://huggingface.co/docs/transformers/model_doc/mistral)** (from Mistral AI) by The [Mistral AI](https://mistral.ai) team: Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed. 1. **[MMS](https://huggingface.co/docs/transformers/model_doc/mms)** (from Facebook) released with the paper [Scaling Speech Technology to 1,000+ Languages](https://arxiv.org/abs/2305.13516) by Vineel Pratap, Andros Tjandra, Bowen Shi, Paden Tomasello, Arun Babu, Sayani Kundu, Ali Elkahky, Zhaoheng Ni, Apoorv Vyas, Maryam Fazel-Zarandi, Alexei Baevski, Yossi Adi, Xiaohui Zhang, Wei-Ning Hsu, Alexis Conneau, Michael Auli. 1. **[MobileBERT](https://huggingface.co/docs/transformers/model_doc/mobilebert)** (from CMU/Google Brain) released with the paper [MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices](https://arxiv.org/abs/2004.02984) by Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 1. **[MobileViT](https://huggingface.co/docs/transformers/model_doc/mobilevit)** (from Apple) released with the paper [MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer](https://arxiv.org/abs/2110.02178) by Sachin Mehta and Mohammad Rastegari. 1. **[MobileViTV2](https://huggingface.co/docs/transformers/model_doc/mobilevitv2)** (from Apple) released with the paper [Separable Self-attention for Mobile Vision Transformers](https://arxiv.org/abs/2206.02680) by Sachin Mehta and Mohammad Rastegari. 1. **[MPNet](https://huggingface.co/docs/transformers/model_doc/mpnet)** (from Microsoft Research) released with the paper [MPNet: Masked and Permuted Pre-training for Language Understanding](https://arxiv.org/abs/2004.09297) by Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, Tie-Yan Liu. 1. **[MPT](https://huggingface.co/docs/transformers/model_doc/mpt)** (from MosaiML) released with the repository [llm-foundry](https://github.com/mosaicml/llm-foundry/) by the MosaicML NLP Team. 1. **[MT5](https://huggingface.co/docs/transformers/model_doc/mt5)** (from Google AI) released with the paper [mT5: A massively multilingual pre-trained text-to-text transformer](https://arxiv.org/abs/2010.11934) by Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, Colin Raffel. 1. **[NLLB](https://huggingface.co/docs/transformers/model_doc/nllb)** (from Meta) released with the paper [No Language Left Behind: Scaling Human-Centered Machine Translation](https://arxiv.org/abs/2207.04672) by the NLLB team. 1. **[Nougat](https://huggingface.co/docs/transformers/model_doc/nougat)** (from Meta AI) released with the paper [Nougat: Neural Optical Understanding for Academic Documents](https://arxiv.org/abs/2308.13418) by Lukas Blecher, Guillem Cucurull, Thomas Scialom, Robert Stojnic. 1. **[OPT](https://huggingface.co/docs/transformers/master/model_doc/opt)** (from Meta AI) released with the paper [OPT: Open Pre-trained Transformer Language Models](https://arxiv.org/abs/2205.01068) by Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen et al. 1. **[OWL-ViT](https://huggingface.co/docs/transformers/model_doc/owlvit)** (from Google AI) released with the paper [Simple Open-Vocabulary Object Detection with Vision Transformers](https://arxiv.org/abs/2205.06230) by Matthias Minderer, Alexey Gritsenko, Austin Stone, Maxim Neumann, Dirk Weissenborn, Alexey Dosovitskiy, Aravindh Mahendran, Anurag Arnab, Mostafa Dehghani, Zhuoran Shen, Xiao Wang, Xiaohua Zhai, Thomas Kipf, and Neil Houlsby. 1. **[OWLv2](https://huggingface.co/docs/transformers/model_doc/owlv2)** (from Google AI) released with the paper [Scaling Open-Vocabulary Object Detection](https://arxiv.org/abs/2306.09683) by Matthias Minderer, Alexey Gritsenko, Neil Houlsby. 1. **[Phi](https://huggingface.co/docs/transformers/main/model_doc/phi)** (from Microsoft) released with the papers - [Textbooks Are All You Need](https://arxiv.org/abs/2306.11644) by Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, Adil Salim, Shital Shah, Harkirat Singh Behl, Xin Wang, Sébastien Bubeck, Ronen Eldan, Adam Tauman Kalai, Yin Tat Lee and Yuanzhi Li, [Textbooks Are All You Need II: phi-1.5 technical report](https://arxiv.org/abs/2309.05463) by Yuanzhi Li, Sébastien Bubeck, Ronen Eldan, Allie Del Giorno, Suriya Gunasekar and Yin Tat Lee. 1. **[Qwen2](https://huggingface.co/docs/transformers/model_doc/qwen2)** (from the Qwen team, Alibaba Group) released with the paper [Qwen Technical Report](https://arxiv.org/abs/2309.16609) by Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou and Tianhang Zhu. 1. **[ResNet](https://huggingface.co/docs/transformers/model_doc/resnet)** (from Microsoft Research) released with the paper [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385) by Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. 1. **[RoBERTa](https://huggingface.co/docs/transformers/model_doc/roberta)** (from Facebook), released together with the paper [RoBERTa: A Robustly Optimized BERT Pretraining Approach](https://arxiv.org/abs/1907.11692) by Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, Veselin Stoyanov. 1. **[RoFormer](https://huggingface.co/docs/transformers/model_doc/roformer)** (from ZhuiyiTechnology), released together with the paper [RoFormer: Enhanced Transformer with Rotary Position Embedding](https://arxiv.org/abs/2104.09864) by Jianlin Su and Yu Lu and Shengfeng Pan and Bo Wen and Yunfeng Liu. 1. **[SegFormer](https://huggingface.co/docs/transformers/model_doc/segformer)** (from NVIDIA) released with the paper [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) by Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo. 1. **[Segment Anything](https://huggingface.co/docs/transformers/model_doc/sam)** (from Meta AI) released with the paper [Segment Anything](https://arxiv.org/pdf/2304.02643v1.pdf) by Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alex Berg, Wan-Yen Lo, Piotr Dollar, Ross Girshick. 1. **[SigLIP](https://huggingface.co/docs/transformers/main/model_doc/siglip)** (from Google AI) released with the paper [Sigmoid Loss for Language Image Pre-Training](https://arxiv.org/abs/2303.15343) by Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, Lucas Beyer. 1. **[SpeechT5](https://huggingface.co/docs/transformers/model_doc/speecht5)** (from Microsoft Research) released with the paper [SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing](https://arxiv.org/abs/2110.07205) by Junyi Ao, Rui Wang, Long Zhou, Chengyi Wang, Shuo Ren, Yu Wu, Shujie Liu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, Yao Qian, Jinyu Li, Furu Wei. 1. **[SqueezeBERT](https://huggingface.co/docs/transformers/model_doc/squeezebert)** (from Berkeley) released with the paper [SqueezeBERT: What can computer vision teach NLP about efficient neural networks?](https://arxiv.org/abs/2006.11316) by Forrest N. Iandola, Albert E. Shaw, Ravi Krishna, and Kurt W. Keutzer. 1. **[StableLm](https://huggingface.co/docs/transformers/model_doc/stablelm)** (from Stability AI) released with the paper [StableLM 3B 4E1T (Technical Report)](https://stability.wandb.io/stability-llm/stable-lm/reports/StableLM-3B-4E1T--VmlldzoyMjU4?accessToken=u3zujipenkx5g7rtcj9qojjgxpconyjktjkli2po09nffrffdhhchq045vp0wyfo) by Jonathan Tow, Marco Bellagente, Dakota Mahan, Carlos Riquelme Ruiz, Duy Phung, Maksym Zhuravinskyi, Nathan Cooper, Nikhil Pinnaparaju, Reshinth Adithyan, and James Baicoianu. 1. **[Starcoder2](https://huggingface.co/docs/transformers/main/model_doc/starcoder2)** (from BigCode team) released with the paper [StarCoder 2 and The Stack v2: The Next Generation](https://arxiv.org/abs/2402.19173) by Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, Tianyang Liu, Max Tian, Denis Kocetkov, Arthur Zucker, Younes Belkada, Zijian Wang, Qian Liu, Dmitry Abulkhanov, Indraneil Paul, Zhuang Li, Wen-Ding Li, Megan Risdal, Jia Li, Jian Zhu, Terry Yue Zhuo, Evgenii Zheltonozhskii, Nii Osae Osae Dade, Wenhao Yu, Lucas Krauß, Naman Jain, Yixuan Su, Xuanli He, Manan Dey, Edoardo Abati, Yekun Chai, Niklas Muennighoff, Xiangru Tang, Muhtasham Oblokulov, Christopher Akiki, Marc Marone, Chenghao Mou, Mayank Mishra, Alex Gu, Binyuan Hui, Tri Dao, Armel Zebaze, Olivier Dehaene, Nicolas Patry, Canwen Xu, Julian McAuley, Han Hu, Torsten Scholak, Sebastien Paquet, Jennifer Robinson, Carolyn Jane Anderson, Nicolas Chapados, Mostofa Patwary, Nima Tajbakhsh, Yacine Jernite, Carlos Muñoz Ferrandis, Lingming Zhang, Sean Hughes, Thomas Wolf, Arjun Guha, Leandro von Werra, and Harm de Vries. 1. **[Swin Transformer](https://huggingface.co/docs/transformers/model_doc/swin)** (from Microsoft) released with the paper [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030) by Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, Baining Guo. 1. **[Swin2SR](https://huggingface.co/docs/transformers/model_doc/swin2sr)** (from University of Würzburg) released with the paper [Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restoration](https://arxiv.org/abs/2209.11345) by Marcos V. Conde, Ui-Jin Choi, Maxime Burchi, Radu Timofte. 1. **[T5](https://huggingface.co/docs/transformers/model_doc/t5)** (from Google AI) released with the paper [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://arxiv.org/abs/1910.10683) by Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu. 1. **[T5v1.1](https://huggingface.co/docs/transformers/model_doc/t5v1.1)** (from Google AI) released in the repository [google-research/text-to-text-transfer-transformer](https://github.com/google-research/text-to-text-transfer-transformer/blob/main/released_checkpoints.md#t511) by Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu. 1. **[Table Transformer](https://huggingface.co/docs/transformers/model_doc/table-transformer)** (from Microsoft Research) released with the paper [PubTables-1M: Towards Comprehensive Table Extraction From Unstructured Documents](https://arxiv.org/abs/2110.00061) by Brandon Smock, Rohith Pesala, Robin Abraham. 1. **[TrOCR](https://huggingface.co/docs/transformers/model_doc/trocr)** (from Microsoft), released together with the paper [TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models](https://arxiv.org/abs/2109.10282) by Minghao Li, Tengchao Lv, Lei Cui, Yijuan Lu, Dinei Florencio, Cha Zhang, Zhoujun Li, Furu Wei. 1. **[UniSpeech](https://huggingface.co/docs/transformers/model_doc/unispeech)** (from Microsoft Research) released with the paper [UniSpeech: Unified Speech Representation Learning with Labeled and Unlabeled Data](https://arxiv.org/abs/2101.07597) by Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, Xuedong Huang. 1. **[UniSpeechSat](https://huggingface.co/docs/transformers/model_doc/unispeech-sat)** (from Microsoft Research) released with the paper [UNISPEECH-SAT: UNIVERSAL SPEECH REPRESENTATION LEARNING WITH SPEAKER AWARE PRE-TRAINING](https://arxiv.org/abs/2110.05752) by Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen, Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, Xiangzhan Yu. 1. **[Vision Transformer (ViT)](https://huggingface.co/docs/transformers/model_doc/vit)** (from Google AI) released with the paper [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://arxiv.org/abs/2010.11929) by Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby. 1. **[ViTMatte](https://huggingface.co/docs/transformers/model_doc/vitmatte)** (from HUST-VL) released with the paper [ViTMatte: Boosting Image Matting with Pretrained Plain Vision Transformers](https://arxiv.org/abs/2305.15272) by Jingfeng Yao, Xinggang Wang, Shusheng Yang, Baoyuan Wang. 1. **[VITS](https://huggingface.co/docs/transformers/model_doc/vits)** (from Kakao Enterprise) released with the paper [Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech](https://arxiv.org/abs/2106.06103) by Jaehyeon Kim, Jungil Kong, Juhee Son. 1. **[Wav2Vec2](https://huggingface.co/docs/transformers/model_doc/wav2vec2)** (from Facebook AI) released with the paper [wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations](https://arxiv.org/abs/2006.11477) by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli. 1. **[Wav2Vec2-BERT](https://huggingface.co/docs/transformers/main/model_doc/wav2vec2-bert)** (from Meta AI) released with the paper [Seamless: Multilingual Expressive and Streaming Speech Translation](https://ai.meta.com/research/publications/seamless-multilingual-expressive-and-streaming-speech-translation/) by the Seamless Communication team. 1. **[WavLM](https://huggingface.co/docs/transformers/model_doc/wavlm)** (from Microsoft Research) released with the paper [WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing](https://arxiv.org/abs/2110.13900) by Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Jian Wu, Michael Zeng, Furu Wei. 1. **[Whisper](https://huggingface.co/docs/transformers/model_doc/whisper)** (from OpenAI) released with the paper [Robust Speech Recognition via Large-Scale Weak Supervision](https://cdn.openai.com/papers/whisper.pdf) by Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, Ilya Sutskever. 1. **[XLM](https://huggingface.co/docs/transformers/model_doc/xlm)** (from Facebook) released together with the paper [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample and Alexis Conneau. 1. **[XLM-RoBERTa](https://huggingface.co/docs/transformers/model_doc/xlm-roberta)** (from Facebook AI), released together with the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau*, Kartikay Khandelwal*, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. 1. **[YOLOS](https://huggingface.co/docs/transformers/model_doc/yolos)** (from Huazhong University of Science & Technology) released with the paper [You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection](https://arxiv.org/abs/2106.00666) by Yuxin Fang, Bencheng Liao, Xinggang Wang, Jiemin Fang, Jiyang Qi, Rui Wu, Jianwei Niu, Wenyu Liu.
State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
browser,javascript,transformers,webml
2023-02-13T13:51:45Z
2024-05-23T10:13:52Z
2024-04-18T15:25:49Z
27
303
1,071
155
433
7,867
null
Apache-2.0
JavaScript
dosco/llm-client
main
# LLMClient - Typescript/JS Library to build with LLMs JS/TS library to make to easy to build with LLMs. Full support for various LLMs and VectorDBs, Agents, Function Calling, Chain-of-Thought, RAG, Semantic Router and more. Based on the popular Stanford DSP paper. Create and compose efficient prompts using prompt signatures. 🌵 🦙 🔥 ❤️ 🖖🏼 [![NPM Package](https://img.shields.io/npm/v/llmclient?style=for-the-badge&color=green)](https://www.npmjs.com/package/llmclient) [![Twitter](https://img.shields.io/twitter/follow/dosco?style=for-the-badge&color=red)](https://twitter.com/dosco) [![Discord Chat](https://dcbadge.vercel.app/api/server/DSHg3dU7dW?style=for-the-badge)](https://discord.gg/DSHg3dU7dW) ![llama-small](https://github.com/dosco/llm-client/assets/832235/b959fdd6-c723-49b1-9fb9-bf879e75c147) ## Build with prompt signatures LLMClient is an easy to use library build around "Prompt Signatures" from the `Stanford DSP` paper. This library will automatically generate efficient and typed prompts from prompt signatures like `question:string -> answer:string`. Build powerful workflows using components like RAG, ReAcT, Chain of Thought, Function calling, Agents, etc all built on prompt signatures and easy to compose together to build whatever you want. Using prompt signatures automatically gives you the ability to fine tune your prompt programs using optimizers. Tune with a larger model and have your program run efficiently on a smaller model. The tuning here is not the traditional model tuning but what we call prompt tuning. ## Why use LLMClient? - Support for various LLMs and Vector DBs - Prompts auto-generated from simple signatures - Multi-Hop RAG, ReAcT, CoT, Function Calling and more - Build Agents that can call other agents - Convert docs of any format to text - RAG, smart chunking, embedding, querying - Automatic prompt tuning using optimizers - Production ready Typescript code - Almost zero-dependencies ## Whats a prompt signature? <img width="860" alt="shapes at 24-03-31 00 05 55" src="https://github.com/dosco/llm-client/assets/832235/0f0306ea-1812-4a0a-9ed5-76cd908cd26b"> Efficient type-safe prompts are auto-generated from a simple signature. A prompt signature is made of a `"task description" inputField:type "field description" -> outputField:type"`. The idea behind prompt signatures is based off work done in the "Demonstrate-Search-Predict" paper. You can have multiple input and output fields and each field has one of these types `string`, `number`, `boolean`, `json` or a array of any of these eg. `string[]`. When a type is not defined it defaults to `string`. When the `json` type if used the underlying AI is encouraged to generate correct JSON. ## LLM's Supported | Provider | Best Models | Tested | | ------------- | ----------------------- | ------- | | OpenAI | GPT: 4o, 4T, 4, 3.5 | 🟢 100% | | Azure OpenAI | GPT: 4, 4T, 3.5 | 🟢 100% | | Together | Several OSS Models | 🟢 100% | | Cohere | CommandR, Command | 🟢 100% | | Anthropic | Claude 2, Claude 3 | 🟢 100% | | Mistral | 7B, 8x7B, S, M & L | 🟢 100% | | Groq | Lama2-70B, Mixtral-8x7b | 🟢 100% | | DeepSeek | Chat and Code | 🟢 100% | | Ollama | All models | 🟢 100% | | Google Vertex | Palm, Bison | 🟡 50% | | Google Gemini | Gemini 1.0 | 🟡 50% | | Hugging Face | OSS Model | 🟡 50% | ## Example: Using chain-of-thought to summarize text ```typescript import { AI, ChainOfThought, OpenAIArgs } from 'llmclient'; const textToSummarize = ` The technological singularity—or simply the singularity[1]—is a hypothetical future point in time at which technological growth becomes uncontrollable and irreversible, resulting in unforeseeable changes to human civilization.[2][3] ...`; const ai = AI('openai', { apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); const gen = new ChainOfThought( ai, `textToSummarize -> shortSummary "summarize in 5 to 10 words"` ); const res = await gen.forward({ textToSummarize }); console.log('>', res); ``` ## Example: Building an agent Use the agent prompt (framework) to build agents that work with other agents to complete tasks. Agents are easy to build with prompt signatures. Try out the agent example. ```typescript # npm run tsx ./src/examples/agent.ts const researcher = new Agent(ai, { name: 'researcher', description: 'Researcher agent', signature: `physicsQuestion "physics questions" -> answer "reply in bullet points"` }); const summarizer = new Agent(ai, { name: 'summarizer', description: 'Summarizer agent', signature: `text "text so summarize" -> shortSummary "summarize in 5 to 10 words"` }); const agent = new Agent(ai, { name: 'agent', description: 'A an agent to research complex topics', signature: `question -> answer`, agents: [researcher, summarizer] }); agent.forward({ questions: "How many atoms are there in the universe" }) ``` ## Fast LLM Router A special router that uses no LLM calls only embeddings to route user requests smartly. Use the Router to efficiently route user queries to specific routes designed to handle certain types of questions or tasks. Each route is tailored to a particular domain or service area. Instead of using a slow or expensive LLM to decide how input from the user should be handled use our fast "Semantic Router" that uses inexpensive and fast embedding queries. ```typescript # npm run tsx ./src/examples/routing.ts const customerSupport = new Route('customerSupport', [ 'how can I return a product?', 'where is my order?', 'can you help me with a refund?', 'I need to update my shipping address', 'my product arrived damaged, what should I do?' ]); const technicalSupport = new Route('technicalSupport', [ 'how do I install your software?', 'I’m having trouble logging in', 'can you help me configure my settings?', 'my application keeps crashing', 'how do I update to the latest version?' ]); const ai = AI('openai', { apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); const router = new Router(ai); await router.setRoutes( [customerSupport, technicalSupport], { filename: 'router.json' } ); const tag = await router.forward('I need help with my order'); if (tag === "customerSupport") { ... } if (tag === "technicalSupport") { ... } ``` ## Vector DBs Supported Vector databases are critical to building LLM workflows. We have clean abstractions over popular vector db's as well as our own quick in memory vector database. | Provider | Tested | | ---------- | ------- | | In Memory | 🟢 100% | | Weaviate | 🟢 100% | | Cloudflare | 🟡 50% | | Pinecone | 🟡 50% | ```typescript // Create embeddings from text using an LLM const ret = await this.ai.embed({ texts: 'hello world' }); // Create an in memory vector db const db = new DB('memory'); // Insert into vector db await this.db.upsert({ id: 'abc', table: 'products', values: ret.embeddings[0] }); // Query for similar entries using embeddings const matches = await this.db.query({ table: 'products', values: embeddings[0] }); ``` Alternatively you can use the `DBManager` which handles smart chunking, embedding and querying everything for you, it makes things almost too easy. ```typescript const manager = new DBManager({ ai, db }); await manager.insert(text); const matches = await manager.query( 'John von Neumann on human intelligence and singularity.' ); console.log(matches); ``` ## RAG Documents Using documents like PDF, DOCX, PPT, XLS, etc with LLMs is a huge pain. We make it easy with the help of Apache Tika an open source document processing engine. Launch Apache Tika ```shell docker run -p 9998:9998 apache/tika ``` Convert documents to text and embed them for retrieval using the `DBManager` it also supports a reranker and query rewriter. Two default implementations `DefaultResultReranker` and `DefaultQueryRewriter` are available to use. ```typescript const tika = new ApacheTika(); const text = await tika.convert('/path/to/document.pdf'); const manager = new DBManager({ ai, db }); await manager.insert(text); const matches = await manager.query('Find some text'); console.log(matches); ``` ## Tuning the prompts (programs) You can tune your prompts using a larger model to help them run more efficiently and give you better results. This is done by using an optimizer like `BootstrapFewShot` with and examples from the popular `HotPotQA` dataset. The optimizer generates demonstrations `demos` which when used with the prompt help improve its efficiency. ```typescript // Download the HotPotQA dataset from huggingface const hf = new HFDataLoader(); const examples = await hf.getData<{ question: string; answer: string }>({ dataset: 'hotpot_qa', split: 'train', count: 100, fields: ['question', 'answer'] }); const ai = AI('openai', { apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); // Setup the program to tune const program = new ChainOfThought<{ question: string }, { answer: string }>( ai, `question -> answer "in short 2 or 3 words"` ); // Setup a Bootstrap Few Shot optimizer to tune the above program const optimize = new BootstrapFewShot<{ question: string }, { answer: string }>( { program, examples } ); // Setup a evaluation metric em, f1 scores are a popular way measure retrieval performance. const metricFn: MetricFn = ({ prediction, example }) => emScore(prediction.answer as string, example.answer as string); // Run the optimizer and save the result await optimize.compile(metricFn, { filename: 'demos.json' }); ``` <img width="853" alt="tune-prompt" src="https://github.com/dosco/llm-client/assets/832235/f924baa7-8922-424c-9c2c-f8b2018d8d74"> And to use the generated demos with the above `ChainOfThought` program ```typescript const ai = AI('openai', { apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); // Setup the program to use the tuned data const program = new ChainOfThought<{ question: string }, { answer: string }>( ai, `question -> answer "in short 2 or 3 words"` ); // load tuning data program.loadDemos('demos.json'); const res = await program.forward({ question: 'What castle did David Gregory inherit?' }); console.log(res); ``` ## Checkout more examples Use the `tsx` command to run the examples it makes node run typescript code. It also support using a `.env` file to pass the AI API Keys as opposed to putting them in the commandline. ```shell OPENAI_APIKEY=openai_key npm run tsx ./src/examples/marketing.ts ``` | Example | Description | | ------------------- | ------------------------------------------------------- | | customer-support.ts | Extract valuable details from customer communications | | food-search.ts | Use multiple APIs are used to find dinning options | | marketing.ts | Generate short effective marketing sms messages | | vectordb.ts | Chunk, embed and search text | | fibonacci.ts | Use the JS code interpreter to compute fibonacci | | summarize.ts | Generate a short summary of a large block of text | | chain-of-thought.ts | Use chain-of-thought prompting to answer questions | | rag.ts | Use multi-hop retrieval to answer questions | | rag-docs.ts | Convert PDF to text and embed for rag search | | react.ts | Use function calling and reasoning to answer questions | | agent.ts | Agent framework, agents can use other agents, tools etc | | qna-tune.ts | Use an optimizer to improve prompt efficiency | | qna-use-tuned.ts | Use the optimized tuned prompts | ## Reasoning + Function Calling Often you need the LLM to reason through a task and fetch and update external data related to this task. This is where reasoning meets function (API) calling. It's built-in so you get all of the magic automatically. Just define the functions you wish to you, a schema for the response object and thats it. There are even some useful built-in functions like a `Code Interpreter` that the LLM can use to write and execute JS code. We support providers like OpenAI that offer multiple parallel function calling and the standard single function calling. ## Built-in Functions | Function | Description | | ------------------ | ------------------------------------------------------ | | Code Interpreter | Used by the LLM to execute JS code in a sandboxed env. | | Embeddings Adapter | Wrapper to fetch and pass embedding to your function | ## Our Goal Large language models (LLMs) are getting really powerful and have reached a point where they can work as the backend for your entire product. However there is still a lot of manage a lot of complexity to manage from using the right prompts, models, etc. Our goal is to package all this complexity into a well maintained easy to use library that can work with all the LLMs out there. Additionally we are using the latest research to add useful new capabilities like DSP to the library. ## How to use this library? ### 1. Pick an AI to work with ```ts // Pick a LLM const ai = new OpenAI({ apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); ``` ### 2. Pick a memory for storing context (optional) ```ts // Can be sub classed to build you own memory backends const mem = new Memory(); ``` ### 3. Pick a prompt based on your usecase ```ts const cot = new ChainOfThought(ai, `question:string -> answer:string`, { mem }); ``` ### 4. Use the prompt ```ts const res = await cot.forward({ question: 'Are we in a simulation?' }); ``` ### 5. Alternatively use the LLM directly. ```ts const res = await ai.chat([ { role: "system", content: "Help the customer with his questions" } { role: "user", content: "I'm looking for a Macbook Pro M2 With 96GB RAM?" } ]); ``` ## How do you use function calling ### 1. Define the functions ```ts // define one or more functions and a function handler const functions = [ { name: 'getCurrentWeather', description: 'get the current weather for a location', parameters: { type: 'object', properties: { location: { type: 'string', description: 'location to get weather for' }, units: { type: 'string', enum: ['imperial', 'metric'], default: 'imperial', description: 'units to use' } }, required: ['location'] }, func: async (args: Readonly<{ location: string; units: string }>) => { return `The weather in ${args.location} is 72 degrees`; } } ]; ``` ### 2. Pass the functions to a prompt ```ts const cot = new ReAct(ai, `question:string -> answer:string`, { functions }); ``` ## Enable debug logs ```ts const ai = new OpenAI({ apiKey: process.env.OPENAI_APIKEY } as OpenAIArgs); ai.setOptions({ debug: true }); ``` ## Reach out We're happy to help reach out if you have questions or join the Discord [twitter/dosco](https://twitter.com/dosco) ## FAQ ### 1. The LLM can't find the right function to use Improve the function naming and description be very clear on what the function does. Also ensure the function parameter's also have good descriptions. The descriptions don't have to be very long but need to be clear. ### 2. How do I change the configuration of the LLM used You can pass a configuration object as the second parameter when creating a new LLM object ```ts const apiKey = process.env.OPENAI_APIKEY; const conf = OpenAIBestConfig(); const ai = new OpenAI({ apiKey, conf } as OpenAIArgs); ``` ## 3. My prompt is too long and can I change the max tokens ```ts const conf = OpenAIDefaultConfig(); // or OpenAIBestOptions() conf.maxTokens = 2000; ``` ## 4. How do I change the model say I want to use GPT4 ```ts const conf = OpenAIDefaultConfig(); // or OpenAIBestOptions() conf.model = OpenAIModel.GPT4Turbo; ```
JS/TS library to make to easy to build with LLMs. Full support for various LLMs and VectorDBs, Agents, Function Calling, Chain-of-Thought, RAG, Semantic Router and more. Based on the popular Stanford DSP paper. Create and compose efficient prompts using prompt signatures. 🌵 🦙 🔥 ❤️ 🖖🏼
ai,cohere,llm,openai,typescript,javascript,nodejs,claude,large-language-models,opensource
2023-02-23T19:21:40Z
2024-05-22T06:51:31Z
null
2
3
217
4
29
534
null
Apache-2.0
TypeScript
traceloop/jest-opentelemetry
main
<p align="center"> <a href="https://www.traceloop.com/"> <img width="300" src="https://raw.githubusercontent.com/traceloop/jest-opentelemetry/main/img/logo.png"> </a> </p> <h1 align="center">Jest OpenTelemetry</h1> <p align="center"> <p align="center">Integeration tests with 10 lines of code</p> </p> <h4 align="center"> <a href="https://traceloop.com/docs/jest-otel/getting-started"><strong>Get started »</strong></a> <br /> <br /> <a href="https://join.slack.com/t/traceloopcommunity/shared_invite/zt-1plpfpm6r-zOHKI028VkpcWdobX65C~g">Slack</a> | <a href="https://traceloop.com/docs/jest-otel/introduction">Docs</a> | <a href="https://traceloop.com/docs/jest-otel/syntax/overview">Examples</a> | <a href="https://www.traceloop.com">Website</a> </h4> <h4 align="center"> <a href="https://github.com/traceloop/jest-opentelemetry/blob/main/LICENSE"> <img src="https://img.shields.io/badge/license-Apache 2.0-blue.svg" alt="Jest OpenTelemetry is released under the Apache-2.0 License"> </a> <a href="https://www.ycombinator.com/companies/traceloop"><img src="https://img.shields.io/website?color=%23f26522&down_message=Y%20Combinator&label=Backed&logo=ycombinator&style=flat-square&up_message=Y%20Combinator&url=https%3A%2F%2Fwww.ycombinator.com"></a> <a href="https://github.com/traceloop/jest-opentelemetry/blob/main/CONTRIBUTING.md"> <img src="https://img.shields.io/badge/PRs-Welcome-brightgreen" alt="PRs welcome!" /> </a> <a href="https://github.com/traceloop/jest-opentelemetry/issues"> <img src="https://img.shields.io/github/commit-activity/m/traceloop/jest-opentelemetry" alt="git commit activity" /> </a> <a href="https://join.slack.com/t/traceloopcommunity/shared_invite/zt-1plpfpm6r-zOHKI028VkpcWdobX65C~g"> <img src="https://img.shields.io/badge/chat-on%20Slack-blueviolet" alt="Slack community channel" /> </a> <a href="https://twitter.com/traceloopdev"> <img src="https://img.shields.io/badge/follow-%40traceloopdev-1DA1F2?logo=twitter&style=social" alt="Traceloop Twitter" /> </a> </h4> Jest OpenTelemetry allows you to write, build and run integration tests based on OpenTelemetry traces with [Jest-like](https://jestjs.io/) syntax. You can: - 🕵️ Test any side-effect in your system: an email was sent, a database was updated, a BI event was reported, etc. - 👩‍💻 Run your tests and connect to a local or remote test environment. All with just a few lines of code. It's built and maintained by Traceloop under the Apache 2.0 license. ## 🚀 Getting Started ```js npm i --save-dev @traceloop/jest-opentelemetry ``` Then, you can start testing your microservices: ```js const traceloop = new TraceLoop(); await traceloop.axiosInstance.post('http://my.awesome.website/orders/create'); await traceloop.fetchTraces(); expectTrace(traceloop.serviceByName('emails-service')) .toReceiveHttpRequest() .ofMethod('POST') .withBody({ emailTemplate: 'orderCreated', itemId: '123' }); ``` More info can be found in our [docs](https://traceloop.com/docs/jest-otel/getting-started). ## What can you test? Jest OpenTelemetry can be used to test anything that's happening in your system. We're constantly adding more, and you're welcome to [suggest yours](https://github.com/traceloop/jest-opentelemetry/issues). ### Service Assertions - [x] [REST](http://traceloop.com/docs/jest-otel/syntax/services-rest) - [ ] GraphQL - [x] [GRPC](http://traceloop.com/docs/jest-otel/syntax/services-grpc) ### Database Assertions - [x] [PostgreSQL](http://traceloop.com/docs/jest-otel/syntax/db-pg) - [ ] MongoDB - [x] [Redis](http://traceloop.com/docs/jest-otel/syntax/db-redis) - [ ] S3 ### Analytics Reporting Assertions - [ ] Segment - [ ] Snowflake - [ ] BigQuery - [ ] Posthog ### External Systems Assertions - [ ] SendGrid - [ ] Stripe ## 🌱 Contributing Whether it's big or small, we love contributions ❤️ Check out our guide to see how to [get started](https://traceloop.com/docs/contributing/overview). Not sure where to get started? You can: - [Book a free pairing session with one of our teammates](mailto:nir@traceloop.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! - Join our <a href="https://join.slack.com/t/traceloopcommunity/shared_invite/zt-1plpfpm6r-zOHKI028VkpcWdobX65C~g">Slack</a>, and ask us any questions there. ## 💚 Community & Support - [Slack](https://join.slack.com/t/traceloopcommunity/shared_invite/zt-1plpfpm6r-zOHKI028VkpcWdobX65C~g) (For live discussion with the community and the Traceloop team) - [GitHub Discussions](https://github.com/traceloop/jest-opentelemetry/discussions) (For help with building and deeper conversations about features) - [GitHub Issues](https://github.com/traceloop/jest-opentelemetry/issues) (For any bugs and errors you encounter using Jest OpenTelemetry) - [Twitter](https://twitter.com/traceloopdev) (Get news fast)
Easily run integration tests for your backends
e2e-testing,otel,test-automation,testing,tracing,open-telemetry,typescript,api-testing,javascript,jest
2023-02-16T20:59:01Z
2023-06-20T09:36:45Z
null
4
73
157
4
8
256
null
Apache-2.0
JavaScript
JasonDsouza212/free-hit
main
<div align="center"> <h1>Welcome <img src="https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif" width="25px"></h1> Free-Hit is a website where you can search for free tools that are useful for your daily needs. This application is created by the incredible open-source community. On Free-Hit, you can discover a collection of free tools that can assist you in various aspects of your life. Moreover, you have the opportunity to contribute to this project by adding more tools to the database.</div> > You can check out the live project at https://free-hit.vercel.app > ![free-hit](https://github.com/JasonDsouza212/free-hit/assets/88102392/3bd18ef6-fc72-4882-85c3-9591c7d94067) ## Table of Content - [Why to Open Source?](#Why-to-Open-Source?) - [🌟 Benefits of Contributing to Open-Source](#-Benefits-of-Contributing-to-Open-Source) - [Tech Stack](#Tech-Stack) - [🚀 Quick start](#-Quick-start) - [License](#License) - [🤝 Our Contributors](#-Our-Contributors) ## Why to Open Source? Open Source increases our prospects and opportunities in contributing to various kinds of projects and engage with different kinds of mentors. It helps us to build connections and open a gate to various kinds of open source technologies. Our website is one such kind that provides a platform for contributors from all over the world to give their inputs in the form of useful websites which are free to use. It enables us to get a list of all the websites together in one place thereby saving a lot of time for us. We can find any kind of website here, be it a tool or an education platform. Hence, it is declared a knowledge-sharing platform! ## 🌟 Benefits of Contributing to Open-Source Contributing to open-source projects like Free-Hit has numerous benefits. It helps you: 1. Give back to the community: By contributing, you help grow and improve the tools that you and many others use. 2. Build your portfolio: Your contributions can serve as real-world examples of your work and make you stand out in the job market. These can enhance your resume. 3. Improve existing skills and learn new ones: Working on real-world projects allows you to apply what you've learned and gain more knowledge along the way. 4. Network with professionals: You get to connect and collaborate with professionals around the world, opening up potential job opportunities. ## Tech Stack - [Reactjs](https://react.dev) - Reactjs is a JavaScript library for building user interfaces. - [Vite](https://vitejs.dev) - Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. - [PNPM](https://pnpm.io) - PNPM is a fast, disk space efficient package manager that helps to fetch packages from the registry. ## 🚀 Quick start Contributions are welcome! If you have any ideas, suggestions, or bug fixes, please open an issue or submit a pull request. Make sure to follow the project's code of conduct. > **Note**: If you are new to open source contributions, you can refer to [this](https://opensource.guide/how-to-contribute/) guide by GitHub. > **Warning**: Please do not spam the repository with unnecessary PRs. Make sure to follow the project's [code of conduct](/CODE_OF_CONDUCT.md). - Go through the [CONTRIBUTING.md](/CONTRIBUTING.md) file, where all the guidelines have been mentioned that will guide you to make your contribution. - Do check out the [project issue tracker](https://github.com/JasonDsouza212/free-hit/issues) section. - Follow conventional commits for commit messages. You can read more about it [here](https://www.conventionalcommits.org/en/v1.0.0/). - Make sure to add the issue number in the commit message. For example, `git commit -m "fix: fixed a bug in the navbar #1"`. - Make sure to add the issue number in the PR title & description. For example, `fix: fixed a bug in the navbar #1`. - If your PR is an invalid one, it will be marked as `invalid` and closed. - If your PR is a duplicate one, it will be marked as `duplicate` and closed. ## License [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Terms and conditions for use, reproduction, and distribution are under the [MIT License](https://opensource.org/license/mit/). ## ✨ Authors(only for GSSoC'23) [ Jason Dsouza](https://github.com/JasonDsouza212) - Project Admin <a name="changelog"></a> ## 🌐 Socials: [![LinkedIn](https://img.shields.io/badge/LinkedIn-0A66C2.svg?style=for-the-badge&logo=LinkedIn&logoColor=white)](https:/www.linkedin.com/in/jason-dsouza-130b421ba/) [![Twitter](https://img.shields.io/badge/Twitter-1D9BF0.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://twitter.com/_Jason_Dsouza) ## 🤝 Our Contributors Thank you for your interest in contributing to our project! We appreciate any contributions, whether it's bug fixes, new features, or documentation improvements. We value the time and effort you put into contributing, and we look forward to reviewing and merging your contributions. Join us on this exciting journey of creativity and collaboration. <!-- a big thanks to all the contributors --> <details align=center> <summary>Contributors are here!!</summary> <center> <a href="https://github.com/jasondsouza212/free-hit/graphs/contributors"> <img src="https://contrib.rocks/image?repo=jasondsouza212/free-hit" /> </a> </center> </details> <div align=center> <h2>This Project was part of</h2> <!-- <img alt="GSSoC" src="https://github.com/priyankarpal/ProjectsHut/assets/88102392/0c5debf5-d414-4916-87d8-e1a710773ae3"> --> ![GSSoC Logo Light](https://user-images.githubusercontent.com/63473496/213306239-9e8fc317-ce2f-4127-8bfe-17f5df06ee99.png#gh-light-mode-only) ![GSSoC Logo Dark](https://user-images.githubusercontent.com/63473496/213306279-338f7ce9-9a9f-4427-8c2a-3e344874498f.png#gh-dark-mode-only) </div>
🏏Free-Hit is an application that is used to search for Free tools that are both free 🆓 and helpful for our needs. Don't forget to 🌟 this repository
css,html,javascript,reactjs,git,github,open-source,collaborate
2023-02-14T17:46:43Z
2023-10-13T14:16:52Z
2023-10-13T14:16:52Z
188
843
1,905
0
264
231
null
MIT
JavaScript
jadehh/TVSpider
main
# CatVodOpen和TvBox ## 食用前阅读 &ensp;&ensp;授人以鱼不如授人以渔,本仓意指在教会大家学会Spider,也欢迎大家提ISSUE,一起学习一起进步。<br> &ensp;&ensp;以下资源不能保证内容的合法性、准确性、完整性和有效性,请根据情况自行判断。 仅用于测试和学习研究,禁止用于商业用途,不得将其用于违反国家、地区、组织等的法律法规或相关规定的其他用途。 使用任何第三方硬件、软件、所造成的一切后果由使用的个人或组织承担,与本文内容无关。 所有直接或间接使用本内容的个人和组织,应 24 小时内完成学习和研究,并及时删除本文内容。 所有基于本内容的源代码,进行的任何修改,为其他个人或组织的自发行为,与本内容没有任何直接或间接的关系,所造成的一切后果亦与本内容和本管理者无关。 本管理者保留随时更改或补充此免责声明的权利。一旦使用、复制、转载、发布、修改了本文内容,则视为您已接受此免责声明。否则后果自负。 本接口无公众号、无盈利、无引流、免费分享给小白使用,请勿轻信他人,谨防上当受骗。 [使用教程见Wiki](https://github.com/jadehh/TVSpider/wiki) ## TVBox互联网发布地址 [TV发布地址](https://github.com/FongMi/Release/tree/main/apk/release) ```bash https://gh.con.sh/https://raw.githubusercontent.com/jadehh/TVSpider/js/tv_config.json ``` > 配置信息见js分支分支 ## CatVodOpen [CatVodOpen发布地址](https://github.com/catvod/CatVodOpen/releases) > 注意使用Gitee或Github导入,并设置为私有仓库,<font color="red">CatVodOpen仅支持私有仓库</font> V1.1.3版本以上 ```bash gitee://Token@gitee.com/jadehh_743/TVSpider/dist/index.js.md5 ``` <font color="red">**改动**</font> * quickjs改为nodejs,proxy设置修改 * 在ios上无法使用local,使用db替换local所有方法 * nodejs 的优势在于更加灵活 > 配置信息见dist分支 V1.1.2版本以下 ```bash gitee://Token@gitee.com/jadehh_743/TVSpider/js/open_config.json ``` > 配置信息见js分支分支 ## config文件生成 ```bash python build.py --aliToken aliToken ``` > Token如果失效,需要重新获取阿里Token > > [阿里Token获取](https://alist.nn.ci/zh/guide/drivers/aliyundrive.html) > > nodejs 部分只生成代码,需要手动build,区分18+ ## 直播源生成 > 见[jadehh/LiveSpider](https://github.com/jadehh/LiveSpider) ## 遇到的问题 * 玩偶姐姐播放不了,需要切换VPN节点 * m3u8遇到跨域的问题可以尝试使用代理来进行加载,如果没有跨域使用代理会引起死循环 * 虎牙弹幕功能无法实现,现在并不支持WebSocket来监听弹幕 * SP360启用嗅探解析,CatVodOpen目前还不支持嗅探 * CatVodOpen Windows无法预览Jable和Doll图片,需要手动开启代理加载。 * TV影视暂不不支持哔哩哔哩DASH文件播放 * 老版本的CatVodOpen cfg参数类型为:string,TV参数类型为[object],所有需要区分,初始化的时候还是用this.cfgObj ## 特别说明 * 近期CatVodOpen更新移除了quickjs,导致无法使用,请尝试使用旧版本 * 或切换至nodejs目录下编译生成dist目录,dist目录发布到dist分支下 * main分支用于代码测试(不包含任何配置信息),js分支发布支持quickjs爬虫配置信息,dist分支发布支持nodejs爬虫配置信息 * 所有的配置信息都通过Github Actions发布,通过创建tag来生成新的配置信息并自动发布 * fork仓库时去掉仅复制main分支的&#x2714;,这样就可以fork所有的分支了 ## 赞助 如果觉得此项目有用,可以考虑赞助我喝杯咖啡,感谢star❤ <img src="./resources/wechat.jpg" alt="微信" width="256" height="256" align="left" />
影视和猫影视爬虫仓库
catvod,spider,tv,javascript,nodejs,spiders,tvbox
2023-02-16T02:39:47Z
2024-05-23T10:34:37Z
2023-02-16T02:42:43Z
2
66
1,366
11
165
200
null
GPL-3.0
JavaScript
ErickWendel/live-recognizing-multiple-gestures-tensorflowjs
main
# live-recognizing-multiple-gestures-tensorflowjs ## About This is the examples shown in my live screen about [Recognizing gestures in real time right from the browser (pt-br)](https://www.youtube.com/live/MeS6dX2a2zQ?feature=share) First of all, leave your star 🌟 on this repo. Access our [**exclusive telegram channel**](https://bit.ly/canalerickwendel) so I'll let you know about all the content I've been producing ## Complete source code - Access it in [app](./recorded/) - Checkout the [live demo](https://erickwendel.github.io/live-recognizing-multiple-gestures-tensorflowjs/recorded/). - It recognizes, single hand gestures 🖐,👊,✌️,👍🏻 and the multigesture 🙅 ## Have fun! ![THUMB---JS-EXPERTPrancheta-1](https://user-images.githubusercontent.com/8060102/219484100-3b362e7a-6a2f-4df9-b4ce-d3be64a0964a.png) ## References: - https://github.com/ErickWendel/fingerpose - Rock, Paper & Scissors: https://github.com/andypotato/rock-paper-scissors - Pacman: https://storage.googleapis.com/tfjs-examples/webcam-transfer-learning/dist/index.html - https://github.com/tensorflow/tfjs-examples/ - https://www.npmjs.com/package/fingerpose - https://github.com/andypotato/rock-paper-scissors/blob/master/src/js/Gestures.js - https://www.tensorflow.org/js/demos - https://github.com/tensorflow/tfjs-models/tree/master/hand-pose-detection#mediapipe-hands-keypoints-used-in-mediapipe-hands
Examples from my video about recognizing multiple hand gestures with tensorflowjs and fingerpose
finger-detection,fingerpose,hand-detection,hand-gesture-recognition,hand-tracking,javascript,mediapipe,mediapipe-hands,tensorflow,tutorial
2023-02-16T20:49:48Z
2023-06-19T18:23:00Z
null
1
0
8
1
16
159
null
null
JavaScript
aicombinator/bot
main
Announcement: [Fediverse](https://fosstodon.org/@nilesh/110134878566780260), [Twitter](https://twitter.com/nileshtrivedi/status/1642867968034873344), [Show HN](https://news.ycombinator.com/item?id=35422320) https://user-images.githubusercontent.com/19304/229281118-e143322a-1c6f-4464-9f69-9425454895f0.mp4 This tool gives AI the 3 big things it's currently missing: Identity, Memory, and Agency. Essentially, it is a personal assistant bot that runs locally, understands tasks in natural language and with a human-reviewed library of composable tasks, can perform complex online tasks across multiple websites and webapps, by driving a browser on your local machine or call APIs when available. The tasks are described in natural language. For example: `Register myshop.com on Google Domains. Then setup a Shopify website on it. Then post a tweet about it.` This is somewhat similar to the [LangChain](https://langchain.com/) agents. But this one operates by controlling a real browser with puppeteer scripts. It has the ability to complete signup or login with OTP (SMS or Email) and 2FA tokens, retain and recall data from persistent storage, and even make payments. The aim for this tool is to become a true personal assistant for everyone. And because it uses the web browser like a human would, it doesn't need API access for the websites and webapps. But it does use APIs for many popular sites. This tool can be launched against either your primary Chrome instance or puppeteer's sandboxed chromium instance. It can be invoked either as a command-line tool or in your custom JavaScript code. There are two kinds of bots. LocalBot stores their data in a local .json file. CloudBot uses remote storage, which is useful for sharing bot instances within your org etc. When launched from command-line, both kind of bots operate using the local web browser. No data is sent to any remote servers. Currently, only the high-level script is generated by AI at run-time. The code for individual tasks can be human-coded and human-reviewed for high robustness and correctness. The API pieces are imported from [ActivePieces](https://github.com/activepieces/activepieces). ## Install Needs NodeJS version 18 or higher: `npm install -g @aicombinator/bot` ## Usage ### On command-line: Set OpenAI's API key as environment variable: `export OPENAI_API_KEY=<api_key>` See the list of available apps: `bot --list-apps` Describe your task in natural language: `bot "pair device on google sms. Then post on twitter with username foo and password bar and message hello world from aicombinator. Then fetch the top story from hacker news"` If OPENAI_API_KEY is not available, the command will be parsed with a strict syntax (until open-source LLMs arrive): `bot <task> on|to|at|from <site> with <param1_name> <param1_value> and <param2_name> <param2_value>` Necessary params will also be looked up in environment variables and bot's storage. Options: ``` --bot: String ID to identify each unique localbot (default `mybot1`) --token: APIKEY to access a CloudBot's remote storage. Get yours at [aicombinator.app](https://aicombinator.app) --data-dir: Path to the directory where data for localbots is stored (default `.aicombinator`) ``` ### In your custom script. See [sample.js](sample.js). ```js const bot = await aicombinator.LocalBot.init({bot_id: 'mybot1', data_dir: null}); await aicombinator.site.task(bot, {param1_name: 'param1_value', param2_name: 'param2_value'}) // for example: await aicombinator.google_sms.pair_device(bot, {}); await aicombinator.twitter.post(bot, {username:"foo", password:"bar", message: 'Hello world from aicombinator'}); // To make the bot pause for 5 seconds for the user to manually intervene (for eg: solving captcha): await bot.wait(5); let stories = await aicombinator.hackernews.fetch_top_stories(bot, {number_of_stories: 1}); console.log({stories}); ``` ## Supported sites and apps The recipes can be both AI-generated but human-reviewed as well as human-coded. Puppeteer-based recipes: - [Google Messages (SMS) on Web](google_sms.js) (for accessing and using OTPs) - [GitHub](github.js) - [Twitter](twitter.js) The following recipes are imported from [activepieces](https://github.com/activepieces/activepieces/tree/main/packages/pieces) actions and use providers' API, not the browser and therefore require auth tokens: - airtable - asana - bannerbear - binance - blackbaud - clickup - discord - drip - dropbox - figma - gmail - googleCalendar - googleContacts - googleDrive - googleSheets - googleTasks - hackernews - hubspot - intercom - mailchimp - openai - pipedrive - posthog - sendgrid - slack - square - stripe - telegramBot - todoist - trello - twilio - typeform - wordpress - youtube - zoom The recipes are all open-source so feel free to raise PRs for your favorite sites.
GPT-powered bot that can automate complex online tasks using both the web browser and API calls.
chatgpt,javascript,puppeteer
2023-02-19T10:29:24Z
2023-04-03T12:44:57Z
null
1
0
8
2
16
156
null
NOASSERTION
JavaScript
aribudin/tailmater
main
# Tailmater UI Kit <img src="src/img/tailmater-template.png" alt="Tailmater UI"> Tailmater is an open source Modern Web Material 3 UI Kit based on Tailwind css framework. Built with [Material Design 3](https://m3.material.io/) the latest version of Google's open-source design system. Tailmater use the MIT license so you can use it included in a commercial project. Credit to the Github page will always be appreciated. Development by [@ari_budin](https://twitter.com/ari_budin) . Pro Version available [Goodash Html](https://aribudin.gumroad.com/l/goodash) . React Version available [Goodash React](https://aribudin.gumroad.com/l/goodash-react) . Next Js Version available [Goodash Next Js](https://aribudin.gumroad.com/l/goodash-next) ## Demo Preview Demo: [https://aribudin.github.io/tailmater/](https://aribudin.github.io/tailmater/) ## Installation * Clone the repository with the following command: ``` git clone https://github.com/aribudin/tailmater.git ``` * Run in terminal this command: ``` npx tailwindcss -i ./src/tailwindcss/tailwind.css -o ./src/css/style.css --watch ``` * Open html file in browser and start editing ## Download file Download .zip file [in here](https://github.com/aribudin/tailmater/releases) ## Tailmater JavaScript We provide examples of vanilla javascript functions for all Tailmater components. There are several components that require triggers to run such as snackbars, dialogs, range sliders and others. Put the script in the last line before close body ``` <script src="src/js/tailmater.js"></script> ``` **Toggles** Type | Call | Target | Class ------------- | ------------- | ------------- | ------------- data-type="toggle" | data-target="#value" | id="value" | .show **Accordion** Type | Call | Target | Role | Class ------------- | ------------- | ------------- | ------------- | ------------- data-type="collapse" | data-target="#value" | id="value" | role="collapsed" | .active **Sheets** Type | Call | Target | Close | Class ------------- | ------------- | ------------- | ------------- | ------------- data-type="sheets" | data-target="#value" | id="value" | data-close="#value" | .show **Dialogs** Type | Call | Target | Close | Class ------------- | ------------- | ------------- | ------------- | ------------- data-type="dialogs" | data-target="#value" | id="value" | data-close="#value" | .show **Menus** Type | Call | Target | Role | Class ------------- | ------------- | ------------- | ------------- | ------------- data-type="dropdown" | data-target="#value" | id="value" | role="dropdownmenu" | .show **Snackbar** Type | Cal | Target | Close | Class ------------- | ------------- | ------------- | ------------- | ------------- data-type="snackbar" | data-target="#value" | id="value" | data-close="#value" | .show **Tabs** Type | Call | Target | Role | Role 2 | Class ------------- | ------------- | ------------- | ------------- | ------------- | ------------- data-type="tabs" | data-target="#value" | id="value" | role="tabpanel" | role="indicator" | .active **Circle Progress** Role | Role 2 | Value(0-100) ------------- | ------------- | ------------- role="progress_bg" | role="progress_fill" | data-percent="value" **Dark Mode** Type | Target | Storage | Class ------------- | ------------- | ------------- | ------------- data-type="theme" | html | localStorage.theme | .dark **Range slider** Type | Target ------------- | ------------- data-type="slider" | nextElement **Navbar Scroll Up** Target | Offset | Class Visible | Class Fixed ------------- | ------------- | ------------- | ------------- role="navtop" | header | .is-visible | .is-fixed **Segmented Button** Target | Status active ------------- | ------------- .segmented-item > input | checked ## Sources [Download Figma design](https://www.figma.com/community/file/1035203688168086460) ## PRO VERSION HTML, REACT, NEXT JS <img src="src/img/goodash-react.jpg" alt="Goodash React Dashboard"> * [Goodash Html](https://aribudin.gumroad.com/l/goodash) * [Goodash React](https://aribudin.gumroad.com/l/goodash-react) * [Goodash Next Js](https://aribudin.gumroad.com/l/goodash-next) ## Authors & Sponsors * Ari Budin [@ari_budin](https://twitter.com/ari_budin) * Tailwind Dashboard [Taildash](https://tailwinddashboard.com/) * Tailwind Templates [Tailnet](https://themes.tailwindtemplate.net/) ## Credits * [Material Design 3](https://m3.material.io/) * [Tailwind Css](https://tailwindcss.com/)
Tailmater is an open source Google Material 3 UI Kit based on Tailwind css framework.
css,html,javascript,material-design,tailwindcss
2023-02-17T06:50:04Z
2023-12-01T10:33:22Z
2023-02-17T07:25:08Z
1
0
39
1
19
144
null
MIT
HTML
lycarrot/apply-monitor
main
## 项目介绍 <image src="https://img-1301800639.cos.ap-guangzhou.myqcloud.com/logo.png" width="80%"><br/> <p align="center"> <image src="https://github.com/lycarrot/apply-monitor/actions/workflows/pr-main.yml/badge.svg"> <p> 本项目是一个完整的监控平台体系,项目信息收集 sdk、服务端接口 API 信息处理均已实现,监控后台信息平台管理还在实现中,采用 monorepo+pnpm 方式开发。 ## 项目结构 ``` ├── .changeset 包版本维护 ├── .github ├── .workflows github-actions配置 ├── .husky 发布到github校验 ├── docs 静态资源 ├── _tests sdk测试 ├── packages *项目核心 ├── eslint-config eslint通用规范 ├── monitor 信息收集sdk ├── report 上传sourcemap插件 ├── server 服务端处理平台 ├── .eslintignore ├── .eslintrc ├── .npmrc ├── .nvmrc ├──.prettierrc ├── commitlint.config ├── pnpm-workspace.yaml |── pnpm-lock.yaml ├── package.json └── README.md ``` ## 项目整体架构 整个监控体系核心部分主要分成三部分,首先是 sdk 植入到各个需要监控到的项目中,然后监控信息会上报到统一的的服务器进行处理存储,最后是统一的监控平台对监控信息进行展示 <image src="https://img-1301800639.cos.ap-guangzhou.myqcloud.com/monitor%20%281%29%281%29.png"></image> ### 核心部分 信息收集 sdk:<a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/monitor">monitor</a></br> 信息处理分析:<a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/server">server</a><br/> 信息管理平台(实现中):<a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/monitor">admin</a><br/> #### <a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/monitor">monitor(信息收集 sdk)</a> 整个 sdk 其实是做了俩部分工作,信息采集+信息上报 #### 信息采集 信息采集包括三个部分:错误监控、行为监控、性能监控三个部分 ![信息采集](https://img-1301800639.cos.ap-guangzhou.myqcloud.com/sdk%281%29.png) #### 信息上报 ##### 上报方法 关于信息上报的方式有三种:sendBeacon>image>XMLHttpRequest,默认采用的 sendBeacon,如果不兼容这个 api,会选择 image 上报,最后才会选择 XMLHttpRequest 方式进行上传。当然也可以通过配置自行选择上报方式。 - sendBeacon:该方法会将少量异步数据发送到后台,所以用这种方式传输时,不会影响页面本身加载的请求,同时这种是异步方式的。 - image:采用的是 1\*1 像素的透明 gif 进行上报,因为 gif 图片格式体积小,可以避免阻塞页面加载,影响用户体验,该方式也是支持跨域方式得。 - XMLHttpRequest:该方式的问题主要是可能会占用页面本身请求,阻塞页面加载,同时也需要考虑跨域的问题 #### 上报时机 - 错误监控:触发时会直接上报 - 其它:会把相应的信息上报加人一个队列里面进行缓存,然后在页面加载完成或页面隐藏时这些时机进行上报,这样可以避免监控 sdk 的请求阻塞页面加载。 #### <a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/server">server(存储和分析)</a> 服务端采用的 koa2+mysql+redis+typescript 方式开发,整个服务端可以分为俩部分,信息收集处理存储、提取存储数据分析。 #### 存储部分 存储主要是指 sdk 上报的性能、行为、错误这三部分信息收集,拿到上报的信息之后,会首先对数据做个清洗,然后假如同时监控了多个项目,所以可能存在一下子发送过多的数据,导致服务端信息处理过载崩溃,所以在加入 mysql 存储之前,会对数据做层队列缓存,缓存方式采用的是 kue+redis。 <image src="https://img-1301800639.cos.ap-guangzhou.myqcloud.com/report.png" > #### 数据分析 主要对项目上报的数据进行处理,然后展示在后台分析平台。 #### <a href="https://github.com/lycarrot/apply-monitor/tree/main/packages/report">report(webpack 上报插件)</a> 因为 sdk 上报的错误代码信息都是经过压缩处理的,是无法直观分析到代码具体报错位置的。可以通过匹配到相应的 source-map 文件,通过错误信息的行列数与对应的 source-map 文件,处理后得到源文件的具体错误信息。所以这里编写了个 webpack 插件,在代码打包完成后,会把相应的 source-map 文件上传到服务端。 - webpack 打包生成文件触发 afterEmit 钩子,拿到相应的 source-map 文件资源,然后把它们以 form-data 的形式发送到服务端。 - 然后再把相应的 source-map 文件资源删除,在 webpack 的 done 钩子阶段执行
完整的前端监控体系平台,集项目监控植入sdk、服务端日志收集、聚合、处理和统一日志展示平台
javascript,koa2,monitor,typescript
2023-02-13T07:50:48Z
2023-07-09T03:15:04Z
null
1
48
189
0
14
136
null
null
JavaScript
wizi-ai/code-search
main
## AI powered Code Search for React codebases (JS/TS) by Wizi AI **We are launching our Code Search feature as an open-source project for frontend teams to enjoy instant natural language search in React (JS/TS) codebases.** > **Note** > **that this is a self-hosted tool that uses Vercel, OpenAI and Pinecone. All of these tools have generous free tiers which should be more than enough for you to try Code Search. For reference, indexing a mid-sized React repo should cost $1-2 on average.** > **Warning** > This is not a production ready solution. The goal of this repo is to give a quick template for frontend teams to experiment with their own code search tools. https://user-images.githubusercontent.com/25925393/221127958-953ff4cd-60ff-4c19-83b1-24ff03977063.mp4 ### Setup [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwizi-ai%2Fcode-search&env=NEXT_PUBLIC_GITHUB_PERSONAL_ACCESS_TOKEN,OPENAI_API_KEY,PINECONE_API_KEY,PINECONE_BASE_URL&envDescription=Code%20Search%20by%20Wizi%20AI%20uses%20Github%2C%20OpenAI%2C%20and%20Pinecone%20to%20make%20instant%20search%20work.%20Please%20refer%20to%20https%3A%2F%2Fgithub.com%2Fwizi-ai%2Fcode-search%23readme%20for%20instructions.&envLink=https%3A%2F%2Fgithub.com%2Fwizi-ai%2Fcode-search%23environment-variables&project-name=wizi-ai-code-search&repository-name=wizi-ai-code-search&demo-title=Code%20Search%20by%20Wizi%20AI&demo-description=Code%20Search%20for%20React%20codebases%20(JS%2FTS)%20in%20natural%20language.&demo-url=https%3A%2F%2Fdemo.wizi.ai%2F&demo-image=https%3A%2F%2Fraw.githubusercontent.com%2Fwizi-ai%2Fcode-search%2Fmain%2Fcode-search-example.png) 1. Double click on the button above and open the link in a new tab. 2. Note that we use Vercel to deploy and host this for your convenience instead of setting up locally. 3. Now let's add 4 ENV variables. 4. Generate Github Personal Access Token: [https://github.com/settings/personal-access-tokens/new](https://github.com/settings/personal-access-tokens/new) 5. Generate OpenAI API Token: [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys) 6. Generate Pinecone API Token: [https://app.pinecone.io/](https://app.pinecone.io/) 7. Also in Pinecone, create a new index: `{name: 'wizi-ai-code-search', dimensions: 1536, metric: 'cosine', pod_type: 'P1'}` 8. Extract base url string under the title. Ex: `wizi-ai-code-search-7874c84.svc.us-east1-gcp.pinecone.io`. 9. Add this url as `PINECONE_BASE_URL` in Vercel setup. **Important to add `https://` prefix to the string, so that your `PINECONE_BASE_URL` env variable is in the similar to `https://wizi-ai-code-search-7874c84.svc.us-east1-gcp.pinecone.io`** 10. Hit deploy. Should take less than two minutes. Once complete, you will have a link to your app. Congrats!
Code Search in natural language for React codebases [JS/TS]. Provided by Wizi AI.
frontend,javascript,react,search,typescript
2023-02-12T18:06:07Z
2023-02-25T18:30:41Z
null
1
0
26
0
11
134
null
MIT
TypeScript
forwardemail/nodejs-dns-over-https-tangerine
main
<h1 align="center"> <a href="https://github.com/forwardemail/nodejs-dns-over-https-tangerine"><img src="https://raw.githubusercontent.com/forwardemail/nodejs-dns-over-https-tangerine/main/media/header.png" alt="Tangerine" /></a> </h1> <div align="center"> <a href="https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions/workflows/ci.yml"><img src="https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions/workflows/ci.yml/badge.svg" alt="build status" /></a> <a href="https://github.com/sindresorhus/xo"><img src="https://img.shields.io/badge/code_style-XO-5ed9c7.svg" alt="code style" /></a> <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="styled with prettier" /></a> <a href="https://lass.js.org"><img src="https://img.shields.io/badge/made_with-lass-95CC28.svg" alt="made with lass" /></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/forwardemail/nodejs-dns-over-https-tangerine.svg" alt="license" /></a> <a href="https://npm.im/tangerine"><img src="https://img.shields.io/npm/dt/tangerine.svg" alt="npm downloads" /></a> </div> <br /> <div align="center"> 🍊 <a href="https://github.com/forwardemail/nodejs-dns-over-https-tangerine" target="_blank">Tangerine</a> is the best <a href="https://nodejs.org" target="_blank">Node.js</a> drop-in replacement for <a href="https://nodejs.org/api/dns.html#resolveroptions" target="_blank">dns.promises.Resolver</a> using <a href="https://en.wikipedia.org/wiki/DNS_over_HTTPS" target="_blank">DNS over HTTPS</a> ("DoH") via <a href="https://github.com/nodejs/undici" target="_blank">undici</a> with built-in retries, timeouts, smart server rotation, <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortController" target="_blank">AbortControllers</a>, and caching support for multiple backends (with TTL and purge support). </div> <hr /> <div align="center"> ⚡ <a href="#tangerine-benchmarks"><i><u><strong>AS FAST AS</strong></u></i></a> native <a href="https://nodejs.org/api/dns.html" target="_blank">Node.js <code>dns</code></a>! 🚀 &bull; Supports Node v16+ with ESM/CJS &bull; Made for <a href="https://forwardemail.net" target="_blank"><strong>Forward Email</strong></a>. </div> <hr /> ## Table of Contents * [Install](#install) * [Foreword](#foreword) * [What is this project about](#what-is-this-project-about) * [Why integrate DNS over HTTPS](#why-integrate-dns-over-https) * [What does this mean](#what-does-this-mean) * [What projects were used for inspiration](#what-projects-were-used-for-inspiration) * [Features](#features) * [Usage and Examples](#usage-and-examples) * [ECMAScript modules (ESM)](#ecmascript-modules-esm) * [CommonJS (CJS)](#commonjs-cjs) * [API](#api) * [`new Tangerine(options[, request])`](#new-tangerineoptions-request) * [`tangerine.cancel()`](#tangerinecancel) * [`tangerine.getServers()`](#tangerinegetservers) * [`tangerine.lookup(hostname[, options])`](#tangerinelookuphostname-options) * [`tangerine.lookupService(address, port[, abortController, purgeCache])`](#tangerinelookupserviceaddress-port-abortcontroller-purgecache) * [`tangerine.resolve(hostname[, rrtype, options, abortController])`](#tangerineresolvehostname-rrtype-options-abortcontroller) * [`tangerine.resolve4(hostname[, options, abortController])`](#tangerineresolve4hostname-options-abortcontroller) * [`tangerine.resolve6(hostname[, options, abortController])`](#tangerineresolve6hostname-options-abortcontroller) * [`tangerine.resolveAny(hostname[, options, abortController])`](#tangerineresolveanyhostname-options-abortcontroller) * [`tangerine.resolveCaa(hostname[, options, abortController]))`](#tangerineresolvecaahostname-options-abortcontroller) * [`tangerine.resolveCname(hostname[, options, abortController]))`](#tangerineresolvecnamehostname-options-abortcontroller) * [`tangerine.resolveMx(hostname[, options, abortController]))`](#tangerineresolvemxhostname-options-abortcontroller) * [`tangerine.resolveNaptr(hostname[, options, abortController]))`](#tangerineresolvenaptrhostname-options-abortcontroller) * [`tangerine.resolveNs(hostname[, options, abortController]))`](#tangerineresolvenshostname-options-abortcontroller) * [`tangerine.resolvePtr(hostname[, options, abortController]))`](#tangerineresolveptrhostname-options-abortcontroller) * [`tangerine.resolveSoa(hostname[, options, abortController]))`](#tangerineresolvesoahostname-options-abortcontroller) * [`tangerine.resolveSrv(hostname[, options, abortController]))`](#tangerineresolvesrvhostname-options-abortcontroller) * [`tangerine.resolveTxt(hostname[, options, abortController]))`](#tangerineresolvetxthostname-options-abortcontroller) * [`tangerine.resolveCert(hostname[, options, abortController]))`](#tangerineresolvecerthostname-options-abortcontroller) * [`tangerine.resolveTlsa(hostname[, options, abortController]))`](#tangerineresolvetlsahostname-options-abortcontroller) * [`tangerine.reverse(ip[, abortController, purgeCache])`](#tangerinereverseip-abortcontroller-purgecache) * [`tangerine.setDefaultResultOrder(order)`](#tangerinesetdefaultresultorderorder) * [`tangerine.setServers(servers)`](#tangerinesetserversservers) * [`tangerine.spoofPacket(hostname, rrtype, answers[, json, expires = 30000])`](#tangerinespoofpackethostname-rrtype-answers-json-expires--30000) * [Options](#options) * [Cache](#cache) * [Compatibility](#compatibility) * [Debugging](#debugging) * [Benchmarks](#benchmarks) * [Tangerine Benchmarks](#tangerine-benchmarks) * [HTTP Library Benchmarks](#http-library-benchmarks) * [Contributors](#contributors) * [License](#license) ## Install ```sh npm install tangerine undici ``` ```diff -import dns from 'dns'; +import Tangerine from 'tangerine'; - const resolver = new dns.promises.Resolver(); +const resolver = new Tangerine(); ``` ## Foreword ### What is this project about Our team at [Forward Email](https://forwardemail.net) (100% open-source and privacy-focused email service) needed a better solution for DNS. After years of using the Node.js internal DNS module, we ran into these recurring patterns: * [Cloudflare](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/) and [Google](https://developers.google.com/speed/public-dns/docs/doh/) now have DNS over HTTPS servers ("DoH") available – and browsers such as Mozilla Firefox now have it [enabled by default](https://support.mozilla.org/en-US/kb/firefox-dns-over-https). * DNS cache consistency across multiple servers cannot be easily accomplished using packages such as `unbound`, `dnsmasq`, and `bind` – and configuring `/etc/resolv.conf` across multiple Ubuntu versions is not enjoyable (even with Ansible). Maintaining logic at the application layer is much easier from a development, deployment, and maintenance perspective. * Privacy, security, and caching approaches needed to be constantly scaled, re-written, and re-configured. * Our development teams would encounter unexpected 75 second delays while making DNS requests (if they were connected to a VPN and forgot they were behind blackholed DNS servers – and attempting to use patterns such as `dns.setServers(['1.1.1.1'])`). The default timeout if you are behind a blackholed DNS server in Node.js is 75 seconds (due to `c-ares` under the hood with `5`, `10`, `20`, and `40` second retry backoff timeout strategy). * There are **zero existing** DNS over HTTPS ("DoH") Node.js npm packages that: * Utilize modern open-source software under the MIT license and are currently maintained. * Once popular packages such as [native-dns](https://github.com/tjfontaine/node-dns/issues/111) and [dnscached](https://github.com/yahoo/dnscache/issues/28) are archived or deprecated. * [Other packages](https://www.npmjs.com/search?q=dns%20cache) only provide `lookup` functions, have a limited sub-set of methods such as [@zeit/dns-cached-resolver](https://github.com/vercel/dns-cached-resolve), or are unmaintained. * Act as a 1:1 drop-in replacement for `dns.promises.Resolver` with DNS over HTTPS ("DoH"). * Support caching for multiple backends (with TTL and purge support), retries, smart server rotation, and [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) usage. * Provide out of the box support for both ECMAScript modules (ESM) **and** CommonJS (CJS) (see discussions [for](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and [against](https://gist.github.com/joepie91/bca2fda868c1e8b2c2caf76af7dfcad3)). * The native Node.js `dns` module does not support caching out of the box – which is a [highly requested feature](https://github.com/nodejs/node/issues/5893) (but belongs in userland). * Writing tests against DNS-related infrastructure requires either hacky DNS mocking or a DNS server (manipulating cache is much easier). * <u>**The Node.js community is lacking a high-quality and dummy-proof userland DNS package with sensible defaults.**</u> ### Why integrate DNS over HTTPS > With DNS over HTTPS (DoH), DNS queries and responses are encrypted and sent via the HTTP or HTTP/2 protocols. DoH ensures that attackers cannot forge or alter DNS traffic. DoH uses port 443, which is the standard HTTPS traffic port, to wrap the DNS query in an HTTPS request. DNS queries and responses are camouflaged within other HTTPS traffic, since it all comes and goes from the same port. – [Cloudflare](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/) > DNS over HTTPS (DoH) is a protocol for performing remote [Domain Name System](https://en.wikipedia.org/wiki/Domain_Name_System) (DNS) resolution via the [HTTPS](https://en.wikipedia.org/wiki/HTTPS) protocol. A goal of the method is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data by [man-in-the-middle attacks](https://en.wikipedia.org/wiki/Man-in-the-middle_attacks) by using the HTTPS protocol to [encrypt](https://en.wikipedia.org/wiki/Encrypt) the data between the DoH client and the DoH-based [DNS resolver](https://en.wikipedia.org/wiki/DNS_resolver). – [Wikipedia](https://en.wikipedia.org/wiki/DNS_over_HTTPS) ### What does this mean [We're](https://forwardemail.net) the <i>only</i> email service provider that is 100% open-source *and* uses DNS over HTTPS ("DoH") throughout their entire infrastructure. We've open-sourced this project – which means you can integrate DNS over HTTPS ("DoH") by simply using :tangerine: Tangerine. Its documentation below includes [Features](#features), [Usage and Examples](#usage-and-examples), [API](#api), [Options](#options), and [Benchmarks](#tangerine-benchmarks). ### What projects were used for inspiration Thanks to the authors of [dohdec](https://github.com/hildjj/dohdec), [dns-packet](https://github.com/mafintosh/dns-packet), [dns2](https://github.com/song940/node-dns), and [native-dnssec-dns](https://github.com/EduardoRuizM/native-dnssec-dns) – which made this project possible and were used for inspiration. ## Features :tangerine: Tangerine is a 1:1 **drop-in replacement with DNS over HTTPS ("DoH")** for [dns.promises.Resolver](https://nodejs.org/api/dns.html#resolveroptions): * All options and defaults for `new dns.promises.Resolver()` are available in `new Tangerine()`. * Instances of `Tangerine` are also instances of `dns.promises.Resolver` as this class `extends` from it. This makes it compatible with [cacheable-lookup](https://github.com/szmarczak/cacheable-lookup). * HTTP error codes are mapped to DNS error codes (the error `code` and `errno` properties will appear as if they're from `dns` usage). This is a configurable option enabled by default (see `returnHTTPErrors` option). * If you need callbacks, then use [util.callbackify](https://nodejs.org/api/util.html#utilcallbackifyoriginal) (e.g. `const resolveTxt = callbackify(tangerine.resolveTxt)`). We have also added several improvements and new features: * Default name servers used have been set to [Cloudflare's](https://1.1.1.1/) (`['1.1.1.1', '1.0.0.1']`) (as opposed to the system default – which is often set to a default which is not privacy-focused or simply forgotten to be set by DevOps teams). You may also want to use [Cloudflare's Malware and Adult Content Blocking](https://blog.cloudflare.com/introducing-1-1-1-1-for-families/) DNS server addresses instead. * You can pass a custom `servers` option (as opposed to having to invoke `dns.setServers(...)` or `resolver.setServers(...)`). * `lookup` and `lookupService` methods have been added (these are not in the original `dns.promises.Resolver` instance methods). * [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) support has been added to all DNS request methods (you can also pass your own). * The method `cancel()` will signal `"abort"` to all AbortController signals created for existing requests and handle cleanup. * An `ecsClientSubnet` option has been added to all methods accepting an `options` object for [RFC 7871](https://datatracker.ietf.org/doc/html/rfc7871) client subnet querying (this includes `resolve4` and `resolve6`). * If you have multiple DNS servers configured (e.g. `tangerine.setServers(['1.1.1.1', '1.0.0.1', '8.8.8.8', '8.8.4.4'])`) – and if any of these servers have repeated errors, then they will be bumped to the end of the list (e.g. if `1.1.1.1` has errors, then the updated in-memory `Set` for future requests will be `['1.0.0.1', '8.8.8.8', '8.8.4.4', '1.1.1.1']`). This "smart server rotation" behavior can be disabled (see `smartRotate` option) – but it is discouraged, as the original behavior of [c-ares](https://c-ares.org/) does not rotate as such. * Debug via `NODE_DEBUG=tangerine node app.js` flag (uses [util.debuglog](https://nodejs.org/api/util.html#utildebuglogsection-callback)). * The method `setLocalAddress()` will parse the IP address and port properly to pass along for use with the agent as `localAddress` and `localPort`. If you require IPv6 addresses with ports, you must encode it as `[IPv6]:PORT` ([similar to RFC 3986](https://serverfault.com/a/205794)). All existing <code>syscall</code> values have been preserved: * `resolveAny` → `queryAny` * `resolve4` → `queryA` * `resolve6` → `queryAaaa` * `resolveCaa` → `queryCaa` * `resolveCname` → `queryCname` * `resolveMx` → `queryMx` * `resolveNs` → `queryNs` * `resolveNs` → `queryNs` * `resolveTxt` → `queryTxt` * `resolveSrv` → `querySrv` * `resolvePtr` → `queryPtr` * `resolveNaptr` → `queryNaptr` * `resolveSoa` → `querySoa` * `reverse` → `getHostByAddr` ## Usage and Examples ### ECMAScript modules (ESM) ```js // app.mjs import Tangerine from 'tangerine'; const tangerine = new Tangerine(); // or `const resolver = new Tangerine()` tangerine.resolve('forwardemail.net').then(console.log); ``` ### CommonJS (CJS) ```js // app.js const Tangerine = require('tangerine'); const tangerine = new Tangerine(); // or `const resolver = new Tangerine()` tangerine.resolve('forwardemail.net').then(console.log); ``` ## API ### `new Tangerine(options[, request])` * The `request` argument is a `Function` that defaults to [undici.request](https://undici.nodejs.org/#/?id=undicirequesturl-options-promise). * This is an HTTP library request async or Promise returning function to be used for making requests. * You could alternatively use [got](https://github.com/sindresorhus/got) or any other HTTP library of your choice that accepts `fn(url, options)`. However, we suggest to stick with the default of `undici` due to these [benchmark tests](http-library-benchmarks). ```js const tangerine = new Tangerine( { requestOptions: { responseType: 'buffer', decompress: false, retry: { limit: 0 } } }, got ); ``` * It should return an object with `body`, `headers`, and either a `status` or `statusCode` property. * The `body` property returned should be either a `Buffer` or `Stream`. * Specify default request options based off the library under `requestOptions` below * Instance methods of [dns.promises.Resolver](https://nodejs.org/api/dns.html) are mirrored to :tangerine: Tangerine. * Resolver methods accept an optional `abortController` argument, which is an instance of [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). Note that :tangerine: Tangerine manages `AbortController` usage internally – so you most likely won't need to pass your own (see [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js) for more insight). * Resolver methods that accept `options` argument also accept an optional `options.purgeCache` option. * Resolver methods support a `purgeCache` option as either `options.purgeCache` (Boolean) via `options` argument or `purgeCache` (Boolean) argument – see [API](#api) and [Cache](#cache) for more insight. * If set to `true`, then the result will be re-queried and re-cached – see [Cache](#cache) documentation for more insight. * Instances of `new Tangerine()` are instances of `dns.promises.Resolver` via `class Tangerine extends dns.promises.Resolver { ... }` (namely for compatibility with projects such as [cacheable-lookup](https://github.com/szmarczak/cacheable-lookup)). * See the complete list of [Options](#options) below. * Any `rrtype` from the list at <https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4> is supported (unlike the native Node.js DNS module which only supports a limited set). ### `tangerine.cancel()` ### `tangerine.getServers()` ### `tangerine.lookup(hostname[, options])` ### `tangerine.lookupService(address, port[, abortController, purgeCache])` ### `tangerine.resolve(hostname[, rrtype, options, abortController])` ### `tangerine.resolve4(hostname[, options, abortController])` Tangerine supports a new `ecsSubnet` property in the `options` Object argument. ### `tangerine.resolve6(hostname[, options, abortController])` Tangerine supports a new `ecsSubnet` property in the `options` Object argument. ### `tangerine.resolveAny(hostname[, options, abortController])` ### `tangerine.resolveCaa(hostname[, options, abortController]))` ### `tangerine.resolveCname(hostname[, options, abortController]))` ### `tangerine.resolveMx(hostname[, options, abortController]))` ### `tangerine.resolveNaptr(hostname[, options, abortController]))` ### `tangerine.resolveNs(hostname[, options, abortController]))` ### `tangerine.resolvePtr(hostname[, options, abortController]))` ### `tangerine.resolveSoa(hostname[, options, abortController]))` ### `tangerine.resolveSrv(hostname[, options, abortController]))` ### `tangerine.resolveTxt(hostname[, options, abortController]))` ### `tangerine.resolveCert(hostname[, options, abortController]))` This function returns a Promise that resolves with an Array with parsed values from results: ```js [ { algorithm: 0, certificate: 'MIIEoTCCA4mgAwIBAgICAacwDQYJKoZIhvcNAQELBQAwgY0xCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJNRDEOMAwGA1UEBwwFQm95ZHMxEzARBgNVBAoMCkRyYWplciBMTEMxIjAgBgNVBAMMGWludGVybWVkaWF0ZS5oZWFsdGhpdC5nb3YxKDAmBgkqhkiG9w0BCQEWGWludGVybWVkaWF0ZS5oZWFsdGhpdC5nb3YwHhcNMTgwOTI1MTgyNDIzWhcNMjgwOTIyMTgyNDIzWjB7MQswCQYDVQQGEwJVUzELMAkGA1UECAwCTUQxDjAMBgNVBAcMBUJveWRzMRMwEQYDVQQKDApEcmFqZXIgTExDMRkwFwYDVQQDDBBldHQuaGVhbHRoaXQuZ292MR8wHQYJKoZIhvcNAQkBFhBldHQuaGVhbHRoaXQuZ292MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxaA2MIuaqpvP2Id85KIhUVA6zlj+CgZh/3prgJ1q4leP3T5F1tSSgrQ/WYTFglEwN7FJx4yJ324NaKncaMPDBIg3IUgC3Q5nrPUbIJAUgM5+67pXnGgt6s9bQelEsTdbyA/JlLC7Hsv184mqo0yrueC9NJEea4/yTV51G9S4jLjnKhr0XUTw0Fb/PFNL9ZwaEdFgQfUaE1maleazKGDyLLuEGvpXsRNs1Ju/kdHkOUVLf741Cq8qLlqOKN2v5jQkUdFUKHbYIF5KXt4ToV9mvxTaz6Mps1UbS+a73Xr+VqmBqmEQnXA5DZ7ucikzv9DLokDwtmPzhdqye2msgDpw0QIDAQABo4IBGjCCARYwCQYDVR0TBAIwADAbBgNVHREEFDASghBldHQuaGVhbHRoaXQuZ292MB0GA1UdDgQWBBQ6E22jc99mm+WraUj93IvQcw6JHDAfBgNVHSMEGDAWgBRfW20fzencvG+Attm1rcvQV+3rOTALBgNVHQ8EBAMCBaAwSQYDVR0fBEIwQDA+oDygOoY4aHR0cDovL2NhLmRpcmVjdGNhLm9yZy9jcmwvaW50ZXJtZWRpYXRlLmhlYWx0aGl0Lmdvdi5jcmwwVAYIKwYBBQUHAQEESDBGMEQGCCsGAQUFBzAChjhodHRwOi8vY2EuZGlyZWN0Y2Eub3JnL2FpYS9pbnRlcm1lZGlhdGUuaGVhbHRoaXQuZ292LmRlcjANBgkqhkiG9w0BAQsFAAOCAQEAhCASLubdxWp+XzXO4a8zMgWOMpjft+ilIy2ROVKOKslbB7lKx0NR7chrTPxCmK+YTL2ttLaTpOniw/vTGrZgeFPyXzJCNtpnx8fFipPE18OAlKMc2nyy7RfUscf28UAEmFo2cEJfpsZjyynkBsTnQ5rQVNgM7TbXXfboxwWwhg4HnWIcmlTs2YM1a9v+idK6LSfX9y/Nvhf9pl0DQflc9ym4z/XCq87erCce+11kxH1+36N6rRqeiHVBYnoYIGMH690r4cgE8cW5B4eK7kaD3iCbmpChO0gZSa5Lex49WLXeFfM+ukd9y3AB00KMZcsUV5bCgwShH053ZQa+FMON8w==', certificate_type: 'PKIX', key_tag: 0, name: 'ett.healthit.gov', ttl: 19045, }, ] ``` This mirrors output from <https://github.com/rthalley/dnspython>. ### `tangerine.resolveTlsa(hostname[, options, abortController]))` This method was added for DANE and TLSA support. See this [excellent article](https://www.mailhardener.com/kb/dane), [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js), and <https://github.com/nodejs/node/issues/39569> for more insight. This function returns a Promise that resolves with an Array with parsed values from results: ```js [ { cert: Buffer @Uint8Array [ e1ae9c3d e848ece1 ba72e0d9 91ae4d0d 9ec547c6 bad1ddda b9d6beb0 a7e0e0d8 ], mtype: 1, name: 'proloprod.mail._dane.internet.nl', selector: 1, ttl: 622, usage: 2, }, { cert: Buffer @Uint8Array [ d6fea64d 4e68caea b7cbb2e0 f905d7f3 ca3308b1 2fd88c5b 469f08ad 7e05c7c7 ], mtype: 1, name: 'proloprod.mail._dane.internet.nl', selector: 1, ttl: 622, usage: 3, }, ] ``` This mirrors output from <https://github.com/rthalley/dnspython>. ### `tangerine.reverse(ip[, abortController, purgeCache])` ### `tangerine.setDefaultResultOrder(order)` ### `tangerine.setServers(servers)` ### `tangerine.spoofPacket(hostname, rrtype, answers[, json, expires = 30000])` This method is useful for writing tests to spoof DNS packets in-memory. The `rrtype` must be either `"TXT"` or `"MX"`, and `answers` must be an Array of DNS resource record answers. If you pass `json` as `true`, then value returned will be converted to JSON via `JSON.stringify`. The last argument `expires` can either be a `Date` or `Number`. This is the value used for calculating the DNS packet expiration. If it is a `Number`, then the `expires` value will be `Date.now() + expires`. The default value is `30000`, which means it will expire in 30 seconds. For example, if you want to spoof TXT and MX records: ```js const Redis = require('ioredis-mock'); const Tangerine = require('tangerine'); const ip = require('ip'); const cache = new Redis(); const tangerine = new Tangerine({ cache }); const obj = {}; obj['txt:forwardmail.net'] = tangerine.spoofPacket('forwardmail.net', 'TXT', [ `v=spf1 ip4:${ip.address()} -all` ]); obj['mx:forwardemail.net'] = tangerine.spoofPacket('forwardemail.net', 'MX', [ { exchange: 'mx1.forwardemail.net', preference: 0 }, { exchange: 'mx2.forwardemail.net', preference: 0 } ]); await cache.mset(obj); // // NOTE: spoofed values are used below (this means no DNS query performed) // const txt = await tangerine.resolveTxt('forwardemail.net'); console.log('txt', txt); const mx = await tangerine.resolveMx('forwardemail.net'); console.log('mx', mx); ``` **Pull requests are welcome to add support for other `rrtype` values for this method.** ## Options Similar to the `options` argument from `new dns.promises.Resolver(options)` invocation – :tangerine: Tangerine also has its own options with default `dns` behavior mirrored. See [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js) for more insight into how these options work. | Property | Type | Default Value | Description | | ------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `timeout` | `Number` | `5000` | Number of milliseconds for requests to timeout. | | `tries` | `Number` | `4` | Number of tries per `server` in `servers` to attempt. | | `servers` | `Set` or `Array` | `new Set(['1.1.1.1', '1.0.0.1'])` | A Set or Array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted addresses for DNS queries (matches default Node.js dns module behavior). Duplicates will be removed as this is converted to a `Set` internally. Defaults to Cloudflare's of `1.1.1.1` and `1.0.0.1`. If an `Array` is passed, then it will be converted to a `Set`. | | `requestOptions` | `Object` | Defaults to an Object with `requestOptions.method` and `requestOptions.headers` properties and values below | Default options to pass to [undici](https://github.com/nodejs/undici) (or your custom HTTP library function passed as `request`). | | `requestOptions.method` | `String` | Defaults to `"GET"` (must be either `"GET"` or `"POST"`, case-insensitive depending on library you use). | Default HTTP method to use for DNS over HTTP ("DoH") requests. | | `requestOptions.headers` | `Object` | Defaults to `{ 'content-type': 'application/dns-message', 'user-agent': pkg.name + "/" + pkg.version, accept: 'application/dns-message' }`. | Default HTTP headers to use for DNS over HTTP ("DoH") requests. | | `protocol` | `String` | Defaults to `"https"`. | Default HTTP protocol to use for DNS over HTTPS ("DoH") requests. | | `dnsOrder` | `String` | Defaults to `"verbatim"` for Node.js v17.0.0+ and `"ipv4first"` for older versions. | Sets the default result order of `lookup` invocations (see [dns.setDefaultResultOrder](https://nodejs.org/api/dns.html#dnssetdefaultresultorderorder) for more insight). | | `logger` | `Object` | `false` | This is the default logger. We recommend using [Cabin](https://github.com/cabinjs) instead of using `console` as your default logger. Set this value to `false` to disable logging entirely (uses noop function). | | `id` | `Number` or `Function` | `0` | Default `id` to be passed for DNS packet creation. This could alternatively be a synchronous or asynchronous function that returns a `Number` (e.g. `id: () => Tangerine.getRandomInt(1, 65534)`). | | `concurrency` | `Number` | `os.cpus().length` | Default concurrency to use for `resolveAny` lookup via [p-map](https://github.com/sindresorhus/p-map). The default value is the number of CPU's available to the system using the Node.js `os` module [os.cpus()](https://nodejs.org/api/os.html#oscpus) method. | | `ipv4` | `String` | `"0.0.0.0"` | Default IPv4 address to use for HTTP agent `localAddress` if DNS `server` was an IPv4 address. | | `ipv6` | `String` | `"::0"` | Default IPv6 address to use for HTTP agent `localAddress` if DNS `server` was an IPv6 address. | | `ipv4Port` | `Number` | `undefined` | Default port to use for HTTP agent `localPort` if DNS `server` was an IPv4 address. | | `ipv6Port` | `Number` | `undefined` | Default port to use for HTTP agent `localPort` if DNS `server` was an IPv6 address. | | `cache` | `Map`, `Boolean`, or custom cache implementation with `get` and `set` methods | `new Map()` | Set this to `false` in order to disable caching. By default or if you pass `cache: true`, it will use a new `Map` instance for caching. See [Cache](#cache) documentation and the options `defaultTTLSeconds`, `maxTTLSeconds`, and `setCacheArgs` below. | | `defaultTTLSeconds` | `Number` (seconds) | `300` | The default number of seconds to use for storing results in cache (defaults to [Cloudflare's recommendation](https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl/) of 300 seconds – 5 minutes). | | `maxTTLSeconds` | `Number` (seconds) | `86400` | The maximum number of seconds to use for storing results in cache (defaults to [Cloudflare's recommendation](https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl/) of 86,400 seconds – 24 hours – 1 day). | | `setCacheArgs` | `Function` | `(key, result) => []` | This is a helper function used for cache store providers such as [ioredis](https://github.com/luin/ioredis) or [lru-cache](https://github.com/isaacs/node-lru-cache) which support more than two arguments to `cache.set()` function. See [Cache](#cache) documentation below for more insight and examples into how this works. You may want to set this to something such as `(key, result) => [ 'PX', Math.round(result.ttl * 1000) ]` if you are using `ioredis`. | | `returnHTTPErrors` | `Boolean` | `false` | Whether to return HTTP errors instead of mapping them to corresponding DNS errors. | | `smartRotate` | `Boolean` | `true` | Whether to do smart server rotation if servers fail. | | `defaultHTTPErrorMessage` | `String` | `"Unsuccessful HTTP response"` | Default fallback message if `statusCode` returned from HTTP request was not found in [http.STATUS_CODES](https://nodejs.org/api/http.html#httpstatus_codes). | ## Cache :tangerine: Tangerine supports custom cache implementations, such as with [ioredis](https://github.com/luin/ioredis) or any other cache store that has a Map-like implementation with `set(key, value)` and `get(key)` methods. If your cache implementation allows a third argument to `set()`, such as `set(key, value, ttl)` or `set(key, value, { maxAge })`, then you must set the `setCacheArgs` option respectively (see below examples). A third argument with TTL argument support is optional as it is already built-in to :tangerine: Tangerine out of the box (cached results store their TTL and expiration time on the objects themselves – view source code for insight). ```sh npm install tangerine undici ioredis ``` ```js // app.js const Redis = require('ioredis'); const Tangerine = require('tangerine'); // <https://github.com/luin/ioredis/issues/1179> Redis.Command.setArgumentTransformer('set', (args) => { if (typeof args[1] === 'object') args[1] = JSON.stringify(args[1]); return args; }); Redis.Command.setReplyTransformer('get', (value) => { if (value && typeof value === 'string') { try { value = JSON.parse(value); } catch {} } return value; }); const cache = new Redis(); const tangerine = new Tangerine({ cache, setCacheArgs(key, result) { return ['PX', Math.round(result.ttl * 1000)]; } }); (async () => { console.time('without cache'); await tangerine.resolve('forwardemail.net'); // <-- cached console.timeEnd('without cache'); console.time('with cache'); await tangerine.resolve('forwardemail.net'); // <-- uses cached value console.timeEnd('with cache'); })(); ``` ```sh ❯ node app without cache: 98.25ms with cache: 0.091ms ``` You can also force the cache to be purged and reset to a new value: ```js await tangerine.resolve('forwardemail.net'); // cached await tangerine.resolve('forwardemail.net'); // uses cached value await tangerine.resolve('forwardemail.net'); // uses cached value await tangerine.resolve('forwardemail.net', { purgeCache: true }); // re-cached await tangerine.resolve('forwardemail.net'); // uses cached value await tangerine.resolve('forwardemail.net'); // uses cached value ``` This purge cache feature is useful for DNS records that have recently changed and have had their caches purged at the relevant DNS provider (e.g. [Cloudflare's Purge Cache tool](https://1.1.1.1/purge-cache/)). ## Compatibility The only known compatibility issue is for locally running DNS servers that have wildcard DNS matching. If you are using `dnsmasq` with a wildcard match on "localhost" to "127.0.0.1", then the results may vary. For example, if your `dnsmasq` configuration has `address=/localhost/127.0.0.1`, then any match of `localhost` will resolve to `127.0.0.1`. This means that `dns.promises.lookup('foo.localhost')` will return `127.0.0.1` – however with :tangerine: Tangerine it will not return a value. The reason is because :tangerine: Tangerine only looks at either `/etc/hosts` (macOS/Linux) and `C:/Windows/System32/drivers/etc/hosts` (Windows). It does not lookup BIND, dnsmasq, or other configurations running locally. We would welcome a PR to resolve this (see `isCI` usage in test folder) – however it is a non-issue, as the workaround is to simply append a new line to the hostfile of `127.0.0.1 foo.localhost`. ## Debugging If you run into issues while using :tangerine: Tangerine, then these recommendations may help: * Set `NODE_DEBUG=tangerine` environment variable flag when you start your app: ```sh NODE_DEBUG=tangerine node app.js ``` * Pass a verbose logger as the `logger` option, e.g. `logger: console` (see [Options](#options) above). * Assuming you are not allergic, try eating a [nutritious](https://en.wikipedia.org/wiki/Tangerine#Nutrition) :tangerine: tangerine. ## Benchmarks Contributors can run benchmarks locally by cloning the repository, installing dependencies, and running the benchmarks script: ```sh git clone https://github.com/forwardemail/nodejs-dns-over-https-tangerine.git cd tangerine npm install npm run benchmarks ``` You can also specify optional custom environment variables to test against real-world or locally running servers (instead of using mocked in-memory servers) for the [HTTP Library Benchmarks](#http-library-benchmarks): ```sh BENCHMARK_PROTOCOL="http" BENCHMARK_HOST="127.0.0.1" BENCHMARK_PORT="4000" BENCHMARK_PATH="/v1/test" node benchmarks/http ``` ### Tangerine Benchmarks We have written extensive benchmarks to show that :tangerine: Tangerine is as fast as the native Node.js DNS module (with the exception of the `lookup` command). Note that performance is opinionated – since rate limiting plays a factor dependent on the DNS servers you are using and since caching is most likely going to takeover. The latest benchmark results are viewable on GitHub under this repository's [GitHub CI actions logs](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions?query=event%3Apush): > [Node 16 on ubuntu-latest](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions/runs/4297805550/jobs/7491228635#step:6:1) ```diff node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse Started: lookup tangerine.lookup POST with caching using Cloudflare x 735 ops/sec ±195.35% (88 runs sampled) tangerine.lookup POST without caching using Cloudflare x 142 ops/sec ±0.58% (84 runs sampled) tangerine.lookup GET with caching using Cloudflare x 222,397 ops/sec ±0.52% (88 runs sampled) +tangerine.lookup GET without caching using Cloudflare x 142 ops/sec ±0.46% (83 runs sampled) dns.promises.lookup with caching using Cloudflare x 6,169,417 ops/sec ±1.67% (84 runs sampled) -dns.promises.lookup without caching using Cloudflare x 4,186 ops/sec ±0.58% (89 runs sampled) Fastest without caching is: dns.promises.lookup without caching using Cloudflare Started: resolve tangerine.resolve POST with caching using Cloudflare x 951 ops/sec ±195.84% (87 runs sampled) tangerine.resolve POST without caching using Cloudflare x 135 ops/sec ±1.27% (79 runs sampled) tangerine.resolve GET with caching using Cloudflare x 1,134,724 ops/sec ±0.27% (87 runs sampled) +tangerine.resolve GET without caching using Cloudflare x 135 ops/sec ±1.34% (81 runs sampled) tangerine.resolve POST with caching using Google x 1,103,189 ops/sec ±0.44% (86 runs sampled) tangerine.resolve POST without caching using Google x 55.76 ops/sec ±3.57% (80 runs sampled) tangerine.resolve GET with caching using Google x 1,140,499 ops/sec ±0.32% (87 runs sampled) tangerine.resolve GET without caching using Google x 70.51 ops/sec ±0.93% (84 runs sampled) resolver.resolve with caching using Cloudflare x 4,790,171 ops/sec ±0.43% (87 runs sampled) -resolver.resolve without caching using Cloudflare x 158 ops/sec ±1.26% (83 runs sampled) Fastest without caching is: resolver.resolve without caching using Cloudflare Started: reverse tangerine.reverse GET with caching x 771 ops/sec ±195.37% (85 runs sampled) +tangerine.reverse GET without caching x 135 ops/sec ±0.74% (81 runs sampled) resolver.reverse with caching x 5,353,130 ops/sec ±0.36% (89 runs sampled) -resolver.reverse without caching x 1.90 ops/sec ±210.52% (16 runs sampled) dns.promises.reverse with caching x 5,123,900 ops/sec ±0.96% (85 runs sampled) -dns.promises.reverse without caching x 0.29 ops/sec ±171.85% (18 runs sampled) +Fastest without caching is: tangerine.reverse GET without caching ``` > [Node 18 on ubuntu latest](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions/runs/4297805550/jobs/7491228742#step:6:1) ```diff node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse && node benchmarks/http Started: lookup tangerine.lookup POST with caching using Cloudflare x 666 ops/sec ±195.48% (87 runs sampled) tangerine.lookup POST without caching using Cloudflare x 90.81 ops/sec ±8.06% (89 runs sampled) tangerine.lookup GET with caching using Cloudflare x 256,141 ops/sec ±1.72% (87 runs sampled) +tangerine.lookup GET without caching using Cloudflare x 96.39 ops/sec ±0.31% (89 runs sampled) dns.promises.lookup with caching using Cloudflare x 1,473 ops/sec ±195.95% (87 runs sampled) -dns.promises.lookup without caching using Cloudflare x 4,191 ops/sec ±0.54% (85 runs sampled) Fastest without caching is: dns.promises.lookup without caching using Cloudflare Started: resolve tangerine.resolve POST with caching using Cloudflare x 683 ops/sec ±195.88% (87 runs sampled) tangerine.resolve POST without caching using Cloudflare x 93.37 ops/sec ±0.48% (87 runs sampled) tangerine.resolve GET with caching using Cloudflare x 1,146,727 ops/sec ±0.58% (88 runs sampled) +tangerine.resolve GET without caching using Cloudflare x 93.33 ops/sec ±0.51% (87 runs sampled) tangerine.resolve POST with caching using Google x 1,133,683 ops/sec ±2.74% (89 runs sampled) tangerine.resolve POST without caching using Google x 83.91 ops/sec ±6.32% (76 runs sampled) tangerine.resolve GET with caching using Google x 1,147,212 ops/sec ±0.32% (90 runs sampled) tangerine.resolve GET without caching using Google x 79.73 ops/sec ±4.02% (77 runs sampled) resolver.resolve with caching using Cloudflare x 5,318,406 ops/sec ±0.67% (86 runs sampled) -resolver.resolve without caching using Cloudflare x 100 ops/sec ±1.55% (79 runs sampled) Fastest without caching is: resolver.resolve without caching using Cloudflare Started: reverse tangerine.reverse GET with caching x 722 ops/sec ±195.42% (88 runs sampled) +tangerine.reverse GET without caching x 93.19 ops/sec ±0.74% (87 runs sampled) resolver.reverse with caching x 5,520,569 ops/sec ±0.59% (85 runs sampled) -resolver.reverse without caching x 17.42 ops/sec ±162.63% (70 runs sampled) dns.promises.reverse with caching x 5,164,258 ops/sec ±0.96% (86 runs sampled) -dns.promises.reverse without caching x 0.20 ops/sec ±184.87% (25 runs sampled) +Fastest without caching is: tangerine.reverse GET without caching ``` --- You can also [run the benchmarks yourself](#benchmarks). --- Provided below are additional benchmark tests we have run: > Node v18.14.2 on MacBook Air M1 16GB (without VPN): ```diff node --version v18.14.2 node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse Started: lookup tangerine.lookup POST with caching using Cloudflare x 1,035 ops/sec ±195.73% (91 runs sampled) tangerine.lookup POST without caching using Cloudflare x 52.76 ops/sec ±51.29% (53 runs sampled) tangerine.lookup GET with caching using Cloudflare x 694,910 ops/sec ±1.54% (87 runs sampled) +tangerine.lookup GET without caching using Cloudflare x 40.18 ops/sec ±60.19% (49 runs sampled) dns.promises.lookup with caching using Cloudflare x 12,645,103 ops/sec ±0.26% (90 runs sampled) -dns.promises.lookup without caching using Cloudflare x 2,664 ops/sec ±0.54% (88 runs sampled) Fastest without caching is: dns.promises.lookup without caching using Cloudflare Started: resolve tangerine.resolve POST with caching using Cloudflare x 1,005 ops/sec ±195.93% (91 runs sampled) tangerine.resolve POST without caching using Cloudflare x 55.52 ops/sec ±46.26% (57 runs sampled) tangerine.resolve GET with caching using Cloudflare x 2,879,865 ops/sec ±0.35% (86 runs sampled) +tangerine.resolve GET without caching using Cloudflare x 71.11 ops/sec ±2.94% (74 runs sampled) tangerine.resolve POST with caching using Google x 1,292 ops/sec ±195.91% (88 runs sampled) tangerine.resolve POST without caching using Google x 36.88 ops/sec ±41.76% (53 runs sampled) tangerine.resolve GET with caching using Google x 2,885,428 ops/sec ±0.22% (88 runs sampled) tangerine.resolve GET without caching using Google x 70.38 ops/sec ±3.72% (68 runs sampled) resolver.resolve with caching using Cloudflare x 10,645,813 ops/sec ±0.23% (91 runs sampled) -resolver.resolve without caching using Cloudflare x 71.80 ops/sec ±2.84% (67 runs sampled) +Fastest without caching is: resolver.resolve without caching using Cloudflare, tangerine.resolve GET without caching using Cloudflare, tangerine.resolve GET without caching using Google, tangerine.resolve POST without caching using Cloudflare Started: reverse tangerine.reverse GET with caching x 917 ops/sec ±195.78% (88 runs sampled) +tangerine.reverse GET without caching x 51.15 ops/sec ±51.92% (61 runs sampled) resolver.reverse with caching x 11,058,579 ops/sec ±0.37% (88 runs sampled) -resolver.reverse without caching x 62.30 ops/sec ±24.83% (64 runs sampled) dns.promises.reverse with caching x 11,276,123 ops/sec ±0.17% (90 runs sampled) -dns.promises.reverse without caching x 73.46 ops/sec ±1.99% (69 runs sampled) Fastest without caching is: dns.promises.reverse without caching, resolver.reverse without caching ``` > Node v18.14.2 on MacBook Air M1 16GB (with DNS blackholed VPN) – **this highlights the DNS blackhole problem**: ```diff node --version v18.14.2 node benchmarks/lookup && node benchmarks/resolve && node benchmarks/reverse Started: lookup tangerine.lookup POST with caching using Cloudflare x 1,327 ops/sec ±195.65% (89 runs sampled) tangerine.lookup POST without caching using Cloudflare x 71.11 ops/sec ±8.24% (71 runs sampled) tangerine.lookup GET with caching using Cloudflare x 759,816 ops/sec ±0.46% (90 runs sampled) +tangerine.lookup GET without caching using Cloudflare x 73.98 ops/sec ±1.78% (69 runs sampled) dns.promises.lookup with caching using Cloudflare x 1,744 ops/sec ±195.97% (88 runs sampled) -dns.promises.lookup without caching using Cloudflare x 2,717 ops/sec ±0.82% (87 runs sampled) Fastest without caching is: dns.promises.lookup without caching using Cloudflare Started: resolve tangerine.resolve POST with caching using Cloudflare x 947 ops/sec ±195.93% (91 runs sampled) tangerine.resolve POST without caching using Cloudflare x 44.33 ops/sec ±73.30% (75 runs sampled) tangerine.resolve GET with caching using Cloudflare x 2,814,737 ops/sec ±0.17% (91 runs sampled) +tangerine.resolve GET without caching using Cloudflare x 57.25 ops/sec ±51.61% (73 runs sampled) tangerine.resolve POST with caching using Google x 1,087 ops/sec ±195.92% (91 runs sampled) tangerine.resolve POST without caching using Google x 36.84 ops/sec ±7.04% (62 runs sampled) tangerine.resolve GET with caching using Google x 2,784,199 ops/sec ±0.15% (92 runs sampled) tangerine.resolve GET without caching using Google x 47.55 ops/sec ±5.66% (76 runs sampled) resolver.resolve with caching using Cloudflare x 0.09 ops/sec ±6.41% (5 runs sampled) -resolver.resolve without caching using Cloudflare x 0.10 ops/sec ±6.52% (5 runs sampled) +Fastest without caching is: tangerine.resolve GET without caching using Google Started: reverse tangerine.reverse GET with caching x 1,345 ops/sec ±195.66% (92 runs sampled) +tangerine.reverse GET without caching x 71.73 ops/sec ±3.03% (73 runs sampled) resolver.reverse with caching x 0.10 ops/sec ±6.54% (5 runs sampled) -resolver.reverse without caching x 0.10 ops/sec ±0.01% (5 runs sampled) dns.promises.reverse with caching x 0.10 ops/sec ±6.54% (5 runs sampled) -dns.promises.reverse without caching x 0.10 ops/sec ±0.01% (5 runs sampled) +Fastest without caching is: tangerine.reverse GET without caching ``` Also see this [write-up](https://samknows.com/blog/dns-over-https-performance) on UDP-based DNS versus DNS over HTTPS ("DoH") benchmarks. **Speed could be increased** by switching to use [undici streams](https://undici.nodejs.org/#/?id=undicistreamurl-options-factory-promise) and [getStream.buffer](https://github.com/sindresorhus/get-stream) (pull request is welcome). ### HTTP Library Benchmarks Originally we wrote this library using [got](https://github.com/sindresorhus/got) – however after running benchmarks and learning of [how performant](https://github.com/sindresorhus/got/issues/1419) undici is, we weren't happy – and we rewrote it with [undici](https://github.com/nodejs/undici). Here are test results from the latest versions of all HTTP libraries against our real-world API (both client and server running locally): > Node v18.14.2 on MacBook Air M1 16GB (using real-world API server): ```sh node --version v18.14.2 > BENCHMARK_HOST="127.0.0.1" BENCHMARK_PORT="4000" BENCHMARK_PATH="/v1/test" node benchmarks/http http.request POST request x 765 ops/sec ±9.83% (72 runs sampled) http.request GET request x 1,000 ops/sec ±3.88% (85 runs sampled) undici GET request x 2,740 ops/sec ±5.92% (78 runs sampled) undici POST request x 1,247 ops/sec ±0.61% (88 runs sampled) axios GET request x 792 ops/sec ±7.78% (76 runs sampled) axios POST request x 717 ops/sec ±13.85% (69 runs sampled) got GET request x 1,234 ops/sec ±21.10% (67 runs sampled) got POST request x 113 ops/sec ±168.45% (37 runs sampled) fetch GET request x 977 ops/sec ±38.12% (51 runs sampled) fetch POST request x 708 ops/sec ±23.64% (65 runs sampled) request GET request x 1,152 ops/sec ±40.48% (49 runs sampled) request POST request x 947 ops/sec ±1.35% (86 runs sampled) superagent GET request x 148 ops/sec ±139.32% (31 runs sampled) superagent POST request x 571 ops/sec ±40.14% (54 runs sampled) phin GET request x 252 ops/sec ±158.51% (50 runs sampled) phin POST request x 714 ops/sec ±17.39% (62 runs sampled) Fastest is undici GET request ``` ## Contributors | Name | Website | | ----------------- | -------------------------- | | **Forward Email** | <https://forwardemail.net> | ## License [MIT](LICENSE) © [Forward Email](https://forwardemail.net) ## <a href="#"><img src="https://raw.githubusercontent.com/forwardemail/nodejs-dns-over-https-tangerine/main/media/footer.png" alt="#" /></a>
Node.js DNS over HTTPS - :tangerine: Tangerine is the best drop-in replacement for dns.promises.Resolver using DNS over HTTPS ("DoH") via undici with built-in retries, timeouts, smart server rotation, AbortControllers, and caching support for multiple backends (with TTL and purge support). Made for @forwardemail.
cache,dns,doh,email,https,node,records,resolver,lookup,dns-over-http
2023-02-23T04:16:44Z
2023-08-21T04:09:07Z
2023-08-21T04:09:07Z
1
0
78
0
6
128
null
MIT
JavaScript
Baroshem/nuxt-medusa
main
# Nuxt Medusa [![nuxt-medusa](./docs/public/cover.jpeg)](https://nuxt-medusa.vercel.app) [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [Medusa](https://medusajs.com) module for Nuxt. - [▶️ &nbsp;Play online](https://stackblitz.com/github/baroshem/nuxt-medusa?file=.stackblitz%2Fnuxt.config.ts) - [📖 &nbsp;Documentation](https://nuxt-medusa.vercel.app) - [🎥 &nbsp;Intro video](https://www.youtube.com/watch?v=EuakPz8M7CM) - [✨ &nbsp;Release Notes](https://github.com/baroshem/nuxt-medusa/releases) ## Features - Nuxt 3 ready - Wrapper around `@medusajs/medusa-js` - Handy composables like `useMedusaClient` - Usage in API server routes with `serverMedusaClient` - TypeScript support ## Quick Setup 1. Add `nuxt-medusa` dependency to your project ```bash npx nuxi@latest module add medusa ``` 2. Create .env file with following `MEDUSA_URL` variable: ```bash MEDUSA_URL=<YOUR_MEDUSA_URL> # By default http://localhost:9000 ``` And that's it! You can now fetch data from Medusa in Nuxt ✨ ```vue <script setup lang="ts"> const client = useMedusaClient(); const { products } = await client.products.list(); </script> ``` If you are encountering problems with `CORS` from Medusa, make sure that `process.env.STORE_CORS` in `medusa-config.js` file is pointing to your local Nuxt project. By default, Medusa has CORS set for `http://localhost:8000` while Nuxt is running by default on `http://localhost:3000` ## Development ```bash # Install dependencies yarn # Generate type stubs yarn dev:prepare # Develop with the playground yarn dev # Build the playground yarn dev:build # Run ESLint yarn lint # Run Vitest yarn test yarn test:watch # Release new version yarn release ``` <!-- Badges --> [npm-version-src]: https://img.shields.io/npm/v/nuxt-medusa/latest.svg?style=flat&colorA=18181B&colorB=28CF8D [npm-version-href]: https://npmjs.com/package/nuxt-medusa [npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-medusa.svg?style=flat&colorA=18181B&colorB=28CF8D [npm-downloads-href]: https://npmjs.com/package/nuxt-medusa [license-src]: https://img.shields.io/npm/l/nuxt-medusa.svg?style=flat&colorA=18181B&colorB=28CF8D [license-href]: https://npmjs.com/package/nuxt-medusa
🛍️ Medusa module for Nuxt
ecommerce,javascript,medusa,nuxt,typescript,vue
2023-02-23T07:18:04Z
2024-04-04T03:09:54Z
2023-10-25T09:11:02Z
6
30
51
1
6
121
null
MIT
TypeScript
Domains18/NodeJsDaraja
main
# M-Pesa Stk Push Backend This backend code is designed to facilitate M-Pesa Stk Push transactions. It includes functionality for generating OAuth tokens, initiating Stk Push transactions, and handling callbacks for transaction status updates. ## Prerequisites Before running the backend code, make sure you have the following set up: - Node.js installed - npm (Node Package Manager) installed - MongoDB or another database (For storing transaction data) ## Installation 1. Clone the repository: ```bash {"id":"01HGZNS58XQD8Y1G1JR4N7Y0Y7"} git clone https://github.com/Domains18/NodejsDaraja ``` 2. Navigate to the project directory: ```bash {"id":"01HGZNS58XQD8Y1G1JR8AA3KWN"} cd /path/to/your/backend ``` 3. Install dependencies: ```bash {"id":"01HGZNS58YACW06V3H4C2001EH"} npm install ``` 4. Set up environment variables: Create a `.env` file in the project root and configure the following variables: ```env {"id":"01HGZNS58YACW06V3H4FDT8KRM"} CONSUMER_KEY=your_consumer_key CONSUMER_SECRET=your_consumer_secret MPESA_SHORTCODE=your_mpesa_shortcode MPESA_PASSKEY=your_mpesa_passkey MONGODB_URI=your_mongodb_uri ``` 5. Start the server: ```bash {"id":"01HGZNS58YACW06V3H4GRT80Y9"} npm start ``` The backend server should now be running. ## Endpoints ### 1. Generate OAuth Token and PushStk - **Endpoint:** `/api/stkpush` - **Method:** `POST` - **Description:** Generates an OAuth token required for M-Pesa API requests and innitiates a pushstk request. ### 3. Callback for Transaction Status - **Endpoint:** `/api/callback` - **Method:** `POST` - **Description:** Handles callbacks from M-Pesa to update transaction status. - If you do not have postman or want to use a frontend, click here [FrontEnd]("https://github.com/Domains18/SafaricomDarajaFrontEnd.git") ## Additional Information - This backend code uses Axios for making HTTP requests. - Transaction data is stored in a MongoDB database. - Callbacks from M-Pesa are handled to update the transaction status. Feel free to customize and extend the backend based on your specific requirements. ## License This project is licensed under the [MIT License](LICENSE). ---
A simple REST API service built with javascript, express and mongodb showing how to use daraja API by safaricom to intergrate payments for eccommerce app. It utilises the Express STK push to prompt the customer to authenticate the request by the input of their Mpesa pin
daraja-api,daraja-mpesa,javascript,safaricom-mpesa-apis,typescript
2023-02-12T10:14:45Z
2024-05-13T12:04:41Z
null
3
48
114
0
44
120
null
null
JavaScript
didavid61202/type-level-regexp
main
# 🔤🔍 Type-Level RegExp (WIP) [![npm version][npm-version-src]][npm-version-href] > TypeScript type-level RegExp parser and matcher implemented using template literals. ![Demo](https://user-images.githubusercontent.com/29917252/224330392-daeee9a5-d448-4f00-baf2-29365bdfa4b5.png) [![Open in Codeflow](https://developer.stackblitz.com/img/open_in_codeflow.svg)](https://stackblitz.com/~/github.com/didavid61202/type-level-regexp) 👉 [Try on TypeScript Playground](https://www.typescriptlang.org/play?target=99&jsx=0#code/PQKhCgAIUqYMQPYCdIFsUFNKYB4EM0AHAG0wGdJ8A7AEypJMnIFciiUAXTegJUwDmAUVxFIRfJ27JqlGvRbl8AzABo44svnLYdmAFyQAFlKLl9wYAICWnIywBGAOgDGiNMFrXa+AG7eANgBGACYABhDgTgBPIkwAWjJfTBJ45EE8Ig04YHBwS0gAIW1rF0hFZQNIa2IuKjpynUgAAxd0yUx+YVEACgByAB4ukTEJKUwZAD4+gEpm6upNfBdsRAAzSGjEFlRqFDR8JmAhwRHxSWlqSeBIYdFIRAcAK0wXTidwGo5kTkgAb0gbUwHTuYgAvpA1sh3JAAEQxOKJTDJVLpFSiWEAblgBQAhPjIAAFLRNADu+FskMwpOYr0QdEoaxQkAAKgBlJbRATQlgNTiIKmcFxGSB9BEJJIpNIZUR9SHQtCQahERXySDpKEUEV2bDihZrCaYagrSD43F5UAQaCQNmcZDWagCJwHIVGHozHAEYhkHLgNyyX5os4AXkB7W4oJ6sKZiB6AH4BgIgpMHPgANoCNIAXRm8f0PVTAC8ZgAfByIRAzOPx4MARxYuBmsNUkDTsOssJzmPyN0gfcgAD043l-eRfi7hfxWCRfqH4RROIY1gB5R74XjlxAARQbsOdkmFPSDohm3YK-cHw-AE6MU5YM7TYSzZ97F4vQ7yN7vD6Cz57b7fD8vwoe9ODTEI-3PAC+yAg9bxAh8AGZINfaDYNdb93gdWg8BfaD+3QycEPeMhHTsPD8Mva84MwpxuW2MwKPwj98jADRbXtR0nHSUhlkwd1PUIUhMF9Udfh8bgOIdARIFDPpYRZIxsB8aJICCABOdSgniMJ1PiIIAFZqjkG1eRU2E+m4zBeJWHooEgKCqL7IEQVOXp7L7WF4wGYMAB1fIAdVzBMiA1axcEmPN-NJEt-PIGYQDjYKBmiYFkEmfzaD+AAWMEZnibyMGoOwMt8rKQjygqExU0ryry7zWDWNZwsiuN9Gi2LfPikAZn8gLYXsmZ1D7OyLxvYb+1CzBmtwCa+wKD8L1S-BkDmhybkW-sirsNaVLWxqZrW9YDR0Tg1oW4cLwdIgWDOjzIHothyHui7BtkyZ7uaABJRY0wAEj+a7brBLMWxvSAAZvCFJAWHDcEMAHjooTBOAhaxKC+tll0gAAOAIwiCJxARoBhyAFJlkBdKhzAhv4ppmsEAceswnBUsFgEh+k7HZpmeRZ5bkEZv4DvCiEehU2TabZ+p6AFyWAYFvLmnAU8LTY612RwZBoVQawNgdXxDm8W43LEchomK-BZuMRBklQflaWUlGKSYCYdfQCglBUD5oFyMSFkNkhvFBSWXIjU2oxjAsVthVXHKooA) or see examples in `Playground` and `test` folders. 🚧 Work In Progress, PRs and issues are welcome 🚧 ## Quick Setup 1. Add `type-level-regexp` dependency to your project ```bash # Using pnpm pnpm i -D type-level-regexp # Using npm npm i -D type-level-regexp ``` 2. Import `createRegExp` function, pass in a RegExp string pattern to it creates a `TypedRegExp`, passing this `TypedRegExp` to `String.match()`, `String.matchAll()` or `String.replace()` functions to get fully typed match result. ## Basic Usage match result will be fully typed if match against a literal stirng, or shows emumerated results if match against a dynamic string. ```ts import { createRegExp, spreadRegExpIterator } from 'type-level-regexp' /** string.match() */ const regExp = createRegExp('foO(?<g1>b[a-g]r)(?:BAz|(?<g2>qux))', ['i']) const matchResult = 'prefix foobarbaz suffix'.match(regExp) // matching literal string matchResult[0] // 'foobarbaz' matchResult[1] // 'bar' matchResult[3] // show type error `type '3' can't be used to index type 'RegExpMatchResult<...>` matchResult.length // 3 matchResult.index // 7 matchResult.groups // { g1: "bar"; g2: undefined; } /** string.replace() */ const regExp2 = createRegExp('(\\d{4})[-.](?<month>\\w{3,4})[-.](\\d{1,2})') const replaceResult = '1991-Sept-15'.replace(regExp2, '$<month> $3, $1') replaceResult // 'Sept 15, 1991' /** string.matchAll() */ const regExp3 = createRegExp('c[a-z]{2}', ['g']) const matchALlIterator = 'cat car caw cay caw cay'.matchAll(regExp3) const spreadedResult = spreadRegExpIterator(matchALlIterator) spreadedResult[2][0] // 'caw' spreadedResult[3].index // 12 const InvalidRegExp = createRegExp('foo(bar') // TypeScript error: Argument of type 'string' is not assignable to parameter of type 'RegExpSyntaxError<"Invalid regular expression, missing closing \`)\`">' ``` For TypeScript library authors, you can also import individual generic types to parse and match RegExp string at type-level and combine with your library's type-level features. ```ts import { ParseRegExp, MatchRegExp } from 'type-level-regexp' type MatchResult = MatchRegExp<'fooBAR42', ParseRegExp<'Fo[a-z](Bar)\\d{2}'>, 'i'> type Matched = MatchResult[0] // 'fooBAR42' type First = MatchResult[1] // 'BAR' type RegExpAST = ParseRegExp<'foo(?<g1>bar)'> // [{ // type: "string"; // value: "foo"; // }, { // type: "namedCapture"; // name: "g1"; // value: [{ // type: "string"; // value: "bar"; // }]; // }] ``` ## Origin & Notice The main purpose of this project is to test and demonstrate the possibility and limitations of writing a RegExp parser/matcher in TypeScript's type-level. Note that this may not be practically useful, but rather an interesting showcase. The idea for this project originated while I was working on improving the type hints of string.match and replace in [magic-regexp](https://github.com/danielroe/magic-regexp) (created by the most inspiring, resourceful, and kind [Daniel Roe](https://github.com/danielroe) from [Nuxt](https://nuxt.com), definitely check it out if you are working with RegExp and TypeScript!). As the complexity grows, I start working on this separated repo to increase development speed and try out different iterations. It will be incorporate and use in [magic-regexp](https://github.com/danielroe/magic-regexp), and [Gabriel Vergnaud](https://github.com/gvergnaud)'s awesome [hotscript](https://github.com/gvergnaud/hotscript) very soon. ❤️ Testing, feedbacks and PRs are welcome! ## Features - Export `createRegExp` function to create a`TypedRegExp` that replace your original `/regex_pattern/` regex object, which can be pass to `String.match()`, `String.matchAll()` and `String.replace()` functions and gets fully typed result. - Shows `RegExpSyntaxError` if the provided RegExp pattern is invalid. - Enhance types of RegExp related `String` functions (`.match`, `matchAll`, `.replace`...) for literal or dynamic typed string. - Result of `String` functions matched exactly as runtime result. - Support all common RegExp tokens (incl. Lookarounds, Backreferences...etc), quantifiers (incl. greedy/lazy) and (`g`,`i`) flags. - Export helper functions `spreadRegExpMatchArray` and `spreadRegExpIterator` to get tuple type of match results and iterators. - Provide generic type `ParseRegExp` to parse and RegExp string to AST. - Provide generic type `MatchRegExp` to match giving string with a parsed RegExp. - Provide generic type `ResolvePermutation` to permutation all possible matching string of given RegExp if possible (due to TypeScript type-level limitation) - More details please [try on TypeScript Playground](https://www.typescriptlang.org/play?target=99&jsx=0#code/PQKhCgAIUqYMQPYCdIFsUFNKYB4EM0AHAG0wGdJ8A7AEypJMnIFciiUAXTegJUwDmAUVxFIRfJ27JqlGvRbl8AzABo44svnLYdmAFyQAFlKLl9wYAICWnIywBGAOgDGiNMFrXa+AG7eANgBGACYABhDgTgBPIkwAWjJfTBJ45EE8Ig04YHBwS0gAIW1rF0hFZQNIa2IuKjpynUgAAxd0yUx+YVEACgByAB4ukTEJKUwZAD4+gEpm6upNfBdsRAAzSGjEFlRqFDR8JmAhwRHxSWlqSeBIYdFIRAcAK0wXTidwGo5kTkgAb0gbUwHTuYgAvpA1sh3JAAEQxOKJTDJVLpFSiWEAblgBQAhPjIAAFLRNADu+FskMwpOYr0QdEoaxQkAAKgBlJbRATQlgNTiIKmcFxGSB9BEJJIpNIZUR9SHQtCQahERXySDpKEUEV2bDihZrCaYagrSD43F5UAQaCQNmcZDWagCJwHIVGHozHAEYhkHLgNyyX5os4AXkB7W4oJ6sKZiB6AH4BgIgpMHPgANoCNIAXRm8f0PVTAC8ZgAfByIRAzOPx4MARxYuBmsNUkDTsOssJzmPyN0gfcgAD043l-eRfi7hfxWCRfqH4RROIY1gB5R74XjlxAARQbsOdkmFPSDohm3YK-cHw-AE6MU5YM7TYSzZ97F4vQ7yN7vD6Cz57b7fD8vwoe9ODTEI-3PAC+yAg9bxAh8AGZINfaDYNdb93gdWg8BfaD+3QycEPeMhHTsPD8Mva84MwpxuW2MwKPwj98jADRbXtR0nHSUhlkwd1PUIUhMF9Udfh8bgOIdARIFDPpYRZIxsB8aJICCABOdSgniMJ1PiIIAFZqjkG1eRU2E+m4zBeJWHooEgKCqL7IEQVOXp7L7WF4wGYMAB1fIAdVzBMiA1axcEmPN-NJEt-PIGYQDjYKBmiYFkEmfzaD+AAWMEZnibyMGoOwMt8rKQjygqExU0ryry7zWDWNZwsiuN9Gi2LfPikAZn8gLYXsmZ1D7OyLxvYb+1CzBmtwCa+wKD8L1S-BkDmhybkW-sirsNaVLWxqZrW9YDR0Tg1oW4cLwdIgWDOjzIHothyHui7BtkyZ7uaABJRY0wAEj+a7brBLMWxvSAAZvCFJAWHDcEMAHjooTBOAhaxKC+tll0gAAOAIwiCJxARoBhyAFJlkBdKhzAhv4ppmsEAceswnBUsFgEh+k7HZpmeRZ5bkEZv4DvCiEehU2TabZ+p6AFyWAYFvLmnAU8LTY612RwZBoVQawNgdXxDm8W43LEchomK-BZuMRBklQflaWUlGKSYCYdfQCglBUD5oFyMSFkNkhvFBSWXIjU2oxjAsVthVXHKooA), or see tests files in [Tests](./test) and [Stackblitz](https://stackblitz.com/~/github.com/didavid61202/type-level-regexp). (examples in index.test-d.ts) #### Example - type-safe args in replacing function of `string.replace()` ![replaceRegexp](https://user-images.githubusercontent.com/29917252/224333879-50d51207-f63c-4ac6-b561-34ace9ebb7d4.JPG) #### Example - spreaded `string.matchAll()` with union of RegExp pattern remain as tuple ![type-level-matchAll-with-union](https://user-images.githubusercontent.com/29917252/224666590-0bfdc22b-ac5d-4b8e-94e3-545fd57a8233.png) ### RegExp Tokens & Flags | Tokens | Description | Support | | --- | --- | --- | | `.` | Matches any single character. | ✅ | | `*`, `*?` | Matches zero or more occurrences (Greedy/Lazy). | ✅ | | `+`, `*?` | Matches one or more occurrences (Greedy/Lazy). | ✅ | | `?`, `??` | Matches zero or one occurrence (Greedy/Lazy). | ✅ | | `^` | Matches the start of a line. | ✅ | | `$` | Matches the end of a line. | ✅ | | `\s`, `\S` | Matches any whitespace, non-whitespace character. | ✅ | | `\d`, `\D` | Matches any digit, non-digit character. | ✅ | | `\w`, `\W` | Matches any word, non-word character. | ✅ | | `\b`, `\B` | Matches a word-boundary, non-word-boundary. | ✅ | | `[abc]` | Matches any character in the set. | ✅ | | `[^abc]` | Matches any character not in the set. | ✅ | | `()` | Creates a capturing group. | ✅ | | `(?:)` | Creates a non-capturing group. | ✅ | | `(?<name>)` | Creates a named-capturing group. | ✅ | | `\|` | Matches either the expression before or after the vertical bar. | ✅ | | `{n}` | Matches exactly `n` occurrences. | ✅ | | `{n,}` | Matches at least `n` occurrences. | ✅ | | `{n,m}` | Matches between `n` and `m` occurrences. | ✅ | | `(?=)`, `(?!)` | Positive/Negative lookahead. | ✅ | | `(?<=)`, `(?<!)` | Positive/Negative lookbehind. | ✅ | | Flags | Description | Support | | --- | --- | --- | | `g` | Global matching (matches all occurrences). | ✅ | | `i` | Case-insensitive matching. | ✅ | ## 💻 Development - Clone this repository - Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10) - Install dependencies using `pnpm install` - Run interactive tests using `pnpm dev` ## License Made with 🔥 and ❤️ Published under [MIT License](./LICENCE). <!-- Badges --> [npm-version-src]: https://img.shields.io/npm/v/type-level-regexp?style=flat-square [npm-version-href]: https://npmjs.com/package/type-level-regexp
🔤🔍 Type-level RegExp, parse and match string in TypeScript type system.
javascript,parser,regex,regexp,types,typescript
2023-02-22T17:47:10Z
2023-06-15T09:25:28Z
null
1
0
223
1
0
107
null
MIT
TypeScript
Pinaka-Pani-18/Javascript-Projects
master
# Javascript-Projects In this repository I have created basic projects using HTML, CSS and JS from begininner level to advanced level. <h1>Project Names</h1> <h3>Project-01 (A message to pass)</h3> <h3>Project-02 (Random colors)</h3> <h3>Project-03 (Counter)</h3> <h3>Project-04 (Image slider)</h3> <h3>Project-05 (Animated Cursor)</h3> <h3>Project-06 (Random Joke Generator)</h3> <h3>Project-07 (Country Guide)</h3> <h3>Project-08 (To-Do List App)</h3> <h3>Project-09 (Stop Watch)</h3> <h3>Project-10 (Rotating Image Gallery)</h3> <h3>Project-11 (Drum Kits)</h3> <h3>Project-12 (Calender)</h3> <h3>Project-13 (Question & Answer Section)</h3> <h3>Project-14 (Weather App)</h3> <h3>Project-15 (Dictionary App)</h3> <h3>Project-16 (Battery Status Detector)</h3> <h3>Project-17 (User Location Detector)</h3> <h3>Project-18 (File Downloader)</h3> <h3>Project-19 (Temperature Convertor)</h3> <h3>Project-20 (Rock, Paper & Scissor Game)</h3> <h3>Project-21 (Pop-Up)</h3> <h3>Project-22 (Text Typing Animation)</h3> <h3>Project-23 (Dice Roll Simulator)</h3> <h3>Project-24 (Text to Speech Convertor)</h3> <h3>Project-25 (Customer Feedback)</h3> <h3>Project-26 (Clock (Analog + Digital))</h3> <h3>Project-27 (10K Followers)</h3> <h3>Project-28 (Custom Code Editor)</h3> <h3>Project-29 (Gradient Color Generator)</h3> <h3>Project-30 (Simple Calculator)</h3> <h3>Project-31 (Meme Generator)</h3> <h3>Project-32 (Drink Water)</h3> <h3>Project-33 (Catch the Insect Game)</h3> <h3>Project-34 (Image Editing)</h3> <h3>Project-35 (Filterable Gallery)</h3> <h3>Project-36 (Password Validation)</h3> <h3>Project-37 (RGB Color Slider)</h3> <h3>Project-38 (Eagle follows mouse)</h3> <h3>Project-39 (Notes App)</h3> <h3>Project-40 (Draggable Menu Slider)</h3> <h3>Project-41 (Random Password Generator)</h3> <h3>Project-42 (Responsive Image Gallery With Search Box)</h3> <h3>Project-43 (Random Color Palette Generator)</h3> <h3>Project-44 (Double Click Animation)</h3> <h3>Project-45 (Drag and Drop List)</h3> <h3>Project-46 (Navigation Menu Bar)</h3> <h3>Project-47 (Currency Convertor)</h3> <h3>Project-48 (Number Guessing Game)</h3> <h3>Project-49 (Age Calculator)</h3> <h3>Project-50 (Tik Tac Toe Game)</h3>
HTML, CSS and JavaScript projects from basic to advance level
30dayscodechallenge,30daysofcode,30daysofjavascript,javascript,javascript-applications,javascriptprojects,js,jsproject,html-css-javascript,html-css-javascript-project
2023-02-21T10:18:51Z
2024-04-16T18:42:56Z
null
1
4
255
1
21
88
null
null
CSS
semicognitive/sveltekit-modal
main
<img width="200" alt="image" src="https://user-images.githubusercontent.com/20548516/218344678-d41f4c4a-6b1b-48cc-8553-2b9fbe2169d6.png"/><img width="200" alt="image" src="https://user-images.githubusercontent.com/20548516/219166985-96888b52-51de-4f6b-b37d-cc66264c40eb.png"/> # sveltekit-modal Write Python endpoints in [SvelteKit](https://kit.svelte.dev/) using [Modal](https://modal.com). ## Why - Start deploying **Python endpoints** in **just a few steps** - GPU support for an entire ML Stack in your SvelteKit app - Integrates completely, write `+server.py` just like your `+server.js` files - Deploy the rest of your app anywhere, with [SvelteKit's adapters for Vercel, Netlify, Cloudflare, etc.](https://kit.svelte.dev/docs/adapters) - Serverless Python with [ease](https://kit.svelte.dev/docs/adapters) ## Add to your SvelteKit project - Open a [new](https://kit.svelte.dev/docs/creating-a-project) or **existing** SvelteKit Project - Install `npm i -D sveltekit-modal` - Sign up for [modal.com](https://modal.com/signup), the serverless python platform. All users get $30 free monthly credits! - Update `vite.config.js` ```javascript import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; import { sveltekit_modal } from 'sveltekit-modal/vite'; //Add this import export default defineConfig({ plugins: [sveltekit_modal(), sveltekit()] //Add the `sveltekit_modal()` plugin }); ``` - Update `svelte.config.js` ```javascript import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: vitePreprocess(), kit: { adapter: adapter(), moduleExtensions: [".js", ".ts", ".py"] //Add this line, to resolve +server.py endpoints } }; export default config; ``` - Create `sveltekit_modal_config.py`. The option `stub_asgi` is passed to [Modal](https://modal.com/docs/reference/modal.Stub#asgi). This is where you can define GPU acceleration, secrets, and an Image for pip installs, etc. Explore their [docs](https://modal.com/docs/guide)! ```python import modal config = { 'name': 'sveltekit-example', 'log': False, 'stub_asgi': { 'image': modal.Image.debian_slim() } } ``` - Update `.gitignore`, add `!.env.production`. - Write your endpoints! See an example [here](https://github.com/semicognitive/sveltekit-modal-langchain). ## Use - Develop like a normal SvelteKit app, just `npm run dev` - Deploy all your python endpoints with one command, just `npx sveltekit-modal deploy` ## Examples The `example_app/` directory contains an incredibly bare and demonstrates how to get it working. - [semicognitive/sveltekit-modal-langchain](https://github.com/semicognitive/sveltekit-modal-langchain) demonstrates a nice version of the library with [langchain](https://github.com/hwchase17/langchain) and [tailwindcss](https://tailwindcss.com/)
Write Python endpoints in SvelteKit using Modal
python,svelte,sveltekit,javascript,typescript
2023-02-11T06:39:16Z
2023-04-15T21:06:37Z
2023-04-15T21:06:37Z
2
2
35
3
9
68
null
MIT
TypeScript
Infisical/infisical-node
main
<h1 align="center"> <a href="https://github.com/Infisical/infisical"> <img width="300" src="/img/logoname-white.svg#gh-dark-mode-only" alt="infisical"> </a> </h1> <p align="center"> <p align="center">Open-source, end-to-end encrypted tool to manage secrets and configs across your team and infrastructure.</p> </p> # Deprecated! This is now considered a legacy SDK, as we have released a new SDK that will be receiving all future updates. [You can find it here](https://www.npmjs.com/package/@infisical/sdk). # Table of Contents - [Links](#links) - [Basic Usage](#basic-usage) - [Secrets](#working-with-secrets) - [Get Secrets](#get-secrets) - [Get Secret](#get-secret) - [Create Secret](#create-secret) - [Update Secret](#update-secret) - [Delete Secret](#delete-secret) - [Cryptography](#cryptography) - [Create Symmetric Key](#create-symmetric-key) - [Encrypt Symmetric](#encrypt-symmetric) - [Decrypt Symmetric](#decrypt-symmetric) # Links - [Infisical](https://github.com/Infisical/infisical) # Basic Usage ```js import express from "express"; import InfisicalClient from "infisical-node"; const app = express(); const PORT = 3000; const client = new InfisicalClient({ token: "YOUR_INFISICAL_TOKEN" }); app.get("/", async (req, res) => { // access value const name = await client.getSecret("NAME", { environment: "dev", path: "/", type: "shared" }); res.send(`Hello! My name is: ${name.secretValue}`); }); app.listen(PORT, async () => { // initialize client console.log(`App listening on port ${port}`); }); ``` This example demonstrates how to use the Infisical Node SDK with an Express application. The application retrieves a secret named "NAME" and responds to requests with a greeting that includes the secret value. It is also possible to use the SDK to encrypt/decrypt text; the implementation uses `aes-256-gcm` with components of the encryption/decryption encoded in `base64`. ```js import InfisicalClient from "infisical-node"; const client = new InfisicalClient(); // some plaintext you want to encrypt const plaintext = "The quick brown fox jumps over the lazy dog"; // create a base64-encoded, 256-bit symmetric key const key = client.createSymmetricKey(); // encrypt const { ciphertext, iv, tag } = client.encryptSymmetric(plaintext, key); // decrypt const cleartext = client.decryptSymmetric(ciphertext, key, iv, tag); ``` # Installation ```console $ npm install infisical-node ``` # Configuration Import the SDK and create a client instance with your [Infisical Token](https://infisical.com/docs/getting-started/dashboard/token). ```js const InfisicalClient = require("infisical-node"); const client = new InfisicalClient({ token: "your_infisical_token" }); ``` Using ES6: ```js import InfisicalClient from "infisical-node"; const client = new InfisicalClient({ token: "your_infisical_token" }); // your app logic ``` Using Infisical Token V3 (Beta): In `v1.4.0`, we released a superior token authentication method; this credential is a JSON containing a `publicKey`, `privateKey`, and `serviceToken` and can be used to initialize the Node SDK client instead of the regular service token. You can use this beta feature like so: ```js const InfisicalClient = require("infisical-node"); const client = new InfisicalClient({ tokenJson: "your_infisical_token_v3_json" }); ``` ### Options | Parameter | Type | Description | | ----------- | --------- | --------------------------------------------------------------------------- | | `token` | `string` | An Infisical Token scoped to a project and environment(s). | | `tokenJson` | `string` | An Infisical Token V3 JSON scoped to a project and environment(s) - in beta | | `siteURL` | `string` | Your self-hosted Infisical site URL. Default: `https://app.infisical.com`. | | `cacheTTL` | `number` | Time-to-live (in seconds) for refreshing cached secrets. Default: `300`. | | `debug` | `boolean` | Turns debug mode on or off. Default: `false`. | ### Caching The SDK caches every secret and updates it periodically based on the provided `cacheTTL`. For example, if `cacheTTL` of `300` is provided, then a secret will be refetched 5 minutes after the first fetch; if the fetch fails, the cached secret is returned. # Secrets ## Get Secrets ```js const secrets = await client.getAllSecrets({ environment: "dev", path: "/foo/bar/", attachToProcessEnv: false, includeImports: false }); ``` Retrieve all secrets within a given environment and folder path. The service token used must have access to the given path and environment. ### Parameters - `options` (object) - `environment` The slug name (dev, prod, etc) of the environment from where secrets should be fetched from - `path` The path from where secrets should be fetched from - `attachToProcessEnv` (boolean, optional): Whether or not to attach fetched secrets to `process.env`. If not specified, the default value is `false`. - `includeImports` (boolean, optional): Whether or not to include imported secrets from the current path. Read about [secret import](https://infisical.com/docs/documentation/platform/secret-reference#import-entire-folders). ## Get Secret Retrieve a secret from Infisical: ```js const secret = await client.getSecret("API_KEY", { environment: "dev", path: "/", type: "shared" }); const value = secret.secretValue; // get its value ``` By default, `getSecret()` fetches and returns a personal secret. If not found, it returns a shared secret, or tries to retrieve the value from `process.env`. If a secret is fetched, `getSecret()` caches it to reduce excessive calls and re-fetches periodically based on the `cacheTTL` option (default is `300` seconds) when initializing the client — for more information, see the caching section. To explicitly retrieve a shared secret: ```js const secret = await client.getSecret("API_KEY", { environment: "dev", path: "/", type: "shared" }); const value = secret.secretValue; // get its value ``` ### Parameters - `secretName` (string): The key of the secret to retrieve. - `options` (object, optional): An options object to speify the type of secret. - `environment` The slug name (dev, prod, etc) of the environment from where secrets should be fetched from - `path` The path from where secrets should be fetched from - `type` (string, optional): The type of the secret. Valid options are "shared" or "personal". If not specified, the default value is "personal". ## Create Secret Create a new secret in Infisical: ```js const newApiKey = await client.createSecret("API_KEY", "FOO", { environment: "dev", path: "/", type: "shared" }); ``` ### Parameters - `secretName` (string): The key of the secret to create. - `secretValue` (string): The value of the secret. - `options` (object, optional): An options object to specify the type of secret. - `environment` The slug name (dev, prod, etc) of the environment where secret should be created - `path` The path from where secret should be created. - `type` (string, optional): The type of the secret. Valid options are "shared" or "personal". If not specified, the default value is "shared". A personal secret can only be created if a shared secret with the same name exists. ## Update Secret Update an existing secret in Infisical: ```js const updatedApiKey = await client.updateSecret("API_KEY", "BAR", { environment: "dev", path: "/", type: "shared" }); ``` ### Parameters - `secretName` (string): The key of the secret to update. - `secretValue` (string): The new value of the secret. - `options` (object, optional): An options object to specify the type of secret. - `environment` The slug name (dev, prod, etc) of the environment where secret should be updated. - `path` The path from where secret should be updated. - `type` (string, optional): The type of the secret. Valid options are "shared" or "personal". If not specified, the default value is "shared". ## Delete Secret Delete a secret in Infisical: ```js const deletedSecret = await client.deleteSecret("API_KEY", { environment: "dev", path: "/", type: "shared" }); ``` ### Parameters - `secretName` (string): The key of the secret to delete. - `options` (object, optional): An options object to specify the type of secret to delete. - `environment` The slug name (dev, prod, etc) of the environment where secret should be deleted. - `path` The path from where secret should be deleted. - `type` (string, optional): The type of the secret. Valid options are "shared" or "personal". If not specified, the default value is "shared". Note that deleting a shared secret also deletes all associated personal secrets. # Cryptography ## Create Symmetric Key Create a base64-encoded, 256-bit symmetric key to be used for encryption/decryption. ```js const key = client.createSymmetricKey(); ``` ### Returns `key` (string): A base64-encoded, 256-bit symmetric key. ## Encrypt Symmetric Encrypt plaintext -> ciphertext. ```js const { ciphertext, iv, tag } = client.encryptSymmetric(plaintext, key); ``` ### Parameters - `plaintext` (string): The plaintext to encrypt. - `key` (string): The base64-encoded, 256-bit symmetric key to use to encrypt the `plaintext`. ### Returns An object containing the following properties: - `ciphertext` (string): The base64-encoded, encrypted `plaintext`. - `iv` (string): The base64-encoded, 96-bit initialization vector generated for the encryption. - `tag` (string): The base64-encoded authentication tag generated during the encryption. ## Decrypt Symmetric Decrypt ciphertext -> plaintext/cleartext. ```js const cleartext = client.decryptSymmetric(ciphertext, key, iv, tag); ``` ## Parameters - `ciphertext` (string): The ciphertext to decrypt. - `key` (string): The base64-encoded, 256-bit symmetric key to use to decrypt the `ciphertext`. - `iv` (string): The base64-encoded, 96-bit initiatlization vector generated for the encryption. - `tag` (string): The base64-encoded authentication tag generated during encryption. ### Returns `cleartext` (string): The decrypted encryption that is the cleartext/plaintext. # Contributing Bug fixes, docs, and library improvements are always welcome. Please refer to our [Contributing Guide](https://infisical.com/docs/contributing/overview) for detailed information on how you can contribute. [//]: contributor-faces <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <a href="https://github.com/dangtony98"><img src="https://avatars.githubusercontent.com/u/25857006?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/Aashish-Upadhyay-101"><img src="https://avatars.githubusercontent.com/u/81024263?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/NicoZweifel"><img src="https://avatars.githubusercontent.com/u/34443492?v=4" width="50" height="50" alt=""/></a><a href="https://github.com/gitSambhal"><img src="https://avatars.githubusercontent.com/u/15196655?v=4" width="50" height="50" alt=""/></a><a href="https://github.com/microtronics-jast"><img src="https://avatars.githubusercontent.com/u/132543081?v=4" width="50" height="50" alt=""/></a> ## Getting Started If you want to familiarize yourself with the SDK, you can start by [forking the repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo) and [cloning it in your local development environment](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository). The project requires [Node.js](https://nodejs.org/en) to be installed on your machine. After cloning the repository, install the depenencies by running the following command in the directory of your cloned repository: ```console $ npm install ``` To run existing tests, you need to make a `.env` at the root of this project containing a `INFISICAL_TOKEN` and `SITE_URL`. This will execute the tests against a project and environment scoped to the `INFISICAL_TOKEN` on a running instance of Infisical at the `SITE_URL` (this could be [Infisical Cloud](https://app.infisical.com)). To run all the tests you can use the following command: ```console $ npm test ``` # License `infisical-node` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
♾ Official Infisical SDK for Node
end-to-end-encryption,environment-variables,javascript,nodejs,open-source,secret-management,secrets,security,typescript
2023-02-15T07:01:49Z
2023-12-24T17:07:36Z
null
8
15
66
8
19
67
null
MIT
JavaScript
Eltik/Puppeteer-Bypass
master
<h3> <h3>CapSolver.com</h3> <br> <a href="https://dashboard.capsolver.com/passport/register?inviteCode=G2QOL-c1l_7z"> <img src="https://cdn.discordapp.com/attachments/1105172394655625306/1105180101802471575/20221207-160749.gif" alt="Capsolver's Banner"> </a> </h3> <br /> Capsolver‘s automatic captcha solver offers the most affordable and quick captcha-solving solution. You may rapidly combine it with your program using its simple integration option to achieve the best results in a matter of seconds. With a success rate of 99.15%, Capsolver can answer more than 10M captchas every minute. This implies that your automation or scrape will have a 99.99% uptime. You may buy a captcha package if you have a large budget. At the lowest price on the market, you may receive a variety of solutions, including reCAPTCHA V2, reCAPTCHA V3, hCaptcha, hCaptcha Click, reCaptcha click, Funcaptcha Click, FunCaptcha, aws captcha, picture-to-text, cloudflare, imperva/incapsula, akamai web/bmp, and more. With this service, 0.1s is the slowest speed ever measured. **Features that are unique on capsolver and are working perfectly :white_check_mark:**: - Datadome Captcha Token. Read this [blog](https://www.capsolver.com/blog/how-to-solve-datadome) - AWS Captcha Token. Read this [blog](https://www.capsolver.com/blog/how-to-solve-aws-amazon-captcha-token) - hCaptcha Enterprise Token. Read this [blog](https://www.capsolver.com/blog/how-to-solve-hcaptcha-enterprise) - reCaptcha v3 / v3 enterprise with 0.9 scores Token. Read this [blog](https://www.capsolver.com/blog/how-to-solve-reCAPTCHA-v3) - reCaptcha v2 Enterprise Token. Read this [blog](https://www.capsolver.com/blog/How-to-bypass-all-the-versions-reCAPTCHA-v2-v3) # Puppeteer-Bypass Bypassing CloudFlare's anti-bot challenge with a new optimized method. ## Background Bypassing CloudFlare isn't anything new, and neither is bypassing it with headless browsers. However, after seeing some outdated repositories such as [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) and [Pupflare](https://github.com/unixfox/pupflare), I wondered if it would be possible to update those repositories but in an optimized and less resource-intensive way. Long story short, I found [this](https://github.com/JimmyLaurent/cloudflare-scraper) and tried it out. It didn't work very well unfortunately and errored out on quite a few sites, but after tweaking it (issue with cookies by the way, if anyone wants to try using JimmyLaurent's repository specifically) I got it working on every single site. But since headless browsers are just not viable for production, I decided to try and "cache" each response and store the bypass headers in the object for use later. Anyways, that's kind of how this repository works: fetching cookies, storing them, and then re-using them until it breaks before finally repeating the process over again. ## Installation Puppeteer-Bypass requires Node version 18 (untested, v19+ doesn't work however) and `chromium-browser` on Linux. 1. Clone this repository. ```bash git clone https://github.com/Eltik/Puppeteer-Bypass.git ``` 2. Run `npm i`. 3. If necessary, download [Google Chrome](https://www.google.com/chrome/) (this version uses Chromium which comes with Google Chrome, but you can create a pull request/fork to use Firefox/Edge). 4. To test out the project, run `npm run test` to send a request to [JustLightNovels](https://www.justlightnovels.com/) which as of now (2/17/2023) has CloudFlare's "Under Attack Mode" on.<br /> For installing this on Linux, make sure you have Chromium and VNC/xorg installed. The reason for this is that this bypass will NOT work with a proper window/GUI application installed. The below will show you how to install VNC server for Linux specifically as that's what I used to get this working on my VPS. You can follow [this tutorial](https://learn.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop?tabs=azure-cli) to help install a GUI for Linux if you're using Windows. The following will show you some basic stuff that I recommend personally for installing a custom GUI. ```bash # Install Chromium Browser sudo apt-get install chromium-browser # Install a literal desktop lol sudo apt install xfce4 xfce4-goodies # Install XRDP sudo apt-get -y install xvfb ``` If you are following the Azure tutorial, please note that since Windows supports the "Remote Desktop Connection" app and MacOS doesn't have one natively. A solution would to install "Microsoft Remote Desktop" in the App Store and connect to your VPS's IP.<br /> ### Common Errors As someone who HATES using Linux, here are some common errors I get: 1. <b>"Cannot find Chromium"</b> - Run `sudo apt-get install chromium-browser`. - Find the `.cache/puppeteer` directory and copy the path. - Create a `.puppeteerrc.cjs` file in your project directory. - Follow the instructions [here](https://pptr.dev/guides/configuration) under the "Changing the default cache directory". 2. <b>"Missing dependencies"</b> - Just... ```bash sudo apt-get update sudo apt-get install ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils ``` 3. <b>"Missing Display X"</b> - Install `xvfb` - Connect to your VPS's IP via the "Remote Desktop Connection" application on Windows or install "Microsoft Remote Desktop" on MacOS. [This](https://stackoverflow.com/questions/59379842/error-when-installing-and-running-xrdp-remote-desktop-with-gnome-ubuntu-i-enc#:~:text=4%20Answers%201%201.%20Remove%20previously%20installed%20xrdp%3A,system%3A%20...%204%204.%20Firewall%20configuration%20%28optional%29%3A%20) is also very helpful. ## Using as a "Library" I'm sure people want to use this project as a library, but just be aware that headless browsers use up a <b>LOT</b> of memory and CPU power. Luckily, this project is meant to avoid the use of headless browsers as much as possible, but it is something to keep in mind. It is recommended that you use a higher-end VPS or hoster with at least 4GB of memory if not more. ### Initalizing the Constructor ```javascript // ES6 import API from "./built/API" // If you hate the fact that I named the main class API, you can change it lol import * as PuppeteerBypaass from "./built/API" // CommonJS const API = require("./built/API").default; const bypass = new API(); // These are the default values for the constructor. Change it as you see fit. // It is recommended you keep all the default values, but they're there if you need to change them. // { headless } is the option of whether you want to launch Puppeteer in headless mode or not. // { skip_chromium_download } is the option of whether you want to skip downloading Chromium or not. const bypass2 = new API({ headless: true, skip_chromium_download: false }); ``` ### Sending Requests ```javascript import API from "./buil/API" const bypass = new API(); // The second parameter is just the default fetch config. await bypass.request("https://myprotectedsite.com", { method: "PUT", headers: { Referer: "https://myprotectedsite.com", "User-Agent": "randomuseragent", // PLEASE NOTE THAT THIS WILL GET OVERWRITTEN Cookie: "value1=lol;value2=something", // THIS ALSO WILL GET OVERWRITTEN "X-Requested-With": "XMLHttpRequest", "Content-Type": "applicatipn/json", Accept: "application/json" } }) ```
Bypassing CloudFlare's anti-bot challenge with Puppeteer optimizations
bypass,cloudflare,javascript,cloudflare-bypass,puppeteer
2023-02-18T00:12:40Z
2023-10-01T15:18:36Z
null
3
1
30
4
8
58
null
null
TypeScript
oslabs-beta/kalibrate
main
# Kalibrate <p align="center"> <img src="src/client/assets/crow2.png?raw=true" width="225px"> </p> <h3 align="center">A free and open-source web application for managing and monitoring Kafka clusters</h3> <br /> ## Table of Contents - [About](#about) - [Running Kalibrate in a Local Environment](#running-kalibrate-in-a-local-environment) - [Initialization](#initialization) - [Production](#production) - [Development](#development) - [Testing](#testing) - [Running Kalibrate with Docker](#running-kalibrate-with-docker) - [Production](#production) - [Development](#development) - [Reset Docker Environment](#reset-docker-environment) - [Environment Variables](#environment-variables) - [Demo Kafka Cluster & Services](#demo-kafka-cluster-&-services) - [Running Demo Cluster](#running-demo-cluster) - [Running Demo Services](#running-demo-services) - [Reset the Cluster](#reset-the-cluster) - [Contributing](#contributing) - [Contributors](#contributors) - [License](#license) --- ## About Kalibrate is an all-in-one, free and open source tool to make managing and monitoring your Apache Kafka clusters a breeze. It's easy to set up and provides a friendly user experience. Simply login or create an account, then connect to your Kafka instances to get started. <p align="center"> <img src="./readme-assets/connect.gif?raw=true" width='75%'> </p> With Kalibrate, you can save a Kafka cluster to your account by giving it a unique name and entering a valid URI along with SASL credentials if applicable. Add new clients to your account at any time, or remove one by selecting one of your saved clients and clicking delete. Once connected to a Kafka cluster, you'll be greeted with an high level overview of its metadata and health. Head on over to the options within the manage tab to view and configure brokers, topics, partitions, messages, and consumer groups and members. Navigate to the monitor options to get a live and dynamically graphed view of your cluster throughput and offsets. <p align="center"> <img src="./readme-assets/manage.gif?raw=true" width='75%'> </p> Kalibrate was developed with ease of use and configurability in mind. The application features a light and dark mode, user account configuration options, and an alert system that provides in-app notifications, with Slack and email integrations. Security was a top priority in Kalibrate's developement. User account information and Kafka cluster credentials are securely stored through a combination of hashing, symmetric encryption, and careful session management. <p align="center"> <img src="./readme-assets/configure.gif?raw=true" width='75%'> </p> Get started with Kalibrate by visiting our [website](https://www.kalibratelabs.io/), or read on to learn how to run Kafka in your local environment. If you're interested in learning more about our intentions, you can check out our [launch article](https://medium.com/@kalibratelabs/demystifying-apache-kafka-with-kalibrate-ab9fc2e03ea), and be sure to get the latest on Kalibrate by following us on [LinkedIn](https://www.linkedin.com/company/kalibratelabs) and [Twitter](https://twitter.com/KalibrateLabs). --- ## Running Kalibrate in a Local Environment ### Initialization Run `npm install` to install dependencies, followed by `npx prisma migrate dev --name init` to map the Prisma Data Model to your database schema, and `prisma generate` to generate the Prisma Client. Finally, the database can be initialized with necessary records by running `node scripts/init-dv.js`. ### Production Run `npm run build`, followed by `npm start`. By default, the server will listen on port 5173 and the application will be accessible on `localhost:5173` in your browser. ### Development Run `npm run dev`. An HMR enabled dev server will listen on port 5712 and the application will be accessible on `localhost:5712` in your browser. Requests to the API will be proxied to the Express server listening on port 5173 by default. ### Testing Run `npm run test` to run all tests. Unit and integration tests can be found in the `__tests__` folder. --- ## Running Kalibrate with Docker Before you begin, be sure to have Docker and Docker Compose installed. ### Production Run `npm install` to install dependencies, followed by `npm run build` to output the production bundles to the `dist` folder. Run `npx prisma migrate dev --name init` to map the Prisma Data Model to your database schema, followed by `prisma generate` to generate the Prisma Client and `node scripts/init-dv.js` to initialize the database with necessary records. Delete the `node_modules` folder, and build the Docker image for the production environment with `npm run docker-build-prod`. You can verify that the `kalibrate-prod` image has been created by running `docker images`. Create the production container with `npm run docker-prod:run`. You can verify that the container has been created by running `docker ps`. By default, the Express server listens on port 5173 and the application can be viewed by navigating to `localhost:5173` in your browser. To stop the container, run `npm run docker-prod:stop`. For deployment, check that the `dist` folder is not in your `.gitignore` file and that any changes to your local repository have been committed. You can then zip the application with `git archive -v -o kalibrate.zip --format=zip HEAD`. ### Development Build the Docker images for the development environment and PostgreSQL database with `npm run docker-build-dev`. This creates two images, `kalibrate-dev` and `kalibrate-postgres`, which you can verify have been created by running `docker images`. Run the Docker Compose container with `npm run docker-dev:up`. An HMR enabled dev server will listen on port 5712 and the application will be accessible on `localhost:5712` in your browser. Requests to the API will be proxied to the Express server listening on port 5173 by default. Environmental variables have been preconfigured in the Docker Compose file to connect to the local PostgreSQL database. Stop the container with `npm run docker-dev:down`. ### Reset Docker Environment You can remove all Docker images and containers with `npm run docker-remove-all`. --- ## Environment Variables The following environment variables should be set in a root `.env` file: - `PORT`: Port for the Express server - `DB_URI`: PostgreSQL database URI, if you are not utilizing the Docker development container - `SHADOW_DB_URI`: For certain hosted databases, Prisma may require you to provide a shadow database URI - `SALT_WORK_FACTOR`: Salt work factor for bcrypt hashing - `JWT_SECRET`: JSON Web Token secret - `ENCRYPT_KEY`: Symmetric encryption key - `SENDGRID_API_KEY`: Email integrations - `SENDGRID_EMAIL`: For Email integrations - `SG_TEMPLATE_PASSWORD`: Email integrations - `SG_TEMPLATE_ALERT`: Email integrations --- ## Demo Kafka Cluster & Services Before you begin, be sure to have Docker and Docker Compose installed. ### Running Demo Cluster The Kafka server is configured with 1 Zookeeper and 3 brokers. To create and spin it up, run `npm run demo-kafka`. ### Running Demo Services Once the Kafka server is running, spin up the services by running `npm run demo-services`. These client instances create the following topics: - Unfulfilled orders - Inventory - Payments - Fulfilled orders They interact with the cluster in the following way: - User service: produces to unfulfilled orders, subscribed to fulfilled orders - Inventory Service: subscribed to unfulfilled orders, produces to inventory - Payment Processing Service: subscribed to unfulfilled orders, produces to payments - Shipping Service: subscribed to inventory & payments, produces to fulfilled orders - Finance Service: subscribed to payments ### Reset the Cluster Stop and remove the Kafka server by running `npm run demo-kafka-reset`. --- ## Contributing Interested in contributing? We encourage you to fork the repository and open a pull request. Planned features for future versions of Kalibrate include: - Producing messages - Adding more cluster metrics and visualization - Expanding available alerts and user preferences - Persisting selected alerts and preferences - Adding OAuth authentication - Improving the UI - Optimizing application performance with improved state management and caching - Expanding development testing suite --- ## Contributors <table align="center"> <tr> <td align="center"> <img src="readme-assets/ashleegafaru.jpeg" width="140px;" alt=""/> <br /> <sub><b>Ashlee Gafaru</b></sub> <br /> <a href="https://github.com/ashleegaf"><img src="readme-assets/github.png" width="20px;" alt=""/></a> <a href="https://www.linkedin.com/in/ashlee-gafaru/"><img src="readme-assets/linkedin.png" width="20px;" alt=""/></a> </td> <td align="center"> <img src="readme-assets/jihuixue.jpeg" width="140px;" alt=""/> <br /> <sub><b>Jihui Xue</b></sub> <br /> <a href="https://github.com/jihuixue"><img src="readme-assets/github.png" width="20px;" alt=""/></a> <a href="https://www.linkedin.com/in/jihuixue/"><img src="readme-assets/linkedin.png" width="20px;" alt=""/></a> </td> <td align="center"> <img src="readme-assets/jonahhammond.jpeg" width="140px;" alt=""/> <br /> <sub><b>Jonah Hammond</b></sub> <br /> <a href="https://github.com/jdhammond"><img src="readme-assets/github.png" width="20px;" alt=""/></a> <a href="https://www.linkedin.com/in/jdhammond/"><img src="readme-assets/linkedin.png" width="20px;" alt=""/></a> </td> <td align="center"> <img src="readme-assets/juliendevlin.png" width="140px;" alt=""/> <br /> <sub><b>Julien Devlin</b></sub> <br /> <a href="https://github.com/juliendevlin"><img src="readme-assets/github.png" width="20px;" alt=""/></a> <a href="https://www.linkedin.com/in/juliendevlin/"><img src="readme-assets/linkedin.png" width="20px;" alt=""/></a> </td> <td align="center"> <img src="readme-assets/rebeccakwong.jpeg" width="140px;" alt=""/> <br /> <sub><b>Rebecca Kwong</b></sub> <br /> <a href="https://github.com/rebegnowk"><img src="readme-assets/github.png" width="20px;" alt=""/></a> <a href="https://www.linkedin.com/in/rebeccakwong/"><img src="readme-assets/linkedin.png" width="20px;" alt=""/></a> </td> </tr> </table> --- ## License Kalibrate is MIT licensed.
An open-source GUI for managing and monitoring Kafka cluster health
clusters,gui,kafka,kafkajs,open-source,developer-tools,devops,devtools,javascript,javascript-applications
2023-02-17T22:47:01Z
2023-03-16T20:14:36Z
null
65
114
570
0
3
58
null
null
TypeScript
journey3510/10Comic
main
# 10图漫 使用 Vue + Vant 开发的油猴插件脚本(Tampermonkey) 基于浏览器油猴插件的使用,任意网页提供部分漫画网站搜索;漫画分章节多队列并行下载(可直接下载/压缩下载/拼接下载),可用于动漫之家、极速漫画、腾讯漫画、哔哩哔哩等30+网站;对个别漫画网站修改阅读样式;可按需编写定义规则JSON导入以支持其他漫画网站 [![github](https://img.shields.io/badge/journey3510-10Comic_-blue?style=flat&logo=github)](https://github.com/journey3510/10Comic) [![github](https://img.shields.io/github/commit-activity/y/journey3510/10Comic?logo=github)](https://github.com/journey3510/10Comic) [![10Comic](https://img.shields.io/badge/GreasyFork-10Comic_-blue?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3ggEBCQHM3fXsAAAAVdJREFUOMudkz2qwkAUhc/goBaGJBgUtBCZyj0ILkpwAW7Bws4yO3AHLiCtEFD8KVREkoiFxZzX5A2KGfN4F04zMN+ce+5c4LMUgDmANYBnrnV+plBSi+FwyHq9TgA2LQpvCiEiABwMBtzv95RSfoNEHy8DYBzHrNVqVEr9BWKcqNFoxF6vx3a7zc1mYyC73a4MogBg7vs+z+czO50OW60Wt9stK5UKp9Mpj8cjq9WqDTBHnjAdxzGQZrPJw+HA31oulzbAWgLoA0CWZVBKIY5jzGYzdLtdE9DlcrFNrY98zobqOA6TJKHW2jg4nU5sNBpFDp6mhVe5rsvVasUwDHm9Xqm15u12o+/7Hy0gD8KatOd5vN/v1FozTVN6nkchxFuI6hsAAIMg4OPxMJCXdtTbR7JJCMEgCJhlGUlyPB4XfumozInrupxMJpRSRtZlKoNYl+m/6/wDuWAjtPfsQuwAAAAASUVORK5CYII=)](https://greasyfork.org/zh-CN/scripts/447819) <br /><br /> ## 脚本使用 - 安装Tampermonkey插件 请在浏览器安装[Tampermonkey](https://tampermonkey.net/)插件 - 安装脚本 安装地址:[10图漫](https://greasyfork.org/zh-CN/scripts/447819) - 使用时可通过 快捷键 **Alt + V** 唤起界面 - 更多使用说明见 [tampermonkey.md](https://github.com/journey3510/10Comic/blob/master/tampermonkey.md) 或 [greasyfork-10图漫](https://greasyfork.org/zh-CN/scripts/447819) <br /><br /> ## 脚本开发 ``` npm install ``` 安装的模块及依赖 <br /> ### 简单运行 ``` npm run dev ``` 不依赖于油猴使用,可用于脚本页面样式和一些简单的页面交互编写 <br /><br /> ### * 脚本调试\/开发 ``` npm run test ``` 1、安装Tampermonkey插件 2、Tampermonkey插件鼠标右键-管理扩展程序-允许访问文件网址(勾选) 3、在Tampermonkey中,点击插件选择`添加新脚本`,然后复制粘贴当前项目下`testTemplate.js`的模板测试代码,并修改模板中"项目保存目录",`Ctrl+S`保存后并启用该脚本,就可用于测试刷新浏览器即可预览效果。 <br /><br /> ### 打包使用 ``` npm run build ``` 可以在`.env`进行生产环境的配置,插件的版本号使用的是`package.json`的`version`版本号 打包完成后,在`dist`目录下会生成`10comic.js`文件,再油猴新建脚本,把文件内容复制进行替换全部即可 <br /><br /> ### Tampermonkey配置 可以在`tampermonkey.js`文件,配置Tampermonkey选项。 <br /><br /> ### 漫画网站列表 | **网站** | **网站首页** | |-------------|-----------------------------------| | 动漫之家 | https://manhua.idmzj.com/ | | 动漫之家(访客) | https://comic.idmzj.com/ | | Mangabz | https://mangabz.com/ | | 极速漫画 | https://www.1kkk.com/ | | 动漫屋 | https://www.dm5.com/ | | GoDa | https://cn.godamanga.art/ | | 咚漫 | https://www.dongmanmanhua.cn/ | | naver | https://comic.naver.com/ | | webtoon | https://www.webtoons.com/ | | 腾讯漫画 | https://ac.qq.com/ | | 哔哩哔哩 | https://manga.bilibili.com/ | | 哔哩哔哩漫画国际版 | https://www.bilibilicomics.com/ | | Komiic漫画 | https://komiic.com/ | | 百漫谷 | https://www.darpou.com/ | | 七夕漫画 | http://www.qiximh2.com/ | | 漫画柜 | https://www.manhuagui.com/ | | 36漫画网 | https://www.36manga.com/ | | 古风漫画网 | https://www.gufengmh.com/ | | 动漫戏说 | https://comic.acgn.cc/ | | 新新漫画 | https://www.77mh.xyz/ | | 仙漫网 | https://www.gaonaojin.com/ | | 漫画星球 | http://www.mhxqiu4.com/ | | 漫画屋 | https://www.mhua5.com/ | | 动漫狂 | https://www.cartoonmad.com | | 最漫画 | https://www.zuimh.com/ | | 六漫画 | http://www.6mh1.com/ | | 漫画芯 | https://www.mhxin.com/ | | 包子漫画 | https://cn.baozimh.com/ | | 爱国漫 | https://www.guoman.net/ | | 最次元 | https://zcymh.com/ | | 快看漫画 | https://www.kuaikanmanhua.com/ | | 好漫8 | https://www.haoman8.com/ | <br /><br /> ## 声明 **本项目及其产生的内容数据仅限用于个人学习使用,不可将其用于任何非法用途,产生后果与作者无关** <br /> ## 感谢 - [Tampermonkey-Vue](https://github.com/huangxubo23/tampermonkey-vue) - [用JS实现多个任务并行执行的队列](https://juejin.cn/post/6844903961728647181)
油猴脚本 - 用于动漫之家、极速漫画、腾讯漫画、哔哩哔哩等多个网站漫画分章节下载 (直接下载/压缩下载/拼接下载)
comic,javascript,tampermonkey,userscript,vue
2023-02-10T08:42:05Z
2024-05-01T15:24:56Z
null
1
4
160
0
3
56
null
null
JavaScript
plainblack/ving
main
# Ving Ving is a Web and REST code generation tool and services framework. It has a heavy focus on a strong and predictable backend, while having a flexible front end. It's feature's include: - Automatic code generation for all sub-systems - Platform agnostic REST interface - Per field privileges for view and edit - Full session based auth system - An AWS S3 based secure upload system - Per user message bus streamed via Server Sent Events - API key and privilege system with access to make requests on behalf of other users - A useful set of custom made client components and composables - A full user interface for user management - A templated email subsystem Ving is written entirely in Javascript using [Nuxt 3](http://nuxt.com), [Vue 3](http://vuejs.org), [PrimeVue](https://primevue.org), [PrimeFlex](https://www.primefaces.org/primeflex/) and [Drizzle](https://github.com/drizzle-team/drizzle-orm). ## Documentation [Check out our documentation.](https://plainblack.github.io/ving/)
An opinionated web services starter for Nuxt3 that provides REST and per-field privileges out of the box.
codegen,javascript,nuxt3,rest
2023-02-16T17:26:53Z
2024-05-22T17:36:49Z
null
5
0
1,037
5
7
53
null
null
JavaScript
jaejaywoo/HireGPT
main
# HireGPT ![screenshot](assets/screenshot.png) No one (ever really) enjoys writing job applications 🙅🏻‍♂️ Just type in a few details like company name, your background, and job position, then the HireGPT will use OpenAI GPT model to generate the writings needed in your next job application (e.g. message to hiring manager, cover letter, etc). ❗️ NOTE: ChatGPT account required. You can login/sign-up for OpenAI API and get your API keys [here](https://platform.openai.com/docs/introduction). # How to use ## 1 Install the app (⚠️ MacOS Only) 1. Go to Releases and download the `zip` file. 2. Unzip & run by clicking the `HireGPT` app. ## 2 Manual installation Download the Github repo: ``` git clone https://github.com/jaejaywoo/HireGPT.git ``` Install all the necessary dependencies: ``` npm install ``` Run the app: ``` npm run start ```
Job application made easy with OpenAI GPT model 🏖️
gpt-3,openai,productivity,chatgpt,job-application,desktop-app,electron,flask,javascript,python
2023-02-24T22:32:48Z
2023-04-20T14:47:53Z
2023-04-20T14:34:58Z
1
2
77
1
6
52
null
MIT
JavaScript
movesthatmatter/movex
main
<div align="center"> <picture width="400"> <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/2099521/242976573-84d1ea96-1859-43a7-ac0c-d2f1e0f1b882.png" width="400"> <img alt="Movex Logo" src="https://user-images.githubusercontent.com/2099521/242976534-60d063cd-3283-45e3-aac5-bd8ed0eb8946.png" width="400"> </picture> </div> <div align="center"> <h1>Serverless real-time data sharing infrastructure for frontend developers</h1> Build multiplayer games, chat apps or anything in between without worrying about the server side, backend logic or even the network! Works with React out of the box! </div> <br/> <div align="center"> [![NPM version][npm-image]][npm-url] [![License][license-image]][license-url] [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues) ![Tests](https://github.com/movesthatmatter/movex/actions/workflows/test.yml/badge.svg) ![Type Script Compilation](https://github.com/movesthatmatter/movex/actions/workflows/tsc-compiler.yml/badge.svg) [npm-url]: https://npmjs.org/package/movex [npm-image]: https://img.shields.io/badge/dynamic/json?color=orange&label=movex&query=version&url=https%3A%2F%2Fraw.githubusercontent.com%2Fmovesthatmatter%2Fmovex%2Fmain%2Flibs%2Fmovex%2Fpackage.json [license-image]: https://img.shields.io/badge/license-MIT-green [license-url]: https://github.com/movesthatmatter/movex/blob/main/LICENSE </div> ## 🧐 Why Movex __Movex let's you cut the development effort in half and ship faster by abstracting the backend logic and server-side away! 🎉__ With it's unique approach and set of features Movex gives you the freedom to focus only on the front-end while still maintaining all of the control over the App Logic, UI/UX and Authority over Data. In addition it comes pre-packed with: - the ability to keep parts of the shared state private to specific users. [See Secret State](https://www.movex.dev/docs/features/secret_state) - ensures the minimun amount of data is sent over the wire with each update. [See Deterministic Action Propagation](https://www.movex.dev/docs/features/functional) - keeps bad actors away by keeping the Data Reconciliation Logic out of the client reach. [See Authoritative Server](https://www.movex.dev/docs/features/server_authoritative) ## 🚀 Examples - **Chat App** - https://github.com/GabrielCTroia/movex-next-chat - **Multiplayer Rock Paper Scissors Game** - https://codesandbox.io/s/rps-demo-x877yl ## ⭐️ Features - 🤯 __No Backend logic to manage__ - Movex takes care of it for you! [See how](https://www.movex.dev/docs/features/frontend_only). - 👑 __Authoritative Server__ - 🤩 __Real-time synchronization__ - 🤐 __Secret State__ - 😎 __Follows the Flux API__ - 😍 __Works with Vanilla JS or any Framework__ ## 🧙🏽‍♂️ How Movex works At the client level, Movex adheres to the [Flux Pattern](https://medium.com/weekly-webtips/flux-pattern-architecture-in-react-35d0b55313f6) to react to UI changes. Additionally, it employs the ["Deterministic Action Propagation Method"](https://www.movex.dev/docs/features/functional#determinstic-action-propagation) to synchronize any state changes with the Global (Master) State which lives on the server. Consequently, this process instantly updates all other peers on the network, ensuring real-time data synchronization. [Learn More](https://www.movex.dev/docs/how). <div align="center"> <picture width="600"> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/movesthatmatter/movex/assets/2099521/6d0f8707-b5b3-49f8-aea9-e7f47d70f18f" width="600"> <img alt="Movex Logo" src="https://github.com/movesthatmatter/movex/assets/2099521/944a5c70-f6cf-42d3-a8b9-0b526099ca1e" width="600"> </picture> </div> ## 👩‍💻 Getting Started Visit the [Docs](https://www.movex.dev/docs/overview/get_started) to get started with Movex. ## 🙏 Contributing First off, thank you for showing an interest in contributing to the Movex project! We have created a [Contributing Guide](https://github.com/movesthatmatter/movex/blob/main/CONTRIBUTING.md) that will show you how to setup a development environment and how to open pull requests and submit changes. - 🚀 Want to participate in **#hacktoberfest**? We have a selection of [#hactoberfest issues](https://github.com/movesthatmatter/movex/issues?q=is%3Aissue+is%3Aopen+label%3Ahacktoberfest). - Want to help with the code? Please check out our [Good First Issue](https://github.com/movesthatmatter/movex/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) section. - Don't wanna' code? Any feedback is welcome and greatly appreciated so please don't hesitate to open an [issue](https://github.com/movesthatmatter/movex/issues). - For any other help, you can write us on our [Discord](https://discord.gg/N8k447EmBh), [Twitter](https://twitter.com/gctroia) or just [open an issue](https://github.com/movesthatmatter/movex/issues)! <br/> > #### Before You Contribute, make sure your commits are signed using SSH, GPG os S/MIME > This is **very important** for #hacktoberfest so Github can trace your contribution correctly. > [Learn more about signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification). > > **ALSO:** Please see our [Requirements For Opening PRs](https://github.com/movesthatmatter/movex/blob/main/CONTRIBUTING.md#opening-pull-request-requirements). ## 🛡️ License Movex is licensed under the MIT License - see the [LICENSE](https://github.com/movesthatmatter/movex/blob/main/LICENSE) file for details. ## 👽 Community [Join our Discord](https://discord.gg/N8k447EmBh) ## 🥷 Thanks To All Contributors Movex wouldn't be the same without you, so thank you all for your amazing efforts and contribution! <a href="https://github.com/movesthatmatter/movex/graphs/contributors"> <img src="https://contrib.rocks/image?repo=movesthatmatter/movex&v=2" alt="Contributors" /> </a> Made with [contrib.rocks](https://contrib.rocks).
The serverless real-time data sharing infrastructure for front-end developers. Server Authoritative | Secret State | Real Time
frontend,game-development,javascript,serverless,state-management,hacktoberfest,chat-application,typescript,infrastructure,socket-programming
2023-02-22T10:53:55Z
2024-04-04T21:31:57Z
null
30
118
620
19
38
52
null
MIT
TypeScript
alejandro-ao/chatgpt-equations
main
null
Chrome extension that allows you to visualize equations using Latex notation inside ChatGPT
chatgpt,chrome-extension,javascript
2023-02-12T15:43:09Z
2024-05-12T12:17:01Z
null
2
3
43
5
17
51
null
null
JavaScript
hairyf/genapi
main
# API Generator > [中文](./README_CN.md) | English API generator, which is used to convert OpenApi (v2~v3) and other input sources into TS/JS APIs - `swag-axios-ts` - `swag-axios-js` - `swag-fetch-ts` - `swag-fetch-js` - `swag-ky-ts` - `swag-ky-js` - `swag-got-js` - `swag-got-js` - `swag-ofetch-js` - `swag-ofetch-js` ## ⚙️ Install Install it locally in your project folder: ```bash pnpm add @genapi/cli @genapi/swag-axios-ts -D # Or Yarn yarn add @genapi/cli @genapi/swag-axios-ts --dev ``` You can also install it globally but it's not recommended. ## 📖 Usage Currently, the CLI option is not provided, and the output content is determined by the config file. Currently, the following config files are supported: - `genapi.config.ts` - `genapi.config.js` - `genapi.config.cjs` - `genapi.config.json` ```ts import { defineConfig } from '@genapi/cli' export default defineConfig({ // your input source and output file (swagger api url or json) // if you have multiple sources, you can use 'server' input: 'http://...api-docs', output: { main: 'src/api/index.ts', type: 'src/api/index.type.ts', }, // your API baseUrl baseURL: 'import.meta.env.VITE_APP_BASE_API', // customize the output response type. default 'T' responseType: 'T extends { data?: infer V } ? V : void', }) ``` ```sh npx genapi --pipe swag-axios-ts ``` ![cli-case](public/case.gif) ## Input Input supports three input sources `url|json` ```ts export default defineConfig({ // directly pass in url input: 'http://...api-docs', // or input: { /* url|json */ } }) ``` ## Server Maybe you have multiple services. You can use 'server' to set multiple services. Usually, other config at the top level are used as additional config ```ts export default defineConfig({ // Your API baseUrl, this configuration will be passed to the axios request baseUrl: 'https://...', // all servers inherit the upper layer configuration server: [ { import: '...', output: {/* ... */} }, { import: '...', output: {/* ... */} }, { import: '...', output: {/* ... */} }, ] }) ``` ## swag-axios-js Use the `swag-axios-js` pipeline to generate JavaScript files with both types. ```ts export default defineConfig({ pipeline: 'swag-axios-js', input: { uri: 'https://petstore.swagger.io/v2/swagger.json', }, }) ``` Run `genapi` ![swag-axios-js](public/swag-axios-js.png) ## Pipeline When defining the configuration, genapi passes in the 'pipeline' parameter to support the npm package (prefix `@genapi/` and `genapi-`) and local path. ```ts export default defineConfig({ pipeline: './custom-pipe', }) ``` pipeline is defined by the `pipeline` method provided by `genapi`. ```ts // custom-pipe.ts // create an API pipeline generator using the pipeline provided by genapi import { pipeline } from '@genapi/core' // each pipeline exposes corresponding methods, which can be reused and reorganized import { dest, generate, original } from '@genapi/swag-axios-ts' function myCustomPipe(config) { const process = pipeline( // read config, convert to internal config, and provide default values config => readConfig(config), // get data source configRead => original(configRead), // parse the data source as data graphs configRead => parser(configRead), // compile data and convert it into abstract syntax tree (AST) configRead => compiler(configRead), // generate code string configRead => generate(configRead), // use outputs to output files configRead => dest(configRead), ) return process(config) } function readConfig(config) { // ... } function parser(configRead) { // ... } function compiler(configRead) { // ... } ```
API pipeline generator, which is used to convert OpenApi (v2~v3) and other input sources into TS/JS APIs, and currently supports axios, fetch, ky, got, ofetch
swagger,typescript,api-generator,generator,javascript,openapi
2023-02-22T06:28:10Z
2024-01-29T09:19:19Z
2023-05-24T08:14:24Z
2
34
181
2
9
49
null
null
TypeScript
semicognitive/sveltekit-modal-langchain
main
<img width="1676" alt="image" src="https://user-images.githubusercontent.com/20548516/219210488-1f4cdd52-06e5-4210-a9da-7ae25e2690e0.png"> # sveltekit-modal-langchain An example SvelteKit project using https://github.com/semicognitive/sveltekit-modal, showing how easy it is to write Python endpoints in SvelteKit. See the code for the [example `+server.py` route here](src/routes/api/summarize/%2Bserver.py). You'll see it largely mirrors the SvelteKit built-in [`+server.js`](https://kit.svelte.dev/docs/routing#server)! ## This example - Includes a frontend written in [TailwindCSS](https://tailwindcss.com) - Has a `api/summarize` endpoint which takes a PDF upload, and summarizes it with the OpenAI Api! Written in Python with [LangChain](https://langchain.readthedocs.io/en/latest/)
An example SvelteKit project using sveltekit-modal, with a Python server endpoint written in langchain.
ai,javascript,langchain,python,svelte,sveltekit,typescript
2023-02-15T21:43:26Z
2023-04-15T21:10:57Z
null
1
0
3
3
5
44
null
null
JavaScript