Skip to content

About

2ru17's CS Notes Archive

Topics

Resources

Contributing

Stars

19 stars

Watchers

2 watching

Forks

Repository files navigation

Project Engram

Interactive Computer Science Monograph Archive, Pedagogical Simulator Suite, & Relativistic Knowledge Graph

1. Overview

Project Engram is a full-stack academic knowledge platform and engineering portfolio that synthesizes a Computer Science curriculum and applied Special Strands into an interconnected digital archive. It combines rigorous technical monographs, cycle-accurate interactive systems simulators, automated self-assessment engines, and a $60\text{ fps}$ force-directed Engram Knowledge Graph centered on the Computer Science root hub.


2. Documentation Index

Architectural standards, structural boundaries, and implementation workflows are maintained in the repository documentation suite:

  • README.md — Project overview, technology stack, quick-start setup, and script reference.
  • CONTRIBUTING.md — Contribution guidelines, simulator registration workflow, monograph & Special Strand formatting rules, and pull request standards.
  • docs/DESIGN.md — System architecture, 5-Universe Design System tokens, Engram Knowledge Graph rendering engine, and performance/security invariants.
  • docs/Structure.md — Repository directory topology, academic vault (1st Year–4th Year) & Strands/ organization, module naming rules, and dependency boundaries.
  • docs/Implementation-guide.md — Step-by-step developer guide for building simulator workbenches, extending the Markdown/MCQ parser pipeline, and running verification checks.

3. Core Capabilities

  • 640 Curated Monographs (614 Academic across 26 CS Courses + 26 Special Strand Notes): Deep-dive technical notes featuring formal mathematical derivations (KaTeX), client-side architecture and state diagrams (Mermaid v12), annotated code implementations, and bidirectional [[WikiLink]] navigation meshes.
  • Special Strands (content/Main Notes/Strands/, /notes/strands/ctf): Non-year practitioner curricula registered in src/lib/strands.ts—starting with Capture The Flag (CTF) across 10 categories (Triage and CLI, Steganography, Forensics, Cryptography, Web Security, Reverse Engineering, Binary Exploitation, OSINT, Scripting and Misc, Reference) plus upcoming Coming Soon strand shells.
  • Interactive Self-Assessment Engine (MCQSection.tsx): Parses structured Markdown assessment blocks (A)-D), [MSQ], [INPUT] with optional [=exact] case-sensitive grading, and [BLANK] tables) into interactive quizzes with instant distractor rationales and keyboard accessibility.
  • 29 Pedagogical Engineering Simulators: Interactive laboratory workbenches spanning Systems (CPU pipelining, virtual memory paging), Security & Networking (TCP congestion control, cryptographic avalanche diffusion, AppSec sanitizer), Theory (graph pathfinding, automata tape machines), and Software/Databases ($\text{B}^+$ tree indexing and MVCC transactions).
  • Engram Knowledge Graph: A custom HTML5 Canvas force-directed graph rendering the central Computer Science hub at $(0, 0)$, 26 Course Stars, Special Strands, and 640 orbiting monographs with 1-hop constellation isolation.
  • 5-Universe Design System: Supports the default Cyber-Zen tech-noir aesthetic (Dark/Light modes) alongside four locked single-mode universes (Neo-Brutalism, Minimalism, Parallax, and Broken-Grid) switched via the Universe Warp Jump.

4. Technology Stack

  • Framework & Runtime: Next.js 16 (App Router), React 19, TypeScript, Node.js ($\ge 22.0.0$)
  • Styling & Motion: Tailwind CSS v4, CSS Custom Properties (data-universe), Motion (ease: [0.16, 1, 0.3, 1])
  • Visualization & Diagrams: react-force-graph-2d (HTML5 Canvas), Mermaid.js v12 (securityLevel: "antiscript"), KaTeX
  • Content & Security Pipeline: Asynchronous Node.js fs.promises, Unified / Remark / Rehype, rehype-sanitize strict HAST allowlist, and dompurify (@/lib/sanitize)

5. Quick Start

Prerequisites

  • Node.js $\ge 22.0.0$
  • npm (standard package manager for this repository)

Installation & Local Development

  1. Clone the repository:

    git clone https://github.com/2ru17/Project-Engram.git
    cd Project-Engram
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

    Open http://localhost:3000 in your browser.

  4. Author & validate academic & Special Strand monographs (Direct In-Repo Editing):

    1. Edit or create academic .md monographs inside ./content/Main Notes/<Year>/<Term>/<COURSE_CODE>/Module XX - <Topic>/ — or Special Strand notes inside ./content/Main Notes/Strands/<Strand>/<Category>/<Note>.md (with strand: and category: YAML frontmatter, registered in src/lib/strands.ts) — using any IDE or by opening ./content/Main Notes/ directly as an Obsidian vault (.obsidian/, .trash/, and *.excalidraw.bak are git-ignored).
    2. Run npm run validate:notes to verify YAML frontmatter, callout metadata, and interactive assessment syntax (A)-D), [MSQ], [INPUT], [BLANK]).
    3. Run npm run build to verify static route generation, search index, and changelog metadata before committing.

6. Available Scripts

Command Description
npm run dev Starts the Next.js development server with hot-reload.
npm run build Runs prebuild (generate:changelog & generate:search) and compiles the production bundle.
npm run start Runs the compiled production server locally.
npm run lint Executes static code analysis and ESLint checks.
npm run typecheck Runs the TypeScript compiler (tsc --noEmit) without emitting build files.
npm test Runs Node.js unit and regression tests (src/lib/__tests__/*.spec.ts).
npm run validate:notes Validates all 7 gates (Gates 0–6): monograph frontmatter, folder hygiene, MCQ parser compatibility, Mermaid syntax, graph links, and COURSE_REGISTRY parity (node scripts/validate-notes.mjs).
npm run sync:counts Automatically synchronizes per-course monograph counts in src/lib/course-registry.ts against the vault (node scripts/validate-notes.mjs --sync).
npm run generate:search Builds the lazily fetched client Command Palette index at public/search-index.json; runs automatically in prebuild.
npm run generate:changelog Generates src/data/changelog.generated.json and lightweight src/data/changelog-meta.generated.ts from Git history (with GitHub API fallback in shallow clones); runs automatically in prebuild.

About

2ru17's CS Notes Archive

Topics

Resources

Contributing

Stars

19 stars

Watchers

2 watching

Forks

Contributors

Languages