feat: add Flomo memos reader adapter#1549
Open
Pandas886 wants to merge 8 commits into
Open
Conversation
added 8 commits
May 14, 2026 11:12
Read your Flomo memos via the signed API. - flomo memos: Lists recent memos with content, tags, timestamps Uses the Flomo v1 API with MD5 signing (secret embedded). Requires FLOMO_ACCESS_TOKEN env variable. Supports pagination via --slug cursor and --limit.
Use Strategy.COOKIE + browser:true instead of PUBLIC + manual token. The adapter now reads flomo_token from localStorage in the browser, and makes the signed API call from within the page context via fetch(). Signature is computed in Node.js and injected into the browser eval. No env var or --token flag needed.
Flomo API requires Bearer token from access_token field in localStorage.me (not api_token). Adapter now reads access_token from the browser's localStorage and calls the signed API from Node.js with the Bearer header.
- Add --since <unix_ts> to filter memos by updated_at - Add --limit 200 to fetch all memos in one call - Mark --slug as experimental (cursor pagination unreliable) - 5 tests passing
2867b4a to
d95e022
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new adapter for reading memos from Flomo, a popular card-based note-taking app. The adapter accesses the user's memos via Flomo's internal signed API, with authentication handled through the browser login session.
Commands
opencli flomo memos [options]Technical Details
Auth strategy:
Strategy.COOKIEwithbrowser: true. The adapter navigates tov.flomoapp.com(the Flomo SPA) and reads the access token fromlocalStorage.me.access_token. No manual token setup or environment variables needed.API integration: Flomo's internal API at
flomoapp.com/api/v1/memo/updated/uses a custom MD5 signing mechanism. Parameters are sorted alphabetically and hashed with a static secret key. The adapter implements this signing in Node.js using the built-incryptomodule.Arguments:
--limit(default: 20, max: 200) — number of memos to fetch. Use--limit 200to fetch all memos in one call--since <unix_ts>— only return memos updated after this timestamp (experimentally verified to work)--slug <cursor>— experimental cursor-based paginationOutput columns:
content,slug,tags,images,created_at,updated_atTesting
--sincedate filtering returns correct resultsFiles Changed
clis/flomo/memos.js— main adapter implementationclis/flomo/memos.test.js— unit tests (5 tests)cli-manifest.json— regeneratedCloses #1548