{"id":28427273,"url":"https://github.com/harsh-panchal-804/code-ninja","last_synced_at":"2026-04-13T08:31:33.171Z","repository":{"id":296365178,"uuid":"993095193","full_name":"harsh-panchal-804/Code-Ninja","owner":"harsh-panchal-804","description":"An online code editor and compiler built with Next.js, using Monaco Editor for a VS Code–like experience and Piston API to run code in 10+ languages. It features Clerk for authentication and Convex as a real-time serverless database for saving and sharing code. It also features an integrated AI assistant for writing code.","archived":false,"fork":false,"pushed_at":"2025-06-06T11:33:10.000Z","size":20395,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T06:38:51.579Z","etag":null,"topics":["artificial-intelligence","clerk-authentication","convex","monaco-editor","nextjs","piston-api"],"latest_commit_sha":null,"homepage":"https://code-ninja-sand.vercel.app","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/harsh-panchal-804.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-05-30T07:53:41.000Z","updated_at":"2025-07-23T11:45:55.000Z","dependencies_parsed_at":"2025-05-30T11:24:02.890Z","dependency_job_id":"41f6a38a-e2f8-426b-a21a-05a71ff5efb4","html_url":"https://github.com/harsh-panchal-804/Code-Ninja","commit_stats":null,"previous_names":["harsh-panchal-804/code-ninja"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harsh-panchal-804/Code-Ninja","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-panchal-804%2FCode-Ninja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-panchal-804%2FCode-Ninja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-panchal-804%2FCode-Ninja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-panchal-804%2FCode-Ninja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harsh-panchal-804","download_url":"https://codeload.github.com/harsh-panchal-804/Code-Ninja/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-panchal-804%2FCode-Ninja/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"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":["artificial-intelligence","clerk-authentication","convex","monaco-editor","nextjs","piston-api"],"created_at":"2025-06-05T12:10:15.094Z","updated_at":"2026-04-13T08:31:33.156Z","avatar_url":"https://github.com/harsh-panchal-804.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Online Code Editor and Compiler\n\nAn online code editor and compiler built with Next.js, using Monaco Editor for a VS Code–like experience and Piston API to run code in 10+ languages. Features Clerk for authentication, Convex as a real-time serverless database for saving and sharing code, and an integrated AI assistant for writing code.\n\n---\n\n## Demo\n\n**[Deployed on Vercel](https://code-ninja-sand.vercel.app/)**\n\n\nWatch the demo (It takes some time to load or go to the demo_video folder ) -\u003e\n![Demo GIF](demo_video/code-ninja-video.gif)\n\n\n\n---\n\n## Features\n\n- **Monaco-Based Code Editor:**  \n  - Embeds Microsoft’s Monaco Editor for a true VS Code–like editing experience.  \n  - Syntax highlighting, IntelliSense, and code formatting for multiple languages.\n\n- **Multilanguage Compilation \u0026 Execution:**  \n  - Integrates with the [Piston API](https://github.com/engineer-man/piston) to compile and run code in 10+ languages:\n    - JavaScript/Node.js, Python, C++, Java, Go, Rust, Ruby, PHP, C#, and more.  \n  - Secure sandboxing ensures user-submitted code cannot access the host environment.\n\n- **User Authentication (Clerk):**  \n  - Email/password and social logins via Clerk.  \n\n- **Real-Time Database (Convex):**  \n  - Stores user snippets, code executions, and comments.  \n  - Real-time syncing: when one user edits a shared snippet, collaborators see changes instantly.\n\n- **Integrated AI Assistant:**  \n  - Contextual code suggestions, completions, and “ask a question” chat powered by a custom AI endpoint (Hugging Face).  \n  \n\n- **Project \u0026 Snippet Management:**  \n  - Create, edit, and delete “code boards.”  \n  - Organize snippets by language, tags, or personal folders.  \n  - Shareable links for public or private viewing.\n\n- **Responsive UI:**  \n  - Mobile-friendly layout: collapsible sidebars, resizable editor panels.  \n\n\n## Build \\\u0026 Run\n\n### Prerequisites\n\n- **Node.js** (v16 or higher) \u0026 **Yarn** (or npm)  \n- **Next.js** (framework is included as a dependency)  \n- **Clerk account** (for authentication keys)  \n- **Convex account** (for database URL \u0026 key)  \n- **Piston API endpoint** (public instance or self-hosted)\n\n\n### Clone the Repository\n\nFirst, clone this repository to your local machine:\n\n```sh\ngit clone https://github.com/harsh-panchal-804/Code-Ninja\ncd Code-Ninja\n\n```\n### Install Dependencies\n\n```bash\nnpm install\n```\n### Environment Variables\n\nCreate a `.env.local` file in the root directory with the following variables:\n\n```bash\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=\nCLERK_SECRET_KEY=\n\nCONVEX_DEPLOYMENT=\nNEXT_PUBLIC_CONVEX_URL=\n\nNEXT_PUBLIC_HUGGINGFACE_TOKEN=\n```\n### Development Server\nBy default, the app will be available at http://localhost:3000/.\n```\nnpm run dev\n```\n\n\n\n\n\n\n\n---\n\n\n\n## Contributing\n\nPull requests and suggestions are welcome! Please open an issue to discuss changes or improvements.\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh-panchal-804%2Fcode-ninja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharsh-panchal-804%2Fcode-ninja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh-panchal-804%2Fcode-ninja/lists"}