Skip to content
A back end as a service based on MongoDB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Hamster Wikimedia Image

Hamster is a simplistic backend as a service(BaaS).It provides a REST interface to datastores for CRUD operations plus some helper services.

A proper documentation will be released when the code is more stable. Code is well commented with feature complete test coverage.

"Writing test code is better than writing documentation" - Lazy and Procastinating Anonymous Guy.

Auto-Generated godoc:


$ go get

Getting started with docker-compose

$ docker-compose run api go test -v

$ docker-compose up

Without docker-compose

  1. Mongodb: default port.
  2. Redis: default port.

$ SERVER_PORT=8181 MONGODB_URL=mongodb:// REDIS_URL= go test -v

$ SERVER_PORT=8181 MONGODB_URL=mongodb:// REDIS_URL= go run main.go

Why Mongodb?

Hamster is primarily focussed on mobile apps which need quick and dirty datastores. Another reason was the awesome Go mongodb driver: Thank you Gustavo Niemeyer!. It helped me getting started very quickly.

That said, there is no reason why we can't have sql databases as an option. Open to implementing MySQL, PostgreSQL integration in the future.

What is Redis for?

Caches, message(push notifications) and task(send emails, long running) queues.

Why reinvent the wheel?

As far as I know there are not many modern open source BAAS solutions out there. And though my opinion is highly subjective, I think Go provides an oppurtunity to build something simple, stable, fast and scalable. In any case, it always good to have a free and open source project at our hands.

Features Implemented:

  1. Developer Accounts.
  2. Mutlple Apps( with individual api-key and api-secret).
  3. CRUD schemaless objects for the apps.
  4. Save and Get Files( stored in GridFS).

Please go through hamster_test.go. I will try to get to documentation soon.


  1. Better Authentication
  2. Android, iOS clients
  3. Push Notifications(ios, android, browser)
  4. API metering and throttling
  5. Email service(email verification, forgot password etc.)
  6. Javascript, Python, Ruby, Java, PHP clients.
  7. Dashboard
  8. Analytics.

Bitdeli Badge

You can’t perform that action at this time.