All Projects → unigraph-dev → unigraph-dev

unigraph-dev / unigraph-dev

Licence: MIT license
A local-first and universal knowledge graph, personal search engine, and workspace for your life.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects
shell
77523 projects
Nix
1067 projects

Projects that are alternatives of or similar to unigraph-dev

knowledge-base
Personal Wiki
Stars: ✭ 16 (-96.87%)
Mutual labels:  knowledge-base, knowledge-management
osmosmemo
Turn GitHub into a bookmark manager
Stars: ✭ 120 (-76.56%)
Mutual labels:  knowledge-base, knowledge-management
osmosnote
The knowledge IDE
Stars: ✭ 69 (-86.52%)
Mutual labels:  knowledge-base, knowledge-management
Athens
Free self-hosted desktop app: https://github.com/athensresearch/athens/releases; Try the demo at https://athensresearch.github.io/athens; Docs viewable at https://athensresearch.github.io/docs/
Stars: ✭ 5,501 (+974.41%)
Mutual labels:  knowledge-base, knowledge-management
marknotes
📝 You’re taking a lot of notes and need a solution to manage them i.e. put your knowledge base in one central place and being able to retrieve quickly information’s, display them nicely through the browser as a HTML page or a slideshow, export them in many file formats (docx, odt, pdf, txt, …). Sensitive information’s can be encrypted and notes …
Stars: ✭ 73 (-85.74%)
Mutual labels:  knowledge-management
Knowledge-Base
record every requirement and solution here
Stars: ✭ 31 (-93.95%)
Mutual labels:  knowledge-base
gatsby-theme-primer-wiki
A Gatsby Theme for Wiki/Docs/Knowledge Base, which using Primer style as the UI theme, can work well with Foam or Obsibian or just markdown files.
Stars: ✭ 85 (-83.4%)
Mutual labels:  knowledge-base
graphql-backend-template-dgraph
Dgraph GraphQL Editor template for backend using very fast dgraph golang database server under the hood
Stars: ✭ 45 (-91.21%)
Mutual labels:  dgraph
gooseberry
A command line utility to generate a knowledge base from Hypothesis annotations
Stars: ✭ 103 (-79.88%)
Mutual labels:  knowledge-base
harika
Offline-, mobile-first graph note-taking app focused on performance with the knowledgebase of any scale
Stars: ✭ 111 (-78.32%)
Mutual labels:  knowledge-base
hugo-documentation-theme
📖 Project Docs / Knowledge Base template for Hugo Website Builder. 创建项目文档
Stars: ✭ 101 (-80.27%)
Mutual labels:  knowledge-base
obsidiantools
Obsidian tools - a Python package for analysing an Obsidian.md vault
Stars: ✭ 179 (-65.04%)
Mutual labels:  knowledge-management
awesome-macos-commandline
A curated list of awesome command-line software for macOS.
Stars: ✭ 167 (-67.38%)
Mutual labels:  knowledge-management
knowledgeworks api
The API utils for querying CN-DBpedia & CN-Probase, the biggest Chinese knowledge bases
Stars: ✭ 24 (-95.31%)
Mutual labels:  knowledge-base
KGReasoning
Multi-Hop Logical Reasoning in Knowledge Graphs
Stars: ✭ 197 (-61.52%)
Mutual labels:  knowledge-base
ultimate-defi-research-base
Here we collect and discuss the best DeFI & Blockchain researches and tools. Feel free to DM me on Twitter or open pool request.
Stars: ✭ 1,074 (+109.77%)
Mutual labels:  knowledge-base
KMRC-Papers
A list of recent papers regarding knowledge-based machine reading comprehension.
Stars: ✭ 40 (-92.19%)
Mutual labels:  knowledge-base
good-reads
List of inspiring articles, blogs, tutorials and books. Tech stuff.
Stars: ✭ 14 (-97.27%)
Mutual labels:  knowledge-base
dgraph
Dgraph Dart client which communicates with the server using gRPC.
Stars: ✭ 27 (-94.73%)
Mutual labels:  dgraph
CONVEX
As far as we know, CONVEX is the first unsupervised method for conversational question answering over knowledge graphs. A demo and our benchmark (and more) can be found at
Stars: ✭ 24 (-95.31%)
Mutual labels:  knowledge-base

Unigraph

A local-first and universal knowledge graph, personal search engine, and workspace for your life.

Please join the Discord community below to talk about contributing, or open a GitHub issue if you want to help!

Discord

Docs

License: MIT

Getting started

Running with Docker image

We provide an experimental Dockerfile for easy setup:

  • Building Unigraph: docker build -t unigraph-devserver . (this should take roughly 10 minutes max),
  • Running Unigraph: docker run -d -p 4002:4002 -v <data directory>:/opt/unigraph -p 4001:4001 -p 3000:3000 -P unigraph-devserver,
  • Open http://localhost:3000 in a Browser that supports JavaScript to access Unigraph. If container is running on a different machine, replace localhost accordingly.

To update the Docker image, run docker build again after git pull.

Building from source

1) Build the Dgraph backend binary from source [reference]

requires gcc, make, go>=1.13

git clone https://github.com/unigraph-dev/dgraph.git
cd ./dgraph
make install  # installs built binary in $GOPATH/bin
# you can view your $GOPATH by running:  go env GOPATH
# and similarly, confirm binary exists:
> ls $(go env GOPATH)/bin | grep dgraph
dgraph

Alternative for step 1): find Unigraph's Dgraph binary for your platform on GitHub Releases and rename it to dgraph. On Linux or macOS, you'll need to make it executable: chmod +x ./Downloads/dgraph. Then, continue to step 2).

2) In the unigraph project root, fetch and build project dependencies:

if you have node.js versioning issues, consider using nvm. Windows users, see the note further down.

yarn && yarn build-deps

3) Move the Dgraph binary you built in step 1) to a new /opt/unigraph directory. This is a project default, but you can use a path of your choosing (as well as keep a separate data directory & bin path).

check that your user can read/write to the path(s) — you may need to e.g. chown -R $(whoami) /opt/unigraph

4) Run the backend and frontend from the unigraph project root!

the Dgraph backend currently requires its default ports to be free, especially 8080.

# run backend with default data and bin path:  /opt/unigraph
./scripts/start_server.sh
# or, run backend with custom paths:
./scripts/start_server.sh -d "<data directory>" -b "<dgraph binary location>"
# run frontend application in a browser:
yarn explorer-start
# or, to run as an electron application:
yarn electron-start

NOTE: if the backend failed during server initialization, you'll need a clean application state before reattempting:

  • killall dgraph to kill all running dgraph processes, then
  • remove p/, w/, zw/ in your data directory (by default /opt/unigraph)

Server initialization is successful upon unigraph> Unigraph server listening on port 4002 and announcing upserts.

5) If you want to use third-party API integrations, consult the "API Keys" section below.


Alternative Setup for Windows Dev/Technically Savvy Users

If you have managed to get a Dgraph instance running in WSL or via Docker, but would like to hack on Unigraph under Windows, the following commands can get the frontend and local backend built and connecting to Dgraph. These commands depend on PowerShell. Note that Windows comes with an older version of PowerShell, but you should install the most recent version from here. The binary, pwsh.exe, should be on your path after installation.

In one PowerShell terminal instance execute the following commands:

yarn
yarn build-deps
yarn backend-start

In another PowerShell terminal instance run this command, when the last command of the previous set has finished upserting to Dgraph:

yarn explorer-start

If you want to change Unigraph's default Ctrl + e shortcut for the Omnibar (which in Windows can pop up the browser's search bar), you can do it by editing the following section of packages\unigraph-dev-explorer\src\pages\SearchOverlay.tsx (currently hardcoded):

document.onkeydown = function(evt) {
    evt = evt || window.event;
    if ((evt.ctrlKey || evt.metaKey) && evt.key === 'e' && !isElectron()) {
        if (open === undefined) setSearchEnabled(!searchEnabled);
    }
    if ((searchEnabled) && evt.key === 'Escape') {
        setSearchEnabled(false);
    }
};

Updating Unigraph

Unigraph is being worked on constantly. If you're interested in getting the latest version, do the following:

  • git pull to retrieve the latest changes;
  • make sure backend and dgraph is not running;
  • yarn build-deps to re-build common libraries and default packages;
  • ./script/start_server.sh to re-start backend, and update any new packages if available.

Structure

This repository contains all relevant source code for Unigraph:

  • packages/
    • unigraph-dev-backend/ : Unigraph local backend in Node.js.
    • unigraph-dev-common/ : shared data and utilities between backend and frontend.
    • unigraph-dev-explorer/ : Unigraph frontend in React.
    • default-packages/ : schema, data and code declarations for packages providing default functionalities. If you are looking to build packages, you can study example projects here.

API Keys

To use third-party API integrations, obtain desired API keys and put them in this format in a file named secrets.env.json before starting the server:

{
    "twitter": {
        "api_key": "abc",
        "api_secret_key": "abc",
        "bearer_token": "abc"
    },
    "reddit": {
        "client_id": "abc"
    },
    "openai": {
        "api_key": "abc"
    },
    "google": {
        "client_id": "abc",
        "client_secret": "abc"
    }
}

For how to obtain them, see the docs page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].