How inkand-paper/optimizer works
NexPulse is an infrastructure intelligence platform for development teams. Users work from the dashboard to monitor sites, inspect incidents, audit code, and manage integrations; API and scheduled endpoints provide automation and public status pages. The graph preserves the README’s major capabilities, including cache revalidation, SEO/performance analysis, AI assistance, trials, digests, and webhooks. Some subsystems are represented by their exact enclosing directories because their implementation was not sampled; their internal relationships are therefore omitted where evidence is unavailable.
Main entry points: page.tsx Command dashboard · prisma.ts Application database · monitors/route.ts Monitor management · revalidate/route.ts Cache revalidation
Components 24
Product experience
- Command dashboard
app/dashboard/page.tsx - Public status pages
app/status/[slug]/page.tsx - Monitoring dashboard
components/monitoring-dashboard.tsx - Code audit console
components/code-audit-console.tsx
Monitoring and operations
- Monitor management
app/api/monitors/route.ts - Health checks
lib/monitoring.ts - Incident automation
app/api/autopilot/incidents/route.ts - FinOps insights
components/finops-preview.tsx
Auditing and AI
- Code audit endpoint
app/api/code-review/route.ts - AI code review
core/analyzer/code-review.ts - SEO and performance audit
core/analyzer/index.ts - Pulse-AI assistant
app/api/ai/chat/route.ts
Automation and integrations
- Pull request bot
app/api/pr-bot/route.ts - Cache revalidation
app/api/revalidate/route.ts - Webhook management
components/webhook-manager.tsx - Webhook delivery
lib/webhooks.ts - MCP tools API
app/api/mcp/route.ts
Accounts and platform
- Account and MFA
app/api/auth - Student and gifted trials
app/api/student - Weekly email digest
app/api/cron/weekly-digest/route.ts - Application database
lib/prisma.ts - Plan entitlements
lib/plans.ts
Other components
- Engineering team
- External services
Connections 31
- Engineering team → Command dashboard: uses
- Command dashboard → Monitoring dashboard: shows
app/dashboard/page.tsx - Command dashboard → Code audit console: shows
app/dashboard/page.tsx - Command dashboard → FinOps insights: shows
app/dashboard/page.tsx - Command dashboard → Pull request bot: offers
app/dashboard/page.tsx - Engineering team → Public status pages: views
- Monitoring dashboard → Monitor management: manages
- Monitor management → Health checks: uses
app/api/monitors/route.ts - Monitor management → Application database: reads and writes
app/api/monitors/route.ts - Engineering team → Code audit console: submits code
- Code audit console → Code audit endpoint: requests audits
- Code audit endpoint → AI code review: runs review
app/api/code-review/route.ts - Code audit endpoint → Application database: stores reviews
app/api/code-review/route.ts - AI code review → External services: queries AI providers
core/analyzer/code-review.ts - Engineering team → SEO and performance audit: audits live URLs
- Engineering team → Pulse-AI assistant: asks questions
- Engineering team → Cache revalidation: requests revalidation
- Cache revalidation → Application database: looks up keys
app/api/revalidate/route.ts - Cache revalidation → Webhook delivery: dispatches events
app/api/revalidate/route.ts - Cache revalidation → External services: sends email alerts
app/api/revalidate/route.ts - Webhook management → External services: registers destinations
- Webhook delivery → Application database: loads subscriptions
lib/webhooks.ts - Webhook delivery → External services: posts alerts
lib/webhooks.ts - Engineering team → MCP tools API: invokes tools
- MCP tools API → Application database: reads monitor data
app/api/mcp/route.ts - MCP tools API → SEO and performance audit: runs URL audit
app/api/mcp/route.ts - Account and MFA → Application database: manages accounts
- Student and gifted trials → Application database: manages trial access
- Weekly email digest → External services: sends summaries
- Command dashboard → Plan entitlements: presents plan features
app/dashboard/page.tsx - Monitor management → Plan entitlements: checks limits
app/api/monitors/route.ts