How do you manage typing between Django backend and a TypeScript frontend?

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • django-mini-fastapi

    A minimal FastAPI implementation for Django !

  • Paste JSON as Code • quicktype

    Xcode extension to paste JSON as Swift, Objective-C, and more

    I actually worked in a company that used this, my work involved doing the frontend with nextjs, so basically I’d use https://quicktype.io to create the types for the api written in Django, not the best process considering that there’s this amazing library called tRPC that merges front and back altogether end to end type safe

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • pydantic

    Data validation using Python type hints

    I'd suggest checking out Pydantic if you haven't already: https://docs.pydantic.dev/

  • django-ninja

    💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

    But it seems that its doing what django-ninja is doing. Is there any difference between these 2 packages?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts