DevSync is a secure and encrypted code/text-sharing platform designed for developers and teams. Built with a layered architecture, it ensures privacy, real-time access, and efficient handling of data.
The system is designed using a modular approach with different layers handling specific responsibilities.
- Next.js UI β Modern, responsive frontend for user interaction.
- Form Validation β Ensures proper input before submission.
- API Call Handling β Manages communication with the backend.
- Middleware β Processes incoming requests.
- Request Processing β Handles incoming API calls.
- Authentication β Secure access control.
- Rate Limiting β Prevents abuse and excessive usage.
- Data Validation β Ensures data integrity before storing.
- Storage Logic β Manages how data is written to the database.
- Retrieval Logic β Handles fetching of stored data.
- Optional Encryption β Encrypts stored snippets for enhanced security.
- PostgreSQL β Stores encrypted text/code snippets.
- Schema:
Key
β Unique identifier for each snippet.Text
β Encrypted or raw text data.Created_at
β Timestamp of snippet creation.Expiration_time
β Auto-deletion schedule for snippets.
- Input Sanitization β Prevents SQL injection and XSS attacks.
- Logging & Monitoring β Tracks system activity for security and debugging.
- Expiry System β Removes expired snippets automatically.
- Alerts & Logs β Monitors system health and security events.
β
End-to-End Encryption for private sharing
β
Self-destructing Snippets with expiration controls
β
Real-time API for developers
β
Secure & Scalable PostgreSQL Backend
- User submits code/snippet via the Next.js UI.
- The API Gateway authenticates and processes the request.
- The Business Logic Layer validates and optionally encrypts data.
- Snippet is stored securely in PostgreSQL with an expiration time.
- Expired snippets are deleted automatically via background jobs.
To deploy DevSync, follow these steps:
git clone https://github.com/Suhaib3100/DevSync.git
cd DevSync
docker-compose up -d
- Frontend: Next.js
- Backend: Node.js, Express.js
- Database: PostgreSQL
- Security: JWT Authentication, Input Sanitization
- Hosting: Docker, Cloud Deployment
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.