prompt-searcher
v0.1.2
Published
Official JavaScript / TypeScript library for the DAIMS API
Readme
Installation
Via npm
npm install prompt-searcherYou can also use your favorite package manager:
pnpm add prompt-searcher
# OR
yarn add prompt-searcher
# OR
bun add prompt-searcherQuick start
import { DaimsClient } from "prompt-searcher";
const client = new DaimsClient();
const list = await client.search({
card_type: "create",
search_type: "keyword",
value: "Cinematic",
});
console.log(list.success, list.data.items);
const prompt = await client.getPrompt("card-skey");API
DaimsClient
import { DaimsClient } from "prompt-searcher";
// Basic usage (no API key required)
const client = new DaimsClient();
// With options
const client = new DaimsClient({
apiKey: "your-api-key", // optional
timeoutMs: 10_000, // optional
});Methods:
search(params)->Promise<SearchResponse>getPrompt(skey)->Promise<GetPromptResponse>
