Skip to content
This project provides an persistent store for RAML files created using then embedded API Designer
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.

RAML Store


raml-store provides a simple storage API plus a persistence plugin which enables you to run the RAML API Designer locally (rather than use the APIHub cloud service) and still be able to manage and collaborate on your design.


The service is built with node.js, using express and mongodb.

Installing Node.js

Go to, and click the Install button.

Installing MongoDB

To install MongoDB on your specific platform, refer to the MongoDB QuickStart.

To start mongodb as background process:

cd /usr/local/mongodb (mongodb installation directory)

mongod --fork --logpath /var/log/mongodb.log

Installing MongoDB Node.js Driver

From the top-level directory (e.g. raml-store):

npm install mongodb

Installing Express

From the top-level directory (e.g. raml-store):

npm install

Running the Service

From the top-level directory (e.g. raml-store):

node server

If you prefer to run the server in the background forever is awesome.

npm install forever

forever start server

Testing the Service

curl -i -X POST -H 'Content-Type: application/json' -d '{"name":"myfirstapi.raml","path":"/","contents":"#%25RAML%200.8%0Atitle:%20%20%20DONE!!!"}' http://localhost:3000/files

curl -i -X GET http://localhost:3000/files

Integration with API-Designer

Follow instructions at api-designer to install and run API-Designer.

Where they reference embedding the designer, you can simply copy the sample-designer from this project into the api-designer app directory (

The important code is the script beginning at line 75, ending at line 202.


Thanks to Christophe Coenraets, this API is based on his simple and easy-to-follow tutorial at

You can’t perform that action at this time.