Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digital-alchemy/fastify-extension

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digital-alchemy/fastify-extension

- [Extended docs](https://docs.digital-alchemy.app) - [Discord](https://discord.gg/JkZ35Gv97Y)

  • 24.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
increased by105%
Maintainers
0
Weekly downloads
 
Created
Source

📨 Welcome to the Fastify Adapter Library

  • Extended docs
  • Discord

This library acts as a simple wrapper for Fastify, allowing it to be configured and loaded by @digital-alchemy workflows

🥡 Import Code

Add as a dependency, and add to your imports. Nice and easy

npm i @digital-alchemy/fastify-extension

Add to code

import { LIB_FASTIFY } from "@digital-alchemy/fastify-extension";

// application
const MY_APP = CreateApplication({
  libraries: [LIB_FASTIFY],
  name: "home_automation",
})

// library
export const MY_LIBRARY = CreateLibrary({
  depends: [LIB_FASTIFY],
  name: "special_logic",
})

🧲 Usage

export function Example({ fastify }: TServiceParams) {
  fastify.routes((fastify: FastifyInstance) => {
    fastify.post("/a", () => { /*...*/ });
    fastify.get("/b", () => { /*...*/ });
  });
}

FAQs

Package last updated on 25 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc