[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-08e86110":3,"seo:featured-workflow:08e86110-4db9-11f1-9bc6-00163e2b0d79:es":84,"workflow-related-asset-08e86110-08e86110-4db9-11f1-9bc6-00163e2b0d79":85},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":13,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":15,"tags":21,"has_voted":27,"visibility":13,"share_token":11,"is_featured":12,"content_hash":28,"asset_kind":29,"target_tools":30,"install_mode":34,"entrypoint":18,"risk_profile":35,"dependencies":37,"verification":43,"agent_metadata":46,"agent_fit":59,"trust":71,"provenance":80,"created_at":82,"updated_at":83},3209,"08e86110-4db9-11f1-9bc6-00163e2b0d79","asset-08e86110","django-ninja — Fast Django REST Framework with Type Hints","django-ninja is a web framework for building APIs with Django that uses Python type hints for request validation, serialization, and automatic OpenAPI documentation generation.","8a910e34-3180-11f1-9bc6-00163e2b0d79","Script Depot","",0,1,"en",[16],{"id":17,"step_order":13,"title":18,"description":11,"prompt_template":19,"variables":11,"depends_on":20,"expected_output":11},3772,"django-ninja Overview","# django-ninja — Fast Django REST Framework with Type Hints\n\n## Quick Use\n```bash\npip install django-ninja\n```\n\n```python\nfrom ninja import NinjaAPI\n\napi = NinjaAPI()\n\n@api.get('\u002Fhello\u002F{name}')\ndef hello(request, name: str):\n    return {\"message\": f\"Hello, {name}\"}\n```\n\nAdd to `urls.py`:\n```python\nurlpatterns = [path('api\u002F', api.urls)]\n```\n\n## Introduction\ndjango-ninja brings FastAPI-style type-driven API development into the Django ecosystem. It uses Pydantic for input validation and output serialization, and generates OpenAPI documentation automatically. Developers who already have a Django project can add high-performance API endpoints without switching frameworks.\n\n## What django-ninja Does\n- Declares API endpoints using Python type hints for automatic validation\n- Generates OpenAPI\u002FSwagger documentation from endpoint signatures\n- Uses Pydantic models (Schema) for request and response serialization\n- Integrates natively with Django's ORM, authentication, and middleware\n- Supports async views when running on ASGI servers like uvicorn\n\n## Architecture Overview\ndjango-ninja registers itself as a Django URL route that dispatches incoming requests to decorated handler functions. It inspects function signatures at startup — path parameters, query parameters, body models, and headers are all derived from type annotations. Pydantic handles validation and coercion, returning 422 errors for invalid input. Response serialization uses the same Pydantic models, ensuring consistent schemas across documentation and runtime.\n\n## Self-Hosting & Configuration\n- Install with `pip install django-ninja` alongside an existing Django project\n- Create a `NinjaAPI()` instance and mount it in `urls.py`\n- Define schemas as Pydantic models for structured request\u002Fresponse validation\n- Add authentication via built-in classes: `HttpBearer`, `APIKey`, `SessionAuth`\n- Deploy on ASGI with uvicorn for async endpoint support, or standard WSGI with gunicorn\n\n## Key Features\n- Automatic OpenAPI 3.0 schema and interactive docs at `\u002Fapi\u002Fdocs`\n- Pydantic-based validation with detailed error messages\n- Full access to Django ORM, admin, auth, and all installed apps\n- Async view support for I\u002FO-bound endpoints\n- Router system for organizing endpoints into reusable modules\n\n## Comparison with Similar Tools\n- **Django REST Framework** — serializer-class approach, larger ecosystem, more boilerplate\n- **FastAPI** — standalone ASGI framework with similar type-hint API, not tied to Django\n- **Flask-RESTX** — decorator-based with Swagger, Flask ecosystem, no Pydantic integration\n- **Starlette** — lower-level ASGI toolkit, requires manual validation setup\n\n## FAQ\n**Q: Can I use django-ninja alongside Django REST Framework?**\nA: Yes. Both can coexist in the same project under different URL prefixes.\n\n**Q: Does django-ninja support file uploads?**\nA: Yes. Use `UploadedFile` type annotation in the handler signature to accept multipart file uploads.\n\n**Q: How does performance compare to FastAPI?**\nA: Request parsing and validation performance is comparable since both use Pydantic. Django's ORM adds overhead that FastAPI avoids by being database-agnostic.\n\n**Q: Is django-ninja suitable for large projects?**\nA: Yes. The router system allows splitting APIs into modules, and it inherits Django's mature project structure.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Fvitalik\u002Fdjango-ninja\n- https:\u002F\u002Fdjango-ninja.dev","0",[22],{"id":23,"name":24,"slug":25,"icon":26},11,"Scripts","script","📜",false,"8de667bf43620f2833f1b83e27c43b2911f66eff7d042266cafc6070daef92f2","skill",[31,32,33],"claude_code","codex","gemini_cli","single",{"executes_code":27,"modifies_global_config":27,"requires_secrets":36,"uses_absolute_paths":27,"network_access":27},[],{"npm":38,"pip":39,"brew":41,"system":42},[],[40],"django-ninja",[],[],{"commands":44,"expected_files":45},[],[18],{"asset_kind":29,"target_tools":47,"install_mode":34,"entrypoint":18,"risk_profile":48,"dependencies":50,"content_hash":28,"verification":55,"inferred":58},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":49,"uses_absolute_paths":27,"network_access":27},[],{"npm":51,"pip":52,"brew":53,"system":54},[],[40],[],[],{"commands":56,"expected_files":57},[],[18],true,{"target":32,"score":60,"status":61,"policy":62,"why":63,"asset_kind":29,"install_mode":34},98,"native","allow",[64,65,66,67,68,69,70],"target_tools includes codex","asset_kind skill","install_mode single","markdown-only","policy allow","safe markdown-only Codex install","trust established",{"author_trust_level":72,"verified_publisher":27,"asset_signed_hash":28,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":74,"review_status":75,"signals":76},"established","hash_only",[],"unreviewed",[77,78,79],"author has published assets","content hash available","no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":81,"content_hash":28,"visibility":13,"created_at":82,"updated_at":83},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-08e86110","2026-05-12 12:14:13","2026-05-12 16:38:28",null,[86,137,184,231],{"id":87,"uuid":88,"slug":89,"title":90,"description":91,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":60,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":92,"tags":93,"has_voted":27,"visibility":13,"share_token":11,"is_featured":12,"content_hash":95,"asset_kind":29,"target_tools":96,"install_mode":34,"entrypoint":97,"risk_profile":98,"dependencies":100,"verification":105,"agent_metadata":108,"agent_fit":120,"trust":122,"provenance":125,"created_at":127,"updated_at":128,"__relatedScore":129,"__relatedReasons":130,"__sharedTags":135},2054,"81320931-3fb6-11f1-9bc6-00163e2b0d79","react-admin-frontend-framework-admin-panels-rest-graphql-81320931","React Admin — Frontend Framework for Admin Panels on REST and GraphQL","React Admin is an open-source frontend framework for building admin interfaces and internal tools on top of REST or GraphQL APIs using React and Material Design components.",[],[94],{"id":23,"name":24,"slug":25,"icon":26},"17fda7728db5d43ef3ca5b78b95c32d9af47c3ec8a128bcc4f4162a2a061e67b",[31,32,33],"React Admin Overview",{"executes_code":27,"modifies_global_config":27,"requires_secrets":99,"uses_absolute_paths":27,"network_access":27},[],{"npm":101,"pip":102,"brew":103,"system":104},[],[],[],[],{"commands":106,"expected_files":107},[],[97],{"asset_kind":29,"target_tools":109,"install_mode":34,"entrypoint":97,"risk_profile":110,"dependencies":112,"content_hash":95,"verification":117},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":111,"uses_absolute_paths":27,"network_access":27},[],{"npm":113,"pip":114,"brew":115,"system":116},[],[],[],[],{"commands":118,"expected_files":119},[],[97],{"target":32,"score":60,"status":61,"policy":62,"why":121,"asset_kind":29,"install_mode":34},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":27,"asset_signed_hash":95,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":123,"review_status":75,"signals":124},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":126,"content_hash":95,"visibility":13,"created_at":127,"updated_at":128},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Freact-admin-frontend-framework-admin-panels-rest-graphql-81320931","2026-04-24 16:20:50","2026-05-12 13:54:05",108.99345279189633,[131,132,133,134],"topic-match","same-kind","same-target","same-author",[25,136],"scripts",{"id":138,"uuid":139,"slug":140,"title":141,"description":142,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":143,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":144,"tags":145,"has_voted":27,"visibility":13,"share_token":11,"is_featured":12,"content_hash":147,"asset_kind":29,"target_tools":148,"install_mode":34,"entrypoint":149,"risk_profile":150,"dependencies":152,"verification":157,"agent_metadata":160,"agent_fit":172,"trust":174,"provenance":177,"created_at":179,"updated_at":180,"__relatedScore":181,"__relatedReasons":182,"__sharedTags":183},2885,"0173bb93-4bc2-11f1-9bc6-00163e2b0d79","asset-0173bb93","React-Admin — Frontend Framework for Admin Apps on REST\u002FGraphQL","A full-featured frontend framework for building single-page admin applications on top of REST or GraphQL APIs, using TypeScript, React, and Material Design.",19,[],[146],{"id":23,"name":24,"slug":25,"icon":26},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",[31,32,33],"SKILL.md",{"executes_code":27,"modifies_global_config":27,"requires_secrets":151,"uses_absolute_paths":27,"network_access":27},[],{"npm":153,"pip":154,"brew":155,"system":156},[],[],[],[],{"commands":158,"expected_files":159},[],[],{"asset_kind":29,"target_tools":161,"install_mode":34,"entrypoint":149,"risk_profile":162,"dependencies":164,"content_hash":147,"verification":169,"inferred":58},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":163,"uses_absolute_paths":27,"network_access":27},[],{"npm":165,"pip":166,"brew":167,"system":168},[],[],[],[],{"commands":170,"expected_files":171},[],[],{"target":32,"score":60,"status":61,"policy":62,"why":173,"asset_kind":29,"install_mode":34},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":27,"asset_signed_hash":147,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":175,"review_status":75,"signals":176},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":178,"content_hash":147,"visibility":13,"created_at":179,"updated_at":180},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-0173bb93","2026-05-10 00:13:24","2026-05-12 18:16:38",107.95154499349597,[131,132,133,134],[25,136],{"id":185,"uuid":186,"slug":187,"title":188,"description":189,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":190,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":191,"tags":192,"has_voted":27,"visibility":13,"share_token":11,"is_featured":12,"content_hash":194,"asset_kind":29,"target_tools":195,"install_mode":34,"entrypoint":196,"risk_profile":197,"dependencies":199,"verification":204,"agent_metadata":207,"agent_fit":219,"trust":221,"provenance":224,"created_at":226,"updated_at":227,"__relatedScore":228,"__relatedReasons":229,"__sharedTags":230},2050,"23b0242e-3fb6-11f1-9bc6-00163e2b0d79","hexo-fast-node-js-blog-framework-plugin-ecosystem-23b0242e","Hexo — Fast Node.js Blog Framework with Plugin Ecosystem","Hexo is a fast, simple, and extensible blog framework powered by Node.js. It renders Markdown posts into static HTML in seconds and supports hundreds of themes and plugins.",80,[],[193],{"id":23,"name":24,"slug":25,"icon":26},"394cc3bc2c5f3797522d9e189779233ce44258711f986c8a47475ae253a82360",[31,32,33],"Hexo Overview",{"executes_code":27,"modifies_global_config":27,"requires_secrets":198,"uses_absolute_paths":27,"network_access":27},[],{"npm":200,"pip":201,"brew":202,"system":203},[],[],[],[],{"commands":205,"expected_files":206},[],[196],{"asset_kind":29,"target_tools":208,"install_mode":34,"entrypoint":196,"risk_profile":209,"dependencies":211,"content_hash":194,"verification":216},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":210,"uses_absolute_paths":27,"network_access":27},[],{"npm":212,"pip":213,"brew":214,"system":215},[],[],[],[],{"commands":217,"expected_files":218},[],[196],{"target":32,"score":60,"status":61,"policy":62,"why":220,"asset_kind":29,"install_mode":34},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":27,"asset_signed_hash":194,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":222,"review_status":75,"signals":223},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":225,"content_hash":194,"visibility":13,"created_at":226,"updated_at":227},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fhexo-fast-node-js-blog-framework-plugin-ecosystem-23b0242e","2026-04-24 16:18:14","2026-05-12 19:17:45",102.86272752831798,[131,132,133,134],[25,136],{"id":232,"uuid":233,"slug":234,"title":235,"description":236,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":237,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":238,"tags":239,"has_voted":27,"visibility":13,"share_token":11,"is_featured":12,"content_hash":241,"asset_kind":29,"target_tools":242,"install_mode":34,"entrypoint":243,"risk_profile":244,"dependencies":246,"verification":251,"agent_metadata":254,"agent_fit":266,"trust":268,"provenance":271,"created_at":273,"updated_at":274,"__relatedScore":275,"__relatedReasons":276,"__sharedTags":277},1860,"74a362ce-3cf6-11f1-9bc6-00163e2b0d79","litestar-high-performance-python-asgi-web-framework-74a362ce","Litestar — High-Performance Python ASGI Web Framework","Litestar is a powerful, flexible, and opinionated ASGI web framework for building modern Python APIs with class-based controllers, dependency injection, and automatic OpenAPI docs.",58,[],[240],{"id":23,"name":24,"slug":25,"icon":26},"598635cae06ddc471c67f87983bc2433ec27a1630b301c505e723c605e0da6df",[31,32,33],"Litestar Overview",{"executes_code":27,"modifies_global_config":27,"requires_secrets":245,"uses_absolute_paths":27,"network_access":27},[],{"npm":247,"pip":248,"brew":249,"system":250},[],[],[],[],{"commands":252,"expected_files":253},[],[243],{"asset_kind":29,"target_tools":255,"install_mode":34,"entrypoint":243,"risk_profile":256,"dependencies":258,"content_hash":241,"verification":263},[31,32,33],{"executes_code":27,"modifies_global_config":27,"requires_secrets":257,"uses_absolute_paths":27,"network_access":27},[],{"npm":259,"pip":260,"brew":261,"system":262},[],[],[],[],{"commands":264,"expected_files":265},[],[243],{"target":32,"score":60,"status":61,"policy":62,"why":267,"asset_kind":29,"install_mode":34},[64,65,66,67,68,69,70],{"author_trust_level":72,"verified_publisher":27,"asset_signed_hash":241,"signature_status":73,"install_count":12,"report_count":12,"dangerous_capability_badges":269,"review_status":75,"signals":270},[],[77,78,79],{"owner_uuid":9,"owner_name":10,"source_url":272,"content_hash":241,"visibility":13,"created_at":273,"updated_at":274},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Flitestar-high-performance-python-asgi-web-framework-74a362ce","2026-04-21 04:21:04","2026-05-12 10:43:13",100.65627801746322,[131,132,133,134],[25,136]]