Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds the blog post

Copple6f3e7d59a0c7
diff --git a/www/_blog/2021-11-30-supabase-studio.mdx b/www/_blog/2021-11-30-supabase-studio.mdx
new file mode 100644
index 00000000000..3f1fa4744be
--- /dev/null
+++ b/www/_blog/2021-11-30-supabase-studio.mdx
@@ -0,0 +1,104 @@
+---
+title: "Supabase Studio"
+description: "The same Dashboard that you're using on our Platform is now available for local development and Self-Hosting."
+author: paul_copplestone
+author_url: https://github.com/kiwicopple
+author_image_url: https://github.com/kiwicopple.png
+authorURL: https://github.com/thorwebdev
+image: launch-week-three/studio/studio-og.jpg
+thumb: launch-week-three/studio/studio-thumb.jpg
+tags:
+ - launch-week
+ - frontend
+ - studio
+date: '2021-11-30'
+toc_depth: 2
+---
+
+Today we're releasing [Supabase Studio](https://github.com/supabase/supabase/tree/master/studio).
+The same Dashboard that you're using on our Platform is now available for [Local Development](https://supabase.com/docs/guides/local-development)
+and [Self-Hosting](https://supabase.com/docs/guides/hosting/overview).
+
+## Background
+
+Let's get the obvious question out of the way first - why wasn't it already open source?
+
+When Ant and I started Supabase the code-base was one large monorepo which contained everything from the dashboard to cloud infrastructure code to experimental code.
+This is our our preferred strategy - we like to keep all code in one place so that we have a single source of truth and tightly coupled CI workflows.
+
+The original Dashboard really wasn't much except a couple of button which allowed our Alpha users to start and stop a Supabase project.
+
+Then time went on, and we started gaining traction - a lot faster than expected.
+The nice thing about building for developers is that they are very vocal about the features they want to see next.
+And so we kept shipping - a SQL editor, a Table view, User management, auto-generated Docs, and everything else you can find on the Dashboard today.
+
+We've been planning to make the Dashboard public for a long time now, starting with [Supabase UI](http://ui.supabase.com/),
+`[supabase/grid](https://github.com/supabase/grid)`, and a standalone [PR](https://github.com/supabase/supabase/pull/2281) for Supabase Studio.
+But as feature requests kept rolling in it became a Sisyphean task to maintain separate code bases.
+
+After the last Launch Week, we decided to prioritize the Studio.
+
+## Approaches for managing shared code-bases
+
+We investigated a few different approaches used in the open source world. There are three popular strategies that we found among OSS projects and some of our YC alum:
+
+- Maintain separate code bases. Pluck changes from one to another.
+- Keep two repos in sync using some mixture of git submodules or a tool like `[copycat](https://github.com/atomix/copycat)`
+- Use the same code-base, abstracting platform-specific code behind an API and feature flags
+
+Our frontend team experimented with the first two approaches where they plucked (injected, merged, and wrangled) code for our Platform.
+Time-to-production become a lot slower, an unacceptable outcome at Supabase.
+
+Eventually we decided to open source all the frontend code, so the code for both the Platform and Self Hosted is completely public, sharing the same code-base.
+
+- Special shout out
+
+ Sentry do a fantastic job of [documenting their strategy](https://develop.sentry.dev/sentry-vs-getsentry/) for managing a shared code-base and served as a great model for Supabase.
+
+
+## Build in public
+
+For the past week, the dashboard you've been using on the Platform has been deployed from our [main repository](https://github.com/supabase/supabase),
+the one you might also be using for Self-Hosting.
+
+This fits one of our core philosophies at Supabase: do less. Less code to manage means less bugs. Fewer code-bases means faster shipping.
+
+It also fits the development philosophy of every other part of Supabase: building in public, "warts and all".
+
+This is a huge step forward for the community. Supabase users can now spot a bug, fix it in the open source repository,
+and have it shipped to both the Platform and Self-Hosted environments - all in a single day.
+
+## Technical details
+
+Let's jump into some of the technical details.
+
+### Tech stack
+
+Studio is built Javascript application with a few key pieces.
+
+- [Next.js](https://nextjs.org/) - A frontend Javascript framework built with React.
+- [Tailwind](https://tailwindcss.com/) - A utility-first CSS framework.
+- [Supabase UI](https://ui.supabase.io/) - Our own component library.
+- [MobX](https://www.mobxjs.com/) - A state management library.
+
+### What's included
+
+Studio is designed to work with existing deployments - either the local hosted, docker setup, or our CLI.
+It is not intended for managing the deployment and administration of projects - that's out of scope.
+
+The features exposed on Studio for existing deployments are limited to those which manage your database:
+
+- Table & SQL editors
+ - Saved queries are unavailable
+- Database management
+ - Policies, roles, extensions, replication
+- API documentation
+- Settings
+ - Project settings are managed outside of the Dashboard. If you use docker-compose, you should manage the settings in your docker-compose file. If you're deploying Supabase to your own cloud, you should store your secrets and env vars in a vault or secrets manager.
+
+Over time we'll migrate a lot more of the code-base into the self-hosted Dashboard, this was as much as we could migrate for this Launch Week!
+
+## How to contribute?
+
+Check out the full instructions in our [Studio Readme]().
+