{"id":13836132,"url":"https://github.com/butlerx/fastify-bookshelfjs","last_synced_at":"2026-03-17T13:16:00.883Z","repository":{"id":27288994,"uuid":"113225182","full_name":"butlerx/fastify-bookshelfjs","owner":"butlerx","description":"bookshelfjs plugin for fastify","archived":false,"fork":false,"pushed_at":"2023-01-11T03:55:37.000Z","size":566,"stargazers_count":8,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T15:50:33.602Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/butlerx.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":"2017-12-05T19:38:39.000Z","updated_at":"2024-08-21T03:13:22.000Z","dependencies_parsed_at":"2023-01-14T07:15:15.372Z","dependency_job_id":null,"html_url":"https://github.com/butlerx/fastify-bookshelfjs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlerx%2Ffastify-bookshelfjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlerx%2Ffastify-bookshelfjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlerx%2Ffastify-bookshelfjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlerx%2Ffastify-bookshelfjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/butlerx","download_url":"https://codeload.github.com/butlerx/fastify-bookshelfjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766688,"owners_count":21158302,"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-04T15:00:36.373Z","updated_at":"2026-03-17T13:15:55.842Z","avatar_url":"https://github.com/butlerx.png","language":"JavaScript","funding_links":[],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"readme":"# Fastify BookshelfJS Plugin\n\nBookshelf.js is a Javascript ORM built on top of knex.js. This plugin adds a\nshared bookshelf object to fastify that can be accessed from anywhere.\n\n## Installation\n\n```\n$ yarn add fastify-bookshelfjs\n\n# Then add one of the following:\n$ yarn add pg\n$ yarn add sqlite3\n$ yarn add mysql\n$ yarn add mysql2\n$ yarn add mariasql\n$ yarn add strong-oracle\n$ yarn add oracle\n$ yarn add mssql\n```\n\n## Usage\n\n```javascript\nconst bookshelf = require('fastify-bookshelfjs');\n\nfastify.register(bookshelf, {\n  client: 'pg',\n  connection: {\n    host: '127.0.0.1',\n    user: 'your_database_user',\n    password: 'your_database_password',\n    database: 'myapp_test',\n  },\n});\n\nfastify.get('/', (request, reply) =\u003e {\n  console.log(fastify.bookshelf); // bookshelf object\n});\n```\n\n## Further reading\n\nBookshelf used knex.js refer to\n[knexjs docs](http://knexjs.org/#Installation-client) for connection options.\n\n[Bookshelf Docs](http://bookshelfjs.org/)\n\n## Version\n\nv2.0.0\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutlerx%2Ffastify-bookshelfjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutlerx%2Ffastify-bookshelfjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutlerx%2Ffastify-bookshelfjs/lists"}