{"id":29219593,"url":"https://github.com/asmatrahman/excel-spreadsheet","last_synced_at":"2026-04-24T12:07:38.346Z","repository":{"id":302460266,"uuid":"1012511891","full_name":"asmatrahman/excel-spreadsheet","owner":"asmatrahman","description":"A modern, responsive spreadsheet component built with Next.js 15, TypeScript, and Tailwind CSS.","archived":false,"fork":false,"pushed_at":"2025-07-02T13:17:27.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T14:31:00.878Z","etag":null,"topics":["nextjs15","reactcontextapi","tailwindcss","typescript","usereducer"],"latest_commit_sha":null,"homepage":"https://asmatrahman.github.io/excel-spreadsheet/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asmatrahman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T12:51:38.000Z","updated_at":"2025-07-02T13:17:30.000Z","dependencies_parsed_at":"2025-07-02T14:32:59.138Z","dependency_job_id":"6b787b29-fcc5-44c2-9725-ad216dcb06ff","html_url":"https://github.com/asmatrahman/excel-spreadsheet","commit_stats":null,"previous_names":["asmatrahman/excel-spreadsheet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asmatrahman/excel-spreadsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asmatrahman%2Fexcel-spreadsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asmatrahman%2Fexcel-spreadsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asmatrahman%2Fexcel-spreadsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asmatrahman%2Fexcel-spreadsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asmatrahman","download_url":"https://codeload.github.com/asmatrahman/excel-spreadsheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asmatrahman%2Fexcel-spreadsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs15","reactcontextapi","tailwindcss","typescript","usereducer"],"created_at":"2025-07-03T02:05:49.913Z","updated_at":"2026-04-24T12:07:38.319Z","avatar_url":"https://github.com/asmatrahman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Excel Spreadsheet Component\n\n![Excel Spreadsheet Demo](/public/cover.png)\n\n\u003e **Excel Spreadsheet** is a modern, responsive spreadsheet component built with Next.js 15, TypeScript, and Tailwind CSS.\nvisit: https://asmatrahman.github.io/excel-spreadsheet/\n---\nA modern, responsive spreadsheet component built with Next.js 15, TypeScript, and Tailwind CSS.\n\n## Features\n\n- **Grid Layout**: 18×15 cell grid with column headers (A-Z) and row numbers\n- **Cell Interaction**: Click to select, double-click to edit, keyboard navigation\n- **Formula Support**: Basic math operations (+, -, *, /) with cell references (A1, B2, etc.)\n- **Error Handling**: Circular reference detection and graceful error display\n- **Persistence**: Automatic save/load to localStorage\n- **Accessibility**: Full keyboard navigation and screen reader support\n- **Responsive Design**: Modern, minimal UI that adapts to different screen sizes\n\n## Getting Started\n\n1. Install dependencies:\n```bash\nnpm install\n```\n\n2. Run the development server:\n```bash\nnpm run dev\n```\n\n3. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Usage\n\n- **Navigation**: Use arrow keys to move between cells\n- **Editing**: Double-click a cell or press Enter to start editing\n- **Formulas**: Start with `=` (e.g., `=A1+B2*3`, `=SUM(A1:A5)`)\n- **Save**: Press Enter or click outside to save changes\n- **Delete**: Press Delete or Backspace to clear cell content\n\n## Architecture\n\n### State Management\nUses React Context with useReducer for centralized state management. The state includes:\n- Cell data (raw values, computed values, errors)\n- Selection and editing state\n- Grid dimensions\n\n### Formula Parser\nCustom-built expression evaluator that:\n- Parses cell references (A1, B2, etc.)\n- Evaluates mathematical expressions with proper operator precedence\n- Detects and prevents circular references\n- Handles errors gracefully\n\n### Components\n- `Spreadsheet`: Main container with state management\n- `Cell`: Individual cell component with editing capabilities\n- Custom hooks for spreadsheet context\n\n### Persistence\nAutomatically saves grid state to localStorage and restores on page load.\n\n## Technical Decisions\n\n1. **React Context + useReducer**: Chosen for built-in state management without external dependencies\n2. **Custom Formula Parser**: Implemented from scratch for full control and learning purposes\n3. **Tailwind CSS**: For rapid, consistent styling with responsive design\n4. **TypeScript**: For type safety and better developer experience\n5. **Accessibility First**: Full keyboard navigation and ARIA labels for screen readers\n\n## Future Enhancements\n\n- More formula functions (SUM, AVERAGE, etc.)\n- Cell formatting (bold, italic, colors)\n- Row/column insertion and deletion\n- Import/export functionality\n- Collaborative editing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasmatrahman%2Fexcel-spreadsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasmatrahman%2Fexcel-spreadsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasmatrahman%2Fexcel-spreadsheet/lists"}