Injee

The no configuration instant database for frontend developers.

injex

Every backend framework creator does get a excited while seeing how sexy HTMX is, as a creator of injee, I am no different. I have been thinking about how to make injee work with HTMX.

JavaScript frameworks are good to people only who know JavaScript, but for a person who knows programming they suck. So its natural that any backend creator does want to support HTMX.

There are my ideas for Injex = Injee + HTMX.

Defining views

Views in injee are just normal text file, say you want to display a content about user, then in the place where injee runs, define a file called /views/users/display.html, now say that file has the following content:

<h1> {{ user.name }} </h1>
<h2> {{ user.profession }} </h2>

Calling views from views

Now when you call /views/:table/:view, that is http://localhost:4125/views/users/CRDT-Y7-HQ/display.html, then, the user ones values:

{
 id: CRDT-Y7-HQ
 name: John Doe
 profession: Software Engineer
}

Then the returned HTML would be:

<h1> John Doe </h1>
<h2> Software Engineer </h2>

Calling views for all records

One can call views for all records using URL like this: http://localhost:4125/views/users/all/display.html. In this special case, one can paginate, search and so on.

CRUD

Of course you might need some views to be returned when you CRUD, right now I am not sure how to do it. But if I get the idea, I will write about it.