Memex is lightweight personal knowladge base with automatic content management. It means that it helps organise every piece of knowledge (notes, urls, sketches, comments, etc.). These pieces (spaces) are interconnected using memory links which helps to navigate and associate it into more compact knowledge. It is just like web but more lightweight and only personal.
Core concept of Memex is space which is bundle/collection/folder of small pieces of knowledge. It can be piece of text (text space) note or large collection of links to other collections (collection space).
There is a few standard space types in two core categories:
- Collection-oriented - defined/represented by its caption
- Collection - abstract set of links to other spaces
- Atomic (shortly atoms) - defined/represented by caption and linked media
- WebPage - decorated URL to any webpage
- Text - small textual piece of information/note or anything that can be written
- Image - visual piece of knowledge
Space has wollowing structure:
class Space {
MUID: ?string;
spaceType: SpaceType;
caption: ?string;
representations: ?Array<Media>;
color: ?string;
state: EntityState;
}
Another core principle of memex is link which is nothing more than connection between two spaces. So if there exists association between two things/ideas/spaces in users brain there should be also oriented link in memex.
class Link {
MUID: ?string;
origin: Space;
target: Space;
state: EntityState;
}
Piece of data that can be users avatar or image/textual representation of space.
class Media {
MUID: ?string;
state: EntityState;
mediaType: MediaType;
embedData: ?ArrayBuffer;
dataDownloadURL: ?string;
dataUploadURL: ?string;
dataState: MediaDataState;
representsSpace: ?Space;
}
Today memex supports two smart features that will help user to automatically manage his content.
First one is called autodump and will automatically link new space with most fitting already existing space. Eg. If user drops webpage url and there already exists similar collection of spaces then Memex will try to automatically create link from this collection to newly created space. See Examples section.
Are you creating collection of spaces but dont know how to name it?Another smart feature that is offered by Memex is automatic captioning/summarization of space. Just provide set of space MUIDs and we will tell you what is the best name for it.
Go to Memex Dev Center and create your app. You dont need to wait for approval and continue to step 2.
Go to root directory of your app and run this command in Terminal.
npm install memex-js-sdk --save
Import memex sdk into every JavaScript file where you want to use it.
import Memex from 'memex-js-sdk';
In your app.js or any place where you bootstrap your libraries place this line.
Memex.sharedClient.setAppToken('<YOUR APP TOKEN>');
Only supported user authentication method in JS sdk is using clients credentials (email & password).
import Memex from 'memex-js-sdk';
// ...
Memex.sharedClient.login(email, password, (token: ?string, success: bool) => {
if (success === false) {
// failure
return;
}
// success
});
If you want get users origin space or any other space use its MUID (memex unique identifier).
Memex.sharedClient.getSpace(this.props.originMuid, (space: ?Memex.Space, success: bool) => {
if (success === false || space == null) {
// something wrong happened
return;
}
// start using space object
});
Memex.sharedClient.getSpaceLinks(muid, (links: ?Array<Memex.Link>, success: bool) => {
if (success === false) {
// failure
return;
}
// success, show links to user
});
If you want to create new space in users memex you can use one of following three options for webpage space, textual space or image space.
Memex.sharedClient.createWebPageSpace(url, true, completion);
Memex.sharedClient.createTextSpace(text, true, completion);
Memex.sharedClient.createImageSpace(imageURL, true, completion);
Or you can create any other space.
let space = new Space();
space.caption = ...
space.representations = ...
Memex.sharedClient.createSpace(space, false, completion);
Each function of SDK is documented using JSDoc. See generated documentation.
If you need any other help please contact us at hello@memex.co