🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@jackdbd/fastify-media-endpoint

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackdbd/fastify-media-endpoint

Fastify plugin that adds a [Micropub Media endpoint](https://www.w3.org/TR/micropub/#media-endpoint) to a Fastify server.

0.2.0-canary.21
latest
npm
Version published
Weekly downloads
7
-87.04%
Maintainers
0
Weekly downloads
 
Created
Source

@jackdbd/fastify-media-endpoint

npm version install size CodeCov badge Socket Badge

Fastify plugin that adds a Micropub Media endpoint to a Fastify server.

Installation

npm install @jackdbd/fastify-media-endpoint

Fastify plugin media-endpoint options

Options for the Fastify media-endpoint plugin

Properties

NameTypeDescriptionRequired
ajvInstance of Ajv
no
deleteMedia
(Delete post)
FunctionDeletes a post published at a URL.
yes
includeErrorDescriptionbooleanWhether to include an error_description property in all error responses. This is meant to assist the client developer in understanding the error. This is NOT meant to be shown to the end user.
Default: false
no
isAccessTokenRevokedFunctionPredicate function that returns true if a jti (JSON Web Token ID) is revoked.
yes
logPrefixstringDefault: "[media-endpoint] "
no
meyes
multipartFormDataMaxFileSize
(multipart/form-data max file size)
numberMax file size (in bytes) for multipart/form-data requests.
Default: 10000000
Minimum: 0
no
reportAllAjvErrors
(report all AJV errors)
booleanWhether to report all AJV validation errors.
Default: false
no
uploadMedia
(Upload file)
FunctionUploads a file to the Micropub server.
yes

Example

{
    "includeErrorDescription": false,
    "logPrefix": "[media-endpoint] ",
    "multipartFormDataMaxFileSize": 10000000,
    "reportAllAjvErrors": false
}

Dependencies

PackageVersion
@fastify/multipart^9.0.3
@fastify/response-validation^3.0.3
@jackdbd/canonical-url0.2.0-canary.8
@jackdbd/fastify-hooks0.2.0-canary.16
@jackdbd/fastify-utils0.2.0-canary.10
@jackdbd/indieauth0.2.0-canary.14
@jackdbd/micropub0.2.0-canary.13
@jackdbd/oauth2-error-responses0.2.0-canary.9
@jackdbd/schema-validators0.2.0-canary.12
@sinclair/typebox^0.34.14
ajv^8.17.1
ajv-formats^3.0.1
fastify-plugin^5.0.1

[!WARNING] This package defines 2 peer dependencies.

PeerVersion range
@fastify/request-context>=6.0.0
fastify>=5.0.0

References

License

© 2024 - 2025 Giacomo Debidda // MIT License

Keywords

fastify

FAQs

Package last updated on 27 Feb 2025

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