Alexei Kharchev 5e627cb420 Add Lifecycle scripts included in trilium@0.63.6:
test
    npm run test-jasmine && npm run test-es6
  postinstall
    rimraf ./node_modules/canvas
available via `npm run-script`:
  start-server
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon src/www.js
  start-server-no-dir
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon src/www.js
  qstart-server
    npm run qswitch-server && TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon src/www.js
  start-electron
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron --inspect=5858 .
  start-electron-no-dir
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 electron --inspect=5858 .
  qstart-electron
    npm run qswitch-electron && TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron --inspect=5858 .
  start-test-server
    npm run qswitch-server; rm -rf ./data-test; cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data-test TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev TRILIUM_PORT=9999 node src/www.js
  switch-server
    rm -rf ./node_modules/better-sqlite3 && npm install
  switch-electron
    ./node_modules/.bin/electron-rebuild
  qswitch-server
    rm -rf ./node_modules/better-sqlite3/bin ; mkdir -p ./node_modules/better-sqlite3/build ; cp ./bin/better-sqlite3/linux-server-better_sqlite3.node ./node_modules/better-sqlite3/build/better_sqlite3.node
  qswitch-electron
    rm -rf ./node_modules/better-sqlite3/bin ; mkdir -p ./node_modules/better-sqlite3/build ; cp ./bin/better-sqlite3/linux-desktop-better_sqlite3.node ./node_modules/better-sqlite3/build/better_sqlite3.node
  build-backend-docs
    rm -rf ./docs/backend_api && ./node_modules/.bin/jsdoc -c jsdoc-conf.json -d ./docs/backend_api src/becca/entities/*.js src/services/backend_script_api.js src/services/sql.js
  build-frontend-docs
    rm -rf ./docs/frontend_api && ./node_modules/.bin/jsdoc -c jsdoc-conf.json -d ./docs/frontend_api src/public/app/entities/*.js src/public/app/services/frontend_script_api.js src/public/app/widgets/basic_widget.js src/public/app/widgets/note_context_aware_widget.js src/public/app/widgets/right_panel_widget.js
  build-docs
    npm run build-backend-docs && npm run build-frontend-docs
  webpack
    webpack -c webpack.config.js
  test-jasmine
    TRILIUM_DATA_DIR=~/trilium/data-test jasmine
  test-es6
    node -r esm spec-es6/attribute_parser.spec.js
  debug-node
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon --inspect src/www.js
  debug-chrome
    cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon --inspect-brk src/www.js options for node debugging
2024-10-20 14:59:11 +08:00
2024-03-06 07:17:51 +01:00
2024-03-06 07:17:51 +01:00
2024-05-18 03:48:33 -05:00
2024-01-27 22:52:47 +01:00
2023-11-21 20:46:48 +01:00
2023-03-26 19:29:52 +00:00
2019-10-14 11:55:12 +02:00
2023-10-18 09:40:00 +02:00
2022-02-12 13:17:49 +01:00
2023-06-23 00:27:04 +08:00
2023-10-18 09:40:00 +02:00
2020-04-15 21:49:36 +02:00
2024-01-28 23:09:57 +01:00
2023-04-15 17:58:40 +08:00
2024-03-28 20:51:28 +01:00
2020-05-24 19:34:52 +02:00
2022-05-24 21:34:32 +02:00

Trilium Notes

Trilium is in maintenance mode - see details in https://github.com/zadam/trilium/issues/4620

Preliminary disccusions on the successor organization are taking place in Trilium Next discussions.

Join the chat at https://gitter.im/trilium-notes/Lobby English | Chinese | Russian | Japanese | Italian

Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.

See screenshots for quick overview:

Trilium Screenshot

Ukraine is currently defending itself from Russian aggression, please consider donating to Ukrainian Army or humanitarian charities.

drawing Trilium Notes supports Ukraine!

🎁 Features

Check out awesome-trilium for 3rd party themes, scripts, plugins and more.

🏗 Builds

Trilium is provided as either desktop application (Linux and Windows) or web application hosted on your server (Linux). Mac OS desktop build is available, but it is unsupported.

  • If you want to use Trilium on the desktop, download binary release for your platform from latest release, unzip the package and run trilium executable.
  • If you want to install Trilium on server, follow this page.
    • Currently only recent Chrome and Firefox are supported (tested) browsers.

Trilium is also provided as a Flatpak:

📝 Documentation

See wiki for complete list of documentation pages.

You can also read Patterns of personal knowledge base to get some inspiration on how you might use Trilium.

💻 Contribute

Use a browser based dev environment

Open in Gitpod

Or clone locally and run

npm install
npm run start-server

📢 Shoutouts

  • CKEditor 5 - best WYSIWYG editor on the market, very interactive and listening team
  • FancyTree - very feature rich tree library without real competition. Trilium Notes would not be the same without it.
  • CodeMirror - code editor with support for huge amount of languages
  • jsPlumb - visual connectivity library without competition. Used in relation maps and link maps

🤝 Support

You can support Trilium using GitHub Sponsors, PayPal or Bitcoin (bitcoin:bc1qv3svjn40v89mnkre5vyvs2xw6y8phaltl385d2).

🔑 License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Languages
JavaScript 98.4%
CSS 1%
EJS 0.3%
Shell 0.2%