{"id":30785258,"url":"https://github.com/ullaskunder3/node-editor-api","last_synced_at":"2026-04-17T05:02:11.262Z","repository":{"id":310615729,"uuid":"1039887888","full_name":"ullaskunder3/node-editor-api","owner":"ullaskunder3","description":"This is the backend service for the Full Stack Node Editor project. It is built with FastAPI and provides APIs for validating and processing node-based pipelines.","archived":false,"fork":false,"pushed_at":"2025-08-19T06:55:12.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-05T11:58:53.425Z","etag":null,"topics":["dag","fastapi","graph","onrender-deploy","react","react-flow"],"latest_commit_sha":null,"homepage":"https://node-editor-api.onrender.com","language":"Python","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/ullaskunder3.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-18T06:17:43.000Z","updated_at":"2025-08-25T18:01:39.000Z","dependencies_parsed_at":"2025-08-19T08:41:27.574Z","dependency_job_id":"8af65c24-22bb-417c-8af9-d292ec3e4653","html_url":"https://github.com/ullaskunder3/node-editor-api","commit_stats":null,"previous_names":["ullaskunder3/node-editor-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ullaskunder3/node-editor-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fnode-editor-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fnode-editor-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fnode-editor-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fnode-editor-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ullaskunder3","download_url":"https://codeload.github.com/ullaskunder3/node-editor-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fnode-editor-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["dag","fastapi","graph","onrender-deploy","react","react-flow"],"created_at":"2025-09-05T11:52:28.348Z","updated_at":"2026-04-17T05:02:11.257Z","avatar_url":"https://github.com/ullaskunder3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full Stack Node Editor – Backend\n\nThis is the **backend service** for the **Full Stack Node Editor** project.  \nIt is built with [FastAPI](https://fastapi.tiangolo.com/) and provides APIs for validating and processing node-based pipelines.\n\n## 🚀 Features\n\n- **FastAPI** server with CORS enabled (frontend at `http://localhost:5173`).\n- **Pipeline validation** endpoint:\n  - Accepts a list of nodes and edges.\n  - Runs a DAG (Directed Acyclic Graph) check using **Kahn’s Algorithm**.\n  - Detects cycles in the pipeline graph.\n- Ready to integrate with the frontend editor.\n\n## 📦 Requirements\n\n- Python **3.9+**\n- Dependencies listed in `requirements.txt`\n\nInstall them:\n\n```bash\npip install -r requirements.txt\n```\n\n## ▶️ Run the Server\n\nStart the backend locally with:\n\n```bash\nuvicorn main:app --reload\n```\n\nThe API will be available at:\n\n```\nhttp://127.0.0.1:8000\n```\n\n## 📡 API Endpoints\n\n### `GET /`\n\nSimple health check.\n\n**Response**\n\n```json\n{ \"Ping\": \"Pong\" }\n```\n\n### `POST /pipelines/parse`\n\nValidate a pipeline by checking if it is a **valid DAG**.\n\n**Request Body**\n\n```json\n{\n  \"nodes\": [\n    { \"id\": \"1\", \"type\": \"Start\", \"position\": { \"x\": 0, \"y\": 0 }, \"data\": {} },\n    {\n      \"id\": \"2\",\n      \"type\": \"Task\",\n      \"position\": { \"x\": 100, \"y\": 100 },\n      \"data\": {}\n    }\n  ],\n  \"edges\": [{ \"id\": \"e1-2\", \"source\": \"1\", \"target\": \"2\" }]\n}\n```\n\n**Response**\n\n```json\n{\n  \"num_nodes\": 2,\n  \"num_edges\": 1,\n  \"is_dag\": true,\n  \"message\": \"Pipeline is valid and ready for execution.\"\n}\n```\n\n---\n\n## 🛠 Development Notes\n\n- CORS allows requests from the frontend (`http://localhost:5173`).\n- Modify `origins` in `main.py` to allow other clients.\n- Future extension: Add execution engine for pipelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fnode-editor-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fullaskunder3%2Fnode-editor-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fnode-editor-api/lists"}