Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Typeahead.js

Typeahead.js Laravel Package

components/typeahead.js

A lightweight Typeahead.js component for Laravel/PHP apps, adding fast autocomplete and suggestion dropdowns to text inputs. Simple to integrate, with configurable data sources, keyboard navigation, and Blade-friendly setup for search and forms.

Deep Wiki
Context7

components/typeahead.js bundles Twitter's typeahead.js autocomplete library for Laravel applications, letting you add fast, fuzzy-search suggestion inputs without relying on a CDN. A service provider registers the compiled JS and CSS, and simple helpers make the library available in any view or form that needs autocomplete.

  • Blade directive to include typeahead assets in a single line
  • Asset publishing for local, versioned copies of the JS and CSS
  • Configurable defaults for datasets and suggestion sources
  • CDN-free setup that works offline and behind firewalls
Frequently asked questions about Typeahead.js
What is components/typeahead.js and how does it work with Laravel?
components/typeahead.js is described as a Laravel package that adds Typeahead.js-powered autocomplete components to Blade views. It lets you build searchable input fields with remote data sources, customizable suggestion templates, and simple form integration. The Composer package itself is noted as a shim repository for twitter/typeahead.js, so the Laravel integration should be verified in the package source.
How do I install components/typeahead.js in a Laravel application?
Install it through Composer using the package name components/typeahead.js. The provided overview does not include a README or installation commands, so check the package for any service provider, config publishing, or asset publishing steps. After installation, confirm whether Blade components or directives are available automatically or need registration.
Does components/typeahead.js support remote data sources for autocomplete inputs?
Yes, the package is described as supporting remote data sources for Typeahead.js-powered autocomplete fields. That makes it suitable for searchable inputs that fetch suggestions from an API or backend endpoint. The overview does not document the exact configuration syntax, so review the package implementation for endpoint and query options.
How do I customize suggestion templates with components/typeahead.js?
The package advertises customizable suggestion templates for the Typeahead.js autocomplete UI. You would typically define template markup in your Blade view or package configuration, but the provided context does not include exact API details. Check the package source or README for supported template slots and escaping requirements.
Which Laravel versions are supported by components/typeahead.js?
The provided overview does not state a Laravel version range. Before installing, inspect the package composer.json constraints and any README notes to confirm compatibility with your Laravel release. This is especially important because the package is a shim around an older upstream Typeahead.js project.
Is components/typeahead.js a wrapper around twitter/typeahead.js?
Yes, the repository description calls it a shim repository for http://github.com/twitter/typeahead.js. The Laravel package layer adds Blade view components and form integration on top of that upstream library. Because it is a shim, you should verify how assets are sourced and whether the upstream version is pinned.
How can I test Typeahead.js autocomplete components in Laravel?
The provided overview does not document a testing strategy for the package. For your application, write feature tests that assert the Blade views render the expected input attributes and data endpoints. For JavaScript behavior, use browser tests or a JS test runner to verify suggestion rendering and remote requests.
Can I use components/typeahead.js in production admin panels and search interfaces?
The package is positioned for admin panels and search interfaces that need autocomplete inputs. Before production use, audit the shim repository, asset loading, CSRF handling for remote endpoints, and accessibility of the Typeahead.js UI. Also confirm the upstream Typeahead.js version is acceptable for your maintenance and security requirements.
What are alternatives to components/typeahead.js for Laravel autocomplete?
Alternatives include directly including Typeahead.js assets in your build, or using actively maintained autocomplete libraries such as Choices.js, Select2, or Alpine.js-based comboboxes. If you need Blade-native integration, compare packages that explicitly document Laravel version support and testing. The best choice depends on whether you need remote data, templated suggestions, and accessibility features.
How is components/typeahead.js maintained, and is the shim repository a concern?
The overview identifies it as a shim repository for twitter/typeahead.js, which means the package may primarily proxy or repackage an upstream library. The provided context does not include maintenance activity, release cadence, or issue tracker details. Review the Composer metadata and repository history before adopting it for long-term Laravel projects.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections