blog

Announcing django-typescript-routes

Open-sourcing our Python-to-Typescript route generator

Announcing django-typescript-routes

Buttondown's contribution to open source software is long overdue; we, like every other piece of software out there, stand on the shoulders of giants.

Many parts of Buttondown do not make sense to open source: they are overfitted, finnicky, or otherwise engineered in a manner that makes them a poor choice of software for community usage and/or stewardship.

But there are many parts which I suspect would be useful as open source projects, and I'm excited to announce the first of many such initiatives: the dryly (but descriptively!) named django-typescript-routes.

Check out the repository here.

django-typescript-routes is a way to connect the URLs of your Django application to a Typescript app. That's all it does: you provide a urlconf, it spits out a URL object.

This is tremendously useful to get some of the benefits of strong typing even when you're using Python to power your SPA. It's a small utility, but one that has prevented countless bugs in production — I hope you find it useful.

Published on

August 23, 2023

Filed under

Written by

Justin Duke

Justin Duke is a software engineer, lover of words, and the creator of Buttondown.

No credit card required. Only pay for what you use. Cancel anytime.