I have published a new version of Total.js framework. New version brings new features and some bug fixes.
New release of Total.js v2.8.0
- Read changelog
$ npm install total.jsor download empty-project
- Website: https://www.totaljs.com
This version brings great new features which makes Total.js framework one of the best and fastest Node.js frameworks in the world. I have performed many performance updates and improvements. Here are the best features in this version:
Rewritten algorithm of packages
I have rewritten packages algorithm from scratch. New algorithm supports streaming data while reading/writing. In other words you can now store files larger than
10 MB (I have tested 100 MB files). New algorithm reduces CPU and memory consuption during the packing/unpacking of packages.
NoSQL embedded database
- 65 MB database with over
- average reading around 1.7 second
- average updating/removing around 1.9 second
IMPORTANT: database performs multiple reads/updates together when needed.
NoSQL Counter v2
This is one of the coolest features. New NoSQL counter can count
sum values by days/months/years. You can read easily stats for some period or just read a minimal or maximal values by specific identificator. This version has improved performace a lot.
Big feature of this version is backing up of NoSQL embedded databases with all data. The database uses same packaged algorithm like Total.js package system for backing up/restoring. Now you can create a backup with all text and binary files.
NoSQL and HTTP protocol
Are you kidding me? Not really, it works like a charm.
This feature can write a log into the file. It's a great solution for logging when data are manipulated.
NoSQL: A quick documents back up
This feature can create a quick backup for documents which are updated, modified or removed.
- It works only with
Create directories according to the path
Nice to know that this method can create directories according to the path:
Another method for sending mails
- this method sends a mail message automaticly using the configuration
- no need to specify smtp as in
Mail.send(smtp, [options], messages, [callback]);
View engine: URL
I have improved
F.view() method by adding a support for views on another servers.
How it works:
Partial views in an action:
- IMPORTANT it won't work in view-engine e.g.
View engine: read a value easily from configuration
This new command can create a cleaner HTML code,
I have improved
F.cache by adding a new method
F.cache.set2() which creates a persistent cache. All persistent items are stored in a file and if the framework is restarted the items are loaded back to
This is very important part of the new version.
- IMPORTANT: fixed long messages in WebSocket now works like a charm
- fixed JS/CSS/HTML blocks
mailmessage.callback()sometimes wasn't called
mail-smtp-optionsuser+password can be
blanknow even if auth is enabled
Do you hear about Total.js for the first time?
Give Total.js platform a try, the invested time will be worth it. Start your business or technology stack with Total.js platform now! Get started.
Thank You to all the sponsors and premium members
Thank you all premium members and sponsors. Your money was used to make all these updates/improvements and much more possible. Thank you again for supporting me so I can do what I love the most. My idea for the near future is to improve documentation, make some more tutorials, courses and maybe a first book.