npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@notesnook-importer/samsung-notes

v1.1.1

Published

A fully tested type-safe Samsung Notes .sdocx parser used in Notesnook Importer.

Readme

Samsung Notes (.sdocx) Import Support

This package (@notesnook-importer/samsung-notes) parses Samsung Notes .sdocx files — ZIP archives containing binary note metadata, page files, and media assets — and converts them into HTML.

Supported

Note metadata

  • Title (falls back to the first non-empty line of body text when empty)
  • Created & modified dates
  • Page order (from pageIdInfo.dat) and per-page canvas geometry
  • Tags (from page properties)
  • Note background color per page

Typed text (keyboard input)

  • Body text with paragraph structure
  • Character formatting:
    • Text color
    • Background color (highlights)
    • Font size & font family
    • Bold, italic, underline, strikethrough
    • Hyperlinks (linked text becomes an <a> element)
  • Paragraph formatting:
    • Alignment (left, right, center, justify)
    • Bulleted lists (circle, diamond, arrow)
    • Numbered lists (digits, circled digits, alphabet, roman numerals)
    • Checklists (checkbox paragraphs)
    • Line spacing & indentation

S Pen handwriting

  • Handwritten strokes are rendered as SVG images (base64 data URIs in <img> tags) preserving:
    • Stroke geometry (all points)
    • Pen color
    • Pen size
    • Pressure & timestamps (parsed; see limitations)
  • Strokes without a direct color fall back to the pen preset info stored in note.note

Images & files

  • Inserted images, rendered at their original position and size, including crop rectangles
  • Imported PDF page backgrounds
  • Attached files (from the attached-file table in note.note), exported as attachments at the end of the note
  • Voice recordings (name, duration and timestamps), exported as audio attachments rendered as <audio> elements
  • All referenced media files (from media/mediaInfo.dat) are exported as attachments

Note structure

  • One .sdocx file maps to a single note with all pages concatenated
  • Empty trailing placeholder pages are skipped

Not supported

The following parts of the .sdocx format are not imported:

  • Locked/encrypted notes — page data is encrypted and is not decrypted
  • .spi painting/cache payloads — proprietary raster encoding; .spi files are preserved as opaque attachments only
  • Stroke pressure — pressure values are parsed but not used to vary SVG stroke width (strokes render with uniform width)
  • Pen materials — fountain pen/brush textures are not rendered; only color, size and geometry are preserved
  • Layer metadata — layer visibility/locking is ignored; all layers are rendered in stacking order
  • Templates & custom objects — page templates, canvas cache maps and custom object payloads are skipped

Usage

import { parse, toHTML } from "@notesnook-importer/samsung-notes";

// `data` is the raw .sdocx file contents
const parsed = parse(data);
const html = await toHTML(parsed, elementHandler);

Pass an IElementHandler to toHTML to receive media files (images, PDFs) for attachment creation. Without a handler, images are embedded as data URIs.