Skip to content

Commit eead5f1

Browse files
committed
update docs
1 parent 4712fcf commit eead5f1

File tree

14 files changed

+730
-44
lines changed

14 files changed

+730
-44
lines changed

LICENSE.md

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Welcome to TypeCell! An open source live programming environment. Together, we w
2525
- Full TypeScript support! (no weird custom language constructs)
2626
- Reactive Runtime, cells automatically re-evaluate when their dependencies update ([learn more](https://www.typecell.org/docs/manual/3.%20Reactive%20variables.md))
2727
- Import NPM packages + types just by writing an `import` statement
28+
- Support for real-time collaboration (using [Yjs](https://github.com/yjs/yjs))
29+
- Runs on top of [Matrix](https://www.matrix.org) using [Matrix-CRDT](https://github.com/yousefed/matrix-crdt).
2830

2931
[Try the Tutorial to get started!](https://www.typecell.org/docs/interactive-introduction.md)
3032

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "root",
33
"private": true,
4-
"license": "AGPL",
4+
"license": "AGPL-3.0",
55
"devDependencies": {
66
"lerna": "^5.0.0",
77
"playwright": "^1.18.1",

packages/common/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# packages/common
2+
3+
Just some helper functions used across the codebase exported as `@typecell-org/common`.

packages/editor/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# packages/editor
2+
3+
The main application / website of TypeCell.
4+
5+
TODO: explain architecture, directories, etc.

packages/engine/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# packages/engine
2+
3+
The Reactive Runtime responsible for evaluating user cells, exported as `@typecell-org/engine`.
4+
5+
## Engine
6+
7+
The TypeCell Reactive Runtime is built on top of MobX.
8+
9+
The engine (`Engine.ts`) automatically runs models registered to it. The code of the models is passed an observable context ($) provided by the engine. This context is how the code of different models can react to each other.
10+
11+
## Resolvers
12+
13+
The `src/resolver` directory contains the logic to load third party NPM modules using esm.sh (or fallback to skypack / jspm).

packages/engine/src/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/engine/src/executor.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { autorun, runInAction } from "mobx";
22
import { TypeCellContext } from "./context.js";
33
import { installHooks } from "./hookDisposables.js";
44
import { Module } from "./modules.js";
5-
import { isStored } from "./storage/stored.js";
65
import { isView } from "./view.js";
76

87
async function resolveDependencyArray(
@@ -141,11 +140,7 @@ export async function runModule(
141140

142141
const saveValue = (exported: any) => {
143142
if (propertyName !== "default") {
144-
if (isStored(exported)) {
145-
// context.storage.addStoredValue(propertyName, exported);
146-
} else {
147-
context.rawContext[propertyName] = exported;
148-
}
143+
context.rawContext[propertyName] = exported;
149144
}
150145
};
151146

packages/engine/src/storage/Storage.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/engine/src/storage/stored.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)