Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

831 B
Raw Blame
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';

import { hackernewsAiActions } from './lib/actions/ai';
import { fetchTopStoriesAction } from './lib/actions/fetch-top-stories';
import { hackernewsClient } from './lib/common/client';

export const hackernews = createPiece({
	displayName: 'Hacker News',
	description: 'A social news website',

	minimumSupportedRelease: '0.88.2',
	logoUrl: 'https://cdn.activepieces.com/pieces/hackernews.png',
	auth: PieceAuth.None(),
	categories: [],
	authors: ['kishanprmr', 'AbdulTheActivePiecer', 'khaledmashaly', 'abuaboud'],
	actions: [
		fetchTopStoriesAction,
		...hackernewsAiActions,
		createCustomApiCallAction({
			baseUrl: () => hackernewsClient.baseUrl(),
		}),
	],
	triggers: [],
});