Byteland
v0.6.0A 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.
| Parameter | Type | Description |
|---|---|---|
from | number | Start x (cm). Default -3000. |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
seed | string | Street seed. Default: gece-sehri. |
to | number | End 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.
| Parameter | Type | Description |
|---|---|---|
ref * | string | number | Door number (e.g. 5) or username (e.g. "@kaanisthatyou"). |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
seed | string | Street 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).
| Parameter | Type | Description |
|---|---|---|
handle * | string | Username, with or without @. |
github | boolean | Look up GitHub’s public data. Default: true. |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
seed | string | Street 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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
github | boolean | Look up GitHub’s public data. Default: true. |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
seed | string | Street seed. Default: gece-sehri. |
get_project One project
A single project of a profile. Returns nothing for private projects.
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
project * | string | Project name or id. |
github | boolean | Look up GitHub’s public data. Default: true. |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
seed | string | Street seed. Default: gece-sehri. |
search Search Byteland
Find people, projects and stacks across every resident of the city (people, projects, stacks), plus buildings on the street by username, name, project or technology (results). Private projects never appear.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
lang | string | Language of text fields (recipe, badges, topic names). Default: en. |
mode | string | kume (default): the founder’s real building with vacant buildings; bos: topic city, everyone vacant; ornek: demo street full of sample profiles. |
radius | integer | Street chunks to scan on both sides (1 chunk = 80 m). Default 4. |
seed | string | Street seed. Default: gece-sehri. |
popular Most visited
The leaderboard: buildings by unique visits this week (or period: "all"), the most viewed projects and the newest residents. A visit counts once per person per day; owners do not count themselves.
| Parameter | Type | Description |
|---|---|---|
period | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | Username, 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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
project * | string | Project id (the repository name for GitHub projects). |
channel | string | Channel name or id. Default: the first channel. |
limit | integer | How 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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
project * | string | |
thread * | integer | Thread 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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | |
github | boolean | Look up GitHub’s public data. Default: true. |
lang | string | Language 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).
| Parameter | Type | Description |
|---|---|---|
handle * | string | GitHub username. |
year | integer | A 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.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner (user or organisation). |
repo | string | Repository name. Leave it out for the owner’s skyline: their public repositories (no forks) by stars, lit when pushed in the last 30 days. |