Skip to main content
Version: v5

Custom Functions

Custom Functions were Harper's original mechanism for adding custom API endpoints and application logic to a Harper instance. They allowed developers to define Fastify-based HTTP routes that ran inside Harper with direct access to the database, and could be deployed across instances via Studio.

Custom Functions were superseded by the Components system introduced in v4.2.0. Components provide the same capabilities with a more robust architecture, better tooling, and support for extensions and plugins.

All users are encouraged to migrate Custom Functions to Components. See the Components documentation for the modern approach.

Reach out to support@harperdb.io or join our community Discord if you have questions.