@petamorikei/eagle-js
v0.3.1
Published
Wrapper for Eagle API
Maintainers
Readme
eagle-js
Wrapper for Eagle API. Official API Document here.
Installation
npm install @petamorikei/eagle-jsRequirements
- Node.js >= 22.0.0
- Eagle application running on localhost:41595
Usage
import { EagleClient } from "@petamorikei/eagle-js";
const client = EagleClient.instance;
// Add item from URL
await client.addItemFromUrl({
url: "https://example.com/image.jpg",
name: "Example Image",
tags: ["example"],
});
// Search items
const items = await client.getItemList({
tags: ["example"],
limit: 10,
});