[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10932":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},10932,"10x","10x-app-builder\u002F10x","10x-app-builder","Open-source SwiftUI app builder.",null,"Swift",159,33,1,0,7,10,28,21,4.59,"Other",false,"main",[],"2026-06-12 02:02:28","# 10x\n\nAn AI-powered iOS app builder for macOS. Describe the app you want, and 10x generates production-quality SwiftUI code, scaffolds an Xcode project, and previews it on the iOS Simulator — all from a conversational interface. The shipped beta artifact is packaged as **10x.app**.\n\n![macOS 14+](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS-14%2B-blue)\n![Swift 5.9](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift-5.9-orange)\n![SwiftUI](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUI-SwiftUI-purple)\n\n## How It Works\n\n1. **Describe your app** — type what you want to build in natural language\n2. **Plan mode** — the AI researches, asks clarifying questions, and creates a project plan\n3. **Build mode** — the AI writes SwiftUI code using file tools (create, edit, search, etc.)\n4. **Live preview** — the generated app is compiled and launched on the iOS Simulator with a screenshot captured back into the UI\n\nThe AI runs a full agentic tool loop client-side: it calls Claude via a thin API proxy, parses `tool_use` blocks, executes file operations locally, and loops until the task is complete.\n\n## Architecture\n\n```\nTenXAppApp (@main)\n├── AuthManager                 # Token-based auth (Supabase)\n├── ContentView                 # Tab management (home + per-project tabs)\n│   ├── HomeView                # Project list, creation\n│   └── BuilderView            # Main workspace (3-pane)\n│       ├── FileExplorerSidebar # VS Code-style file tree\n│       ├── ChatPanelView       # Messages, tool steps, inline questions\n│       └── PreviewPanelView    # Simulator preview, plan view\n│\n└── BuilderViewModel (@Observable, state machine)\n    ├── GenerationService       # Claude tool loop orchestration\n    │   ├── BuilderPrompts      # Mode-aware system prompts\n    │   ├── BuilderToolDefs     # Tool schemas for Claude\n    │   └── ToolExecutor        # File I\u002FO, search, run_command\n    ├── XcodePreviewService     # Project scaffolding (XcodeGen)\n    ├── SimulatorPreviewService # Simulator boot, build, screenshot\n    ├── LocalProjectStore       # Local persistence (~tenx\u002F)\n    └── BuilderService          # API client for projects\u002Fmessages\n```\n\n### Key Services\n\n| Service | Role |\n|---------|------|\n| **GenerationService** | Owns the Claude tool loop — streams responses, parses tool calls, executes them via ToolExecutor, repeats until done |\n| **ToolExecutor** | Executes file operations (create\u002Fedit\u002Fread\u002Fdelete\u002Fsearch) against the real filesystem and maintains an in-memory file tree |\n| **XcodePreviewService** | Writes generated Swift files to disk, creates `project.yml`, runs XcodeGen to produce `.xcodeproj` |\n| **SimulatorPreviewService** | Boots an iPhone simulator, runs `xcodebuild`, installs the app, launches it, captures a screenshot |\n| **LocalProjectStore** | Persists messages, file tree, and project plan to `~\u002FLibrary\u002FDeveloper\u002FTenXApp\u002F{project}\u002Ftenx\u002F` |\n| **BuilderPrompts** | Generates mode-aware system prompts — plan mode focuses on research\u002Farchitecture, build mode on SwiftUI code generation |\n\n### Data Flow\n\n```\nUser message → BuilderViewModel.sendMessage()\n  → GenerationService.runGeneration()\n    → POST to Claude proxy (streaming NDJSON)\n    → Parse tool_use blocks\n    → ToolExecutor writes files to disk\n    → Loop until Claude stops or ask_user\n  → Events update ViewModel (@Observable)\n  → SwiftUI re-renders reactively\n  → LocalProjectStore persists state\n```\n\n## Project Structure\n\n```\n10x-macos\u002F\n├── TenXAppApp.swift               # @main entry point\n├── ContentView.swift              # Root view, tab management\n├── Config.swift                   # API base URL, Supabase config\n├── Theme.swift                    # Design tokens (colors, spacing, radii)\n│\n├── Models\u002F\n│   ├── BuilderProject.swift       # Project metadata\n│   ├── BuilderStreamEvent.swift   # Stream event parsing\n│   ├── ProjectMode.swift          # .plan | .build\n│   └── AppTab.swift               # Tab state\n│\n├── ViewModels\u002F\n│   ├── AuthManager.swift          # Auth state\n│   └── BuilderViewModel.swift     # Core state machine\n│\n├── Views\u002F\n│   ├── HomeView.swift             # Project list + creation\n│   ├── BuilderView.swift          # Main 3-pane workspace\n│   ├── NewProjectView.swift       # New project wizard\n│   ├── FileExplorerSidebar.swift  # File tree sidebar\n│   ├── Auth\u002FLoginView.swift       # Sign-in screen\n│   ├── Chat\u002F                      # Chat panel views\n│   ├── Preview\u002F                   # Preview + plan views\n│   └── Sidebar\u002F                   # Project list sidebar\n│\n├── Services\u002F\n│   ├── APIClient.swift            # HTTP client (GET\u002FPOST\u002Fstream)\n│   ├── BuilderService.swift       # Project\u002Fmessage API calls\n│   ├── LocalProjectStore.swift    # Local file persistence\n│   ├── XcodePreviewService.swift  # Xcode project scaffolding\n│   ├── SimulatorPreviewService.swift  # Simulator control\n│   └── Builder\u002F\n│       ├── GenerationService.swift     # Claude tool loop\n│       ├── BuilderPrompts.swift        # System prompts\n│       ├── BuilderToolDefinitions.swift # Tool schemas\n│       └── ToolExecutor.swift          # File tool execution\n│\n└── Assets.xcassets\u002F               # App icon, accent color\n```\n\n## Prerequisites\n\n- **macOS 14.0+**\n- **Xcode 16+** (for building the macOS app itself)\n- **Xcode Simulator runtimes** — install at least one iPhone simulator via Xcode > Settings > Platforms\n- **Bundled `xcodegen` binary** — copied from `10x-macos\u002FResources\u002Fxcodegen` into the app\u002FCLI build products and used to generate `.xcodeproj` files for previewed apps\n\n## Getting Started\n\n1. Clone the repo:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fyour-org\u002F10x.git\n   cd 10x\n   ```\n\n2. Open in Xcode:\n   ```bash\n   open 10x-macos.xcodeproj\n   ```\n\n3. Build and run (`Cmd+R`). The app targets macOS 14+.\n\n4. On first launch, enter your API token on the login screen (or use \"Continue without Auth\" for local dev).\n\n### Environment\n\nThe app reads config from `Config.swift` plus Xcode build settings. Public defaults are placeholders, so replace them before using hosted auth, backend, or updater flows:\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `apiBaseURL` | `http:\u002F\u002Flocalhost:8000` | Backend API proxy |\n| `supabaseURL` | `https:\u002F\u002Fyour-project-ref.supabase.co` | Supabase project URL |\n| `supabaseAnonKey` | `sb_publishable_your_key` | Supabase publishable key |\n| `hostedAppsBaseURL` | `https:\u002F\u002Fapps.example.invalid` | Base URL for hosted app pages |\n| `sparkleFeedURL` | `https:\u002F\u002Fdownloads.example.invalid\u002Fappcast.xml` | Sparkle appcast feed |\n\n## Release Channels\n\nThe repo now includes a direct-download Sparkle distribution pipeline for notarized DMGs outside the Mac App Store:\n\n- Local release tooling lives in `scripts\u002Frelease\u002F`\n- CI entry workflows live in `.github\u002Fworkflows\u002Frelease-beta.yml` and `.github\u002Fworkflows\u002Frelease-stable.yml`\n- The shared reusable workflow lives in `.github\u002Fworkflows\u002Frelease-channel.yml`\n- Stable downloads publish under `https:\u002F\u002Fdownloads.example.invalid\u002Fstable`\n- Beta downloads publish under `https:\u002F\u002Fdownloads.example.invalid\u002Fbeta`\n- The canonical Sparkle feed is `https:\u002F\u002Fdownloads.example.invalid\u002Fappcast.xml`\n- The release workflows publish DMGs, appcasts, release notes, and channel metadata to Vercel behind `downloads.example.invalid`\n- Local publish artifacts default to `build\u002Frelease\u002Fpublished-site\u002F`\n- All builds use Apple web OAuth for Sign in with Apple, so the app does not ship the native `com.apple.developer.applesignin` entitlement\n\nThese release defaults are placeholders for the open-source repo. Replace them with your own domain, Sparkle keypair, Apple signing setup, and hosting configuration before publishing binaries.\n\nSee [docs\u002Fbeta-release.md](.\u002Fdocs\u002Fbeta-release.md) for the release commands, channel rules, and Apple credential requirements.\n\n## CLI Evals\n\nThe repo includes eval sources plus shell wrappers for running real end-to-end evals against the existing builder stack. The wrappers make the terminal flow simpler by listing cases, resolving a usable `10x-evals` binary, and running the default smoke suite without having to remember binary paths.\n\nQuick start:\n\n```bash\n.\u002Fscripts\u002Fevals list\n.\u002Fscripts\u002Fevals smoke\n.\u002Fscripts\u002Fevals smoke --case habit_tracker_build\n```\n\nSee [evals\u002FREADME.md](.\u002Fevals\u002FREADME.md) for the current benchmark apps, binary resolution behavior, suite format, and artifact locations.\n\n## Generated Project Layout\n\nWhen a user creates an app, 10x writes files to:\n\n```\n~\u002FLibrary\u002FDeveloper\u002FTenXApp\u002F{project-slug}\u002F\n├── ios\u002F\n│   └── {TargetName}\u002F\n│       ├── App.swift\n│       ├── ContentView.swift\n│       ├── Views\u002F\n│       ├── Models\u002F\n│       └── ...\n├── project.yml           # XcodeGen spec\n├── {TargetName}.xcodeproj\u002F  # Generated by XcodeGen\n└── DerivedData\u002F          # Local build artifacts\n```\n\n## Tech Stack\n\n- **Swift 5.9** \u002F **SwiftUI** — SwiftUI-first app with a small set of Swift package dependencies\n- **Claude API** (via proxy) — agentic tool loop with streaming\n- **XcodeGen** — generates Xcode projects from YAML specs\n- **xcodebuild + simctl** — builds and previews on iOS Simulator\n- **Supabase** — authentication (token-based MVP)\n\n## License\n\nLicensed under PolyForm Noncommercial 1.0.0. See [LICENSE](.\u002FLICENSE).\n","10x 是一个基于 AI 的 macOS 应用程序构建工具，旨在通过自然语言描述自动生成生产级别的 SwiftUI 代码，并在 Xcode 项目中进行预览。其核心功能包括使用 Claude AI 进行应用程序设计和代码生成、本地文件操作执行、Xcode 项目的自动搭建以及 iOS 模拟器中的实时预览。该应用适合需要快速原型设计或希望简化开发流程的 iOS 开发者使用。通过简洁直观的界面，用户可以轻松地从概念到成品完成整个开发过程，而无需手动编写大量代码。",2,"2026-06-11 03:30:52","CREATED_QUERY"]