npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

codehooks

v1.2.7

Published

CLI for codehooks.io serverless backend service

Downloads

128

Readme

Codehooks CLI

Codehooks.io is an easy to use Backend for serverless JavaScript, NoSQL Database and much more.

Some highlights:

  • Instant deployment with automatic NoSQL REST API
  • JavaScript ES6/Typescript
  • Easy development of REST APIs and GraphQL
  • NoSQL database with MongoDB-ish query API
  • Simple key/value database with Redis-like API
  • Background CRON-like Jobs
  • Persistent Worker Queues
  • Filesystem
  • Secure access with API tokens or Auth0.com JWT / JWKS

It's a perfect companion for modern web/API centric development.

The CLI is the main tool for developers to compile, deploy and monitor code.

Check out the CLI documentation at: https://codehooks.io/docs/cli Check out the developer documentation at: https://codehooks.io/docs

Quick start

Install & sign up / login

% npm install codehooks -g

Sign up and log in with your Github or Google account.

% codehooks login github
If browser does not open automatically, please paste in this URL in a new browser tab/window:
https://account.codehooks.io/authenticate/github/xxxxx

👏 Authentication complete, <YOUR NAME>!
You are now ready to use the Codehooks CLI. Please close the browser window.

Create a new project / data store

% codehooks create myproject 
Successfully initialized new project 'myproject-xxxx' in your account
Added new space 'dev' and set it to active
Created example file: /Users/<YOU>/<YOUR PATH>/myproject/index.js

% cd myproject

Create a JavaScript app

Tip: Check the auto generated example in the index.js file.

/*
* Auto generated Codehooks (c) example
* Install: npm i codehooks-js
*/
import {app} from 'codehooks-js'

// test route for https://<PROJECTID>.api.codehooks.io/dev/
app.get('/', (req, res) => {
  res.send('CRUD server ready')
})

// Use Crudlify to create a REST API for any collection
app.crudlify()

// bind to serverless runtime
export default app.init();

Add dependencies

Add npm packages before compile and deployment.

npm i codehooks-js

Deploy project

% coho deploy 
Deploying to Project: myproject-xxxx Space: dev
Deployed Codehook successfully

REST endpoint when deployed:
You API: https://myproject-xxxx.api.codehooks.io/dev/

More info at: https://codehooks.io