We are working on a clean separation/integration of protocol specification from the rest of the content of this site and http://www.psyc.eu/tech.en.html. For a practical way to get started developing, consult the client page, especially since this spec will not treat client-server communications in its first version.

Naming of keywords in the spec is subject to change (see also the big rename). It's a general overhaul of keyword names before finalization of specs. You will be provided a perl script to apply a large number of name changes automatically to your source codes. The intention is to minimize the period of disruption due to keyword name changes, while still choosing the best names and inheritance derivations.

Contents

PSYC Specification

PSYC is a flexible text-based protocol for delivery of data to a flexible amount of recipients or people, by unicast or multicast. It is primarily used for chat conferencing, presence, pubsub and instant messaging, but not limited to that.

You can browse the specification by chapters below, or pick the printable specification which has it all in one page. It may however not be properly organized yet, and it is missing plenty of important things.

Table of Contents

  1. Glossary - Definitions of some terms used in the specification.
  2. Uniform - The definition of uniforms.
  3. Keyword Naming - The rules for naming methods and variables.
  4. Methods - A listing of the method families
  5. Packets - The syntax descriptions of PSYC packets
  6. Routing variables - A listing of the most important routing variables.
  7. Entity variables - The listing of entity variables.
  8. State - Details on State
  9. Messages - Methods of the _message family.
  10. Warnings - Methods of the _warn family.
  11. Errors - Methods of the _error family.
  12. Failures - Methods of the _fail family.
  13. Circuits - The specification how things are connected in PSYC.
  14. Routing - How routing works.
  15. Context - The definition of contexts and how they work.
  16. Entities - An overview and definition of what an entity in PSYC is.
  17. Root Entity - The root entity of a PSYC node.
  18. Person Entity - The functionality a person entity provides.
  19. Place Entity - The functionality a place or chat room provides.

Client Protocol

The main specification describes generic inter-entity/interserver protocol. The details on how to link clients to Spec:Person person entities and control them, resulting in a PSYC client protocol, is left to be done later. Some implementations like psyced provide IRC and telnet interfaces directly in the server to circumvent this problem.

We do have a workable client protocol being used by the existing prototype client applications, but it needs to evolve and has no specification. This instead is the work in progress for a PSYC protocol interface to Spec:Person person entities, which may not fit current reality:

  1. Commands - The command interface for entities
  2. Client Interface - The main client interface

Development Roadmap

The specification is in development, this is the roadmap/todo list to keep an eye on what should be included in the spec:

Core features that should be defined:

Things that are not directly in the core:

See also Category:Feature and such.

Specification of What?

The question arose what version of PSYC the spec should contain. Specified should be the things that work, when appropriate. And gaps should be filled with new things. The main aim is, to provide a consistent specification of PSYC. The version number should be applied when the spec is finished.

That means the spec can be incompatible for the moment with psyced and other implementations. However, keep an eye on at least a bit backwards compatibility. Once a consistent state has been reached the implementations should be updated.