New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

next-alt-core

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

next-alt-core

A faster, lighter alternative to Next.js

unpublished
beta
latest
Source
npmnpm
Version
1.0.0-beta.1
Version published
Maintainers
0
Created
Source

Next-Alt Core

A faster, lighter alternative to Next.js with built-in support for server components, edge computing, and static site generation.

Features

  • Server Components: Create React components that run on the server
  • Edge Computing: Deploy components to edge locations for faster response times
  • Static Site Generation (SSG): Generate static pages at build time
  • Routing: Simple and flexible routing with Link component

Installation

npm install @next-alt/core

Quick Start

// Create a server component
import { createServerComponent } from '@next-alt/core';

const MyServerComponent = createServerComponent(async () => {
  const data = await fetchData();
  return <div>{data}</div>;
}, {
  suspense: true,
  errorBoundary: true
});

// Create an edge component
import { createEdgeComponent } from '@next-alt/core';

const MyEdgeComponent = createEdgeComponent(async ({ request }) => {
  const region = request.headers.get('x-vercel-ip-country');
  return <div>Hello from {region}!</div>;
}, {
  regions: ['iad1', 'sfo1'],
  cache: { duration: 3600 }
});

// Use static site generation
import { withStaticProps } from '@next-alt/core';

const MyStaticPage = withStaticProps(async () => {
  return {
    props: {
      data: await fetchData()
    },
    revalidate: 60
  }
})(({ data }) => <div>{data}</div>);

Documentation

For detailed documentation, visit https://next-alt.dev/docs

License

MIT

Keywords

next

FAQs

Package last updated on 21 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts