Skip to content

Commit

Permalink
docs: README
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Goyal <[email protected]>
  • Loading branch information
ary82 committed Oct 2, 2024
1 parent 08aa777 commit c974791
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# Socratic Leetcode

This chrome extension helps you to solve leetcode questions on your own by providing insightful questions according to the socratic teaching philosophy

## Installation

1. Download the package `socratic-code.zip` from Releases

2. Extract it

```bash
# USE unzip
unzip socratic-code.zip
# OR USING 7z
7z x socratic-code.zip
```

3. Open chrome, go to `chrome://extensions/` and enable developer mode

4. Click on Load unpacked and navigate to the `build` folder you just extracted

## Working

The following images represesnt the working of the extension

<p align="center">
<img src="./docs/images/sc.png">
<img src="./docs/images/insights.png">
</p>

<p align="center">
<img src="./docs/images/browser-sc.png">
<img src="./docs/images/browser-insights.png">
</p>

## Architecture

<p align="center">
<img src="./docs/images/arch.png">
</p>
46 changes: 46 additions & 0 deletions docs/graphviz/architecture.gv
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
digraph output_string {
bgcolor=transparent;
graph [fontsize=26 fontname="HackNerdFont" style=filled color=lightblue];
node [fontsize=26 fontname="HackNerdFont" style=filled color=white shape=box];
compound=true;
rankdir=LR;
label = "Architecture";

subgraph cluster_output {

subgraph cluster_byte2 {
label = "backend";
color = lightblue4;
subgraph cluster_char3 {
label = "Golang";
color = lightblue3;
API[label="gofiber API"]
}
}
subgraph cluster_byte3 {
label = "Google";
color = lightblue4;
subgraph cluster_char1 {
label = "LLM";
color = lightblue3;
"Google Gemini API"
}
}
subgraph cluster_byte1 {
label = "frontend";
color = lightblue4;
dummy[color=lightblue4 fontcolor=lightblue4]
subgraph cluster_char2 {
label = "chrome extension";
color = lightblue3;
"webpage(leetcode)"->"content script"[label="DOM Selector"]
"content script"->"bg script"[label="Chrome message API"]
"bg script"->"popup"[label="Chrome message API"]
}
}
API->"Google Gemini API"[label="TCP"]
"Google Gemini API"->API[label="TCP"]
"popup"->API[label="TCP"]
API->"popup"[label="TCP"]
}
}
Binary file added docs/images/arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/browser-insights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/browser-sc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/insights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c974791

Please sign in to comment.