9AyKTgKpNfVQCebAPdMs5fPJA7QtyJMF7PkWjtbUpump
WaypointSDK is a TypeScript runtime kit for coordinating autonomous creator workflows.
It gives creator-agent systems a clean local execution layer: typed pipeline stages, deterministic agent handoffs, provider adapter boundaries, artifact tracking, analytics feedback, and versioned memory records. The SDK is built to make complex content operations inspectable, testable, and ready to evolve into real provider integrations.
npm install
npm run waypoint -- run gamingAutonomous creator systems need more than isolated model calls. They need a runtime that can answer:
- Which agent owns each stage?
- What typed input and output crossed the stage boundary?
- Which artifacts were generated?
- Which platform actions were attempted?
- What changed in memory after the run?
- How did analytics influence the next content decision?
- Can every decision be inspected after execution?
WaypointSDK is the coordination layer for those questions.
Creator Objective
|
v
WaypointSDK Runtime Coordinator
|
+-- Creator Agents
| trend discovery
| strategy
| scriptwriting
| media generation
| editing
| publishing
| community
| analytics
| optimization
|
+-- Provider Adapters
| social platforms
| media generation
| render jobs
|
+-- Memory Layer
| identity
| commits
| strategy history
| execution history
|
v
Artifacts + Analytics Feedback
- Node.js + TypeScript runtime coordinator.
- Typed staged pipeline model.
- Specialized creator-agent classes with structured outputs.
- Social provider adapter mocks for Instagram, TikTok, YouTube, X, Telegram, and Meta Graph.
- Media provider mocks, including a Remotion-style renderer.
- Local JSON persistence under
data/. - Gitlawb-style memory abstraction with DID-style agent IDs and versioned commits.
- CLI for running, inspecting, and cleaning sample runs.
- Vitest coverage for runtime completion, memory commits, provider adapters, and analytics scoring.
WaypointSDK ships with local deterministic adapters so runtime behavior can be tested without external accounts or secrets. The current adapters do not call real AI models, social APIs, media renderers, or Gitlawb infrastructure.
That keeps the coordination contract clear:
- provider boundaries are explicit
- runtime outputs are reproducible
- no API keys are required
- every run can be inspected from local JSON
The sample pipelines cover an end-to-end creator workflow:
trend_discovery
-> strategy_planning
-> scriptwriting
-> media_generation
-> video_editing
-> remotion_render
-> platform_publish
-> community_engagement
-> analytics_review
-> optimization_loop
Each stage includes an ID, type, name, assigned agent, status, schema names, and generated artifacts.
Agents implement a small runtime contract:
{
id: string;
name: string;
role: string;
capabilities: string[];
run(context, input): Promise<AgentResult>;
}Implemented agents:
TrendDiscoveryAgentStrategyAgentScriptwritingAgentVideoGenerationAgentEditingAgentPublishingAgentCommunityAgentAnalyticsAgentOptimizationAgent
Social providers expose:
publishPost()schedulePost()fetchAnalytics()fetchComments()replyToComment()
Media providers expose composition, render, image, and voice-generation shaped methods. Local implementations return structured records that match the runtime contract.
GitlawbMemoryStore records local versioned memory commits:
did:gitlawb:agent:waypointsdk:trend-discovery
Commit records include:
idrepoauthorAgentIdmessagetimestampparentCommitIdfilesChangedmetadata
Install dependencies:
npm installRun the gaming sample:
npm run waypoint -- run gamingRun the lifestyle sample:
npm run waypoint -- run lifestyleInspect a stored run:
npm run waypoint -- inspect <runId>List local memory commits:
npm run waypoint -- memoryClean local JSON records:
npm run waypoint -- cleandata/
runs/ persisted PipelineRun JSON
memory/ Gitlawb-style commit JSON
artifacts/ generated artifact metadata JSON
provider-actions/ social provider action JSON
Directories are created automatically by the JSON storage layer.
Requirements:
- Node.js 20 or newer
- npm
Commands:
npm install
npm run lint
npm test
npm run waypoint -- run gamingVitest covers:
- full pipeline completion
- memory commit creation and parent links
- duplicate run ID prevention
- structured provider responses
- analytics scoring recommendations
Run:
npm test- Stronger zod input and output schemas per stage.
- Runtime retry policies and resumable runs.
- Pluggable agent registry.
- Real provider adapter implementations behind the existing interfaces.
- Queue-backed execution.
- First-class artifact store.
- Human review gates.
- Policy checks for platform safety and brand constraints.
- Memory backend integration behind the current contract.
- Render job abstraction for Remotion or alternate renderers.
WaypointSDK stores local JSON files and does not handle secrets. Do not add real API keys to this repository. Real provider integrations should use encrypted secret storage, audit logs, permission boundaries, data retention controls, and platform policy review.
- GitHub: WaypointSDK
- X: @WaypointSDK
No license has been selected yet. Add a license before publishing publicly.