Core Concepts

Understanding Plandalf's core concepts will help you make the most of the platform. Here's an overview of the key concepts and how they work together.

Architecture Overview

Plandalf is built on a modern, component-based architecture:

Service API

ComponentDescriptionUsage
Base URLhttps://api.plandalf.com/v1/Primary endpoint for all API interactions
AuthenticationAPI KeysUse backend API keys to authenticate requests
Response FormatJSONAll API responses are in JSON format

Data API

ComponentDescriptionUsage
Base URLhttps://data.plandalf.com/clientPrimary endpoint for all front-end interactions
AuthenticationAgent JWTUse Authorized JWT to authenticate requests
Response FormatJSONAll API responses are in JSON format

SDK

ComponentDescriptionUsage
JS Client SDK<script src="https://js.plandalf.com/v1.js"></script>JS Client SDK
JS App SDKnpm install @plandalf/plandalf-jsJS App SDK
React SDKnpm install @plandalf/react-plandalf-jsReact SDK

Billing Models

ModelDescriptionUsage
PackageProduct tier templateDefine pricing tiers (e.g., Basic, Pro, Enterprise) with shared feature sets
PlanSpecific package variantCreate variations of a package (e.g., Monthly Pro, Annual Pro) with different terms
ChargeIndividual billable itemTrack usage-based or one-time charges
FeatureSpecific product capabilityControl access to functionality
InclusionBundled items within a planDefine what's included in each tier
MetricsUsage measurementsTrack and bill based on consumption

Analytics Models

ModelDescriptionUsage
FlowComplete user journeyTrack end-to-end interaction paths
ScenarioFlow variantMonitor particular user scenarios
ActivityGroup of related actionsAnalyze user engagement patterns
ActionIndividual user interactionTrack specific user behaviors