cinnamon
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# SSB Client-kit Spec: Common Queries & UX guidelines The main things clients need to do. This can evolve into a more detailed specification, maybe implemented by a high-level library or by #patchql. Started by cinnamon on 2019-06-26 Inspirations: * [Building Consentful Tech](http://www.consentfultech.io/CTZine.pdf) * [Design Justice](http://designjusticenetwork.org/network-principles) * [Data Feminism](https://bookbook.pubpub.org/data-feminism) * [Web Content Accessibility Guidelines](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#guidelines) Layers from high level to low level * [SSB principles](https://www.scuttlebutt.nz/principles/) * UX principles (below) * Agreement on schema for common message types * API / library for clients to use (below) * drivers for the client library to talk to the backend (patchql, hermie-box, cooler) * scuttlebot process which replicates with other nodes * [replication protocol](https://ssbc.github.io/scuttlebutt-protocol-guide/) # UX principles Users decide what they want to see - freedom of attention / free listening * Blocking, blur blocked profile images, etc * Share the labor of blocking within a community - protect each other * Control what social radius you want to see * Limit contact with strangers if you want to * Hide channels and words Users decide who can see them and their content - choose your audience * Privacy settings, private messages, respect blocks and deletions * Understandable privacy implications for all actions Users own their data; their profile is their space * Deletion of posts Accessible by a diversity of humans * Screen reader support, keyboard shortcuts, font settings, etc. [WCAG](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#guidelines) is a good list of these needs * Control resource usage (bandwidth, storage) - important for low-income accessibility "Calm technology", anxiety reducing design, no dark patterns * Can hide notifications, turn off animations and images * Authors can use content warnings to be gentle with their audience Systemic health * Default semi-centralized blocklists with healthy human power structures around them * Impersonation defenses * Preserve context around posts * Illegibile, unspiderable, unprofitable, uncapturable * Warrens, not plazas # Client API / library functions and queries ## Posts, threads, messages Some of the use cases below could be combined into more general functions. Each of these will also need more options like pagination and filtering. Options * filter by message type * filter by number of hops * blocking policies * exclude posts with certain channels or words? * exclude blocked users? * exclude people blocked by N of your friends? * exclude people blocked by various kinds of blocklists? * follow hops across pubs? * forward or reverse chronological order * pagination * only count the items in the query, don't return the content * async mode - streams, promises, async-iterables, ??? Algorithmic feed sorting? * sort by relevance (for search views) * prioritize users who are closer to you in some way * prioritize posts from users who post rarely * algorithmic spam filtering Get the default view (messages related to people you follow) Get messages for a channel Get messages for all channels you're subscribed to Get messages related to a user (authored by, liked, follow events, block events...) Get messages by message type (gatherings, ...) Get a complete thread Get a single message and its metadata and backlinks Get threads you're participating in Get threads started by you Get mentions Get recently used channel names Get recently used tags Get messages by tag ## Search Search by user, blob, message, channel, tag, or full text List of usernames sorted by how connected you are to them (for @mention autocompletion) Search images/blobs ## Publishing Publish a post / comment / blog * content warning field (TBD) * comments: only show from friends, or disable? (TBD) Publish a private message Publish a blob Delete-request a message Delete-request a blob? Publish/edit a gathering Like/react to a post (Un)Tag a post (public or private) (Un)Subscribe to a channel (public or private) ## Private messages Get feed of private messages ## Private groups ? ## Nicknames & 3rd party avatars Get for a user, respecting blocks, only showing from appropriate people (TBD) Set for a user ## Social graph & blocking Follow/unfollow Block/unblock and Ignore/unignore (private block) List of blocked users and who blocked them List of people you blocked List of people blocking you (? maybe best to skip this one) Some kind of invite code system to find friends more easily * Invite code is their feed ID + a pub they're on? * DHT? Get/set list of words and channels you want to hide (stored as private message or as client-specific setting?) Other blocking policies, like * hide people who are blocked by N of your friends * hide everyone who is following a certain account (like an abusive public figure) * hide everyone followed by a certain account (like a pub) * inherit another users' blocks * shared blocklists (not specified yet) * semi-centralized blocklists? ## User profiles Get current user's identity Get a user profile Set your user profile Get/set `sameAs` data for your account Get the set of `sameAs` feeds for a user Get a user's tags Get a user's subscribed channels Get a list of channels used in the user's posts List of "Who to follow" users - this requires some thought; how do we choose them? ## Blobs Get a blob data ## Privacy settings Get & set public web gateway visibility ## Resource management Get info about storage space used by feeds & blobs "Clear cache", remove blobs, compact the log ## Pubs Join a pub by invite code List pubs following you (hosting your content) List pubs you're following (bringing people into your social radius) List all pubs? ## Syncing & indexing List peers you're connecting to right now (pubs and local peers) Get indexing progress bar info ## Low-level settings and state List local SSB identities & create new ones (and set scuttleverse cap key) Get/set replication hops Control which pubs you connect to Turn local peer finding on/off Seen/unseen status of messages Tor settings? ## Utilities Render markdown to HTML & handle emojis * [ssb-markdown](https://github.com/ssbc/ssb-markdown) handles this Author markdown, autocomplete emojicodes and @usernames Hash-based avatar images or colors Remove location metadata from images that you post ## Client-specific settings These settings are specific to the client you're in and will not be saved to your SSB feed. Safe reading mode * hide people you're not directly following and all their content, notifications, mentions, private messages, etc etc * hide "who to follow" or limit its radius * hide pub names and icons; click to show them Hide a specific thread so it won't keep popping to the top of your feed Font size, font color, contrast, color-blind-safe colors, font typeface (e.g. dyslexia fonts) Grayscale mode Infinite scroll on/off Disable images or click-to-view them Disable animated images Disable unread notification badges Auto-expand content warnings Hide / de-emphasize engagement stats and numbers (follower count, like count, etc) Keyboard shortcuts Image alt-text Spellcheck

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully