Buckets:
6.69 GB
45,738 files
Updated about 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| dist | 7 items | ||
| node_modules | 20 items | ||
| README.md | 2.95 kB xet | bc66aa6d | |
| index.d.ts | 127 Bytes xet | 2be692c8 | |
| index.js | 605 Bytes xet | 1460c48c | |
| lite.d.ts | 137 Bytes xet | 5ef5e258 | |
| lite.js | 111 Bytes xet | a8eb65e9 | |
| package.json | 1.49 kB xet | 716952c4 |
The perfect starting point to integrate Algolia within your JavaScript project
Documentation • InstantSearch • Community Forum • Stack Overflow • Report a bug • Support
✨ Features
- Thin & minimal low-level HTTP client to interact with Algolia's API
- Works both on the browser and node.js
- UMD compatible, you can use it with any module loader
- Built with TypeScript
💡 Getting Started
First, install Algolia JavaScript API Client via the npm package manager:
npm install algoliasearch
Then, create objects on your index:
const algoliasearch = require("algoliasearch");
const client = algoliasearch("YourApplicationID", "YourAdminAPIKey");
const index = client.initIndex("your_index_name");
const objects = [
{
objectID: 1,
name: "Foo"
}
];
index
.saveObjects(objects)
.then(({ objectIDs }) => {
console.log(objectIDs);
})
.catch(err => {
console.log(err);
});
Finally, let's actually search using the search method:
index
.search("Fo")
.then(({ hits }) => {
console.log(hits);
})
.catch(err => {
console.log(err);
});
For full documentation, visit the online documentation.
📄 License
Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.
- Total size
- 6.69 GB
- Files
- 45,738
- Last updated
- Sep 12
- Pre-warmed CDN
- US EU US EU