{"id":26892589,"url":"https://github.com/justinmchase/grove","last_synced_at":"2026-03-06T19:13:51.437Z","repository":{"id":78487815,"uuid":"603520604","full_name":"justinmchase/grove","owner":"justinmchase","description":"Grove is a Hybrid Microservice framework for Deno and Oak.","archived":false,"fork":false,"pushed_at":"2025-03-04T03:43:56.000Z","size":200,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T04:28:52.345Z","etag":null,"topics":["deno","grove","hybrid-microservices","microservices","oak"],"latest_commit_sha":null,"homepage":"https://jsr.io/@justinmchase/grove","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinmchase.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-18T19:03:25.000Z","updated_at":"2025-03-04T03:43:59.000Z","dependencies_parsed_at":"2024-02-09T05:32:35.936Z","dependency_job_id":"ebecad30-d925-42d1-87c4-ec45047a94d8","html_url":"https://github.com/justinmchase/grove","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmchase%2Fgrove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmchase%2Fgrove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmchase%2Fgrove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinmchase%2Fgrove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinmchase","download_url":"https://codeload.github.com/justinmchase/grove/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552904,"owners_count":20795839,"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":["deno","grove","hybrid-microservices","microservices","oak"],"created_at":"2025-03-31T22:52:53.688Z","updated_at":"2026-03-06T19:13:51.403Z","avatar_url":"https://github.com/justinmchase.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grove 🌳\n\n[![check](https://github.com/justinmchase/grove/actions/workflows/check.yml/badge.svg)](https://github.com/justinmchase/grove/actions/workflows/check.yml)\n\nGrove is a\n[Hybrid Microservice](https://justinmchase.com/2023/03/11/hybrid-microservice-architecture/)\nframework for [Deno](https://deno.land) and [Oak](https://jsr.io/@oak/oak).\n\n## Usage\n\n#### main.ts\n\n```ts\nimport { Context, JobContext, State } from \"./context.ts\";\nimport { initControllers } from \"./controllers/mod.ts\";\nimport { initServices } from \"./services/mod.ts\";\nimport { initRepositories } from \"./repositories/mod.ts\";\nimport { initManagers } from \"./managers/mod.ts\";\nimport { initJobs } from \"./jobs/mod.ts\";\nimport {\n  ConsoleLogger,\n  Grove,\n  JobMode,\n  WebMode,\n} from \"https://deno.land/x/grove/mod.ts\";\n\nasync function initContext(): Promise\u003cContext\u003e {\n  const services = await initServices();\n  const repositories = await initRepositories(services);\n  const managers = await initManagers(repositories);\n  return {\n    logger: new ConsoleLogger(),\n    services,\n    repositories,\n    managers,\n  };\n}\n\nconst grove = new Grove({\n  initContext,\n  modes: [\n    new WebMode\u003cContext, State\u003e({ initControllers }),\n    new JobMode\u003cJobContext\u003e({ initJobs }),\n  ],\n});\n\nawait grove.start(Deno.args);\n```\n\n#### run in web mode\n\n```sh\ndeno run -A main.ts web\n```\n\n#### run the hello job\n\n```sh\ndeno run -A main.ts job hello --name Justin\n```\n\n### Example\n\nSee the [example](./example/main.ts) application for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmchase%2Fgrove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinmchase%2Fgrove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinmchase%2Fgrove/lists"}