ActivityPub - Helion
ISBN: 9781098162702
stron: 250, Format: ebook
Data wydania: 2024-09-20
Księgarnia: Helion
Cena książki: 160,65 zł (poprzednio: 186,80 zł)
Oszczędzasz: 14% (-26,15 zł)
ActivityPub is the new standard for connecting social networks together on the social web. This open, decentralized social networking protocol defines an API for sharing activities to a social network and a procedure that servers use to distribute those activities to a subscriber's feed. With this book, you'll learn how to assemble ActivityPub-enabled clients for making new kinds of social apps on top of existing networks and build ActivityPub servers that create new human or automated accounts on the social web.
With those skills under your belt, you can explore other applications of this publish-subscribe technology: content management systems, internet of things, and enterprise automation. With hands-on examples and in-depth knowledge from Evan Prodromou, one of the authors of the protocol, this is the ActivityPub handbook that every social software hacker needs.
- Learn what the social web is and what ActivityPub does
- Represent social network data in the Activity Streams 2.0 format
- Write a simple ActivityPub client and server
- Extend ActivityPub's functionality with new types
- Find in-depth details about the more obscure ActivityPub data structures
Evan Prodromou is a coauthor of the ActivityPub protocol and the Activity Streams 2.0 data format.
Osoby które kupowały "ActivityPub", wybierały także:
- Biologika Sukcesji Pokoleniowej. Sezon 2. Za 127,27 zł, (14,00 zł -89%)
- Biologika Sukcesji Pokoleniowej. Sezon I. 127,27 zł, (14,00 zł -89%)
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Podręcznik startupu. Budowa wielkiej firmy krok po kroku 93,33 zł, (14,00 zł -85%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
Spis treści
ActivityPub eBook -- spis treści
- Preface
- Audience
- Prerequisites
- Structure
- Conventions Used in This Book
- Using Code Examples
- OReilly Online Learning
- How to Contact Us
- Acknowledgments
- 1. Welcome to the Fediverse
- What Social Networks Do
- What Social Networks Dont Do
- Locked In to Social Networks
- From Social Network to Social Web
- A Tour of the Standards
- Activity Streams 2.0
- The ActivityPub API
- The ActivityPub Protocol
- A Brief History of the Fediverse
- A Tour of the Fediverse Today
- What the Fediverse Holds in Store for Tomorrow
- Conclusion
- 2. Activity Streams 2.0
- The First Steps
- Publishers and Consumers
- Type
- Identity
- Vocabulary
- Properties
- Activity Types
- Actor Types
- Object Types
- HTML
- Attachments and Tags
- Collections
- Addressing Properties
- Internationalization
- Timestamps
- Type Hierarchy
- External Vocabularies
- Internet Media Types
- Representation Granularity
- ID-String Representation
- Brief Representation
- Functional Representation
- Link Representation
- Full Representation
- Names
- Using Activity Streams 2.0
- Storing AS2 Documents
- Considering Storage Options
- Storing Collections
- Is It JSON or Linked Data?
- Conclusion
- 3. The ActivityPub API
- Using a Standard API
- The World of API Clients
- An Extended Example
- A Follow-Your-Nose API
- Following Rules for ActivityPub Data
- Reading Data: The Actor
- WebFinger for Discovery
- OAuth 2.0 for Access Control
- Reading Data: Collections
- The Inbox and Outbox
- The Social Graph
- Reading Remote Data: The proxyUrl Endpoint
- Writing Data: Activities as Commands
- POSTing to Create
- Handling Errors
- Making Things
- Create
- Issues to watch out for
- Microsyntax
- Update
- Delete
- Implicit Create
- Create
- Modifying the Social Graph
- Follow
- Accept and Reject
- Undo
- Managing Collections
- Add
- Remove
- Update
- Delete
- Reacting
- Like
- Announce
- inReplyTo
- Ensuring User Safety
- Block
- Flag
- Uploading Files
- Understanding the Authorization Model
- Optimizing the ActivityPub API
- Use an HTTP Cache
- Use Data You Already Have
- Use Low-Resolution Representations
- Reuse the Output of Posted Activities
- Use GZIP Compression
- Use Keep-Alive Connections
- Understanding Whats Missing
- Conclusion
- Using a Standard API
- 4. The ActivityPub Protocol
- Exploring an Extended Example
- Understanding the Shape of Federated Social Networking
- An API Becomes a Protocol
- Using HTTP Signatures
- Performing Server-to-Server Authentication
- Understanding the Signature Header
- Representing Public Keys
- Using the Server Actor
- Making Requests
- Validating a Signature
- Implementing WebFinger
- Getting Objects
- Fetching Local Objects
- Delivering Activities
- Shared Inbox
- Delivery Queues
- Retries
- Delivery Failure
- Receiving Activities
- Caching Remote Data
- Trustfor Now
- Trust Heuristics
- Digital Signatures
- Handling Activity Side Effects
- Create
- Update
- Delete
- Add
- Remove
- Follow
- Accept
- Reject
- Like
- Announce
- Block
- Flag
- Undo
- Filtering Activities
- Optimizing Federated Servers
- Following a Server Checklist
- Conclusion
- 5. Extending ActivityPub
- Understanding Senders and Receivers
- Receiving Extended Properties
- Receiving Extended Types
- Sending Extended Properties
- Sending Extended Types
- Using the Rest of the Activity Vocabulary
- Polls
- Account Portability
- Events
- Groups
- Geosocial
- Media Experiences
- Using Other Well-Known Vocabularies
- Miscellany
- vCard
- Schema.org
- Dublin Core
- Creating a New Vocabulary
- Defining the Terms
- Defining the Context Document
- Publishing the Documentation
- Growing an Extension
- Conclusion
- Understanding Senders and Receivers
- 6. Far Horizons
- Near Horizons
- Objects as Actors
- Search
- Artificial Intelligence
- Content Management
- Games
- Health Tracking
- Internet of Things
- Dating
- Enterprise Software
- Software Development
- Payments
- Marketplace
- Happiness
- Conclusion
- A. Activity Vocabulary Types
- Groups
- Accept
- Activity
- Add
- Announce
- Application
- Arrive
- Article
- Audio
- Block
- Collection
- CollectionPage
- Create
- Delete
- Dislike
- Document
- Event
- Flag
- Follow
- Group
- Ignore
- Image
- IntransitiveActivity
- Invite
- Join
- Leave
- Like
- Link
- Listen
- Mention
- Move
- Note
- Object
- Offer
- OrderedCollection
- OrderedCollectionPage
- Organization
- Page
- Person
- Place
- Profile
- Question
- Read
- Reject
- Relationship
- Remove
- Service
- TentativeAccept
- TentativeReject
- Tombstone
- Travel
- Undo
- Update
- Video
- View
- B. Activity Streams 2.0 Properties
- Groups
- accuracy
- actor
- alsoKnownAs
- altitude
- anyOf
- attachment
- attributedTo
- audience
- bcc
- bto
- cc
- closed
- content
- contentMap
- context
- current
- deleted
- describes
- duration
- endpoints
- endTime
- first
- following
- followers
- formerType
- generator
- height
- href
- hreflang
- icon
- id
- image
- inbox
- inReplyTo
- instrument
- items
- last
- latitude
- liked
- likes
- location
- longitude
- mediaType
- name
- nameMap
- next
- object
- oneOf
- origin
- outbox
- partOf
- preferredUsername
- prev
- preview
- published
- radius
- rel
- relationship
- replies
- result
- shares
- source
- startIndex
- startTime
- streams
- subject
- summary
- summaryMap
- tag
- target
- to
- totalItems
- type
- units
- updated
- url
- width