Skip to main content
Home

API client for OpenLibrary's API for searching books, authors etc.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
a year ago (2.0.5)

JSR sourcehut GitHub mirror

builds.sr.ht status

OpenLibrary API client

API client for OpenLibrary's API for searching books, authors etc.

Installation

deno add @timharek/openlibrary
# or using NPM
npx jsr add @timharek/openlibrary
# or using Bun
bunx jsr add @timharek/openlibrary

Examples

import { book } from "jsr:@timharek/openlibrary";

const result = await book.get("OL17914663W");
import { book } from "jsr:@timharek/openlibrary";

const result = await book.search("All Systems Red");

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";
or

Import directly with a jsr specifier

import * as openlibrary from "jsr:@timharek/openlibrary";

Add Package

pnpm i jsr:@timharek/openlibrary
or (using pnpm 10.8 or older)
pnpm dlx jsr add @timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";

Add Package

yarn add jsr:@timharek/openlibrary
or (using Yarn 4.8 or older)
yarn dlx jsr add @timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";

Add Package

vlt install jsr:@timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";

Add Package

npx jsr add @timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";

Add Package

bunx jsr add @timharek/openlibrary

Import symbol

import * as openlibrary from "@timharek/openlibrary";