npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

freest-api

v0.0.0-semantically-released

Published

Free RESTful API to practice

Downloads

28

Readme

freest-api

Feel FREE to practice RESTful API

When to use freest-api?

If you are a Front-End Developer and you want to practice your skills and play around the latest Front End Frameworks in Javascripts or whatsoever but you do not have a REST API available, this is for you.

Oh yeah... did I already mentioned that this is for free? Yes, you're right, feel free to use and practice your Front End Skills (whatever) e.g. ReactJS, VueJS, AngularJS, etc.

alt text

How it Works

You can visit the swagger http://54.255.174.15:911/swagger

You can visit the get all superheroes http://54.255.174.15:911/api/v1/superhero/heroes

Create Record

fetch('http://54.255.174.15:911/api/v1/superhero/heroes', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'Batman',
    dateAppearance: '09/09/1986',
    place: 'Gotham city',
    powerStats: {
      intelligence: 34,
      strength: 23,
      speed: 45,
      durability: 23,
      power: 12,
      combat: 43,
    },
    appearance: {
      gender: 'male',
      race: 'Human',
      weight: [
        {
          lb: 110,
          kg: 54,
        },
      ],
    },
    aliases: ['dark knight'],
  }),
})
  .then(response => response.json())
  .then(response => {
    console.log('You saved this item', response);
  });

Read Record

// Get single record
fetch(
  'http://54.255.174.15:911/api/v1/superhero/heroes/5d8e2acfdb140390a701e759',
)
  .then(response => response.json())
  .then(response => {
    console.log('My superhero is...', response);
  });

// Get all records
fetch('http://54.251.135.247:5012/api/v1/superhero/heroes')
  .then(response => response.json())
  .then(response => {
    console.log('So many superheroes', response);
  });

Update Record

fetch(
  'http://54.255.174.15:911/api/v1/superhero/heroes/5d8e2acfdb140390a701e759',
  {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      name: 'Superman',
      dateAppearance: '09/09/1986',
      place: 'Gotham city',
      powerStats: {
        intelligence: 34,
        strength: 23,
        speed: 45,
        durability: 23,
        power: 12,
        combat: 43,
      },
      appearance: {
        gender: 'male',
        race: 'Human',
        weight: [
          {
            lb: 110,
            kg: 54,
          },
        ],
      },
      aliases: ['dark knight'],
    }),
  },
).then(response => {
  console.log('Update superhero!', response.status);
});

Delete Record

fetch(
  'http://54.255.174.15:911/api/v1/superhero/heroes/5d8e2acfdb140390a701e759',
  {
    method: 'DELETE',
  },
).then(response => {
  console.log('Goodbye my superhero!', response.status);
});

How to Setup in Localhost (Development)

Pre-requisite

  • MongoDB Installed
  • Nodejs Installed
$ git clone https://github.com/nenjotsu/freest-api.git
# Setup your .env file, you can see the .env.sample for reference
$ npm i
$ npm run start:dev
# start in production
$ pm2 start npm --no-automation --name freest -- run start:prod
# restart server
$ pm2 restart freest

Terms of Use

  • this is not for production of course, whatever data you enter we are not liable for any loss,
  • feel free to add superheroes data

Contribution

If you feel you want to contribute or any suggestion you have in mind please open an issue.

Follow me on github @nenjotsu