{"id":22551245,"url":"https://github.com/sing1ee/code-zero","last_synced_at":"2025-08-11T07:09:02.804Z","repository":{"id":258969643,"uuid":"865989515","full_name":"sing1ee/code-zero","owner":"sing1ee","description":"Code Zero is a Next.js-based web application that provides an innovative platform for thinking and visualization. It leverages modern web technologies to create an interactive and user-friendly experience.","archived":false,"fork":false,"pushed_at":"2024-12-18T07:45:09.000Z","size":1496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T10:35:46.341Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sing1ee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-10-01T13:11:28.000Z","updated_at":"2024-12-18T07:45:12.000Z","dependencies_parsed_at":"2024-12-18T08:36:09.329Z","dependency_job_id":null,"html_url":"https://github.com/sing1ee/code-zero","commit_stats":null,"previous_names":["sing1ee/code-zero"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fcode-zero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fcode-zero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fcode-zero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fcode-zero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sing1ee","download_url":"https://codeload.github.com/sing1ee/code-zero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009076,"owners_count":20708881,"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","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":"2024-12-07T17:11:40.191Z","updated_at":"2025-03-28T10:12:04.124Z","avatar_url":"https://github.com/sing1ee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Zero\n\nCode Zero is a Next.js-based web application that provides an innovative platform for thinking and visualization. It leverages modern web technologies to create an interactive and user-friendly experience for brainstorming and idea management.\n\n## Features\n\n- User authentication (login and registration)\n- Interactive chat sessions with different AI assistants\n- Visualization of thoughts and ideas using Mermaid diagrams and SVG cards\n- Dark mode support\n- Responsive design for both desktop and mobile\n- Secure JWT-based authentication\n- Real-time updates and chat history\n\n## Technologies Used\n\n- [Next.js 14](https://nextjs.org/) with App Router\n- [React](https://reactjs.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [Tailwind CSS](https://tailwindcss.com/) for styling\n- [Shadcn UI](https://ui.shadcn.com/) for UI components\n- [Drizzle ORM](https://orm.drizzle.team/) for database operations\n- [PostgreSQL](https://www.postgresql.org/) as the database\n- [JSON Web Tokens (JWT)](https://jwt.io/) for authentication\n- [Radix UI](https://www.radix-ui.com/) for accessible UI primitives\n- [Vercel AI SDK](https://sdk.vercel.ai/) for AI-powered chat functionality\n- [Mermaid](https://mermaid-js.github.io/mermaid/#/) for diagram generation\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v18 or later)\n- pnpm\n- PostgreSQL database\n\n### Installation\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/sing1ee/code-zero.git\n   cd code-zero\n   ```\n\n2. Install dependencies:\n\n   ```\n   pnpm install\n   ```\n\n3. Set up environment variables:\n   Create a `.env` file in the root directory and add the following:\n\n   ```\n   DATABASE_URL=your_postgresql_connection_string\n   JWT_SECRET=your_jwt_secret\n   ```\n\n4. Run database migrations:\n\n   ```\n   pnpm db:generate\n   pnpm db:push\n   ```\n\n5. Start the development server:\n\n   ```\n   pnpm dev\n   ```\n\n6. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\n- `app/`: Contains the main application code\n  - `api/`: API routes for authentication, chat sessions, and other server-side operations\n  - `auth/`: Authentication-related pages (login, register)\n  - `components/`: Reusable React components\n  - `contexts/`: React context providers (e.g., ChatSessionContext)\n  - `hooks/`: Custom React hooks\n  - `lib/`: Utility functions, database configuration, and schemas\n  - `types/`: TypeScript type definitions\n- `public/`: Static assets\n- `drizzle/`: Database migration files\n\n## Features\n\n### Authentication\n\nThe application uses JWT-based authentication. Users can register and login, and the JWT token is stored in the browser's local storage. The AuthLayout component ensures that protected routes are only accessible to authenticated users.\n\n### Chat Sessions\n\nUsers can create and manage multiple chat sessions with different AI assistants, including:\n\n- Text Assistant\n- Mermaid Assistant (for diagram generation)\n- SVG Card Assistant\n- Development Assistant\n- Chatbot\n\n### Responsive Design\n\nThe application features a responsive design that works well on both desktop and mobile devices. It includes a collapsible sidebar for easy navigation on smaller screens.\n\n## Development\n\n- This project uses [Prettier](https://prettier.io/) for code formatting. It runs automatically before each commit.\n- [ESLint](https://eslint.org/) is configured for code linting.\n- [Husky](https://typicode.github.io/husky/#/) is set up to run pre-commit hooks.\n\n## Deployment\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fcode-zero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsing1ee%2Fcode-zero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fcode-zero/lists"}