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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fastify-starter

v0.4.0

Published

Fastify Typescript Starter

Downloads

3

Readme

Welcome to fastify-starter 👋

Version License: MIT Twitter: jellydn

Fastify Typescript Starter

Features

  • Swagger documentation generator for Fastify https://github.com/fastify/fastify-swagger
  • Generates swagger/openapi specification based on jsDoc comments and YAML files. https://github.com/Surnet/swagger-jsdoc
  • Mercurius is a GraphQL adapter for Fastify https://mercurius.dev/
  • Code-GraphQL Nexus Declarative, Code-First GraphQL Schemas for JavaScript/TypeScript https://nexusjs.org
  • And some useful plugins as https://github.com/fastify/fastify-env, https://github.com/fastify/fastify-cors, https://github.com/fastify/fastify-helmet

Install

yarn install

Usage

yarn start

Swagger UI

Open below link on your browser with localhost http://localhost:3000/documentation or try with demo server https://fastify-starter.fly.dev/documentation

https://gyazo.com/6cf6c02cb36f9d4fababdde1ad071aba.gif

GraphQL Client IDE

Open below link on your browser with localhost http://localhost:3000/altair or try with demo server https://fastify-starter.fly.dev/altair

https://gyazo.com/49e9af06a6a13390abefd5c58a1296f7.png

GraphQL

If you are new to GraphQL, please watch the below video for more information. IT Man - Talk #27 - GraphQL 2022 Report Insights [Vietnamese]

Run below command in your terminal/CLI

curl -H "Content-Type:application/graphql" -XPOST -d "query { hello }" http://localhost:3000/graphql | jq .

Output:

{
  "data": {
    "hello": "Hello World!"
  }
}

Run tests

yarn test

Deployment

This template comes with two GitHub Actions that handle automatically deploying your app to production environment.

Prior to your first deployment, you'll need to do a few things:

  • Install Fly

  • Sign up and log in to Fly

    fly auth signup
  • Create a new app on Fly:

    fly create fastify-starter
  • Create a new GitHub Repository

  • Add a FLY_API_TOKEN to your GitHub repo. To do this, go to your user settings on Fly and create a new token, then add it to your repo secrets with the name FLY_API_TOKEN.

Now that every is set up you can commit and push your changes to your repo. Every commit to your main branch will trigger a deployment to your production environment.

GitHub Actions

We use GitHub Actions for continuous integration and deployment. Anything that gets into the main branch will be deployed to production after running tests/build/etc.

Author

👤 Huynh Duc Dung

Show your support

kofi paypal buymeacoffee

Give a ⭐️ if this project helped you!

Stargazers repo roster for @jellydn/fastify-starter