Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/cybersemics/em

A beautiful, minimalistic note-taking app for personal sensemaking.
https://github.com/cybersemics/em

knowledge-management note-taking outliner sensemaking tools-for-thought

Last synced: 4 months ago
JSON representation

A beautiful, minimalistic note-taking app for personal sensemaking.

Lists

README

        

# em

**em** is a beautiful, minimalistic note-taking app for personal sensemaking.

- **cognitively-informed** - Supports focus, nonlinearity, and associative connectivity.
- **process-oriented** - Facilitates flow and organic thinking.
- **semiotic** - Mediates concept through a monistic, contextual semiotic web.

## Documentation

- [Overview](https://github.com/cybersemics/em/wiki/Docs) - An overview of the architecture, data structures, and tips for contributors.
- [Internal API](https://cybersemics.github.io/em) - Autogenerated TypeDoc documentation for all internal modules.
- [Roadmap](https://github.com/cybersemics/em/wiki/Roadmap) - A high level overview of the project, including vision and objectives.

## Setup

```
yarn install
```

To setup the websocket server for device syncing, you also need to install dependencies in the server subpackage:

```
cd server && npm install
```

## Web App Development

Start the live-reload server for local development:

```sh
# starts a live-reload server at http://localhost:3000
npm start
```

To enable device syncing, start the websocket server:

```sh
# starts a hocuspocus server at http://localhost:3001
npm run websocket-server
```

For more information about configuring and deploying the websocket server, see https://github.com/cybersemics/em/tree/yjs-multiplex/server.

## Native App Development

To get started, run `npm run cap:ios` or `npm run cap:android`.

Scripts:

- `cap:ios` - Generates iOS project files with capacitor and opens the project in XCode. Requires XCode and CocoaPods to be installed. Choose your device target and hit Play in XCode to build and run the app.
- `cap:android` - Generates Android project files with capacitor and opens the project in Android Studio.
- `cap:copy` - Copies the web app build and capacitor configuration file into the native platform project. Run this each time you make changes that are not picked up by the live-reload server, and when you change a configuration value in capacitor.config.ts.
- `cap:sync` - Runs cap:copy and updates native capacitor plugins.

The above scripts run in development mode by default. You can copy or sync in production mode with these:

- `cap:copy:prod`
- `cap:sync:prod`

## Deployment

em is an offline-first app that can run on a static web server.

Environment variables are set in the appropriate .env file: `.env.development` and `.env.production`. Only `.env.production` is kept in source control. Environment variables that are prepended with `REACT_APP_` will be bundled with the build and available client-side.

```sh
# build the static HTML/CSS/JS app in the /build directory
npm run build

# Run the static build with npx serve -s build -l 3000
npm servebuild
```

Device syncing requires a websocket server. You can start the websocket server with:

```sh
npm run websocket-server
```

See: https://github.com/cybersemics/em/tree/yjs-multiplex/server

## Component Hierarchy

Root containers:

Each thought consists of many layers of components that provide various functionalities. This is necessary from a performance perspective to avoid re-rendering all thought components when a small slice changes, when a thought falls outside the viewport and can be virtualized.

```
└─Content
└─LayoutTree
└─LayoutShim
└─VirtualThought
└─ThoughtContainer
├─Bullet
├─ThoughtAnnotation
│ └─Superscript
└─StaticThought
└─Editable
```

- `` - a root container that defines the margins of the thoughtspace and handles clicking on empty space.
- `` - a root container that defines the margins of the thoughtspace and handles clicking on empty space.

- `` - Conditionally renders a shim when the thought is hidden by autofocus. The shim is a simple div with a height attribute matching the thought's height.
- `` - Contains the Bullet, ThoughtAnnotation, and StaticThought for a single thought.
- `` - This is, unsurprisingly, the bullet of the thought.
- `` - A non-interactive, hidden clone of StaticThought that is used to position the Superscript.
- `` - Contains the Editable and Superscript.
- `` - Renders the thought text as a content-editable and handles live editing, throttled updates, selection, pasting, and all other editing capacities.

### Known issues

- Not tested in Firefox