Ask HN: Would You Use a Declarative Back End (APIs, DB, Auth, Sync)?

3 Imazadi 3 6/10/2025, 11:26:49 PM
I'm exploring the idea of building a developer tool/platform that allows you to define an entire backend (database, APIs, authentication, security rules, sync, etc.) purely through YAML files.

It’s somewhat inspired by Hasura DDN, where you can declaratively design your GraphQL layer. My vision goes further: you'd define everything in a backend/ folder using YAML — including:

Database schema: tables, relationships, constraints

Access/security rules

API channels: exposed through HTTP or MQTT

Functions: written in Dart (AoT compiled) or JavaScript

Auth setup: API keys, OAuth, JWT, etc.

Sync logic: so mobile apps can go offline and sync later

CI/CD friendly: entire backend versioned and deployed as code

This means a complete backend (DB + APIs + logic) could be spun up and deployed from source — no clicking around dashboards, just config and code.

I'm especially interested in making it work well for mobile developers (e.g. Flutter devs) who need offline-first backends or sync capabilities out of the box.

I’d love your thoughts:

Would this replace anything you’re using today?

What are the must-have features for you?

Any dealbreakers?

Too much abstraction or just right?

Thanks in advance — I'm trying to gauge if there's real demand here before going deeper. Honest feedback (especially critical) is welcome.

Comments (3)

rubicon33 · 16h ago
No, I definitely wouldn't.
fogzen · 8h ago
I think this area is still under explored. I built one of my startups using only PostgREST as the backend, and it was honestly amazing, despite the limitations. The main technical challenge was migrations and interfacing with external systems.

The bigger challenge is selling this. Only experienced programmers understand the value, but are seldom in positions of power, or are wary of locking themselves in. This only works for greenfield development. I was able to take this approach because I had been CTO developing an MVP, and even then it was a hard sell to my co-founder. Most people just can't truly grok the value because they aren't experienced programmers.

revskill · 1d ago
It is not hard but cumberstone to build such system.