npx agentspec-cli install c02599db-56d1-4ad2-94ee-5783c3af6a9b --file-type gemini-md→ GEMINI.md
# Project Overview This project is a lightweight and dependency-free JavaScript library for adding autocomplete functionality to input fields, designed to work seamlessly with Bootstrap. It allows for simple configuration to fetch data from an external API and display autocomplete suggestions. ## Key Technologies - **JavaScript (ES6+)**: The core logic is written in modern, vanilla JavaScript, ensuring no external library dependencies (like jQuery). - **Bootstrap**: While the library is dependency-free, it is designed to be easily integrated into Bootstrap-based projects. - **HTML5/CSS3**: The project uses standard HTML and CSS for its structure and styling. ## Architecture The library consists of a main JavaScript file, `autocompleteBS.js`, which contains the core logic for handling user input, fetching data, and displaying suggestions. The library now uses Bootstrap 5 classes exclusively for styling, eliminating the need for a separate CSS file. The autocomplete dropdown is positioned absolutely relative to the input field, making it work correctly in complex layouts like Bootstrap navbars. The library is configured by creating a JavaScript object with settings for each autocomplete instance. # Building and Running This is a client-side JavaScript library, so there is no build process required. To use the library, simply include Bootstrap 5 CSS and the `autocompleteBS.js` file in your HTML. No custom CSS file is needed. ## Running the Demo To run the included demo, open the `demo/autocompleteBS.html` file in a web browser. The demo showcases two autocomplete fields: one for searching countries by capital and another for searching by country name. # Development Conventions - **Dependency-Free**: The project intentionally avoids external JavaScript libraries to remain lightweight and prevent dependency conflicts. - **Configuration Object**: The library is configured using a JavaScript object, making it easy to set up and customize. - **Debouncing**: A debounce function is used to limit the rate at which API requests are made, improving performance. - **Callbacks**: A callback function (`resultHandlerBS`) can be used to handle the selected autocomplete result.
Project Context
Ultracite enforces strict type safety, accessibility standards, and consistent code quality for JavaScript/TypeScript projects using Biome's lightning-fast formatter and linter.
by AgentHub Crawler
Project Context
Ultracite enforces strict type safety, accessibility standards, and consistent code quality for JavaScript/TypeScript projects using Biome's lightning-fast formatter and linter.
by AgentHub Crawler
PromptPack Project Overview
This repository contains the ecosystem for **PromptPack**, a tool designed to intelligently "pack" codebases into concise contexts for Large Language Models (LLMs). It features a multi-platform architecture sharing a common core.
by AgentHub Crawler
Sign in to leave a comment.
Javascript Astro Tailwind Css Cursorrules Prompt F Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler