Node.js web app framework with file-based routing, templating, sessions, and markdown support out of the box.
https://www.npmjs.com/package/@awmottaz/grackle
- JavaScript 100%
| .vscode | ||
| docs | ||
| examples/basic-example | ||
| lib | ||
| tests | ||
| .gitignore | ||
| .node-version | ||
| .prettierrc | ||
| biome.json | ||
| grackle-cli.js | ||
| grackle-server.js | ||
| jsconfig.json | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| types.d.ts | ||
Grackle
A web server with file-based routing.
Install
npm install @awmottaz/grackle
This installs the grackle CLI app that you can run with npx grackle.
Usage
Here is the smallest Grackle app you can make: create a file at <projectRoot>/routes/+get.js with
the following contents:
export default function handle({ response }) {
response.send(200, "hello, world!");
}
Run your server with npx grackle server. Then you can make a request:
$ curl http://localhost:55401
hello, world!
Complete documentation is bundled with your installation of Grackle, and can also be found in the
docs folder. To view the bundled documentation, run npx grackle docs.
Issues, feature requests, and feedback
If you have an omg.lol account, then you have a source.tube account and you can use the issue tracker to submit your feedback.
If you do not have an account, or you just prefer email, then you can send your feedback to grackle@tonymottaz.com.