http-server VS wp-graphql

Compare http-server vs wp-graphql and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
http-server wp-graphql
62 53
13,251 3,593
0.8% 0.5%
0.0 9.6
about 1 month ago 2 days ago
JavaScript PHP
MIT License GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

http-server

Posts with mentions or reviews of http-server. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.
  • What is the Go equivalent of Node http-server?
    5 projects | /r/golang | 12 Feb 2023
    You probably need a few hundred lines of code and some external modules to be able to build what https://www.npmjs.com/package/http-server has. ``` Available Options: Command Description Defaults -p or --port Port to use. Use -p 0 to look for an open port, starting at 8080. It will also read from process.env.PORT. 8080 -a Address to use 0.0.0.0 -d Show directory listings true -i Display autoIndex true -g or --gzip When enabled it will serve ./public/some-file.js.gz in place of ./public/some-file.js when a gzipped version of the file exists and the request accepts gzip encoding. If brotli is also enabled, it will try to serve brotli first. false -b or --brotli When enabled it will serve ./public/some-file.js.br in place of ./public/some-file.js when a brotli compressed version of the file exists and the request accepts br encoding. If gzip is also enabled, it will try to serve brotli first. false -e or --ext Default file extension if none supplied html -s or --silent Suppress log messages from output --cors Enable CORS via the Access-Control-Allow-Origin header -o [path] Open browser window after starting the server. Optionally provide a URL path to open. e.g.: -o /other/dir/ -c Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds. To disable caching, use -c-1. 3600 -U or --utc Use UTC time format in log messages. --log-ip Enable logging of the client's IP address false -P or --proxy Proxies all requests which can't be resolved locally to the given url. e.g.: -P http://someurl.com --proxy-options Pass proxy options using nested dotted objects. e.g.: --proxy-options.secure false --username Username for basic authentication --password Password for basic authentication -S, --tls or --ssl Enable secure request serving with TLS/SSL (HTTPS) false -C or --cert Path to ssl cert file cert.pem -K or --key Path to ssl key file key.pem -r or --robots Automatically provide a /robots.txt (The content of which defaults to User-agent: *\nDisallow: /) false --no-dotfiles Do not show dotfiles --mimetypes Path to a .types file for custom mimetype definition -h or --help Print this list and exit. -v or --version Print the version and exit. Magic Files index.html will be served as the default file to any directory requests. 404.html will be served if a file is not found. This can be used for Single-Page App (SPA) hosting to serve the entry page. Catch-all redirect To implement a catch-all redirect, use the index page itself as the proxy with:
    5 projects | /r/golang | 12 Feb 2023
  • Let's build: DaisyUI and Tailwind CSS dashboard - part 1
    3 projects | dev.to | 20 Jan 2023
    Let’s go ahead and setup our http-server, for this we will be using http-server npm package to help us with this, this is useful for static sites where we do not want to setup a node server manually.
  • Latest online versions of MyEtherWallet-vX.X.X.zip show blank page in Firefox
    2 projects | /r/MyEtherWallet | 25 Oct 2022
    You may need to set it up locally to be served as a local site, using something like this https://www.npmjs.com/package/http-server
  • How do I "rehost" a webgame that was discontinued?
    3 projects | /r/webdev | 23 Sep 2022
    Once it's scraped a simple http server command could "host" it on your local machine to play: https://www.npmjs.com/package/http-server
  • Automating Tests using CodeceptJS and Testomat.io: First Steps
    8 projects | dev.to | 6 Sep 2022
    If you don't have a localhost preview server already, you can add one using the http-server package and adding a "serve" target in package.json (see example source code below).
  • Scully - Angular Static Site Generator
    3 projects | dev.to | 30 Aug 2022
    You will see your normal build file in dist folder and a new static folder that contains your SSG files. You can then run the site by switching to the static directory and using a local server like http-server to run the compliled code.
  • Cant launch html/javascript from my own pc.
    2 projects | /r/learnprogramming | 14 Aug 2022
    And for the record "server" doesn't necessarily mean you need a separate computer. You can simply use a script like http-server to setup a localhost server from a folder on your computer in one command and that'd solve this problem.
  • How to read directory and view its data in the browser ?
    2 projects | /r/node | 8 Aug 2022
    If you want the finished product, I think you should either install nginx or some other “real” httpd. If having a small node package is desirable, I’d check out the http-server package.
  • Setup Android Phone for Web Dev
    2 projects | dev.to | 22 Jul 2022
    To see our first project we need http-server

wp-graphql

Posts with mentions or reviews of wp-graphql. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-12.
  • Why Everyone Hates WordPress
    3 projects | dev.to | 12 Feb 2024
    Are you dead set on building a Nuxt + Vue application? Partial to NextJS like I am? Well good news everyone, WordPress has done a pretty decent job over the past couple of years building out the WordPress API and enabling developers to leverage WordPress as a Headless CMS. Pair that with the amazing WPGraphQL Pluginand you’re cooking with JavaScript. You get all the benefits of really solid backend CMS that end users are familiar with, and can grasp with a 1 hour CMS training, distributed using your favorite flavor of JavaScript.
  • redirect headless wordpress frontend without affecting API
    2 projects | /r/Wordpress | 15 Jun 2023
    I am using Headless Wordpress with https://www.wpgraphql.com/ for API hosted on SiteGround and Nextjs for frontend.
  • Why is does modern HTML/CSS seem so complex and convoluted? (details in comment)
    9 projects | /r/webdev | 23 May 2023
    - WPGraphQL
  • I made my own WordPress Plugin!
    2 projects | /r/PHP | 16 Mar 2023
    Look at other popular plugins to see what they do, and how that's different from what you did. For example browse a bit through https://github.com/wp-graphql/wp-graphql
  • Show HN: New GraphQL API for WordPress (1.5 years of development, 16000 commits)
    4 projects | news.ycombinator.com | 12 Jan 2023
    How does this compare to WPGraphQL https://www.wpgraphql.com that's been around for quite some time (https://github.com/wp-graphql/wp-graphql)

    Did you find shortcomings with that plugin?

  • Fullstack but new to WP - Searching for answers
    5 projects | /r/Wordpress | 30 Sep 2022
  • blog migrating from WP
    2 projects | /r/reactjs | 30 Jul 2022
    if you want to save yourself the headache of migrating all your content from WP you can keep WP and install something like this to get GraphQL data from your WP server. Then use Next.js with React Query or Apollo and rebuild your blog frontend only.
  • The company I work for is migrating to Wordpress and I don’t know what to expect
    3 projects | /r/webdev | 7 Jul 2022
    For a CMS-oriented solution (tbf, WP dashboard is pretty nice and familiar to many - plus rich plugin ecosystem, wide SEO and marketing support), try to push for Advanced Custom Fields as it is widely supported. For example, it can integrate with WPGraphQL (which could help unlock some modern frontend options).
    3 projects | /r/webdev | 7 Jul 2022
    WPGraphQL is pretty decent if you need an API for the content. WP's built-in "ajax" API has its purpose too, but I wouldn't use it as the main content API when the GraphQL option is readily available.
  • Inherited A PHP Mess
    4 projects | /r/Wordpress | 13 May 2022
    I've run into a similar issue where the company wanted to bring on their Wordpress blog content on one site into their main site. NextJS combined with WPGraphQL did the trick. If you are going the static site generation route the main drawback is having to rebuild and deploy every time a new blog post is made. Could host it on AWS Amplify but I use Netlify and Cloudflare Pages. Take a look through their pricing models and pick whatever feels comfortable for you (still assuming a static site generated setup). In my opinion, NextJS is good enough. If it gets the job done in a reasonable amount of time, pick it. You mention having experience with Vue so maybe Nuxt is a better option?

What are some alternatives?

When comparing http-server and wp-graphql you can also consider the following projects:

Live Server - A simple development http server with live reload capability.

json-server - Get a full fake REST API with zero coding in less than 30 seconds (seriously)

faustjs - Faust.js™ - The Headless WordPress Framework

yo - CLI tool for running Yeoman generators

elementor - The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.

mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

wp-graphql-woocommerce - Add WooCommerce support and functionality to your WPGraphQL server

Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.

alex - Catch insensitive, inconsiderate writing

wordpress-popular-posts - WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.

objectbox-dart - Flutter database for super-fast Dart object persistence

wp-graphql-jwt-authentication - Authentication for WPGraphQL using JWT (JSON Web Tokens)