framapiaf.org est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Un service Mastodon fourni par l'association d’éducation populaire Framasoft.

Administré par :

Statistiques du serveur :

1,4K
comptes actifs

#activitypub

85 messages62 participants2 messages aujourd’hui

@jctheresistance.bsky.social please follow @ap.brid.gy so that people on #mastodon and other #ActivityPub services can communicate with you. also, if everybody was bridged, the cost to move becomes negligible, pressuring #bluesky to never “go evil” in the first place. fed.brid.gy/docs#bluesky...

Bridgy Fed

Bluesky SocialJamie Carter (@jctheresistance.bsky.social)Political & Partnerships Director - @DemCastUSA 2024 DNC Delegate - Team Kamala We are in the fight of our lives. Stand Up, Fight Back. Democracy dies in darkness.

The wait is over! #76: Shiny Objects that People Like to Chase is out!

@kito99, @dhinojosa, and Ian start out the new year with #WebAssembly, #SemanticWeb, and #AI guru @bsletten. They talk about #WebAssembly, #LLMs, edge computing, and open source hardware. The crew also discusses how theory of mind relates to #AGI#DeepSeek, #OpenWeb, #Fediverse, #ActivityPub, Interplanetary File System (#ifs), and more. pubhouse.net/podcast/title-shi

Hey folks! We're excited to share a preview of a new API coming in #Fedify 1.6 that should make structuring larger federated apps much cleaner: FederationBuilder.

As your Fedify applications grow, you might encounter circular dependency issues when registering dispatchers and listeners across multiple files. The new FederationBuilder pattern helps solve this by separating the configuration phase from instantiation.

Instead of this:

// federation.ts
import { createFederation } from "@fedify/fedify";

export const federation = createFederation<AppContext>({
  kv: new DbKvStore(), 
  queue: new RedisMessageQueue(),
  // Other options...
});

// Now we need to import this federation instance in other files
// to register dispatchers and listeners...

You can now do this:

// builder.ts
import { createFederationBuilder } from "@fedify/fedify";

export const builder = createFederationBuilder<AppContext>();

// other files can import and configure this builder...
// actors.ts
import { builder } from "./builder.ts";
import { Person } from "@fedify/fedify";

builder.setActorDispatcher("/users/{handle}", async (ctx, handle) => {
  // Actor implementation
});
// inbox.ts
import { builder } from "./builder.ts";
import { Follow } from "@fedify/fedify";

builder.setInboxListeners("/users/{handle}/inbox", "/inbox")
  .on(Follow, async (ctx, follow) => {
    // Follow handling
  });
// main.ts — Only create the Federation instance at startup
import { builder } from "./builder.ts";

// Build the Federation object with actual dependencies
export const federation = await builder.build({
  kv: new DbKvStore(),
  queue: new RedisMessageQueue(),
  // Other options...
});

This pattern helps avoid circular dependencies and makes your code more modular. Each part of your app can configure the builder without needing the actual Federation instance.

The full documentation will be available when 1.6 is released, but we wanted to share this early with our community. Looking forward to your feedback when it lands!

Want to try it right now? You can install the development version from JSR or npm:

# Deno
deno add jsr:@fedify/fedify@1.6.0-dev.777+1206cb01

# Node.js
npm add @fedify/fedify@1.6.0-dev.777

# Bun
bun add @fedify/fedify@1.6.0-dev.777
unstable.fedify.devFederation | FedifyThe Federation object is the main entry point of the Fedify library. This section explains the key features of the Federation object.

@caseymattox.bsky.social please follow @ap.brid.gy so that people on #mastodon and other #ActivityPub services can communicate with you. also, if everybody was bridged, the cost to move becomes negligible, pressuring #bluesky to never “go evil” in the first place. fed.brid.gy/docs#bluesky...

Bridgy Fed

Bluesky SocialCasey Mattox (@caseymattox.bsky.social)Constitution fan. Attorney. VP Legal Strategy, Stand Together. To everything there is a season. Especially Christmas music.