{"id":30558248,"url":"https://github.com/vibe-stack/freed","last_synced_at":"2025-08-28T08:04:30.955Z","repository":{"id":309819025,"uuid":"1037640771","full_name":"vibe-stack/freed","owner":"vibe-stack","description":"A web based 3d editor inspired by blender, demo app for the vibe coding book","archived":false,"fork":false,"pushed_at":"2025-08-22T00:42:16.000Z","size":1055,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-22T02:36:00.441Z","etag":null,"topics":["3d","3deditor","blender","editor","threejs","web3d"],"latest_commit_sha":null,"homepage":"https://vibe-stack.github.io/freed/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vibe-stack.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}},"created_at":"2025-08-13T22:25:44.000Z","updated_at":"2025-08-22T00:42:20.000Z","dependencies_parsed_at":"2025-08-14T01:24:21.958Z","dependency_job_id":"695a67bd-d038-42e4-bbde-13fbbf141fc3","html_url":"https://github.com/vibe-stack/freed","commit_stats":null,"previous_names":["vibe-stack/freed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vibe-stack/freed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vibe-stack%2Ffreed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vibe-stack%2Ffreed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vibe-stack%2Ffreed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vibe-stack%2Ffreed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vibe-stack","download_url":"https://codeload.github.com/vibe-stack/freed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vibe-stack%2Ffreed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272466584,"owners_count":24939435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"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":["3d","3deditor","blender","editor","threejs","web3d"],"created_at":"2025-08-28T08:03:13.756Z","updated_at":"2025-08-28T08:04:30.948Z","avatar_url":"https://github.com/vibe-stack.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Gestalt - 3D Web Editor\n\nA React-first 3D editor with reactive geometry system, built with Next.js and modern web technologies.\n\n## 🚀 Features\n\n### Core Functionality\n- **Reactive Geometry System**: Built on Zustand stores with reactive data structures\n- **Dual View Modes**: Object Mode and Edit Mode for different interaction paradigms\n- **Component Selection**: Vertex, Edge, and Face selection in Edit Mode\n- **Scene Hierarchy**: Nested objects with parent-child relationships\n- **Real-time Updates**: All changes are immediately reflected across the UI\n\n### T3D File Format Support\n- **Custom Format**: Proprietary `.t3d` format for saving/loading scenes\n- **Full Data Preservation**: Complete scene state including meshes, materials, hierarchy, and viewport\n- **Browser-based**: Entirely client-side export/import using ZIP compression\n- **Version Control**: Built-in version compatibility system\n- **ID Stability**: Preserves all object IDs across export/import cycles\n\n### Current Implementation\n- Multiple mesh creation and management\n- Material system with PBR properties\n- Transform operations (position, rotation, scale)\n- Selection state management\n- Viewport camera controls\n- Debug panels and test suites\n\n## 🛠️ Tech Stack\n\n- **Frontend**: Next.js 15, React 19, TypeScript\n- **State Management**: Zustand with Immer middleware\n- **3D Math**: Custom geometry utilities\n- **File Handling**: JSZip for T3D format\n- **Styling**: Tailwind CSS\n- **Development**: Turbopack for fast builds\n\n## 📁 Project Structure\n\n```\nsrc/\n├── app/                    # Next.js app directory\n├── components/             # React components\n│   ├── GeometryDebugPanel.tsx\n│   ├── T3DToolbar.tsx     # Export/Import controls\n│   ├── T3DTestSuite.tsx   # Testing utilities\n│   └── DemoContentCreator.tsx\n├── stores/                 # Zustand stores\n│   ├── geometryStore.ts   # Meshes and materials\n│   ├── sceneStore.ts      # Scene hierarchy\n│   ├── selectionStore.ts  # Selection state\n│   └── viewportStore.ts   # Camera and viewport\n├── types/                  # TypeScript definitions\n│   ├── geometry.ts        # Core 3D types\n│   └── t3d.ts            # T3D format types\n└── utils/                  # Utilities\n    ├── geometry.ts        # Math and geometry helpers\n    ├── t3dExporter.ts     # T3D export functionality\n    └── t3dImporter.ts     # T3D import functionality\n```\n\n## 🎮 Usage\n\n### Getting Started\n\n1. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n2. **Run development server**:\n   ```bash\n   npm run dev\n   ```\n\n3. **Open in browser**: Navigate to `http://localhost:3000`\n\n### Basic Workflow\n\n1. **Create Demo Content**: Click \"Create Demo Scene\" to populate the scene\n2. **Switch Modes**: Use Tab key to toggle between Object and Edit modes\n3. **Select Elements**: Click objects/vertices/edges/faces based on current mode\n4. **Export Scene**: Click \"Export as .t3d\" to save your work\n5. **Import Scene**: Click \"Import .t3d\" to load a saved scene\n\n### Keyboard Shortcuts\n\n- **Tab**: Toggle between Object Mode and Edit Mode\n- **1**: Switch to Vertex selection (Edit Mode)\n- **2**: Switch to Edge selection (Edit Mode)  \n- **3**: Switch to Face selection (Edit Mode)\n- **Alt+A** or **Esc**: Clear all selections\n\n## 📄 T3D File Format\n\nThe T3D format is a ZIP archive containing:\n\n- `scene.json`: Complete scene data in JSON format\n- `assets/`: Folder for textures and other assets (future)\n\n### Key Features:\n- **Versioned**: Semantic versioning for compatibility\n- **Complete**: Preserves all scene data including IDs\n- **Compressed**: ZIP compression for smaller files\n- **Extensible**: Designed for future enhancements\n\nSee [T3D_FORMAT.md](./T3D_FORMAT.md) for detailed specification.\n\n## 🧪 Testing\n\nThe project includes comprehensive testing tools:\n\n- **T3D Test Suite**: Automated round-trip testing for export/import\n- **Filter Tests**: Verify selective export functionality\n- **Demo Content**: Sample scenes for testing\n\nRun tests through the web interface or use the programmatic test suite.\n\n## 🏗️ Development\n\n### Architecture\n\nThe application follows a reactive architecture pattern:\n\n1. **Stores**: Centralized state management with Zustand\n2. **Components**: React components that subscribe to store changes\n3. **Utilities**: Pure functions for calculations and data transformations\n4. **Types**: Comprehensive TypeScript definitions\n\n### Adding Features\n\n1. **Define Types**: Add TypeScript definitions in `src/types/`\n2. **Update Stores**: Extend Zustand stores with new state and actions\n3. **Create Components**: Build React components that consume store data\n4. **Add Utilities**: Implement pure functions for complex operations\n\n### Code Style\n\n- **Functional Components**: Use React function components with hooks\n- **Immutable Updates**: All state changes use Immer for immutability\n- **TypeScript**: Strict typing for all code\n- **Modular**: Clear separation of concerns\n\n## 🚧 Current Status\n\n**Phase 1: Reactive Foundation** ✅\n- Core stores and data structures implemented\n- Basic geometry creation and manipulation\n- Selection system with dual modes\n- Scene hierarchy management\n\n**Phase 2: File System** ✅\n- T3D format design and implementation\n- Export/import functionality\n- Data integrity testing\n- Browser-based file operations\n\n**Phase 3: 3D Rendering** (Coming Soon)\n- Three.js integration\n- Real-time 3D viewport\n- Material rendering\n- Interactive 3D manipulators\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests if applicable\n5. Submit a pull request\n\n## 📝 License\n\nThis project is in active development. License to be determined.\n\n## 🔮 Roadmap\n\n- [ ] 3D viewport with Three.js\n- [ ] Interactive transformers and gizmos  \n- [ ] Advanced material system\n- [ ] Animation timeline\n- [ ] Plugin system\n- [ ] Multi-user collaboration\n- [ ] Cloud storage integration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvibe-stack%2Ffreed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvibe-stack%2Ffreed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvibe-stack%2Ffreed/lists"}