
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
[](https://travis-ci.org/piglovesyou/snapp) [](https://badge.fury.io/js/snapp) [
|
+--+ data // Server-side GraphQL Types and its resolvers go hrere
| +
| |
| +--+ schema.graphql // `data/*.graphql` are recognized
| | // as GraphQL schema. Define your types here
| |
| +--+ Query // Dirs of `data/[A-Z]*` are recognized
| | |
| | +---+ posts.ts // `data/[A-Z]*/*.ts` are recognized as
| | | // field resolvers
| | | // This resolves `query { posts }`
| | |
| | +---+ users.ts // resolves `query { users }`
| |
| +--+ Mutation
| | |
| | +---+ post.ts // resolves `mutation { post }`
| |
| +--+ Post // Any `data/[A-Z]*/*.ts` are recognized as types
| | |
| | +---+ comments.ts // resolves `comments` field of type `Post`
| |
| +--+ lib // Lowercase dirs are ignored by framework
| |
| +---+ myFns.ts // Also ignored
|
|
+--+ state // Client-side GraphQL Types and its resolvers go hrere
| |
| +--+ rootValue.ts // `state/rootValue.ts` indicates
| | // initial state for users
| |
| +--+ schema.graphql // Same as server-side, `state/*.graphql` are
| | // recognized as GraphQL Schema, but
| | // this is only for client-side, such as
| | // `isModalOpen` or `selectedRows`
| +--+ Query
| | |
| | +---+ isModalOpen.ts // resolve `query { isModalOpen @client }`
| | |
| | +---+ selectedRows.ts // resolve `query { selectedRows @client }`
| |
| +--+ Mutation
| | |
| | +---+ openModal.ts // resolve `mutation { openModal @client }`
| | |
| | +---+ selectRows.ts // resolve `mutation { selectRows @client }`
| |
| +--+ lib // Lowercase letter dir is ignored by framework
|
routes
and components
- Your Pages and GraphQL Documents (e.g. query {}
)./routes/**/*.tsx
./routes/**/*.graphql
./components/**/*.graphql
(root)
|
+--+ routes // Dirs and files of `routes/**/*.tsx` indicates your URL routes
| +
| |
| +--+ index
| | |
| | +---+ index.tsx // `${hostname}/` is routed here
| | |
| | +---+ posts.graphql // `routes/**/*.graphql` are recognized as
| | | // GraphQL Documents (queries and mutations)
| | |
| | +---+ blaa.css // Other extensions are ignored from framework
| |
| +--+ posts
| | |
| | +---+ index.tsx // `${hostname}/posts` is routed here
| |
| +--+ about.tsx // `${hostname}/about` is routed here
|
+--+ components
| |
| +--+ modalState.graphql // `components/**/*.graphql` are also recognized
| | // as GraphQL Documents
Specify page titles and other metadata with snapp/Head
component.
const title = 'Home';
export default const Home = () => (
<div>
<Head>
<title>{title}</title>
</Head>
<h1>{title}</h1>
</div>
);
props.routeContext
is available in all route components.
export type RouteContextTypes = {
pathname: string; // ex.) /about/me
query?: ParsedQuery<string>; // ex.) q of ?q=graphapp
params?: QueryParams; // ex.) id of /posts/:id
};
A leading underscore of route directory/file name indicates route params.
/* ./routes/posts/_id.tsx */
export default const PostDetail = (props) => (
<div>{props.routeContext.params.id}</div>
);
public
- Your static files./public/**
All files located under public
are served as static files by your application. Put files such as favicon.ico
and robots.txt
here.
config
- Configure Application./config/*
You can overrides framework files in config
. node_modules/snapp/dist/config/{modules}
by placing one with the same file name.
Example:
./config/Html.tsx
import { HtmlPropTypes } from 'snapp/types';
export default const Html = (prop: HtmlPropTypes) => (
<html>
<head></head>
<body>{prop.children}</body>
</html>
);
Your can import modules in node_modules/snapp/dist/app
by `import 'snapp/{module}'.
Example:
import useStyles from 'snapp/useStyles';
import s from './post.css';
export default const Post = (props: {}) => {
useStyles(s);
return (...);
};
MIT
FAQs
[](https://travis-ci.org/piglovesyou/snapp) [](https://badge.fury.io/js/snapp) [![GitHub license](https://img.shields.io/badge/lice
The npm package snapp receives a total of 12 weekly downloads. As such, snapp popularity was classified as not popular.
We found that snapp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.