
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Ecstatic is a static site generator focused on simplicity. It uses just enough of the right tools, leaving as much power in your hands while still providing plenty of value. Ecstatic is opinionated in favor of HAML, SASS, and CoffeeScript.
Ecstatic provides a straight-forward directory structure for your site. It also provides a mechanism to push either the master
or gh-pages
branch to GitHub.
Ecstatic does not provide an automatic mechanism for blogging. If you want to use Ecstatic for blogging, you will have to curate your own site structure. Not ideal, but it's not a core feature. Perhaps someone will write a plugin that provides automatic blogging functionality (hint, hint).
Ecstatic is not meant to create ridiculously optimized sites. It will instead make fairly optimized sites. Perhaps, in the future, there can be a plugin ecosystem that takes Ecstatic output and performs further optimization (e.g., pre-gzip, JS Google closure tools advanced compilation, etc.)
You will need Ruby 2.0. It should also run fine on Ruby 1.9.3. Either RVM or rbenv should work. You will also need a way to compile CoffeeScript. Simply having node.js on your machine should suffice.
Starting from scratch:
$ mkdir my_site
$ cd my_site
$ echo 'ruby-2.0.0' > .ruby-version
$ echo 'my_site' > .ruby-gemset
$ cd . # load the gemset when using RVM
$ gem install bundler
$ (echo "source 'https://rubygems.org'"; echo "gem 'ecstatic'") > Gemfile
$ bundle
$ ecstatic init
If your site is a Github Pages page rather than a user or organization home page, then your last step is different:
$ ecstatic init --ghpages
After installation and initialization, you should have the following directory tree:
.
├── Gemfile
├── Gemfile.lock
├── README.md
├── config.rb
├── gh-pages
└── site
├── assets
│ ├── scripts
│ └── stylesheets
└── pages
When writing your website, you will focus almost exclusively on the site
directory. While you're working on your site, you'll want to run ecstatic server
and view its contents at localhost:4567.
Ecstatic will automatically compile HAML files in site/pages/
and SCSS files in site/assets/stylesheets
. CoffeeScript and JavaScript files live in site/assets/scripts
-- CoffeeScript will get compiled, while JavaScript files are merely copied into place.
Assuming everything worked and you set up your git remotes right, you should be able to deploy with:
ecstatic deploy
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push -u origin my-new-feature
)FAQs
Unknown package
We found that ecstatic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.