Byteland

v0.6.0
dev.byteland/byteland Checked 1 day ago Published 27 days ago

A night city of developers: README cards, repo contributor streets, a year in lights, project rooms.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

about What Byteland is

Short description of Byteland: what buildings, rooms and lights stand for, units, privacy rules and supported languages. A good first call.

get_street A stretch of the street

Buildings in a range (owner, type, floors, light counts) and gaps (alleys, empty lots). Positions in centimetres, at most 80000 cm.

ParameterTypeDescription
fromnumberStart x (cm). Default -3000.
langstringLanguage of text fields (recipe, badges, topic names). Default: en.
modestringkume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles.
seedstringStreet seed. Default: gece-sehri.
tonumberEnd x (cm). Default 12000.

get_building Building detail

Public detail of one building: the owner’s profile, rooms and their states, machine-readable parts and the building recipe.

ParameterTypeDescription
ref *string | numberDoor number (e.g. 5) or username (e.g. "@kaanisthatyou").
langstringLanguage of text fields (recipe, badges, topic names). Default: en.
modestringkume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles.
seedstringStreet seed. Default: gece-sehri.

get_profile Profile

A developer’s or company’s profile: bio, links (GitHub, website, socials), badges, projects and open-source contributions. If not on the street, looks for a saved profile, then GitHub; otherwise generates a sample (preview:true).

ParameterTypeDescription
handle *stringUsername, with or without @.
githubbooleanLook up GitHub’s public data. Default: true.
langstringLanguage of text fields (recipe, badges, topic names). Default: en.
modestringkume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles.
seedstringStreet seed. Default: gece-sehri.

list_projects Projects

A profile’s projects: state, description, stack, links (repo, site) plus open-source contributions. Private projects appear only as hidden:true.

ParameterTypeDescription
handle *string
githubbooleanLook up GitHub’s public data. Default: true.
langstringLanguage of text fields (recipe, badges, topic names). Default: en.
modestringkume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles.
seedstringStreet seed. Default: gece-sehri.

get_project One project

A single project of a profile. Returns nothing for private projects.

ParameterTypeDescription
handle *string
project *stringProject name or id.
githubbooleanLook up GitHub’s public data. Default: true.
langstringLanguage of text fields (recipe, badges, topic names). Default: en.
modestringkume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles.
seedstringStreet seed. Default: gece-sehri.

get_stats Visits of a building

Unique visits (all time and this week), project views, weekly rank and the last 14 days for one username.

ParameterTypeDescription
handle *string

list_rooms Rooms of a person

The project rooms of a person that have been used (every public project of a resident has a room, open by default; one nobody wrote in is empty and not listed): mode (open or read-only), channels with message counts, forum threads, last activity and how many are in voice. Closed rooms and private projects never appear.

ParameterTypeDescription
handle *stringUsername, with or without @.

read_room Read a room

The latest messages of one channel of a project room (default: its first channel) and the forum threads (idea, review, question, announcement) with reply and reaction counts.

ParameterTypeDescription
handle *string
project *stringProject id (the repository name for GitHub projects).
channelstringChannel name or id. Default: the first channel.
limitintegerHow many recent messages. Default 30.

read_thread Read a forum thread

One forum thread of a project room with all of its replies and reactions.

ParameterTypeDescription
handle *string
project *string
thread *integerThread id (from read_room).

live What is happening now

Voice rooms with people in them right now and the rooms with messages in the last 48 hours. Voice presence comes from the running site (BYTELAND_URL, default http://127.0.0.1:8787); without it only the recent rooms are known.

preview_building Deed preview

Builds a user's building as if it stood at the start of a street (GitHub repositories become rooms). The preview is not added to the city. Append the returned url_hash to index.html to open it on the site.

ParameterTypeDescription
handle *string
githubbooleanLook up GitHub’s public data. Default: true.
langstringLanguage of text fields (recipe, badges, topic names). Default: en.

year_in_lights A developer’s year

Anyone's GitHub contribution calendar for one year, by month: contributions per day (with GitHub's quartile level), the total, days with contributions, the longest and the current streak and the busiest month. image is the Byteland picture of it (twelve month buildings, one window per day).

ParameterTypeDescription
handle *stringGitHub username.
yearintegerA past year; this year when left out.

repo_street A repository as a street

Any public GitHub repository as a Byteland street: its top contributors (bots left out) with commit counts, who pushed in the last 30 days (their lights are on), who lives in Byteland, the total number of contributors, and the image and page links (street: an SVG for READMEs, page: the street page). total is null when GitHub will not list the contributors of a very large history; then the people are this month's committers.

ParameterTypeDescription
owner *stringRepository owner (user or organisation).
repostringRepository name. Leave it out for the owner’s skyline: their public repositories (no forks) by stars, lit when pushed in the last 30 days.