Platform | Architecture | Application | Build command |
---|---|---|---|
macOS | x86_64 | Desktop / Electron app | ./bin/build-mac-x64.sh |
ARM 64 | Desktop / Electron app | ./bin/build-mac-arm64.sh | |
Linux | x86_64 | Desktop / Electron app | ./bin/build-linux-x64.sh |
Server | ./bin/build-server.sh | ||
Windows | x86_64 | Desktop / Electron app | ./bin/build-win-x64.sh |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
attachmentId | Text | Non-null | Unique ID (e.g. qhC1vzU4nwSE ) | |
ownerId | Text | Non-null | The unique ID of a row in notes. | |
role | Text | Non-null | The role of the attachment: image for images that are attached to a note. | |
mime | Text | Non-null | The MIME type of the attachment (e.g. image/png ) | |
title | Text | Non-null | The title of the attachment. | |
isProtected | Integer | Non-null | 0 | 1 if the entity is protected, 0 otherwise. |
position | Integer | Non-null | 0 | Not sure where the position is relevant for attachments (saw it with values of 10 and 0). |
blobId | Text | Nullable | null | The corresponding blobId from the blobs table. |
dateModified | Text | Non-null | Localized modification date (e.g. 2023-11-08 18:43:44.204+0200 ) | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
utcDateScheduledForErasure | Text | Nullable | null | |
isDeleted | Integer | Non-null | 1 if the entity is deleted, 0 otherwise. | |
deleteId | Text | Nullable | null |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
attributeId | Text | Non-null | Unique Id of the attribute (e.g. qhC1vzU4nwSE ), can also have a special unique ID for Special notes (e.g. _lbToday_liconClass ). | |
noteId | Text | Non-null | The ID of the note this atttribute belongs to | |
type | Text | Non-null | The type of attribute (label or relation ). | |
name | Text | Non-null | The name/key of the attribute. | |
value | Text | Non-null | "" |
|
position | Integer | Non-null | 0 | The position of the attribute compared to the other attributes. Some predefined attributes such as originalFileName have a value of 1000. |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
isDeleted | Integer | Non-null | 1 if the entity is deleted, 0 otherwise. | |
deleteId | Text | Nullable | null | |
isInheritable | Integer | Nullable | 0 |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
blobId | Text | Non-null | The unique ID of the blob (e.g. XXbfAJXqWrYnSXcelLFA ). | |
content | Text | Nullable | null | The content of the blob, can be either:
|
dateModified | Text | Non-null | Localized modification date (e.g. 2023-11-08 18:43:44.204+0200 ) | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
branchId | Text | Non-null | The ID of the branch, in the form of a_b where a is the parentNoteId and b is the noteId . | |
noteId | Text | Non-null | The ID of the note. | |
parentNoteId | Text | Non-null | The ID of the parent note the note belongs to. | |
notePosition | Integer | Non-null | The position of the branch within the same level of hierarchy, the value is usually a multiple of 10. | |
prefix | Text | Nullable | The branch prefix if any, or NULL otherwise. | |
isExpanded | Integer | Non-null | 0 | Whether the branch should appear expanded (its children shown) to the user. |
isDeleted | Integer | Non-null | 0 | 1 if the entity is deleted, 0 otherwise. |
deleteId | Text | Nullable | null | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
id | Integer | Nullable | A sequential numeric index of the entity change. | |
entityName | Text | Nullable | The type of entity being changed (attributes , branches , note_reordering , etc.) | |
entityId | Text | Nullable | The ID of the entity being changed. | |
hash | Text | Nullable | TODO: Describe how the hash is calculated | |
isErased | Integer | Nullable | TODO: What does this do? | |
changeId | Text | Nullable | TODO: What does this do? | |
componentId | Text | Nullable | TODO: What does this do? | |
instanceId | Text | Nullable | TODO: What does this do? | |
isSynced | Integer | Nullable | TODO: What does this do? | |
utcDateChanged | Text | Nullable | Date of the entity change in UTC format (e.g. 2023-11-08 16:43:44.204Z ) |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
etapiTokenId | Text | Non-null | A unique ID of the token (e.g. aHmLr5BywvfJ ). | |
name | Text | Non-null | The name of the token, as is set by the user. | |
tokenHash | Text | Non-null | The token itself. | |
utcDateCreated | Text | Non-null | Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
isDeleted | Integer | Non-null | 0 | 1 if the entity is deleted, 0 otherwise. |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
noteId | Text | Non-null | The unique ID of the note (e.g. 2LJrKqIhr0Pe ). | |
title | Text | Non-null | "note" | The title of the note, as defined by the user. |
isProtected | Integer | Non-null | 0 | 1 if the entity is protected, 0 otherwise. |
type | Text | Non-null | "text" | The type of note (i.e. text , file , code , relationMap , mermaid , canvas ). |
mime | Text | Non-null | "text/html" | The MIME type of the note (e.g. text/html ).. Note that it can be an empty string in some circumstances, but not null. |
isDeleted | Integer | Nullable | 0 | 1 if the entity is deleted, 0 otherwise. |
deleteId | Text | Non-null | null | |
dateCreated | Text | Non-null | Localized creation date (e.g. 2023-11-08 18:43:44.204+0200 ) | |
dateModified | Text | Non-null | Localized modification date (e.g. 2023-11-08 18:43:44.204+0200 ) | |
utcDateCreated | Text | Non-null | Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
blobId | Text | Nullable | null | The corresponding ID from blobs. Although it can theoretically be NULL , haven't found any such note yet. |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
name | Text | Non-null | The name of option (e.g. maxContentWidth ) | |
value | Text | Non-null | The value of the option. | |
isSynced | Integer | Non-null | 0 | 0 if the option is not synchronized and thus can differ between clients, 1 if the option is synchronized. |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
noteId | Text | Non-null | Unique ID of the note (e.g. yRRTLlqTbGoZ ). | |
notePath | Text | Non-null | The path (IDs) to the note from root to the note itself, separated by slashes. | |
utcDateCreated | Text | Non-null | Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) |
Column Name | Data Type | Nullity | Default value | Description |
---|---|---|---|---|
revisionId | TextText | Non-null | Unique ID of the revision (e.g. 0GjgUqnEudI8 ). | |
noteId | Text | Non-null | ID of the note this revision belongs to. | |
type | Text | Non-null | "" | The type of note (i.e. text , file , code , relationMap , mermaid , canvas ). |
mime | Text | Non-null | "" | The MIME type of the note (e.g. text/html ). |
title | Text | Non-null | The title of the note, as defined by the user. | |
isProtected | Integer | Non-null | 0 | 1 if the entity is protected, 0 otherwise. |
blobId | Text | Nullable | null | The corresponding ID from blobs. Although it can theoretically be NULL , haven't found any such note yet. |
utcDateLastEdited | Text | Non-null | Not sure how it differs from modification date. | |
utcDateCreated | Text | Non-null | Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
utcDateModified | Text | Non-null | Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z ) | |
dateLastEdited | Text | Non-null | Not sure how it differs from modification date. | |
dateCreated | Text | Non-null | Localized creatino date (e.g. 2023-08-12 15:10:04.045+0300 ) |
Before | ![]() |
---|---|
After | ![]() |
With new scale | ![]() |
Dependency | Name in library_loader | Things to check for a basic sanity check | Protected by unit tests | |
---|---|---|---|---|
better-sqlite3 | See bettersqlite binaries. | |||
jsdom |
| Protected by typings, should catch any potential changes in API. | Yes | |
async-mutex |
| |||
axios |
| |||
sax |
| |||
|
| |||
ejs |
| |||
dayjs |
| |||
semver |
| |||
https-proxy-agent | ??? | |||
sax |
| |||
ini |
| |||
jsplumb | RELATION_MAP |
| ||
jquery.mark.es6 | MARKJS |
| ||
knockout.js |
| |||
normalize.min.css |
| |||
wheel-zoom.min.js | WHEEL_ZOOM |
| ||
fancytree |
| |||
bootstrap |
| |||
electron-debug |
| |||
electron-dl | ||||
eslint | ||||
marked |
| Yes | ||
force-graph |
|
better-sqlite3 versionChange log | SQLite version Change log | Compatibility with upstream Trilium |
---|---|---|
8.4.0 | <3.43.0 | Compatible, same version. |
8.6.0 | 3.43.0 | |
8.7.0 | 3.43.1 | |
9.0.0 | 3.43.2 | |
9.1.0 + 9.1.1 | 3.44.0 | |
9.2.0 + 9.2.1 + 9.2.2 | 3.44.2 | |
9.3.0 | 3.45.0 | |
9.4.0, 9.4.1, 9.4.2, 9.4.3, 9.4.4, 9.4.5 | 3.45.1 | |
9.5.0 | 3.45.2 | |
9.6.0 / 10.0.0 | 3.45.3 | |
10.1.0 / 11.0.0 / 11.1.1 / 11.1.2 / 11.2.0 / 11.2.1 | 3.46.0 | |
11.3.0 | 3.46.1 |
trilium-ckeditor5 | 43.2.0 | |
ckeditor5-math | See ckeditor5-math. | |
ckeditor5-math
in action.