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 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-legal-app

v0.1.0

Published

The Agent-Optimized Legal Tech Starter Kit

Readme

Create Legal App

The Agent-Optimized Legal Tech Starter Kit.

License Next.js Tailwind CSS

🤖 Built for Agents: This repository is designed to be read by AI agents. It includes comprehensive internal documentation (AGENTS.md and skills/) that guides LLMs in generating production-ready legal tech code.

🚀 Overview

create-legal-app is a modern, opinionated starter kit for building legal technology applications. It provides a solid foundation with Next.js 15, Shadcn UI (Maia theme), and a structure pre-configured for complex legal workflows like document analysis, case management, and secure vaults.

What makes this different? Most starter kits are just code. This kit includes Instructional Metadata (Skills) that teach your AI coding assistant (Cursor, Windsurf, etc.) exactly how to implement semantic search, OCR pipelines, and legal-specific workflows using the Case.dev SDK.

✨ Features & Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS 4 + Shadcn UI (Maia Preset)
  • Font: Inter & Spectral (Serif for legal texts)
  • Package Manager: Bun
  • Agent Skill System: Dedicated documentation in skills/ for:
    • case-dev: Legal AI, Vaults, OCR
    • database: Neon / Postgres schemas (Schema ready)
    • auth: Authentication patterns

🛠️ Getting Started

1. Initialize the Project

git clone https://github.com/CaseMark/create-legal-app.git my-legal-startup
cd my-legal-startup
bun install

2. Configure Environment

Copy the example environment file:

cp .env.example .env.local

Fill in your API keys (get your Case.dev keys from the Case.dev Console):

# .env.local
CASE_API_KEY=sk_case_...
DATABASE_URL=postgres://...

3. Run Development Server

bun dev

Open http://localhost:3000 to see the starter page.

🤖 For AI Agents

Are you an AI? Start by reading AGENTS.md.

  1. Context: Read AGENTS.md to understand the project architecture and principles.
  2. Skills: Before implementing a feature, check the skills/ directory. For example, if the user asks for "Document Upload", read skills/case-dev/SKILL.md.
  3. Conventions: stricta file naming and kebab-case for utilities.

📚 Documentation Structure

  • /app: Next.js App Router (Pages, Layouts, API Routes)
  • /components: React components (UI primitives in /ui, custom in root)
  • /lib: Shared utilities (Place your case-dev client here)
  • /skills: The Brain. Contains Markdown files specifically for AI context.
    • /case-dev: SDK usage, Vaults, Workflows
    • /database: Schema design patterns
    • /auth: Auth flow documentation

📄 License

This project is licensed under the Apache 2.0 License.