-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Martin Schultheiss edited this page Nov 25, 2025
·
1 revision
A quick 5-minute guide to get Context Processor up and running.
- Node.js 16.0.0 or higher
- npm or yarn
npm install context-processorVerify installation:
npm list context-processorimport { ContextProcessor } from "context-processor";
// Initialize
const processor = new ContextProcessor();
// Save a context
const context = processor.save({
title: "My Documentation",
content: "This is some important documentation content.",
tags: ["docs", "important"]
});
console.log("Saved context:", context.id);// Load the context
const loaded = processor.load(context.id);
console.log("Loaded:", loaded.title);// List all contexts
const all = processor.list();
console.log("Total contexts:", all.length);
// Filter by tag
const docContexts = processor.search({ tags: ["docs"] });
console.log("Documentation contexts:", docContexts.length);// Save with clarification
const clarified = processor.save(
{
title: "My Text",
content: "This is very important and somewhat vague content...",
tags: ["text"]
},
"clarify" // Apply clarify strategy
);// Apply clarify + analyze + search
const enhanced = processor.save(
{
title: "Blog Post",
content: "My article content here...",
tags: ["blog"]
},
"comprehensive" // All strategies combined
);-
clarify- Clarity improvements -
search_optimized- Keyword extraction -
analysis- Content metrics -
comprehensive- All strategies -
web_enhanced- URL detection
Choose your use case:
- Building a Knowledge Base - Organize documentation
- Processing Content - Analyze and improve content
- Advanced Workflows - Multi-model strategies
See the API Reference for complete documentation of all 6 tools.
Check the FAQ for common questions and answers.
If you run into issues:
- Check Troubleshooting guide
- Review error messages carefully
- Open a GitHub Issue
Ready to build? Choose a scenario above and start exploring!