Awesome
Trilium ETAPI (TEPI)
A Node.js wrapper around the ETAPI for Trilium Notes. The library will continue to match the stable release of Trilium and release updates as needed.
Installation
npm install trilium-etapi
Usage
ESM (Preferred)
// tepi = Trilium Etapi Programming Interface
import tepi from "trilium-etapi";
tepi.server("https://my.trilium.com:8080/etapi").token(process.env.TRILIUM_TOKEN);
tepi.getNoteById("root").then(console.log).catch(console.error);
CommonJS
// tepi = Trilium Etapi Programming Interface
const tepi = require("trilium-etapi").default;
tepi.server("https://my.trilium.com:8080/etapi").token(process.env.TRILIUM_TOKEN);
tepi.getNoteById("root").then(console.log).catch(console.error);
Documentation
Documentation is available on GitHub Pages built with TypeDoc!
Links
Check out my other Trilium-based projects:
Want more? Be sure to check out the Awesome Trilium list!