Hacking Dog

Start building with the Inkdrop API

Source

The Inkdrop API empowers users to tailor and enhance the app's core functionalities. Whether customizing the editor, tweaking the Markdown renderer, or crafting unique themes and plugins, this API provides the tools you need.

Getting started

Before diving deep into the API functionalities, it's essential to familiarize yourself with the basics. Here are two essential guides to get you started:

  • The Init File: Understand how Inkdrop loads and how you can customize its behavior using JavaScript in the init.js file. Whether you wish to run custom scripts on startup or add new commands, this guide offers a foundation for using the API with JavaScript.
  • Style Tweaks: Delve into the aesthetic customizations of Inkdrop. Learn how to apply personal style changes and adjustments to the UI using the styles.less file, without the need to create an entire theme.

Guides

Create a theme

A tutorial on how to create a theme.

Read more

Create a plugin

A tutorial on how to create a plugin.

Read more

Access the local database

Learn how to access the local database from plugins and external programs.

Read more

Create a blog using Astro

A tutorial on how to create a blog using Astro.

Read more

Resources

Notes

Learn about the note model and how to create, retrieve, update, delete, and list notes.

Notebooks

Learn about the notebook model and how to organize your notes with notebooks.

Tags

Learn about the tag model and how to categorize your notes with tags.

Files

Files in Inkdrop are primarily used as image attachments that can be inserted into notes.

Utilities

Provides convenient methods for managing documents in the local database.

Local HTTP server

The Inkdrop client app can open a simple HTTP server so that you can access the data from an external program easily.

Can you help us improve the docs? 🙏

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!