Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/con-dog/serverless-architecture
https://github.com/con-dog/serverless-architecture
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/con-dog/serverless-architecture
- Owner: con-dog
- Created: 2024-01-25T04:07:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-26T02:31:20.000Z (11 months ago)
- Last Synced: 2024-08-05T11:43:01.280Z (4 months ago)
- Language: JavaScript
- Size: 1.66 MB
- Stars: 33
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TRUE SERVERLESS #
![Serverless site with quines and bookmarklets](quine-github-gif.gif)
## The Why
Sick of hearing the constant marketing circle-jerk of "serverless" sites, I set out to test whether a truly server-free client only website is possible.> It is.
But that's not nearly enough.
I wanted to create a true serverless site that also fit the following criteria:
- NO SERVER
- NO DATABASE
- ZERO Third party API calls
- Easy to use
- Stateful: It can have state and maintain its state when turned off
- History
- Cross Device: It can work cross devices
- Self hosting (A Quine)![Quine New Instance](Quine%20new%20instance.png)
![The Quine in Action](The%20Quine%20in%20Action.png)
![Saving and history](Note%20history.png)## The How
To achieve this I created a Bookmarklet (executable browser bookmark), that is a state-remembering quine (It outputs its own source code including current state and this output itself can be run as another program), that can sync across devices (using browser profile bookmark syncing), and to save state you simply drag a new bookmark into the bookmarks bar (easy to use) which is automatically timestamped and named for history purposes.## How to run it?
Basically once you have saved the code to a bookmark, you click the bookmark and it will run the code. Then you just interact with the notepad and write whatever. When you want to save, you drag the link at the bottom to the bookmarks bar and it will auto name it. Then, at a later stage you can click the new bookmark and it will rerun the original program, but with you previous state.You can share the link with friends and they can run it too. And if you have profile sync on, the bookmarklet should show up in the same browser on your other devices.
## Bold claims
I think its a world first? Happy to be proven wrong.## Closing remarks
The final working code is the code in "stateful_quine_with_link.js". If you want to try the website out for yourself, simply save this code as a new bookmark (this is the url portion) and click the bookmark to run. (Note: Whenever you copy code from the internet please do understand what it does before executing it)## Next Steps
I want to make a Fully working Quine self hosted Python REPL bookmarklet that maintains its own history and state, as a next implementation of this project