{"id":13785174,"url":"https://github.com/zotero/web-library","last_synced_at":"2026-03-02T22:17:24.487Z","repository":{"id":5734531,"uuid":"6946592","full_name":"zotero/web-library","owner":"zotero","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-09T16:07:47.000Z","size":40343,"stargazers_count":152,"open_issues_count":101,"forks_count":50,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T23:18:01.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zotero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-30T22:08:31.000Z","updated_at":"2025-04-09T16:07:52.000Z","dependencies_parsed_at":"2023-09-26T19:31:14.349Z","dependency_job_id":"3ac70e75-bf00-44b8-8e71-e28d05d8da75","html_url":"https://github.com/zotero/web-library","commit_stats":{"total_commits":3568,"total_committers":8,"mean_commits":446.0,"dds":0.4007847533632287,"last_synced_commit":"2d4e9167092d6d884e3b620fe8d37abdec5fccc5"},"previous_names":[],"tags_count":142,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fweb-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fweb-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fweb-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotero%2Fweb-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zotero","download_url":"https://codeload.github.com/zotero/web-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"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":[],"created_at":"2024-08-03T19:00:57.748Z","updated_at":"2026-03-02T22:17:19.461Z","avatar_url":"https://github.com/zotero.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![CI](https://github.com/zotero/web-library/actions/workflows/ci.yml/badge.svg)](https://github.com/zotero/web-library/actions/workflows/ci.yml)\n\nWeb Library\n===========\n\nThis is [zotero.org's Web Library](https://www.zotero.org/mylibrary) capable of being installed/run on other websites.\n\nWeb Library is a single-page application implemented in Javascript. It uses Zotero API via [CORS requests](http://enable-cors.org/) and requires [keys configured](https://www.zotero.org/settings/keys/new) in order to access private libraries.\n\nInstallation\n------------\n\n1. Clone git repository into target web directory (`git clone --recursive https://github.com/zotero/web-library.git`)\n2. Ensure up-to-date version of [Node](https://nodejs.org) is used. It should be possible to build Web Library with any recent version of Node, see `.nvmrc` for recommended version of Node (usually current LTS). On systems where [nvm](https://github.com/nvm-sh/nvm) is available it's possible to use `nvm install` and `nvm use` to install and switch to a preferred version of node.\n3. Run `npm install` to install dependencies\n4. Tweak configuration in `src/html/index.html` and/or `src/html/embedded.html`. Default configuration displays a public library in read-only mode. In order to edit a library, change `userId` and provide `apiKey`.\n5. Run development proces: `npm start`\n6. Point browser at `http://localhost:8001/` to see the demo\n7. Modyfing source files will trigger incremental build\n\nProduction-ready version can be built with `npm run build` and served with `npm run serve`.\n\nConfiguration\n----------------------\nThe Web Library reads its configuration from a DOM node with the ID `zotero-web-library-config`. You can find an example configuration in `src/html/index.html`.  \n\nTo access private libraries, `userId` and `apiKey` must be provided. These can be obtained at https://www.zotero.org/settings/security#applications.\n\nAlternatively, it's possible to configure the Web Library to display only specified public libraries. In this case, the `libraries` object must be populated, including a value for `defaultLibraryKey`, and with `includeMyLibrary` set to `false`.\n\nBuild targets\n-------------\nThere are two build targets controlled by `TARGET` environment variable: `zotero` and `embedded`. Former produces a single-page app as seen on zotero.org, latter produces a web-library widget that can be embedded on other pages. Embedded build is currently considered experimental. It's also possible to build both variants using `TARGET` set to `all` (default behaviour).\n\n\nBuild \u0026 Development options\n-------------\nThe following environment variables are recognized:\n\n* `DEBUG` - if set to `1` extra info about produced bundle will be printed to the console. Increases build time.\n* `EMBEDDED` - if set to `1` dev server will default to `src/html/embedded.html`, otherwise it will serve `src/html/index.html`.\n* `LOCALE_CACHE_TIME` - advanced usage, see `scripts/fetch-locale.cjs`.\n* `NODE_ENV` - used by build scripts to control various debug options. See `package.json`. \n* `PORT` - port on which development server listens for incoming connections.\n* `STYLES_CACHE_TIME` - advanced usage, see `scripts/build-styles-json.cjs`.\n* `TARGET` - see **Build targets** above.\n* `TRANSLATE_URL` - URL where to proxy translation requests.\n* `USE_HTTPS` - if set to `1` dev server will use HTTPS. Requires certificates, see `scripts/server.cjs`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotero%2Fweb-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzotero%2Fweb-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotero%2Fweb-library/lists"}