Dessn 2.0 is now live! 🎉 Watch our latest launch.
Under the hood

How Dessn connects to your codebase

How Dessn gets access to your code, how it builds your Library from it, and how it stays in sync with your codebase afterwards.

Updated 4 min read

The short answer

You connect your GitHub or GitLab repository in one click. Dessn copies your frontend into an isolated cloud environment, mocks your backend so the app runs without your services, and lays out your Surfaces and Design System in your Library. On paid plans, the Library is updated every time your codebase is updated.

What is real, and what is mocked

In a Dessn preview
RealYour application code from the connected branch: components, styles, routing and UI logic
MockedThe data, sign-in, network calls and feature flags a screen depends on, so it can run without your services
Not involvedYour production infrastructure: servers, databases and deployments

The Dessn workflow

StepWhat happensWho
1. Connect your repoConnect your GitHub or GitLab in one click. No technical skills requiredYou or a repository admin
2. Wait for your LibraryDessn copies your frontend and mocks your entire backend to run your app on the cloud-based canvas. It then lays out your Surfaces and Design System in your Design LibraryDessn
3. Stay in syncOn paid plans, your Library is updated every time your codebase is updatedDessn

1. Connect your repository

  • You or a repository admin

You connect Dessn to GitHub or GitLab and choose which repository it can use. For GitHub, you install the Dessn app and select repositories. You then pick the branch Dessn should use as its baseline and, for a monorepo, the app or subdirectory to prepare.

Dessn's Link your codebase screen with a Connect GitHub button, a Continue with GitLab button, a Need help? link and a Security & Privacy panel.
Dessn's Select a repository screen listing repositories, each with its default branch and an Import button, above a search field.

To build your app, Dessn copies the code into an isolated cloud environment. For GitHub, each copy uses a short-lived, read-only token limited to that one repository. Nothing runs on your laptop.

2. Wait for your Library

  • Dessn

Once connected, Dessn's setup agent prepares your Library in an isolated cloud environment:

Dessn's We're setting up your project screen: the connected repository at the top, a Starting compilation status, an Invite team members while you wait button and a Connect another repository button.
  1. Prepares the app. It installs dependencies and builds your app with its own configuration.
  2. Mocks dependencies. It supplies the data, sign-in, network responses and feature flags your screens need.
  3. Creates important screens. It chooses the core flows a designer would need, rather than a sample or every route. There is no fixed number of screens.
  4. Checks them in the browser. It looks at each screen with realistic data and keeps repairing it until it renders.
  5. Saves a Library version. Screens are arranged by product area, and the version records the commit it was built from.
Dessn's Design library page on the canvas with the Design system menu open on Spacing: a spacing scale from 4px to 48px and a list of other spacing tokens with their values and usage counts. The Library panel on the right shows the compile status, design system counts for colours, type and icons, and the product's screens.

When setup finishes, Dessn tells you what it saved. For anything still not right, it reports what the screen shows, what it tried and what it needs next.

What can need your help

How long setup takes and how many screens it covers depend on the repository and how complex it is to set up. Common reasons it needs input:

  • Private packages or registries that need access
  • Unusual build steps or required configuration values
  • External services whose behaviour the mocks can't reproduce
  • Native-only features: React Native runs in the browser through react-native-web, so hardware SDKs, native maps or camera flows need a preview stand-in

3. Stay in sync with your codebase

  • Dessn

Your Library reflects the connected branch at the time it was compiled. On paid plans, it's updated every time your codebase is updated.

The top of the Library panel on the right of the canvas: Up to date on the main branch, Compiled 8h ago at commit 6b6a9a1, a Recompile button and a note that Dessn checks main daily.

Updating the Library doesn't overwrite prototypes already on a canvas. They keep the starting point they were copied from, and you decide what to carry forward.

What Dessn works with

Today
Git providersGitHub and GitLab
FrameworksReact (Next.js, Vite, Remix), Vue and Nuxt, Svelte, Angular, Solid, Astro, Electron, React Native; Rails, Django, Flask, Laravel, PHP and WordPress; static HTML. Compatibility depends on the app's build and preview needs; setup reports a stack it can't run
Styling and componentsYour app's own CSS and components. Nothing needs migrating
Repository layoutSingle repositories and monorepos, where you choose the app to prepare

Frequently asked questions

How long does it take to set up Dessn?

It depends on your repository. The size of the app, how it builds and how many services need mocking all affect timing. Dessn shows its progress, tells you which screens it saved, and lists anything it still needs from you.

Does Dessn need my database or environment variables?

Usually not. Dessn mocks the data, sign-in and network calls each screen depends on, so previews normally run without your production services. Private packages, unusual build steps, or a service the mocks can't stand in for can need extra setup. If your team chooses to provide a real API key, that service is called for real.

What is a Surface in Dessn?

A Surface is one page in your Library, such as a dashboard, a settings page or a checkout step. It runs your real production code, and it's where you start designing.

Can Dessn change my production code?

No. Dessn reads your repository with read-only access and builds from a copy of it in its own cloud environment. Nothing in your repository or production infrastructure changes.

How does Dessn stay up to date with my code?

On paid plans, your Library is updated every time your codebase is updated. It follows the connected branch, which may differ from what is deployed. Prototypes already on a canvas keep their own starting point.

Does Dessn work with monorepos?

Yes. When you connect a monorepo, you choose the app or subdirectory Dessn should prepare.

Share

XLinkedIn
All articles →

Dessn updates, in your inbox

Roughly twice a month. Unsubscribe anytime.

Wide orange manifold rings

Product, in your hands.