{"id":20824410,"url":"https://github.com/rchrd2/iajs","last_synced_at":"2025-05-07T17:22:38.004Z","repository":{"id":57101649,"uuid":"308805722","full_name":"rchrd2/iajs","owner":"rchrd2","description":"Internet Archive JavaScript Client which supports reading and writing data in NodeJS and the Browser","archived":false,"fork":false,"pushed_at":"2023-04-26T01:00:54.000Z","size":2284,"stargazers_count":23,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-18T04:21:01.003Z","etag":null,"topics":["api-client","archive-org","gificites","internet-archive","login","metadata","s3","sdk","upload","wayback","wayback-machine"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rchrd2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-31T04:48:43.000Z","updated_at":"2024-05-03T09:10:03.000Z","dependencies_parsed_at":"2023-01-29T23:15:50.946Z","dependency_job_id":null,"html_url":"https://github.com/rchrd2/iajs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rchrd2%2Fiajs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rchrd2%2Fiajs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rchrd2%2Fiajs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rchrd2%2Fiajs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rchrd2","download_url":"https://codeload.github.com/rchrd2/iajs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224884559,"owners_count":17386121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","archive-org","gificites","internet-archive","login","metadata","s3","sdk","upload","wayback","wayback-machine"],"created_at":"2024-11-17T22:22:18.029Z","updated_at":"2024-11-17T22:22:18.539Z","avatar_url":"https://github.com/rchrd2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iajs\n\n**Internet Archive JavaScript Client which supports reading and writing data in NodeJS and the Browser**\n\nThe Internet Archive is a non-profit open platform for archiving the world's free websites, books, movies, software, music, and more.\n\nThis JavaScript library enables reading and writing to the Internet Archive APIs in NodeJS **and** in the browser. To learn more about the Internet Archive visit \u003chttps://archive.org/about/\u003e.\n\nIt's lightweight with very little dependencies.\n\nThe major APIs are documented here \u003chttps://archive.org/services/docs/api/index.html\u003e, but this library supports additional APIs to enable more functionality. It does not abstract much from the APIs, but rather aggregates access to them all in a single multi-purpose library.\n\nThis library contains enough functionality to create powerful experiments and new experiences using the Internet Archive's platform and data.\n\n## Installation\n\nThrough npm\n```\nnpm i iajs\n```\n\nLoad from CDN in browser\n```\n\u003cscript src=\"https://unpkg.com/iajs/dist/ia.browser.js\"\u003e\u003c/script\u003e\n```\n\n## Live demos\n\n\u003chttps://rchrd2.github.io/iajs/examples/web/01.html\u003e\n\n\n## Usage Examples\n\n```\n\u003cscript src=\"https://unpkg.com/iajs/dist/ia.browser.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nia.GifcitiesAPI.search(\"snowglobe\").then(console.log);\n\nia.MetadataAPI.get({\n  identifier: \"mma_the_sphynx_and_great_pyramid_geezeh_271101\",\n}).then(console.log);\n\nia.SearchAPI.get({\n  q: {collection: \"metropolitanmuseumofart-gallery\"},\n  fields: [\"identifier\", \"title\"]\n}).then(console.log);\n\u003c/script\u003e\n```\n\n## Running NodeJS examples\n\n```\nnpm i\nnode examples/node/01-hello.js\n\n# this will ask you to sign in and create a login config file for other examples\nnode examples/node/02-login.js\n\nnode examples/node/03-reviews.js\n\n# and so on...\n```\n\n## Planned features\n\n- ✅ Read item metadata and list of files (Metadata API)\n- ✅ Update item metadata (Metadata API)\n- ✅ Search (Search API)\n- ✅ Search gifcities.org (GifCities API)\n- ✅ Query related item API (Related Items API)\n- ✅ Sign in with user/pass (Xauthn API)\n- ✅ Sign in with s3 tokens\n- ✅ Sign in from archive.org session cookies\n- ✅ Add reviews (Reviews API)\n- ✅ Add page to Wayback (Save Page Now API)\n- ✅ Query the Wayback Machine (CDX and Available APIs)\n- ✅ Add/remove/list favorites (bookmarks.php API)\n- ✅ Create items (S3 API)\n- ✅ Upload item files (S3 API)\n- OpenLibrary.org APIs\n- BookReaderJSIA aka manifest API\n- Book IIIF API\n- TV\n- Radio\n- List reviews by user\n- Generate embed codes for books/videos/music files in item\n- Include a JSON diff library\n- more tbd\n\n\n## Misc\n\nNote:\nI wanted to build this while I worked at Internet Archive, but did not have the bandwidth. Now I'm working on this in my free time.\n\nSee Also:\n\n- Official Internet Archive Python Client - https://github.com/jjjake/internetarchive\n\n---\n\nScreenshot of web usage example\n\n![screenshot](./documentation/img/examples-ss-1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frchrd2%2Fiajs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frchrd2%2Fiajs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frchrd2%2Fiajs/lists"}