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.
npm install trilium-etapi
// 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);
// 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 is available on GitHub Pages built with TypeDoc!
Check out my other Trilium-based projects:
Want more? Be sure to check out the Awesome Trilium list!