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: 3 months ago
JSON representation
A beautiful, minimalistic note-taking app for personal sensemaking.
- Host: GitHub
- URL: https://github.com/cybersemics/em
- Owner: cybersemics
- License: other
- Created: 2018-08-07T02:25:56.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T23:06:58.000Z (5 months ago)
- Last Synced: 2024-05-28T23:49:51.615Z (5 months ago)
- Topics: knowledge-management, note-taking, outliner, sensemaking, tools-for-thought
- Language: TypeScript
- Homepage:
- Size: 245 MB
- Stars: 254
- Watchers: 12
- Forks: 74
- Open Issues: 288
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
- awesome-starred - cybersemics/em - A beautiful, minimalistic note-taking app for personal sensemaking. (others)
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.
- [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 `VITE_` 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
└─StaticThought
├─ThoughtAnnotation
│ └─StaticSuperscript
└─Editable
│ └─Superscript
```- `` - Root container that defines the margins of the thoughtspace and handles clicking on empty space.
- `` - Renders all visible thoughts as absolutely positioned siblings to allow for conditional rendering of ancestors, list virtualization, and cross-hierarchy animation.
- `` - 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.
- `` - Contains the Editable and ThoughtAnnotation.
- `` - A non-interactive, hidden clone of the Thought that is used to position the 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