EV

evernote-reference-architecture

Production-ready patterns for designing scalable service layers and sync architectures for Evernote.

Install

mkdir -p .claude/skills/evernote-reference-architecture && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4807" && unzip -o skill.zip -d .claude/skills/evernote-reference-architecture && rm skill.zip

Installs to .claude/skills/evernote-reference-architecture

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Reference architecture for Evernote integrations.
49 charsno explicit “when” trigger
Advanced

Key capabilities

  • Design service layers for note, search, and sync operations
  • Implement two-level caching with in-memory LRU and Redis
  • Build webhook-first sync architecture with polling fallback
  • Mirror Evernote data locally for fast reads
  • Manage dependency injection via service registry

How it works

It organizes integrations into distinct service layers and uses a message queue to process webhook events, ensuring reliability through state persistence.

Inputs & outputs

You give it
Evernote API credentials and webhook events
You get back
Scalable integration architecture with local data mirroring

When to use evernote-reference-architecture

  • Design service layers for Evernote apps
  • Implement caching strategies for notes
  • Plan for webhook-based sync architecture
  • Define infrastructure for Evernote services

About this skill

Evernote Reference Architecture

Overview

Production-ready architecture patterns for building scalable, maintainable Evernote integrations. Covers service layer design, caching strategy, sync architecture, and deployment topology.

Prerequisites

  • Understanding of microservices or modular monolith architecture
  • Cloud platform familiarity (AWS, GCP, or Azure)
  • Knowledge of message queues and caching

Instructions

Architecture Layers

Client Layer    [Web App / Mobile / CLI]
                        |
API Layer       [Express/Fastify REST API]
                        |
Service Layer   [NoteService | SearchService | SyncService]
                        |
Integration     [EvernoteClient (rate-limited, instrumented)]
                        |
Infrastructure  [Redis Cache | PostgreSQL | Message Queue]

Service Layer Design

Separate concerns into focused services:

  • NoteService: CRUD operations, ENML formatting, tag management
  • SearchService: Query building, pagination, result enrichment
  • SyncService: Webhook handling, incremental sync, conflict resolution
  • AuthService: OAuth flow, token storage, refresh logic
// services/index.js - Service registry
class ServiceRegistry {
  constructor(noteStore, cache, db) {
    this.notes = new NoteService(noteStore);
    this.search = new SearchService(noteStore, cache);
    this.sync = new SyncService(noteStore, db);
  }
}

Caching Strategy

Cache at two levels: in-memory LRU for hot data (note metadata, user info) and Redis for shared state (notebook lists, tag lists, sync checkpoints). Invalidate on webhook notification.

Sync Architecture

Use webhooks as the primary change notification channel. Fall back to polling when webhooks are unavailable. Process changes through a message queue for reliability and retry. Store sync state (USN) in the database for crash recovery.

Evernote Webhook → API Gateway → Message Queue → Sync Worker → Database
                                                      ↓
                                              Evernote API (fetch changes)

Database Schema

Store mirrored Evernote data locally for fast reads. Key tables: users (token, expiration), notebooks, notes (content, metadata), tags, resources (metadata, file path), sync_state (user_id, last_usn).

For the complete architecture diagrams, service implementations, database schema, and scaling guidelines, see Implementation Guide.

Output

  • Layered architecture with clear separation of concerns
  • Service registry pattern for dependency management
  • Two-level caching strategy (in-memory + Redis)
  • Webhook-first sync architecture with polling fallback
  • Database schema for local data mirroring
  • Message queue integration for reliable event processing

Error Handling

Failure ModeImpactMitigation
Evernote API outageAll sync stopsCircuit breaker, serve cached data
Redis downIncreased API call rateFall through to direct API, in-memory fallback
Database failureCannot persist sync stateQueue events, replay after recovery
Message queue failureWebhook events lostPolling fallback, periodic full sync

Resources

Next Steps

For multi-environment setup, see evernote-multi-env-setup.

Examples

Note-taking SaaS: Build a web app where users connect their Evernote account via OAuth, sync notes to a local database, provide full-text search via PostgreSQL, and push changes back to Evernote.

Team dashboard: Aggregate notes from multiple Evernote Business users into a shared dashboard. Use the sync architecture to keep data fresh. Cache notebook/tag lookups for sub-100ms response times.

When not to use it

  • When Redis is unavailable for shared state
  • When webhook notifications are not supported

Prerequisites

Understanding of microservices or modular monolith architectureCloud platform familiarityKnowledge of message queues and caching

Limitations

  • Evernote API outage stops all synchronization
  • Database failure prevents persistence of sync state

How it compares

This architecture uses a webhook-first approach with polling fallback and local database mirroring, rather than relying solely on direct API calls.

Compared to similar skills

evernote-reference-architecture side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
evernote-reference-architecture (this skill)127dNo flagsAdvanced
software-architecture3336moNo flagsIntermediate
architect-review1094moNo flagsAdvanced
mcp-builder1363moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

architect-review

sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

109320

mcp-builder

anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

136215

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

codex

Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

32238

architecture-patterns

wshobson

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use when architecting complex backend systems or refactoring existing applications for better maintainability.

55214

Search skills

Search the agent skills registry