{"id":17609918,"url":"https://github.com/vixalien/feathers_oak","last_synced_at":"2026-05-14T20:02:18.105Z","repository":{"id":53212103,"uuid":"521318970","full_name":"vixalien/feathers_oak","owner":"vixalien","description":"Feathers Oak framework bindings and REST provider","archived":false,"fork":false,"pushed_at":"2022-11-29T08:49:58.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T19:11:47.720Z","etag":null,"topics":["deno","feathers","oak"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vixalien.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-04T15:27:39.000Z","updated_at":"2022-12-15T00:31:23.000Z","dependencies_parsed_at":"2023-01-22T16:30:17.692Z","dependency_job_id":null,"html_url":"https://github.com/vixalien/feathers_oak","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vixalien/feathers_oak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Ffeathers_oak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Ffeathers_oak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Ffeathers_oak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Ffeathers_oak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vixalien","download_url":"https://codeload.github.com/vixalien/feathers_oak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Ffeathers_oak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33041204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["deno","feathers","oak"],"created_at":"2024-10-22T17:24:08.000Z","updated_at":"2026-05-14T20:02:18.065Z","avatar_url":"https://github.com/vixalien.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feathers_oak\n\n[Feathers](https://feathersjs.com) - [Oak](https://github.com/oakserver/oak) 🦕\nframework bindings and REST provider. Oak works under both Deno and NPM.\n\n## Usage\n\n`feathers_oak` requires 2 pre-existing `feathers` and `oak` apps. It just binds\nthem together so that you can use your services from oak as a REST endpoint with\noak.\n\n```ts\n\n// Oak\nimport { Application } from \"https://deno.land/x/oak/mod.ts\";\n\n// Importing feathers\nimport { feathers } from \"https://deno.land/x/feathers/mod.ts\";\nimport {\n  errorHandler,\n  restRouter,\n  routing,\n} from \"https://deno.land/x/feathers_oak/mod.ts\";\n\n// we will use mongo and it's feathers adapter as an example, but you can use whatever database adapter you like\nimport { MongoClient, ObjectId } from \"https://deno.land/x/mongo/mod.ts\";\nimport { MongoService } from \"https://deno.land/x/feathers_mongo/mod.ts\";\n\n\n// --- Services ---\n\n// initialising the mongo client \u0026 service\nconst client = new MongoClient();\nawait client.connect(\"mongodb://127.0.0.1:27017\");\nconst db = client.database(\"test\");\n\ninterface UserSchema {\n  _id: ObjectId;\n  username: string;\n  password: string;\n  age: number;\n}\n\nconst users = db.collection\u003cUserSchema\u003e(\"users\");\nconst Users = new MongoService\u003cUserSchema\u003e({\n  // set the collection\n  Model: users,\n  // default pagination options\n  paginate: {\n    default: 10,\n    max: 50,\n  },\n});\n\n\n// --- Feathers ---\n\n// creating the feathers app\nconst app = feathers();\n// IMPORTANT: must initialize routing before adding services\napp.configure(routing() as any);\napp.use(\"users\", Users);\n\n\n// --- Oak ---\n\n// creating the oak site \u0026 adding feathers REST router\nconst site = new Application();\nconst router = restRouter(app);\nsite.use(errorHandler());\nsite.use(router.routes(), router.allowedMethods());\n\n// start the site\nsite.listen({\n  post: 3000,\n});\n```\n\nNOTE: this project is WIP, and some things may not work or misbehave. This\nREADME will be updated when this package reachs `v1`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Ffeathers_oak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvixalien%2Ffeathers_oak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Ffeathers_oak/lists"}