How himanshu3889/acd-ladders works
Project type and purpose
• This is a full-stackish single-page application built with Next.js (React) focused on filtering and analyzing Codeforces problems.
• There is no custom backend in this repo; instead, the “backend” is a Next.js serverless layer that fetches data from the Codeforces API and serves pre-rendered pages or API routes.
• Key purpose: Let users enter filter criteria, fetch problems/submissions from Codeforces, process them (using custom algorithms and data structures), and present interactive charts and tables.
File structure
• pages/ – Next.js routes (SSR/SSG), e.g. pages/index.tsx, pages/v2/analytics/cf/index.tsx
• app/store.ts – Redux Toolkit store setup
• features/ – Redux “slices” and async actions (contests, problems, user, filters, etc.)
• components/ – UI layer, subdivided by feature (analytics, layouts, sidebars, textSearch)
• service/ – facade over external APIs (codeforces.ts, acdLadders.ts), storage adapters (cookie, local, session), notificationService
• utils/ – pure helper functions and data structures (algorithms, analytics processors, fenwickTree)
• configs/constants.ts – global constants
• styles/, tailwind.config.js – theming and CSS
• next.config.js, tsconfig.json, .eslintrc.json – build and lint tooling
README for additional insights
• Confirms reliance on Next.js, React, Tailwind CSS
• Highlights advanced filtering algorithms (maps, sets, pointers, string algorithms)