a lightweight lib for fake REST Api & full of features
- Zero Config
- Zero dependency
- Schema base
- Auth
- Middleware
- Database support
- Crud ready
- Support freamwork
- use Bun
soon
// schema.config.js
const config = {
storage: "json", // or database
schemas: {
user: {
// controll endpoints
endpoints: {
create: true,
view: true,
update: true,
delete: false,
},
// controll auth
auth: {
type: "jwt"
},
// controll field
fields: {
name: {
// validation
validation: "required|min:3"
},
email: {
validation: "required|max:50"
},
password: {
validation: "required|min:8",
// hash or scurty
hash: true,
}
}
},
},
};
export default config;
For support, email [email protected] or join our Telegram Channel.