
I built a Python package that syncs backend & frontend without any API endpoints — dsn-sync
Every time I started a new project, I had to write the same boilerplate — REST endpoints, WebSocket setup, Redis config, Firebase integration. I thought: what if none of this was needed? So I built dsn-sync — a Python package that lets your backend and frontend talk to each other directly, with zero API setup. The problem it solves A typical data sync stack looks like this: Backend → REST API → Controller → Route → Middleware → Frontend (Plus: Redis, Celery, WebSocket, Firebase...) With dsn-sync, it becomes: Backend → Frontend ✅ (That's it!) Installation pip install dsn-sync # Backend (Python) npm install dsn-sync-client # Frontend (JS) Quick example Backend (Python): from dsn_sync import DSNSync sync = DSNSync ( port = 3000 ) sync . start () sync . define_table ( ' users ' , { ' key ' : ' user_id ' , ' fields ' : [ ' name ' , ' email ' , ' status ' ] }) # Push data to frontend — no API needed! sync . sync ( ' users ' , ' user_123 ' , { ' name ' : ' Satish ' , ' email ' : ' satish@exam
Continue reading on Dev.to Python
Opens in a new tab



