feat(devto): add devto adapter#234
Merged
jackwener merged 2 commits intojackwener:mainfrom Mar 22, 2026
Merged
Conversation
- Make tag/username args positional for natural CLI usage: opencli devto tag javascript (instead of --tag javascript) opencli devto user ben (instead of --username ben) - Add rank field (index + 1) matching hackernews/lobsters pattern - Add tags field from tag_list for richer output - Remove redundant author column from user command (already filtering by user) - Use type: str (project convention) instead of type: string - Increase default limit from 10 to 20 (matching other adapters) - Update docs with positional arg examples
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.
Description
This PR introduces the new DEV.to adapter to OpenCLI. It leverages the official, free DEV.to public API (
/api/articles) to lightning-fast stream high-quality developer articles directly into the terminal without requiring a browser session or API keys.Commands Added (
opencli devto):top- Fetch the top developer articles of the day globally (e.g.,opencli devto top --limit 5).tag- Fetch the latest articles filtered by a specific technology tag (e.g.,opencli devto tag --tag javascript).user- Fetch recent stories authored by a specific DEV.to user (e.g.,opencli devto user --username ben).Note: Fully documented and integrated into the VitePress website and project READMEs!
Related issue: N/A
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/docs/adapters/index.mdtabledocs/.vitepress/config.mtsScreenshots / Output