Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timharek/openlibrary
API client for OpenLibrary's API for searching books, authors etc.
https://github.com/timharek/openlibrary
api api-client books cli deno openlibrary typescript
Last synced: 12 days ago
JSON representation
API client for OpenLibrary's API for searching books, authors etc.
- Host: GitHub
- URL: https://github.com/timharek/openlibrary
- Owner: timharek
- License: gpl-3.0
- Created: 2023-01-15T17:43:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T17:38:52.000Z (3 months ago)
- Last Synced: 2024-12-17T00:33:51.958Z (23 days ago)
- Topics: api, api-client, books, cli, deno, openlibrary, typescript
- Language: TypeScript
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![JSR](https://jsr.io/badges/@timharek/openlibrary)](https://jsr.io/@timharek/openlibrary)
[![sourcehut](https://img.shields.io/badge/repository-sourcehut-lightgrey.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSINCiAgICB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+DQogIDxkZWZzPg0KICAgIDxmaWx0ZXIgaWQ9InNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSJibGFjayIgLz4NCiAgICA8L2ZpbHRlcj4NCiAgICA8ZmlsdGVyIGlkPSJ0ZXh0LXNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSIjQUFBIiAvPg0KICAgIDwvZmlsdGVyPg0KICA8L2RlZnM+DQogIDxjaXJjbGUgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMzglIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjQlIg0KICAgIGZpbGw9Im5vbmUiIGZpbHRlcj0idXJsKCNzaGFkb3cpIiAvPg0KICA8Y2lyY2xlIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjM4JSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI0JSINCiAgICBmaWxsPSJub25lIiBmaWx0ZXI9InVybCgjc2hhZG93KSIgLz4NCjwvc3ZnPg0KCg==)](https://git.sr.ht/~timharek/openlibrary)
[![GitHub mirror](https://img.shields.io/badge/mirror-GitHub-black.svg?logo=github)](https://github.com/timharek/openlibrary)[![builds.sr.ht status](https://builds.sr.ht/~timharek/openlibrary.svg)](https://builds.sr.ht/~timharek/openlibrary?)
# OpenLibrary API client
API client for [OpenLibrary](https://openlibrary.org/developers/api)'s API for
searching books, authors etc.## Installation
```bash
deno add @timharek/openlibrary
# or using NPM
npx jsr add @timharek/openlibrary
# or using Bun
bunx jsr add @timharek/openlibrary
```## Examples
```typescript
import { book } from "jsr:@timharek/openlibrary";const result = await book.get("OL17914663W");
``````typescript
import { book } from "jsr:@timharek/openlibrary";const result = await book.search("All Systems Red");
```