Skip to content

Souravdey777/HashnodeBlogCards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hashnode Blog Cards

Hashnode Blog Cards

Hashnode Blog Cards

Are you a blogger πŸ“ on Hashnode?

Reference Link πŸ”— of Blogs are not enough, Give your blogs what it actually deserves with Blog Cards πŸ”₯

⚑ Fetch the Blogs from Hashnode and put it anywhere in .md file, or any markdown editor. It can also be added to any website with HTML syntax.

Go to Hashnode Blog Cards β†’

Hashnode Blog Cards

Table of Contents

About Hashnode Blog Cards

What is Hashnode?

Hashnode is a free developer blogging platform that allows developers to publish articles on their own domain and helps them stay connected with a global developer community. This gives them a huge advantage: Google and other search engines send traffic directly to the authors' domain, and Hashnode community members discover articles on their feed.

What is Hashnode Blog Cards

⚑ The Hashnode Blog Cards is a set of GET requests which will fetch the Blogs from your Hashnode ids with few parameters and will create SVG cards to bring 😎 awesomeness to your blog links. πŸŽ‰

It can be added anywhere in Github, Hashnode, Devpost, Postman Documentation, or any markdown editor. It can also be added to any website with HTML syntax with just the img tag

It is simple to use and the APIs can be explored with the Hashnode Blog Cards API Playground.

Why wait? Straightaway go to the website and join the Awesomeness 😎

https://hashnode-blog-cards.vercel.app

You can also Check my blog on Hashnode Blog Cards

Blog on Hashnode Blog Cards

About The API Endpoints

How to use it?


getHashnodeBlog

This API endpoint will fetch a specific blog by its URL

https://hashnode-blog-cards.vercel.app/api/getHashnodeBlog?url=https://souravdey777.hashnode.dev/flexbox-guide-flexbox-layout-made-simple-with-an-interactive-tool&large=true&theme=light

Response

List of parameters

  • url= The URL of the specific blog

This is a mandatory parameter

eg. https://souravdey777.hashnode.dev/flexbox-guide-flexbox-layout-made-simple-with-an-interactive-tool

  • theme= The theme of the Card.

This is not a mandatory parameter and the default value is light. Other values are possible values are dark or blue

  • large= The size of the Card.

This is not a mandatory parameter and the default value is false. And when set to true gives a larger Card.


getHashnodeBlogBySequence

This API endpoint will fetch a specific blog by the Hashnode username of the author and the serial no of the blog starting from 1 being the latest.

https://hashnode-blog-cards.vercel.app/api/getHashnodeBlogBySequence?username=Souravdey777&sequence=1&large=true&theme=light

Response

List of parameters

  • username= The hashnode username of the blogger.

This is a mandatory parameter.

eg. souravdey777 this is my hashnode username.

  • sequence= The serial no of the blog starting from 1 being the latest. Because of this parameter, the blogs will be changing when you add them to your website or Github profile whenever you add a new blog.

This is a mandatory parameter.

eg. souravdey777 this is my hashnode username.

  • theme= The theme of the Card.

This is not a mandatory parameter and the default value is light. Other values are possible values are dark or blue

  • large= The size of the Card.

This is not a mandatory parameter and the default value is false. And when set to true gives a larger Card.


getLatestHashnodeBlog

This API endpoint will fetch a set of the latest blogs by the Hashnode username of the author and the limit up to which the blogs are needed

https://hashnode-blog-cards.vercel.app/api/getLatestHashnodeBlog?username=Souravdey777&limit=3&large=true&theme=light

Response

List of parameters

  • username= The hashnode username of the blogger.

This is a mandatory parameter.

eg. souravdey777 this is my hashnode username.

  • limit= The no of the blog starting from latest to the limit defined or all blog you have if the no of blog you have is less than the limit defined.

It is not a mandatory param and the default value is 3. The maximum possible value is 6.

eg. souravdey777 this is my hashnode username.

  • theme= The theme of the Card.

This is not a mandatory parameter and the default value is light. Other values are possible values are dark or blue

  • large= The size of the Card.

This is not a mandatory parameter and the default value is false. And when set to true gives a larger Card.


Now let's see what are the themes we have,

theme=light,theme=dark and theme=blue


Now let's see the different size we have

large=true and large=false

For 'img' tag custom size defined with width and height attributes.


Markdown Syntax

[![Hashnode Blog Card](https://hashnode-blog-cards.vercel.app/api/API_ENDPOINT?PARAMS)](BLOG_URL)

HTML

<a href="BLOG_URL">
<img src="https://hashnode-blog-cards.vercel.app/api/getHashnodeBlog?url="https://hashnode-blog-cards.vercel.app/api/API_ENDPOINT?PARAMS" alt="Sourav Dey's Hashnode Blog Cards" />
</a>

Features

  • Dynamic URL creation
  • Dynamic SVG
  • Tool to share your Hashnode Blog

Technologies

  • nextjs
  • reactjs
  • nodejs
  • lottie animation
Dependencies
  "dependencies": {
    "axios": "^0.21.1",
    "next": "10.0.5",
    "prop-types": "^15.7.2",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-lottie": "^1.2.3"
  },
  "devDependencies": {
    "eslint": "^7.19.0",
    "eslint-config-prettier": "^7.2.0",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-react": "^7.22.0",
    "eslint-plugin-react-hooks": "^4.2.0",
    "eslint-plugin-simple-import-sort": "^7.0.0",
    "prettier": "^2.2.1"
  }

Setup

Clone/download the repository on your local machine.
`git clone https://github.com/Souravdey777/HashnodeBlogCards.git`
Install dependencies
`npm install` or `yarn install`
Run dev server on your local machine. πŸš€
`npm run dev` or `yarn run dev`

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Or you can open it using Gitpod

Open in Gitpod

Contribution and Support

Loved it!. ⭐ Star the Repository and support the project.

Upvote in πŸš€ Product Hunt.

Hashnode Blog Cards - ⚑ Give your blogs what it actually deserves with Blog Cards. | Product Hunt

πŸ‘¨β€πŸš€ Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

Buy Me A Coffee

License

πŸ“ Distributed under the MIT License. See LICENSE for more information.

Contact

Portfolio LinkedIn Twitter Mail Medium Medium Coder Rank Product Hunt Speaker Deck Instagram

Learn More about Nextjs

This is a Next.js project bootstrapped with create-next-app.

To learn more about Next.js, take a look at the following resources:
To learn about React, check out the React documentation.

You can check out the Next.js GitHub repository

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.