Hashnode api hackathon project: OneDataExpress A WP Importer for hashnode

Debjit BiswasDebjit Biswas
4 min read
๐Ÿ’ก

Introduction

If you have worked with WordPress for long enough, in

In 2024, you will find a lot of simpler alternatives if you just want to blog. Hashnode is one of them. So I made an importer for it.

I think hosting a personal blog on WordPress is just too much of a headache. WordPress works well for larger websites with more complex needs, but for a simple personal blog, it can be overwhelming and unnecessary.

WordPress is not flexible and requires PHP knowledge to customise and make changes to the website layout and design. You have to install and manage plugins to add additional functionality, which can be time-consuming and potentially lead to compatibility issues. And it can also be difficult to find reliable support for troubleshooting and fixing any issues that may arise. Updating is a must for ensuring the security and stability of your website.

Using this application, we are able to convert your WordPress website into a Hashnode blog quickly. This application simplifies the process and eliminates the need for extensive technical knowledge. With Hashnode, you will be able to focus on your blog and create content without having to worry about the technical aspects.

Problem :

WordPress is open source but needs a lot of customisation for everything you need. For a small blogger, maintaining a WordPress site is a lot of work. There is no official WordPress to Hashnode one-click importer. If you have 10โ€“12 posts, it is very easy to copy and paste, but what if you have over 100?

Solution:

"OneDataExpress" is your one stop to get control of your blogging platforms and data. It currently supports WordPress for Hashnode porting. What does that mean? It means that with this application, you can migrate from WordPress with just one click. It does not matter if you have 100 or 10,000 posts; it will work; it just takes more time.

Here are some of the use cases to follow.

  • Alternatives for WordPress:

Convert WordPress posts seamlessly to Hashnode with just a few clicks. Edit before you publish: Make any necessary edits to your converted WordPress posts before publishing them on Hashnode.

  • An archive blog:

If you, for any reason, want to archive the blog and do not want the hassle of maintaining it, this is just the solution. Convert your WordPress to hashnode and update when necessary. This will save a lot of time, effort, and resources in managing your blog, but you get to enjoy fast and updated results as this is maintained by Hasnode and hosted in Vercel.

  • Use headless and the CDN provided by Hashnode.

Hashnode provides an API that allows you to fetch and display various data from your Hashnode blog on external websites or applications. So you just use this feature to customise if you need to.

Features of this application:

  • Convert a WordPress post to markdown.

  • Update the post if needed.

  • Update first 5 tags of your post

  • Post to multiple Hashnode accounts.

  • Post all the blogs on one WordPress site to a Hashnode blog.

  • Post a single post to one or multiple Hashnode sites.

  • Search through post

  • Sort through posts

  • Multi-select posts

  • Activity on the post and site fields.

Upcoming features:

  • Wizerd for one-click conversion of WordPress to Hashnode blogs. Simplify your blogging process with seamless integration between WordPress and Hashnode.

  • All draft posts from wordpresss

  • Export your whole WordPress blog to Markdown files.

  • Access all WordPress posts using authentication.

  • Adding an editor for creating and editing blog posts.

  • Integration with more applications. Enhanced customisation options.

  • Automatic media management. Improved performance and security measures.

And many more to come. If you have any requests, please let me know and post suggestions on github.

How to use this application

To use this application, you must install it locally, as this is just a concept application and not tested for production.

You need this to run the application.

  1. Local installation of WordPress ( WordPress wp-api version 2: List of WordPress URLs)

  2. Hashnode API key

  3. Publication id

  4. PHP web development is required for the proper functioning of this application.

  5. Follow this tutorial to set it up. The tutorial will guide you through the process of setting up a local installation of WordPress and obtaining the Hashnode API key and publication ID required for the proper functioning of this application.

Tech Stack

  • Laravel + Livewire + Filament + MySql

Conclusion

This is a proof of concept and needed a lot of work to be done correctly, but it shows great potential for future improvements. Please use with caution.

12
Subscribe to my newsletter

Read articles from Debjit Biswas directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Debjit Biswas
Debjit Biswas

Developer