Building a Multi-Tenant CMS with Next.js and Hasura
How I built Unity Sites, a platform where one Next.js app serves hundreds of different portfolio sites, each with its own content and theme.
Writing on software, open source, and technical deep-dives.
How I built Unity Sites, a platform where one Next.js app serves hundreds of different portfolio sites, each with its own content and theme.
You probably do not need Redis, Elasticsearch, or a separate analytics database. PostgreSQL handles all of it, and it has for years.
After years of writing REST endpoints and GraphQL resolvers by hand, Hasura gives me the whole API from a Postgres schema. Here is why I made the switch.
nSelf started as a 200-line bash script that stood up Docker containers. Now it is a proper CLI with 30+ commands. Here is how it grew.
Managed databases cost $20-100/month for what is essentially a $4 VPS with a nice UI. I got tired of this and built nSelf to make self-hosting as easy as one command.
The NREL SPA is a 4,000-line C program that calculates solar position to 0.0003 degree accuracy. I ported it to TypeScript and kept the precision.