Vibesort-gemini is a lightweight TypeScript library that uses Google's Gemini AI to sort arrays of numbers or strings.
- Sorts arrays of numbers in ascending or descending order.
- Sorts arrays of strings in ascending or descending order.
- Powered by Google's Gemini large language models.
- Simple, promise-based API.
npm install vibesort-geminiimport { VibesortGemini } from "vibesort-gemini"
const vibesort = new VibesortGemini({ apiKey: "YOUR_GEMINI_API_KEY" })const { data: sortedNumbers } = await vibesort.sort([90, 44, 67, 69, 12, 1, 64, 16, 32])
console.log(sortedNumbers)const { data: sortedStrings } = await vibesort.sortString(["globe", "toy", "nodejs", "typescript", "javascript"])
console.log(sortedStrings)uhh, just clone and edit. push to main. i guess that how contributing works here in github. ¯\_(ツ)_/¯
This project is licensed under the ISC License.