coral-project

bySuyog Zagzap

hii

HomepageEditor
Homepage

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 6

System Requirements Document (SRD)

coral-project

1. Introduction

The coral-project is a web application designed to be a pixel-perfect clone of MDX.so. It aims to provide a seamless and modern Markdown-to-JSX editing experience with real-time preview capabilities. The project will include a fully functional homepage, a split-screen editor, and advanced features like dark/light themes, mobile responsiveness, and PWA readiness.

This document outlines the system requirements for the coral-project, ensuring clarity and alignment with the vision of Suyog Zagzap, the project's initiator.

Page 2 of 6

2. System Overview

The coral-project will serve as a productivity tool for developers, writers, and content creators who work with Markdown and JSX. The system will replicate the functionality and design of MDX.so while incorporating the following features:

  • A visually appealing homepage with a hero section, feature highlights, and statistics.
  • A split-screen Markdown-to-JSX editor with real-time preview capabilities.
  • Support for dark and light themes to enhance usability in different lighting conditions.
  • Mobile responsiveness to ensure usability across devices.
  • Copy, share, and download functionality for user convenience.
  • Progressive Web App (PWA) readiness for offline access and app-like behavior.

The project will leverage modern technologies such as React, Vite, Tailwind CSS, shadcn/ui, CodeMirror, and react-markdown to deliver a high-performance and user-friendly experience.

3. Functional Requirements

  • As a User, I should be able to view a pixel-perfect homepage with a hero section, feature highlights, and statistics.
  • As a User, I should be able to use a split-screen Markdown-to-JSX editor.
  • As a User, I should see real-time previews of my Markdown content rendered as JSX.
  • As a User, I should be able to toggle between dark and light themes.
  • As a User, I should be able to access the application on mobile devices with a responsive design.
  • As a User, I should be able to copy, share, and download my Markdown or JSX content.
  • As a User, I should be able to install the application as a Progressive Web App (PWA).
Page 3 of 6

4. User Personas

  1. Developer

    • Primary user of the Markdown-to-JSX editor.
    • Needs real-time preview and advanced editing features.
    • Values responsiveness and PWA functionality for on-the-go access.
  2. Content Creator

    • Uses the platform to create and share Markdown-based content.
    • Requires easy-to-use copy, share, and download features.
    • Prefers a visually appealing and intuitive interface.
  3. Casual User

    • Occasionally uses the platform for Markdown editing.
    • Appreciates the dark/light theme toggle for comfort.
    • Expects a simple and responsive design.

5. Visuals Colors and Theme

The coral-project will feature a unique and modern color palette inspired by coral reefs, reflecting vibrancy and creativity:

  • Background: #F8F9FA (Light) / #1E1E2F (Dark)
  • Surface: #FFFFFF (Light) / #2A2A3D (Dark)
  • Text: #2D3748 (Light) / #E2E8F0 (Dark)
  • Accent: #FF6F61 (Coral)
  • Muted: #CBD5E0 (Light) / #4A5568 (Dark)
Page 4 of 6

6. Signature Design Concept

The coral-project homepage will feature an interactive coral reef-inspired design.

  • Hero Section: A dynamic coral reef animation that reacts to user interactions. Hovering over coral elements will trigger subtle movements, such as swaying or glowing.
  • Split-Screen Editor: The editor will have a fluid, split-screen layout with draggable dividers. The Markdown and JSX panes will have a "glassmorphism" effect, giving them a frosted glass appearance.
  • Real-Time Preview: The preview pane will animate changes in real-time, with smooth transitions for text and elements.
  • Dark/Light Theme Toggle: A toggle switch styled as a sun/moon icon that animates when clicked, transitioning the entire theme seamlessly.
  • Micro-Interactions: Buttons and icons will have hover effects, such as slight scaling or color shifts, to enhance interactivity.

7. Non-Functional Requirements

  • The system must load within 2 seconds on a standard 4G connection.
  • The application must support the latest versions of major browsers (Chrome, Firefox, Safari, Edge).
  • The system must be accessible, adhering to WCAG 2.1 AA standards.
  • The PWA must function offline with cached assets and data.
  • The system must handle at least 1,000 concurrent users without performance degradation.

8. Tech Stack

Frontend

  • React (Web)
  • Vite
  • Tailwind CSS
  • shadcn/ui
  • CodeMirror
  • react-markdown
Page 5 of 6

Backend

  • Python
  • FastAPI

Database

  • MySQL (with Alembic for migrations)

AI Tools

  • Not applicable for this project.

Local Orchestration

  • Docker
  • docker-compose

Server-Side Orchestration

  • Kubernetes

9. Assumptions and Constraints

  • The project will be developed for users in India, with locale-specific defaults such as IST (Indian Standard Time).
  • The system will primarily target desktop and mobile web users.
  • The application will not include user authentication or account management features.
  • The project will adhere to the provided tech stack without deviations.
Page 6 of 6

10. Glossary

  • Markdown: A lightweight markup language for creating formatted text using a plain-text editor.
  • JSX: A syntax extension for JavaScript, commonly used with React to describe UI components.
  • PWA: Progressive Web App, a type of application software delivered through the web, built using common web technologies.
  • Glassmorphism: A design trend characterized by frosted glass-like elements.
  • WCAG: Web Content Accessibility Guidelines, a set of recommendations for making web content more accessible.
Homepage design preview
Homepage: View Hero
Homepage: View Features
Editor: Write Markdown
Editor: Toggle Theme
Editor: Preview JSX
Editor: Copy Content