{"id":50803907,"url":"https://github.com/origadmin/orig-studio-web","last_synced_at":"2026-06-12T23:05:29.990Z","repository":{"id":358864872,"uuid":"1243340223","full_name":"origadmin/orig-studio-web","owner":"origadmin","description":"OrigStudio shared web frontend (CE/EE)","archived":false,"fork":false,"pushed_at":"2026-06-03T21:08:34.000Z","size":2518,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T21:21:05.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/origadmin.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},"funding":{"github":["origadmin"],"open_collective":"origadmin","ko_fi":"origadmin","patreon":"origadmin","custom":["https://origadmin.org/donate"],"github_followers":true}},"created_at":"2026-05-19T08:52:53.000Z","updated_at":"2026-06-03T21:08:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/origadmin/orig-studio-web","commit_stats":null,"previous_names":["origadmin/orig-studio-web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/origadmin/orig-studio-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origadmin%2Forig-studio-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origadmin%2Forig-studio-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origadmin%2Forig-studio-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origadmin%2Forig-studio-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/origadmin","download_url":"https://codeload.github.com/origadmin/orig-studio-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origadmin%2Forig-studio-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265535,"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-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2026-06-12T23:05:29.215Z","updated_at":"2026-06-12T23:05:29.983Z","avatar_url":"https://github.com/origadmin.png","language":"TypeScript","funding_links":["https://github.com/sponsors/origadmin","https://opencollective.com/origadmin","https://ko-fi.com/origadmin","https://patreon.com/origadmin","https://origadmin.org/donate",true],"categories":[],"sub_categories":[],"readme":"# OrigStudio Web\n\nOrigStudio shared web frontend, used by both CE (Community Edition) and EE (Enterprise Edition) via Git Submodule.\n\n## Tech Stack\n\n- **Runtime**: Bun\n- **Build**: Rsbuild\n- **Framework**: React 19 + TypeScript\n- **Routing**: TanStack Router\n- **State**: TanStack Query\n- **UI**: shadcn/ui + Radix + Tailwind CSS\n- **i18n**: i18next\n- **Test**: Jest + Playwright\n- **Go Embed**: `//go:embed all:dist` for binary embedding\n\n## Quick Start\n\n```bash\nbun install\nbun run dev\n```\n\nDev server runs at `http://localhost:18080`, proxying API requests to `http://localhost:8080`.\n\n## Scripts\n\n| Command | Description |\n|---------|-------------|\n| `bun run dev` | Start dev server |\n| `bun run build` | Production build → `dist/` |\n| `bun run preview` | Preview production build |\n| `bun run lint` | ESLint check |\n| `bun run typecheck` | TypeScript type check |\n| `bun run test` | Run unit tests |\n| `bun run test:e2e` | Run E2E tests (Playwright) |\n| `bun run check` | lint + typecheck |\n\n## Go Embed Integration\n\nThis repository contains Go files for embedding the frontend into the backend binary:\n\n| File | Build Tag | Behavior |\n|------|-----------|----------|\n| `embed.go` | `!dev` (default) | Embeds `dist/` into binary via `//go:embed` |\n| `embed_dev.go` | `dev` | Loads `dist/` from filesystem at runtime |\n| `spa.go` | - | Registers SPA routes on gin.Engine |\n\n**Release builds** (no `-tags=dev`): frontend is embedded in the binary.\n\n**Dev builds** (`-tags=dev`): frontend is loaded from the filesystem, enabling hot reload.\n\n## Usage as Submodule\n\n```bash\ngit submodule add https://github.com/origadmin/orig-studio-web.git web\n```\n\nUpdate to latest:\n\n```bash\ncd web \u0026\u0026 git pull origin main \u0026\u0026 cd .. \u0026\u0026 git add web \u0026\u0026 git commit\n```\n\nClone with submodules:\n\n```bash\ngit clone --recurse-submodules \u003crepo-url\u003e\n```\n\n## Project Structure\n\n```\n├── src/\n│   ├── components/     # UI components (admin, portal, common, ui)\n│   ├── config/         # App configuration\n│   ├── contexts/       # React contexts (auth, notification)\n│   ├── hooks/          # Custom hooks\n│   ├── i18n/           # Internationalization\n│   ├── layout/         # Page layouts\n│   ├── lib/            # Utilities, API client, services\n│   ├── pages/          # Page components\n│   ├── routes/         # TanStack Router route definitions\n│   ├── themes/         # Theme system (15+ themes)\n│   └── types/          # TypeScript type definitions\n├── public/             # Static assets (images, locales, themes)\n├── e2e/                # Playwright E2E tests\n├── tests/              # Test files (features, bugs)\n├── embed.go            # Go embed (production)\n├── embed_dev.go        # Go embed (development)\n└── spa.go              # SPA route registration\n```\n\n## License\n\nCopyright (c) 2024 OrigAdmin. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigadmin%2Forig-studio-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forigadmin%2Forig-studio-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigadmin%2Forig-studio-web/lists"}