🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@fedify/init

Package Overview
Dependencies
Maintainers
3
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fedify/init

Project initializer for Fedify

Source
npmnpm
Version
2.4.0-dev.1508
Version published
Weekly downloads
3.4K
17.82%
Maintainers
3
Weekly downloads
 
Created
Source

@fedify/init: Project initializer for Fedify

JSR npm

This package provides the project initialization functionality for Fedify, an ActivityPub server framework. It scaffolds new Fedify project directories with support for various web frameworks, package managers, key-value stores, and message queues.

This package powers the fedify init command in the @fedify/cli toolchain, and can also be used as a standalone library.

Supported options

The initializer supports the following project configurations:

  • Web frameworks: Bare-bones, Hono, Nitro, Next.js, Elysia, Express
  • Package managers: Deno, pnpm, Bun, Yarn, npm
  • Key-value stores: In-Memory, Deno KV, Redis, PostgreSQL
  • Message queues: In-Process, Deno KV, Redis, PostgreSQL, AMQP

Installation

deno add jsr:@fedify/init  # Deno
npm  add     @fedify/init  # npm
pnpm add     @fedify/init  # pnpm
yarn add     @fedify/init  # Yarn
bun  add     @fedify/init  # Bun

API

The package exports the following:

  • runInit: The main initialization action handler.
  • initCommand: The CLI command definition for init.
import { initCommand, runInit } from "@fedify/init";

Test

The test-init task is useful for contributors working on @fedify/init, especially when adding support for a new framework/library or modifying the scaffolding logic. It tests the project initialization by running fedify init across all combinations of supported options on temporary directories, verifying that the generated projects are valid.

To run the test, use the mise task from the repository root:

mise run test:init

You can also filter specific options to test a subset of combinations:

mise run test:init -w hono -p deno

Use --no-dry-run to test with actual file creation and dependency installation, or --no-hyd-run to only log outputs without creating files.

Keywords

fedify

FAQs

Package last updated on 02 Jul 2026

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