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

@sliter/rakkasjs

v0.6.91

Published

Bleeding-edge React framework powered by Vite

Downloads

4

Readme

Rakkas

Bleeding-edge React framework powered by Vite

Build Status npm type definitions MIT license React Vite Tweet about Rakkas

Read the guide | Try on CodeSandbox | Try on StackBlitz


Rakkas is a bleeding-edge full-stack React framework powered by Vite. You can consider it an up-and-coming alternative to Next.js, Remix, or Gatsby.

Important features are:

  • ⚡  Lightning fast development server
  • 🖥️  Streaming SSR with Suspense
  • 🔀  Dynamic rendering (full static pages for bots, streaming for browsers)
  • ⬇️  API-less data fetching system
  • 🚀  Support for serverless and worker environments
  • 📄  Static site generation
  • 📁  Flexible file system router
  • ⚙️  API routes with middleware support

Is Rakkas right for you?

  • Although many features have been implemented, Rakkas is still under heavy development. It uses experimental and/or beta features of React and Vite. Minor releases will introduce breaking changes until we hit 1.0. As such, it's not yet ready for production use. If you need a stable React framework try Next.js, Remix, or Gatsby.
  • Rakkas is fairly opinionated. If you need more flexibility try vite-ssr-plugin.

Getting started

🚀 See Rakkas in action in your browser:

To generate a Rakkas application boilerplate use one of the following commands:

npx create-rakkas-app@latest my-rakkas-app
# or
pnpm create rakkas-app my-rakkas-app
# or
yarn create rakkas-app my-rakkas-app

create-rakkas-app project initializer comes with many features, all of which are optional but we strongly recommend enabling TypeScript and the generation of a demo project on your first try because self-documenting type definitions allow for a smoother learning curve and the demo project source code comes with plenty of comments.

👷 If you prefer a manual setup, you can install the following packages:

npm install --save react react-dom
npm install --save-dev vite rakkasjs

Then create a src/routes/index.page.jsx file like this:

export default function HomePage() {
	return <h1>Hello world!</h1>;
}

Now you can:

  • Start a development server with npx rakkas
  • Build with npx rakkas build
  • Launch with node dist/server

Credits

Version history

0.6.0

  • React 18
    • Concurrent mode
    • Streaming SSR
    • Suspense for data fetching
  • Vite 3
    • ESM SSR build ("type": "module")
    • Improved cold start
  • Brand new data fetching system
    • react-query-inspired useQuery and useMutation
    • Remix-inspired action handlers
    • API-less data fetching with useServerSideQuery
    • Waterfall-free preload functions
    • Remix-inspired form action handlers
  • HatTip
    • HTTP handling based on web standards
    • Adapters for Vercel Edge, Netlify Edge, and Deno/Deno Deploy
    • Express integration
  • Routing improvements
    • Route guards
    • Catch-all routes
    • Simpler 404 handling
  • Miscellaneous
    • Response headers customization
    • Shared ESLint configuration

0.5.0

  • Serverless support (Vercel, Netlify, Cloudflare Workers)
  • Improved client-side navigation
  • Improved SSRRomuald Brillout
  • Partial pre-rendering
  • Client-only pages
  • Localizable URLs
  • Cache-control header setting

0.4.0

  • Static site generation
  • Switch to React automatic JSX runtime
  • Integration examples (Apollo GraphQL, Styled Components, MDX, Tailwind CSS)
  • More options in the project generator
  • Lots of minor features and fixes
  • Much-expanded documentation