Platform
Pulse
Overview

Pulse (PBCP Pulse)

App URL: https://pulse.pcampus.co
Context API: https://pbcp-api.pcampus.co/context

Overview

PBCP Pulse is the reference application of the Pcampus Business Context Platform (PBCP). It transforms Business Context into Business Stories that business owners can understand without needing to know the underlying infrastructure.

Every screen answers: What happened? · Why? · What next?

Pulse is not an ops dashboard — it is a Story Explorer that lets businesses see themselves through the lens of their data.

Who uses this

PersonaWhat they do
Business owner / StakeholderView Business Stories — what customers are doing, how sales are trending, whether promotions are working
Product ManagerVerify the accuracy of Business Context
Platform EngineerUse Developer Mode — Event Timeline, Pipeline, Health
Sales / DemoDemonstrate PBCP value to prospective customers in 60 seconds

Two modes

Story View — the default experience for business stakeholders: see each entity's story through a timeline
Developer Mode — secondary mode for engineers who need to inspect raw events and the pipeline

Story View — how it works

Story types

A Story is the evolution of a business entity reconstructed from Business Context — not a log of raw events.

StoryQuestion it answers
Customer StoryWho is this customer, what have they done, what is their total value?
Order StoryHow did this order travel through the system, where did it get stuck?
Product StoryHow well does this product sell, who buys it, and when?
Campaign StoryDid this campaign work, who responded?
Promotion StoryWas this promotion worth it compared to the revenue it drove?

One engine, many domains — a pharmacy uses Customer Story and Order Story out of the box; other domains (retail, school, factory) use the same engine.

Data flow

Story Timeline UX

Three-panel layout — select an entity → see its timeline → drill down into details + recommended actions

Pilot — Pharmacy

Pharmacy Platform is the first production implementation of PBCP.

The pharmacy sends Business Events via the Event SDK:

  • customer.visited — patient visits the pharmacy
  • prescription.dispensed — medication dispensed
  • product.sold — product sold
  • payment.completed — payment received

Pulse displays the Customer Story: how often this patient visits, what they purchase, whether they are on continuous medication — without ever opening the database directly.

Technical overview

AreaChoice
FrameworkNext.js, React, TypeScript
UITailwind CSS, shadcn/ui
AnimationMotion (motion.dev) — timeline transitions
ChartsApache ECharts — funnel, sankey, time series
Story TimelineCustom StoryTimeline component (no chart library)
Context APIPBCP Context API v1 (required)
IntelligencePBCP Intelligence API v1 (optional enrich)
Deploymentcockpit.pcampus.local · demo env: COCKPIT_DEMO_MODE

Integration

Pulse reads data through the Context API only — it never queries the Event Store directly and never sends LINE messages, emails, or push notifications itself.

Context API overview

MethodEndpointDescription
GET/context/pulseToday's business summary
GET/context/customersList customers with context
GET/context/customers/:idFull Customer Context + story
GET/context/ordersList orders with context
GET/context/orders/:idFull Order Story
GET/context/products/:idProduct Story
GET/context/campaigns/:idCampaign Story

Full PBCP Core API reference → API Reference →