Just POST to save JSON and GET to retrieve. No login, no complexity. Perfect for students learning programming.
POST a JSON document to create a database. The database is created automatically on first request!
const response = await fetch('https://tinkr.ee/sdb/my_database', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'John', age: 25 })
});
const data = await response.json();
console.log(data); // {"id": "...", "name": "John", "age": 25}
GET all documents from your database as a JSON array
const response = await fetch('https://tinkr.ee/sdb/my_database');
const documents = await response.json();
console.log(documents); // Array of all documents
PATCH a document by its ID to update it
const docId = '550e8400-e29b-41d4-a716-446655440000';
const response = await fetch(`https://tinkr.ee/sdb/my_database/${docId}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Jane', age: 26 })
});
const updated = await response.json();
DELETE a document by its ID
const docId = '550e8400-e29b-41d4-a716-446655440000';
await fetch(`https://tinkr.ee/sdb/my_database/${docId}`, {
method: 'DELETE'
});
Use the since
parameter to fetch only documents created after a specific ID
const lastId = '550e8400-e29b-41d4-a716-446655440000';
const response = await fetch(`https://tinkr.ee/sdb/my_database?since=${lastId}`);
const newDocuments = await response.json();
| Method | Endpoint | Description |
|---|---|---|
POST |
/sdb/:db_name |
Create a document (creates database on first request) |
GET |
/sdb/:db_name |
Get all documents |
GET |
/sdb/:db_name?since=:id |
Get documents created after the given ID |
PATCH |
/sdb/:db_name/:id |
Update a document by ID |
DELETE |
/sdb/:db_name/:id |
Delete a document by ID |
Registered users can create persistent databases with namespaces. Just add the namespace before the database name:
POST
/sdb/:namespace/:db_name
GET
/sdb/:namespace/:db_name
PATCH
/sdb/:namespace/:db_name/:id
DELETE
/sdb/:namespace/:db_name/:id
Just pick any name you want for your database in the URL: my_todos, game_scores,
chat_messages
- anything! The database is created automatically when you POST to it for the first time.
If you need persistent storage, register for free and create a namespaced database.
By default, all operations are public. Registered users can enable API key authentication and configure permissions per database in the settings.
Features we're planning to add for registered users:
Create databases that never expire
Protect your database with private mode
Configure row limits, rate limits, and document size
Enforce structure for your documents
Control CRUD operations independently
HTML sanitization, HTTPS enforcement, and more
Practice building web apps without setting up a backend
Quickly test ideas and build proof-of-concepts
Perfect for classroom assignments and coding bootcamps
Add real database functionality to your demos
Get started fast without backend setup
Simple forms and surveys for small projects