Skip to content

Dropbase helps developers build and prototype web apps faster with AI. Dropbase is local-first and self hosted.

License

Notifications You must be signed in to change notification settings

Jensinjames/dropbase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropbase logo

Prompt-Based Python Web App Builder

Website · Docs · Discord

Dropbase hero

Overview

Dropbase helps you build and prototype web apps faster with AI. Developers can quickly build anything from admin panels, back-office tools, billing dashboards, and internal engineering tools that can fetch data and trigger action across any internal or external service.

Existing low-code/no code tools lack flexibility, confine devs to building app logic by filling up UI forms, and have big learning curves. Dropbase uses AI to generate app code that you can verify and/or edit. We combine the convenience of a drag-and-drop app builder with the flexibility of code, making it easy to build and customize, while learning to use the product as you see how the AI generates code using the Dropbase web framework.

Why Dropbase?

  1. Write any custom business logic with code.
  2. Built-in web framework with pre-built UI components - no need to hassle with frontend libraries/code.
  3. Local-first, self-hosted. No creds are shared with us.
  4. Dropbase lives in your codebase, making it easy to import or resuse custom scripts/libraries.
  5. It's built on Python and you can import any PyPI package.

Demo

Build a simple app to search for customer orders and send slack messages

Build an orders app that uses charts

Get Started

0. Pre-requisites

  • Install Docker. We strongly recommend using Docker Desktop, especially if you're on Apple M chips. Alternatively, you can install docker and docker-compose.

1. Clone the dropbase repo

Clone the Dropbase repository

git clone https://github.com/DropbaseHQ/dropbase.git

2. Start the server

Start the server by running start.sh

NOTE: When starting the server for the first time, make start.sh executable.

chmod +x start.sh

You can start the server by running

./start.sh

3. Create your first Dropbase app

Go to the Dropbase App https://localhost:3030/apps from your browser and click on the Create app button to create your first Dropbase app.

Enabling AI features

Dropbase uses LLM (gpt, sonnet) to provide AI Developer feature. To enable it, add your OpenAI or Anthropic api key into server.toml. Example:

[llm.openai]
api_key = "YOUR_API_KEY"
model = "gpt-4o"

IMPORTANT: If you add additional environmental variables, make sure to add them before LLM configurations (at the top-level table), since LLM configurations are defined as table

Configuring Worker

worker.toml contains environmental variables for the worker. This includes database sources, API keys, or access token to third party services.

To include API keys or tokens, add a name for the token and enter your string token. Though not required, adding a descriptive name helps Dropbase AI infer the key to use.

stripe_key="rk_test_123"
mailgun_api_key="abc123"

To include database sources, use the following format: database.database_type.database_nickname

For example, if you want to add a postgres database to a list of sources and use my_source as its nickname, add the following:

[database.postgres.my_source]
host = "localhost"
database = "postgres"
username = "username"
password = "password"
port = 5432

NOTE: The built-in demo requires database.sqlite.demo to be present in worker.toml.

About

Dropbase helps developers build and prototype web apps faster with AI. Dropbase is local-first and self hosted.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.2%
  • Shell 9.4%
  • Dockerfile 3.7%
  • Makefile 3.7%