{"id":48853376,"url":"https://github.com/runablehq/sandbox-app-template","last_synced_at":"2026-04-15T10:39:46.454Z","repository":{"id":349403063,"uuid":"1196282748","full_name":"runablehq/sandbox-app-template","owner":"runablehq","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-13T21:54:07.000Z","size":1186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T22:16:04.378Z","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/runablehq.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-03-30T14:47:26.000Z","updated_at":"2026-04-13T21:54:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/runablehq/sandbox-app-template","commit_stats":null,"previous_names":["runablehq/sandbox-app-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runablehq/sandbox-app-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runablehq%2Fsandbox-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runablehq%2Fsandbox-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runablehq%2Fsandbox-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runablehq%2Fsandbox-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runablehq","download_url":"https://codeload.github.com/runablehq/sandbox-app-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runablehq%2Fsandbox-app-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31837939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T10:26:52.245Z","status":"ssl_error","status_checked_at":"2026-04-15T10:26:51.649Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-04-15T10:39:45.806Z","updated_at":"2026-04-15T10:39:46.441Z","avatar_url":"https://github.com/runablehq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sandbox-app-template\n\nMonorepo: Bun workspaces + Turborepo.\n\n## Project Structure\n\n```\napp.config.json              Service config (ports, commands) — source of truth\n.env.local                   Secrets (gitignored)\npackages/\n  web/                       Unified server (API + web frontend)\n    src/\n      index.ts               Server entry (Bun.serve — routes API + serves HTML)\n      api/\n        app.ts               Hono routes + AppType export\n        database/\n          index.ts           Database client\n          schema.ts          Drizzle schema\n      client/                Frontend source (React)\n        index.html           Frontend HTML entry\n        main.tsx             App entry\n        routes/              TanStack Router file-based routing\n        lib/\n          api.ts             Typed API client (baseUrl: \"/api\")\n          desktop.ts         Electron API types\n        hooks/\n          use-desktop.ts     Desktop detection\n  mobile/                    Expo + React Native + expo-router\n    app/                     File-based routing\n    lib/\n      api.ts                 Typed API client\n  desktop/                   Electron shell (loads web app from server)\n    electron/\n      main.ts                Main process + IPC handlers\n      preload.ts             contextBridge API\n    vite.config.ts           Vite config, reads desktop port from app.config.json\n```\n\n## App Config\n\nAll service configuration lives in `app.config.json` at the project root. Read this file to get ports and dev commands for each service. The template code reads ports from this file; do not hardcode ports in application code, agent examples, or platform clients.\n\nThe web service serves both the API at `/api/*` and the web frontend at `/*` from a single web port.\n\n## Desktop UI\n\nThe desktop app has no separate renderer by default. It loads the web app from `packages/web`; desktop-specific UI should live in `packages/web/src/client/` and be gated with `useDesktop()` / `window.electronAPI`. Keep `packages/desktop` for Electron window setup, menus/tray/shortcuts, IPC handlers, native OS APIs, and packaging. Only add a separate desktop renderer when the product intentionally needs a different desktop-only UI architecture.\n\n## Environment Variables\n\nSecrets and credentials live in `.env.local` at the project root (gitignored). Bun loads it automatically.\n\n## Dev Commands\n\n```sh\nbun run dev            # start the web service (API + frontend)\nbun run dev:desktop    # start the desktop app (requires server running)\nbun run dev:mobile            # start the Expo dev server\n```\n\n## Quality Commands\n\n```sh\nbun run typecheck\nbun run build\n```\n\n## Database\n\n```sh\ncd packages/web\nbun run db:push        # Push schema to database\nbun run db:generate    # Generate migration files\nbun run db:migrate     # Run migrations\nbun run db:studio      # Open Drizzle Studio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunablehq%2Fsandbox-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunablehq%2Fsandbox-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunablehq%2Fsandbox-app-template/lists"}