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{
var MUID: String?
var createdAt: Date?
var updatedAt: Date?
var state: ObjectState?
var caption: String?
var color: Color?
var typeIdentifier: String?
var unread: Bool?
var ownerID: Int?
var representations: [Media]?
}
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 also exist oriented link in memex.
class Link {
var MUID: String?
var createdAt: Date?
var updatedAt: Date?
var state: ObjectState?
var ownerID: Int?
var order: Int?
var originSpaceMUID: String?
var targetSpaceMUID: String?
}
Piece of data that can be users avatar or image/textual representation of space.
class Media {
var MUID: String?
var createdAt: Date?
var updatedAt: Date?
var state: ObjectState?
var metadata: [String: Any]?
var dataState: DataState?
var kind: String?
var embededData: Data?
var dataDownloadURL: URL?
var dataUploadURL: URL?
var ownerID: Int?
var representedSpaceMUID: String?
}
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.
MemexSwiftSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
Go to Memex Dev Center and create your app. You dont need to wait for approval and continue to step 2.
Go to your podfile and add following line.
pod "MemexSwiftSDK"
Import memex sdk into every Swift file where you want to use it.
import MemexSwiftSDK
In your AppDelegate.swift or any place where you bootstrap your libraries place this line.
let memex = Memex(appToken: "<YOUR APP TOKEN>")
memex.prepare { error in
// memex object is ready for usage
}
First supported user authentication method is using clients credentials (email & password).
let credentials = new Credentials("email@host.com", "secretPASSWORD")
memex.loginUserWithUserCredentials(credentials) { error in
guard error == nil else {
// show login failure dialog
}
// let user into app
}
// it can be generated UUID or retrieved from iCloud
let onboardingToken = "xxxx"
memex.loginUserWithOnboardingToken(onboardingToken) { error in
guard error == nil else {
// show login failure dialog
}
// let user into app
}
If you want get users origin space or any other space use its MUID (memex unique identifier).
memex.getSpace("origin") { space, error in
guard error == nil else {
// show error message
}
// show space to user and load its links using getSpaceLinks
}
memex.getSpaceLinks("origin") { links, error in
guard error == nil else {
// show error message
}
// show space links
}
If you want to create new space in users memex you can use following code.
let space = new Space();
space.caption = "iOS 11 Stuff"
space.typeIdentifier = "com.memex.media.collection"
let autodump = true;
memex.createSpace(space, .async, autodump, completion);
Each function of SDK is documented using Swift Documentation and is accessible using Alt+Click in XCode. See generated documentation.
If you need any other help please contact us at hello@memex.co