5
0 Comments

Feedback on an experimental web framework

Remember the simple times of PHP web, back in 2000s?

Each web URL was literally a #PHP file.
1 file serving 1 function. Simple, straight forward.

where prototyping was quick and fun. Sure, code quality wasn't the top priority but it allowed for rapid prototyping by literally anyone. Web was easy.

Your API was a file under /api/books.php and to make it look decent, developers would hide the ".php" from the url using htaccess. voila. one file per end point.

In 2020, if you're developing in NodeJS, chances are you use some library or boilerplate that has an MVC structure and everything needs to be configured before you can have your simple functionality that you wanted to test out your prototype.
even if you have a react Frontend ready,
you just can't start with a single file and with the bare minimum functionality.

but then this old simplicity of PHP is being brought back with FAAS and serverless. You can have a single file, having a single function, deploy it quickly and start prototyping.

I wanted to get this speed agility and rapid prototyping ability to my local setup.

So I built an experimental setup that I'm calling backwardsJS.
BackwardsJS goes back to a time where you could quickly "hack" a web tool together.

What is BackwardsJS?

It's a koa based boiler plate for hobbyist rapid prototyping

What can I do with it?

You can drop a simple file in your Fns folder
which becomes your web end point as well.

for example,
a function in hello.js file will be served if you call http://localhost:3433/hello

It can also do NextJs style dynamic routing by having a file structure like /api/todo/[id].js

Why?

Cause why not?
I wanted the simplicity of functions to serve my local web tools.

I'm looking for feedback on this experiment from the Indie Code community on whether this is something you find interesting or not

You can get and try the crude boiler plate code from my github: https://github.com/negati-ve/backwardjs-koa-function-as-a-service

Cheers! :)

Trending on Indie Hackers
Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments