{"id":50934229,"url":"https://github.com/rexadbapp/rexadb-studio","last_synced_at":"2026-06-17T07:30:53.967Z","repository":{"id":360305174,"uuid":"1249048362","full_name":"rexadbapp/rexadb-studio","owner":"rexadbapp","description":"RexaDB Studio — Backend API server for a database client GUI. Proxies database connections (Postgres, MySQL) through a central API with JWT auth, role-based access control (RBAC), AES-256-GCM credential encryption, and a pluggable driver system. Built with Next.js App Router, Drizzle ORM, and SQLite (libSQL).","archived":false,"fork":false,"pushed_at":"2026-06-16T21:33:35.000Z","size":238,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-16T23:20:30.056Z","etag":null,"topics":["database-management","databases","mysql","postgres","sql"],"latest_commit_sha":null,"homepage":"https://rexadb.app","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/rexadbapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T09:49:56.000Z","updated_at":"2026-06-16T21:33:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rexadbapp/rexadb-studio","commit_stats":null,"previous_names":["rexadbapp/rexadb-studio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rexadbapp/rexadb-studio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexadbapp%2Frexadb-studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexadbapp%2Frexadb-studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexadbapp%2Frexadb-studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexadbapp%2Frexadb-studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rexadbapp","download_url":"https://codeload.github.com/rexadbapp/rexadb-studio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexadbapp%2Frexadb-studio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34439293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["database-management","databases","mysql","postgres","sql"],"created_at":"2026-06-17T07:30:53.195Z","updated_at":"2026-06-17T07:30:53.959Z","avatar_url":"https://github.com/rexadbapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rexadb-studio\n\n\u003e Backend API server for the rexadb database client GUI. Proxies database connections through a central API with role-based access control (RBAC), so admins can grant team members scoped access to databases without exposing credentials.\n\n## Quick Start\n\n```sh\nnpm run setup     # interactive — prompts for admin, generates secrets, installs, migrates, seeds\n```\n\nOr with Docker:\n\n```sh\ndocker compose up -d\n```\n\n## Architecture Overview\n\n```\nClient App → POST /query (Bearer token) → rexadb-studio\n  ├── Verify JWT\n  ├── Check RBAC permissions\n  ├── Decrypt stored credentials (AES-256-GCM)\n  ├── Connect via driver (pg / mysql2)\n  ├── Execute query\n  ├── Log audit trail\n  └── Return rows + fields\n```\n\n| Layer | Description |\n|-------|-------------|\n| `src/app/api/` | Thin route handlers |\n| `src/lib/auth.ts` | JWT auth adapter (swappable) |\n| `src/lib/rbac.ts` | Permission \u0026 connection-level access checks |\n| `src/lib/drivers/` | Pluggable database drivers (Postgres, MySQL) |\n| `src/lib/encryption.ts` | AES-256-GCM credential encryption |\n| `src/db/` | Drizzle ORM schema + SQLite app storage |\n| `src/config/` | Permission codes \u0026 default role definitions |\n\n## Supported Databases\n\n- **Postgres** (via `pg`)\n- **MySQL** (via `mysql2`)\n- Extensible — implement `DatabaseDriver` and use `registerDriver()`\n\n## Permissions\n\nGranular permission system with built-in roles (`super_admin`, `admin`, `developer`, `viewer`) and connection-level access types (`FULL_ACCESS`, `READ_ONLY`, `CUSTOM`). Custom roles can be created at runtime.\n\n## Docs\n\n- [Architecture \u0026 API Reference](docs/architecture.md)\n- [Users API](docs/users-api.md)\n- [Frontend API Integration](docs/frontend-api.md)\n- [Integrate with Main App](docs/integrate-with-main-app.md)\n\n## Tech Stack\n\n**Next.js** (App Router), **Drizzle ORM** + **libSQL** (SQLite), **pg** / **mysql2** (drivers), **Zod** (validation), **AES-256-GCM** (encryption).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexadbapp%2Frexadb-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexadbapp%2Frexadb-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexadbapp%2Frexadb-studio/lists"}