Skip to main content

@idiomark/adapter-devto

DEV.to adapter for Idiomark (Personality & Content Profile) extraction. This adapter fetches blog posts, comments, and user interactions from DEV.to for personality analysis.

Features​

  • Posts: Blog articles and technical content
  • Comments: Discussion and responses on posts
  • User Profile: Bio, location, and social links
  • Tags: Technical topics and interests
  • Engagement: Reactions, comments, and views

Authentication​

The DEV.to adapter uses API key authentication:

import { DevtoAdapter } from '@idiomark/adapter-devto'

const adapter = new DevtoAdapter({
apiKey: 'your-devto-api-key',
username: 'username-here'
})

Get your API key from: https://dev.to/settings/account

Usage​

import { DevtoAdapter } from '@idiomark/adapter-devto'

const adapter = new DevtoAdapter({
apiKey: 'your-api-key',
username: 'johndoe'
})

await adapter.authenticate()

const result = await adapter.getStructuredOutput({
limit: 50,
includeComments: true,
includeArticles: true
})

console.log('Articles fetched:', result.rawContent.length)
console.log('Writing style:', result.personalitySignals?.writingStyle)

Rate Limiting​

  • API Rate Limit: 1000 requests per hour per IP
  • Minimum Request Interval: 1 second between requests
  • Automatic Rate Limit Handling: Built-in

License​

MIT