evernote-data-handling

Featured

Best practices for handling Evernote data. Use when implementing data storage, processing notes, handling attachments, or ensuring data integrity. Trigger with phrases like "evernote data", "handle evernote notes", "evernote storage", "process evernote content".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Evernote Data Handling ## Overview Best practices for handling Evernote data including ENML content processing, attachment management, local database sync, and ENEX export/import. ## Prerequisites - Understanding of Evernote data model (Notes, Notebooks, Tags, Resources) - Database for local storage (SQLite, PostgreSQL, etc.) - File storage for attachments ## Instructions ### Step 1: Data Schema Design Design a local database schema that mirrors Evernote's data model. Key tables: `notes` (guid, title, content, notebookGuid, created, updated, USN), `notebooks` (guid, name, stack), `tags` (guid, name), `resources` (guid, noteGuid, mime, hash, size). Track Update Sequence Numbers (USN) for incremental sync. ```sql CREATE TABLE notes ( guid TEXT PRIMARY KEY, title TEXT NOT NULL, content TEXT, notebook_guid TEXT REFERENCES notebooks(guid), created BIGINT, updated BIGINT, usn INTEGER DEFAULT 0 ); ``` ### Step 2: ENML Content Processing Parse ENML to extract plain text (strip tags), convert to HTML (replace `<en-note>` with `<body>`, resolve `<en-media>` to `<img>`/`<a>` tags), or convert to Markdown. Validate ENML before sending to the API by checking for required declarations and forbidden elements. ```javascript function enmlToPlainText(enml) { return enml .replace(/<\?xml[^>]*\?>/g, '') .replace(/<!DOCTYPE[^>]*>/g, '') .replace(/<[^>]+>/g, ' ') .replace(/\s+/g, ' ') .trim(); } ``` ### Step 3: Resource (Attachment) Handling Downloa...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category