opengb
opengb copied to clipboard
Open Game Backend: Open-source modular backend for all games and tools. Works with Godot, Unity, Unreal Engine, and HTML5.
**Motivation** Currently, we depend on node-postgres automagically detecting the Cloudflare runtime by: 1. Defining the user agent in esbuild: [https://github.com/cloudflare/workers-sdk/blob/e8997b879605fb2eabc3e241086feb7aa219ef03/packages/wrangler/src/deployment-bundle/bundle.ts#L306](https://github.com/cloudflare/workers-sdk/blob/e8997b879605fb2eabc3e241086feb7aa219ef03/packages/wrangler/src/deployment-bundle/bundle.ts#L306) 2. Reading the defined user agent: [https://github.com/brianc/node-postgres/blob/50c06f9bc6ff2ca1e8d7b7268b9af54ce49d72c1/packages/pg/lib/stream.js#L60](https://github.com/brianc/node-postgres/blob/50c06f9bc6ff2ca1e8d7b7268b9af54ce49d72c1/packages/pg/lib/stream.js#L60) **Implementation** We shouldn't...
Currently, all objects are nested in auto-generated docs: These should be split in to tables like this: This is likely a bug in zod2md.
@kacper said: > After adding new model to the `schema.prisma` file and accepting migration, cli hands until user input. This only happens only if this is the first migration. ##...
**Motivation** There's no easy way to manually call scripts. Should allow doing this via the CLI. **Implementation** TBD how we pass the body to the request. **Alternatives** Auto-generate SDK and...
**Motivation** Current error when trying to call a script that doesn't exist is: ``` Calling http://localhost:6420/modules/users/scripts/authenticate_user/call error: Uncaught (in promise) Error: Request to users.authenticate_user failed: {"message":"Route not found. Make sure...
**Motivation** denols auto-imports generated files from the `.opengb` that should not be imported. **Implementation** Run a simple grep on the codebase to look for imports from `.opengb`.
**Motivation** This is not clear what you're supposed to do instead. External modules should use `opengb db deploy` or `opengb dev` handles this normally. This is bc `db dev` tries...
**Motivation** OpenGB doesn't manage cache compat between versions. It should auto-purge the cache if the version changes.
**Motivation** CF workers requires an isolated pool for every request. In order to achieve this, we currently create a new runtime for every request. We can speed up requests by...
**Implementation** Implement as `ctx.dbReadReplica` or `ctx.dbReadOnly` (or something shorter?). Has a separate database URL. If no read replica provided, use the default `ctx.db`.