playscript

0.2.0 • Public • Published

PlayScript

A Tiny and Powerful feature packed framework for building progressive offline capable web apps, fast!

Features:

  • Top level async / await
  • JSX type syntax
  • Markdown & HTML templating
  • Local and remote module importing
  • Awesome life-saving API's
  • Prebuilt debugging tools
  • And a hell lot more!!

All packed in under half a megabyte and compatible with almost all web hosts, you will truly fall in love with it (🤞 hopefully! ).

See demo usage below:

1.Install Playscript:
npm i playscript
# or
yarn add playscript
2.Create file index.ps...
3. Add this to your index file:
  app.route("/",res=>{
    var planet="Earth"
    res.send( <p> hello {{planet}}!</p> )
  }).port(3000)
4. Run script:
npx ps index.ps
# if installed globally
ps index.ps

And yes! this qualifies to be a PWA with offline capabilities! just head to your browser and visit http://localhost:3000 .


Guide


Contributors


PsJs is still in its early stages and will have breaking changes, please wait for a stable release before using in --prod. code is unobfuscated here. Contributions will be highly valued. xoxo

logo

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.01
0.1.30
0.1.20
0.1.10
0.1.01
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i playscript

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

923 kB

Total Files

58

Last publish

Collaborators

  • playscript