
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@harperfast/template-react-ts-studio
Advanced tools
Your new app is now deployed and running on Harper Fabric!
Your new app is now deployed and running on Harper Fabric!
Here's what you should do next:
These schemas are the heart of a great Harper app, specifying which tables you want and what attributes/fields they should have. Any table you @export stands up endpoints automatically.
Create a new greeting.ts file in the resources directory.
Customize your resource:
import { type RecordObject, type RequestTargetOrId, Resource } from 'harper';
interface GreetingRecord {
greeting: string;
}
export class Greeting extends Resource<GreetingRecord> {
static loadAsInstance = false;
async post(
target: RequestTargetOrId,
newRecord: Partial<GreetingRecord & RecordObject>,
): Promise<GreetingRecord> {
// By default, only super users can access these endpoints.
return { greeting: 'Greetings, post!' };
}
async get(target?: RequestTargetOrId): Promise<GreetingRecord> {
// But if we want anyone to be able to access it, we can turn off the permission checks!
target.checkPermission = false;
return { greeting: 'Greetings, get! ' + process.version };
}
async put(
target: RequestTargetOrId,
record: GreetingRecord & RecordObject,
): Promise<GreetingRecord> {
target.checkPermission = false;
if (this.getCurrentUser()?.name?.includes('Coffee')) {
// You can add your own authorization guards, of course.
return new Response('Coffee? COFFEE?!', { status: 418 });
}
return { greeting: 'Sssssssssssssss!' };
}
async patch(
target: RequestTargetOrId,
record: Partial<GreetingRecord & RecordObject>,
): Promise<GreetingRecord> {
return { greeting: 'We can make this work!' };
}
async delete(target: RequestTargetOrId): Promise<boolean> {
return true;
}
}
Save your changes.
Tap "Restart Cluster" and your changes will be live!
Pop open http://localhost:9926 to view web/index.html in your browser.
Head to the APIs tab to explore your endpoints and exercise them. You can click the "Authenticate" button to see what different users will be able to access through your API.
Test your application works by querying the /Greeting endpoint:
curl http://localhost:9926/Greeting
You should see the following:
{ "greeting": "Hello, world!" }
Take a look at the default configuration, which specifies how files are handled in your application.
For more information about getting started with Harper and building applications, see our getting started guide.
For more information on Harper Components, see the Components documentation.
FAQs
Your new app is now deployed and running on Harper Fabric!
The npm package @harperfast/template-react-ts-studio receives a total of 424 weekly downloads. As such, @harperfast/template-react-ts-studio popularity was classified as not popular.
We found that @harperfast/template-react-ts-studio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.