# Speckle Web App
The Speckle Web App is our browser-based interface for managing all things Speckle. It is your one stop shop for:
- Managing your streams and their viewing / editing permissions
- Coordinating your data among various parties & users
- Creating and editing streams
- Viewing your data in our 3D model viewer
- Managing your account
- Sharing your data with others
When you first visit your speckle server address (e.g. our default speckle.xyz server (opens new window)), you'll be prompted to log in or register to that server. Servers are independent of each other meaning if you are a part of multiple Speckle Servers, you'll need to create a new account for each one.
This guide assumes you have access to a Speckle Server. If you don't have one provided by your company, you can use our free Speckle server (opens new window).
Once you're logged in, you'll be greeted by the home page which shows your streams and a feed of recent activity on the left.
These streams are the ones you have access to including streams you've created and streams you have been added to as a collaborator. Each stream shows you a brief summary of the stream including its name, the number of branches & commits, when it was last updated, and who has access to it. Clicking any of the streams will take you to the details of that particular stream. You can also click the big blue button to create a new stream.
# The Streams Page
👉 Psst - need a streams refresher? Let's go!
On a stream page, you can browse the existing commits and view the data in our lovely 3D viewer. The most recent commit is the one you will initially see in the viewer.
If you have contributor access, you can also add new branches and commits to the stream. If you have owner access, you will see additional buttons which will let you edit the name / description, configure link sharing, and manage collaborators.
By clicking on any of the latest commits you'll be taken to that commit's page.
The list of recent commits by default refers to the
main branch. You can swap branches by using the dropdown at the top of the page.
🤔 Wait, what were branches again? We gotchu!
Each stream contains a little branching-icon button to help you easily switch between a stream's different branches. By default, each stream will contain only one branch, called main.
By clicking on the Branches button you'll be taken to a page that lists all existing branches for the current stream.
From here you can access each branch's page or create new branches.
# The Branches Page
By going even deeper, you can access a page for a single branch in your stream. This will display all of the commits that have been pushed to it, and you can edit the branch name and description too. This looks like:
# The Commit Page
👀 Not sure what commits are? Check this out!
Clicking on a particular commit will take you to a new page where you can view the commit in the viewer and explore the commit object.
The "Data" section on this page allows you to explore the commit object by expanding it. The top level Base is the root commit object and each item within it is a property. Properties can either be simple values (like the id, speckle type, and children count), another object, or a list of objects.
Clicking on one of these lists will expand it and show you all the objects nested within it. If a nested object is a "Referenced Object", this means it is a separate object that hasn't been loaded yet. You can click it to load the referenced object and get more details. Clicking on the little arrow button next to an object will open that particular object in a new page and display it in the viewer.
# 3D Viewer
Speckle's built-in 3D Viewer lets you visualise and interrogate your geometric data right in the browser. You can use the viewer to visualise a whole commit or just a specific object.
Use your left mouse button to rotate the view around and use the right mouse button to pan. Double clicking on an object will bring it into focus and double clicking on the background will bring the whole scene into view.
Try playing with our embedded 3D viewer below to get a feel for navigating a model and inspecting its elements in your browser.
The toolbar at the bottom edge of the viewer allows you to:
- Select a canonical view (such as Top, Front, Left)
- Focus the whole scene
- Cut the view with a section plane
- Open a help menu if you need a reminder of the controls
# Embedding the 3D viewer
You can easily embed any stream, branch, commit or object directly from the web app. To do so, just follow these steps:
Your stream must be made public in order for the embedded viewer to properly load.
In the web app, go to a stream page containing geometric data.
Press the play button to load the viewer. The viewer toolbar should appear in the bottom.
You'll find the share button on the left-hand side.
Click it and you'll be provided with 2 options:
iframe: Will copy the
iframecode required to paste on any html document.
url: Will copy the
urlof the embed viewer.
The result would be a viewer like the one above ☝🏼
Want to keep track of project information, design values, notes, or any other general info alongside your geometry? Each stream can have a set of global variables which can do just that! These globals could be things like site region, building height, number of floors, maximum areas, summer / winter temperatures, etc - your imagination is the limit!
These globals can then be accessed from your scripts or applications like any other Speckle data. You can plug them into calculations or pull them into reports or spreadsheets. You can also look back at the history and see who changed what and why.
# Creating and Editing
To build or edit a stream's globals, click the "Globals" button in the stream sidebar.
This will take you to the interactive globals editor. Here, you can add new fields with the ➕ button and fill in their info. You also have a toolbar on the top right to "clear" (delete all the fields / groups), "reset all" (undo all your changes), and "save" your changes with a message.
Any field can be transformed into a group by clicking the box button on the right. Any group can also be flattened by clicking the collapse button on the right of its name. You can drag and drop any field or group anywhere you want within the editor to build the structure you want!
If you need to delete a field or group, toggle on "delete" mode and click the big red buttons.
Each time you hit "save", you'll be prompted to add a message along with your changes. This will be saved to the chronological history which you can see at the bottom of the page. You can click on any of these messages to go back see the globals from that point in time.
Globals currently do not support detached objects. Let us know on the forum if this is something you would want!
# Receiving Globals
The quickest way to grab your globals is to use the Grasshopper or Dynamo connectors. You can receive the globals using their URL just like you would any other stream, branch, or commit.
If you want to get your globals using code, you can do this in the same way you would receive a commit. Under the hood, the globals exist in a branch called
globals. Each time you save the globals, you create a new commit on this branch. The following snippet is a complete example of receiving the latest version of your globals using python:
# initialise and authenticate your client stream_id = "62e5ff6a2b" account = get_default_account() client = SpeckleClient(host=account.serverInfo.url) client.authenticate(token=account.token) transport = ServerTransport(client, stream_id) # get the `globals` branch branch = client.branch.get(stream_id, "globals") # get the latest commit latest_commit = branch.commits.items # receive the globals object globs = operations.receive(latest_commit.referencedObject, transport)
Click on your profile image to head to the Profile management page. If you haven't added a profile pic yet, we've auto-generated you a nice little robot avatar (you're welcome 😄)
From your profile page, you can edit your personal details and manage your authorised applications in the "Your Apps" section. These are the applications that you have granted access to your streams and profile. On this page, you can make sure you recognise all the apps and easily revoke access to any apps you no longer want to authorise.
Further down the page are some more advanced options intended for developers. You can check out the GraphiQL Explorer where you can explore the API and interact with your live data. You can generate Personal Access Tokens which are like passwords you can use to authenticate in your scripts and apps. You can also register your own Apps so other people on the server can use them too.
If you're a server admin, you'll also have access to an admin dashboard.
The dashboard currently shows key metrics such as total number of users, streams, commits and objects. We’ve also included historical data on said metrics which can help you identify nicely how active your server is by actually seeing how many streams, commits and objects are created each month.
The admin page will be extended in the future to give you even more control and insights on your server.
There’s also an api endpoint for this, so you can request the data behind the graphs and use it wherever you want to!
For this, you will need a personal access token generated by an admin user that includes the