Hysen Labs
Open-source project
CCharlieLi/bookmark-parser avatar
CCharlieLi

bookmark-parser

Find and parse Firefox/Chrome bookmark HTML and jsonlz4 file into useable JSON object or export as JSON file.

50 stars3 forksJavaScriptMIT
01
DEEP OPEN-SOURCE ANALYSIS

bookmark-parser: browser bookmarks to plain JSON

Converts Firefox and Chrome bookmark backups, both the HTML export and the jsonlz4 file, into a JSON object or file, with JSON export done today and platform coverage still being filled in.

02
DEEP OPEN-SOURCE ANALYSIS

The formats it reads

The tool finds and parses bookmark data from two sources: the HTML bookmark files both Firefox and Chrome export, and the jsonlz4 backup format Firefox uses. Either way the output is a usable JSON object, or the bookmarks can be written out as a JSON file. The point is to get browser bookmark data out of proprietary formats and into something plain that other tools can consume, which is a common need when moving between browsers or importing bookmarks into something else.

03
DEEP OPEN-SOURCE ANALYSIS

Done versus planned

A checklist tracks the state of things. Parsing the Firefox jsonlz4 backup, parsing the HTML bookmark files, finding and parsing the Firefox jsonlz4 file on macOS, and exporting to JSON are all checked off. Still open are an option for deduplication, jsonlz4 support on Windows and Linux, and Chrome bookmark backups outside macOS. So the macOS path is complete while the rest of the platforms wait, which matters if your bookmarks live on a Windows or Linux box. For the finished items, the README still records them in the same checklist, which is a nicer way to show what is tested than a feature list that overclaims.

04
DEEP OPEN-SOURCE ANALYSIS

The license

The README closes with a permissive license. Anyone obtaining a copy may use, copy, modify, merge, publish, distribute, and sell the software without restriction, the copyright notice has to travel with copies, and the software is provided as is with no warranty. For a small utility that mostly runs locally, that is about as little friction as a license gets.

05
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The parser handles the two common bookmark formats today, with deduplication and Windows and Linux support listed as the remaining work.

06
DEEP OPEN-SOURCE ANALYSIS

Official sources

07
Community notes

Community notes