• Stars
    star
    15,963
  • Rank 1,800 (Top 0.04 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Organize world's knowledge, explore connections and curate learning paths

Learn Anything

Explanation of vision and future here.

Ask questions on Discord if interested in developing the project or you get issues with setup.

File structure

Setup

This project is a monorepo setup using pnpm workspaces.

pnpm i

Everything is driven using pnpm .. commands.

Setup DB

Assumes you installed EdgeDB (run curl .. command).

pnpm db:init

Follow instructions, name EdgeDB instance learn-anything.

Run edgedb ui. This will open EdgeDB graphical interface where you can run queries or explore the schema.

Run below command to apply the schema defined in default.esdl on your local DB:

pnpm db:watch

Then, generate EdgeDB TS bindings with:

pnpm db:ts-generate

Seed DB with content

pnpm i db:seed-clone

This will git clone seed repo.

from this part, things are unstable

The goal is to seed EdgeDB with this content. Can be seen online here.

However you can try seed it with a wiki / folder of markdown of yourself.

Just add a folder in seed/wiki like seed/wiki/my-wiki and put some .md files inside.

Run Sync DB code

The goal of this command:

pnpm db:sync

Is to sync your local EdgeDB instance with the contents of the seed folder you just cloned.

For this, you need to create a file here:api/db/sync/.env. With content like this:

SEED_FOLDER_NAME=nikita
USERNAME=nikita

You can swap the names to your own. The SEED_FOLDER_NAME is the folder that is found in seed/wiki (from clone above).

Read api/db/sync/sync.ts and api/db/sync/wiki.ts for details how sync works.

Run server

Before running server, create file at api/server/.env with this content:

EDGEDB_INSTANCE=learn-anything
EDGEDB_SECRET_KEY=edbt_ey

EDGEDB_SECRET_KEY can be gotten by running pnpm db:ui which will open the EdgeDB UI.

In terminal after running above command you will see url like http://localhost:10700/ui?authToken=edbt_ey. EDGEDB_SECRET_KEY is the authToken content.

Then run:

pnpm api

In future Grafbase will be used for all API requests. There is blocker there that you can't do both public and private resolvers.

pnpm api:grafbase

Will start Grafbase locally and give you GraphQL access.

Run Electron app

pnpm app:dev

This will start an Electron development app. Built using this app starter.

Thinking of trying to make Electron and Solid happy and use only one codebase for all web code with solid, using vite-plugin-ssr.

Electron expects index.html file as entry but Solid Start does not provide a index.html file.

Run web

Some issues here for now.

Contribute

Currently not all tasks are written in public. The big goals being worked on right now are outlined below.

If you are interested in helping out, please join Discord and let's make it happen. ✨

The project is incredibly ambitious once it works.

Big goals

Editor support

Electron app should be close to Obsidian/Reflect.

Be able to edit markdown files, show sidebar of files/folders on the left.

Text editor uses Solid CodeMirror. Similar to CodeImage project.

Local first

TinyBase used in Electron app to persist everything.

Code inspirations

Inlang, CodeImage, Actual.

Tech stack is very similar to Inlang.

Future DX wins

  • Setup devenv to get one command dev env install. Currently we ask to install EdgeDB manually for example.

More Repositories

1

books

Awesome Books
5,801
star
2

alfred-workflows

Amazing Alfred Workflows
2,663
star
3

courses

Awesome Courses
1,079
star
4

curated-lists

Curated lists on various topics
867
star
5

macos-apps

Awesome macOS apps
779
star
6

blogs

Awesome Blogs
515
star
7

react-mindmap

React component for MindNode maps
JavaScript
422
star
8

chrome-extensions

Awesome Chrome Extensions
417
star
9

command-line-tools

Awesome Command Line Utilities
410
star
10

safari-extensions

Awesome Safari extensions
348
star
11

research-papers

Awesome Research Papers
293
star
12

programming-languages

Awesome Programming Languages
282
star
13

websites

Awesome Websites
205
star
14

reddit

Awesome Reddit subreddits
164
star
15

youtube

Awesome YouTube channels
151
star
16

ios-apps

Awesome iOS apps
101
star
17

podcasts

Awesome Podcasts
82
star
18

newsletters

Awesome Newsletters
73
star
19

documentaries

Awesome Documentaries
65
star
20

humans

Awesome Humans
57
star
21

telegram-groups

Awesome Telegram Groups
55
star
22

cheat-sheets

Awesome Cheat Sheets
52
star
23

firefox-extensions

Awesome Firefox Extensions
51
star
24

quotes

Awesome Quotes
45
star
25

slack-groups

Awesome Slack Groups
38
star
26

movies

Awesome Movies
37
star
27

tv-series

Awesome TV Series
36
star
28

forums

Awesome Forums
33
star
29

quora

Awesome Quora Topics
31
star
30

talks

Awesome Talks
29
star
31

tasks

Tasks as HTTP endpoints
Jupyter Notebook
27
star
32

stack-exchange

Awesome Stack Exchange Communities
26
star
33

2017-release

Old version of Learn Anything
JavaScript
23
star
34

games

Awesome Games
22
star
35

events

Awesome events
16
star
36

docs

TypeScript
10
star
37

la-editor

TypeScript
8
star
38

spectrum

Awesome Spectrum Communities
7
star
39

rust

Rust crates for learn-anything
Rust
7
star
40

explore

Trying things
TypeScript
7
star
41

mobile-expo

Mobile app using Expo
TypeScript
6
star
42

old-learn-anything.xyz

TypeScript
4
star
43

solid

Using Solid code
TypeScript
2
star
44

solana

Solana Programs
TypeScript
2
star
45

buy-in-next

TypeScript
2
star
46

trieve-flake

Nix flake for https://trieve.ai/
Nix
1
star