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

@casejs/case

v3.0.5

Published

Backend as a service for developers.

Downloads

47

Readme

What is CASE ?

CASE is a Typescript lightweight BaaS (Backend As A Service) requiring minimal coding.

It provides a complete backend to your client app without the hassle that comes with it.

Key features

  • Instant backend with DB, REST API and Admin panel without any configuration
  • 🧠 Smart SDK to import in your favorite JS front-end
  • 🛠️ Essential features like Auth, Storage, Validation and Hooks

Forget about drag-and-drop visual builders

With CASE, you structure your data using TypeScript classes straight from your coding environment.

// entities/cat.entity.ts
@Entity()
export class Cat extends BaseEntity {
  @Prop()
  name: string

  @Prop({
    type: PropType.Date
  })
  birthDate: Date

  @Prop({
    type: PropType.Relation,
    options: {
      entity: Owner
    }
  })
  owner: Owner
}

Effortless integration in your client app

And allow the following code in your JS client built with your favorite stack: React, Svelte, Angular, Vue or any front-end. You can even use it in NodeJS.

import CaseClient from '@casejs/case-client'

// Init SDK
const cs = new CaseClient()

// Get all cats with their owner
const cats = await cs.from('cats').with(['owner']).find()

// Filter cats.
const cats = await cs
  .from('cats')
  .where('breed = siamese')
  .andWhere('birthDate > 2020-01-01')
  .find()

// Create a new cat.
const newCat = await cs.from('cats').create({
  name: 'Milo',
  age: 2
})

// Upload.
const fileUrl: string = await cs.from('cats').addFile(file)

// Login.
await cs.login('users', '[email protected]', 'case')

Getting started

Prerequisites

  • NodeJS (v16.14.0 or higher). The recommended version is 18.x.

Create your CASE project

Run the following on your terminal replacing my-case-app with your app's name:

npx create-case-app my-case-app

Then serve the app locally:

cd my-case-app
npm start

🎉 Your backend is ready ! You can now: - See your Admin panel at http://localhost:4000 - Use your REST API at http://localhost:4000/api

You can now go through the docs to build your next block.

Community & Resources

  • Docs - Learn CASE features
  • Discord - Come chat with the CASE community
  • Dev.to - Stay tuned to CASE developments
  • Github - Report bugs and share ideas to improve the product.

Contributors

Thanks to our first wonderful contributors !